OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed...
Ajay Panicker [Wed, 21 Sep 2016 21:15:40 +0000 (21:15 +0000)]
Merge "[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed" into lmp-dev
am: f78ff48d0d  -s ours

Change-Id: I82e447c8dbbabd40977805bc1d233de832296e6b

7 years ago[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed
Ajay Panicker [Wed, 21 Sep 2016 21:15:37 +0000 (21:15 +0000)]
[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed
am: 27b3d578b9  -s ours

Change-Id: Ia29f66f121813b3e03a16a665f7bdae2d75ed09b

7 years agoMerge "[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed...
Ajay Panicker [Wed, 21 Sep 2016 21:08:07 +0000 (21:08 +0000)]
Merge "[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed" into lmp-mr1-dev

7 years agoMerge "[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed...
Ajay Panicker [Wed, 21 Sep 2016 21:08:04 +0000 (21:08 +0000)]
Merge "[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed" into lmp-dev

7 years agoMerge "[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)" into lmp...
TreeHugger Robot [Wed, 21 Sep 2016 00:52:46 +0000 (00:52 +0000)]
Merge "[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)" into lmp-mr1-dev

7 years agoMerge "[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)" into lmp-dev
Ajay Panicker [Wed, 21 Sep 2016 00:17:48 +0000 (00:17 +0000)]
Merge "[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)" into lmp-dev
am: 19b09dd0d3  -s ours

Change-Id: Id030cd83f6759c255c1a5cfbea8b90a92610a02d

7 years ago[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)
Ajay Panicker [Wed, 21 Sep 2016 00:13:03 +0000 (00:13 +0000)]
[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)
am: 0ea21bc70e  -s ours

Change-Id: I24d8a2df435e4df43cc39d0e0314796e53e30429

7 years agoMerge "[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)" into klp...
Ajay Panicker [Wed, 21 Sep 2016 00:12:20 +0000 (00:12 +0000)]
Merge "[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)" into klp-dev am: 204da8aa9e am: a278a1e660 am: 3d995d6f5f  -s ours
am: 4f77ca16e4  -s ours

Change-Id: I6be29367b410ffc98e61d49450bb1d9905fbf3f8

7 years ago[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2) am: edae39d59a...
Ajay Panicker [Wed, 21 Sep 2016 00:10:52 +0000 (00:10 +0000)]
[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2) am: edae39d59a am: 271e34dbd5 am: 3758253ae8  -s ours
am: cb970f408e  -s ours

Change-Id: I385bc1700aebf53fb2846a149995925dcb00b5e8

7 years agoMerge "[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)" into lmp-dev
TreeHugger Robot [Wed, 21 Sep 2016 00:07:34 +0000 (00:07 +0000)]
Merge "[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)" into lmp-dev

7 years agoMerge "[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)" into klp...
Ajay Panicker [Wed, 21 Sep 2016 00:04:35 +0000 (00:04 +0000)]
Merge "[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)" into klp-dev am: 204da8aa9e am: a278a1e660
am: 3d995d6f5f  -s ours

Change-Id: I9e410ce2d5302eda87aea9628cb58ca203a212c5

7 years ago[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2) am: edae39d59a...
Ajay Panicker [Wed, 21 Sep 2016 00:03:23 +0000 (00:03 +0000)]
[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2) am: edae39d59a am: 271e34dbd5
am: 3758253ae8  -s ours

Change-Id: I0836ddb1649084a6814c461bccc41135cb475337

7 years agoMerge "[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)" into klp...
Ajay Panicker [Tue, 20 Sep 2016 23:56:48 +0000 (23:56 +0000)]
Merge "[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)" into klp-dev am: 204da8aa9e
am: a278a1e660

Change-Id: I22838d21bdd289ca34b78260ade59adafbdc408a

7 years ago[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2) am: edae39d59a
Ajay Panicker [Tue, 20 Sep 2016 23:55:44 +0000 (23:55 +0000)]
[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2) am: edae39d59a
am: 271e34dbd5

Change-Id: I954b8f2d9333fa6bb549dc812733d2b8f71220b9

7 years agoMerge "[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)" into klp-dev
Ajay Panicker [Tue, 20 Sep 2016 23:49:13 +0000 (23:49 +0000)]
Merge "[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)" into klp-dev
am: 204da8aa9e

Change-Id: I0ff3b20fc2f3318070e343dfe6dc29b2979284ef

7 years ago[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)
Ajay Panicker [Tue, 20 Sep 2016 23:49:05 +0000 (23:49 +0000)]
[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)
am: edae39d59a

Change-Id: I2bdf5c6fc24fd370e2555585e8492558040c0d10

7 years ago[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)
Ajay Panicker [Thu, 8 Sep 2016 18:01:29 +0000 (11:01 -0700)]
[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)

setPairingConfirmation was set to only require BLUETOOTH_ADMIN
permission which shouldn't be able to set the confirmation itself.

This is restricted to BLUETOOTH_PRIVILEGED permission.

Bug: 29043989
Change-Id: Iddc935f0b02f5ff56e930914b4b664377e786184

7 years agoMerge "[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)" into klp-dev
TreeHugger Robot [Tue, 20 Sep 2016 23:44:57 +0000 (23:44 +0000)]
Merge "[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)" into klp-dev

7 years agoMerge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into klp-dev am: d1e3e...
Sudheer Shanka [Tue, 20 Sep 2016 00:12:50 +0000 (00:12 +0000)]
Merge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into klp-dev am: d1e3e53d79 am: a4c9bbefdf am: 3fca892d3e  -s ours
am: 1d053b3be8  -s ours

Change-Id: I359bae35d6698349370b4f9a51427f10eb2bbdf3

7 years agoMerge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into klp-dev am: d1e3e...
Sudheer Shanka [Mon, 19 Sep 2016 23:24:48 +0000 (23:24 +0000)]
Merge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into klp-dev am: d1e3e53d79 am: a4c9bbefdf
am: 3fca892d3e  -s ours

Change-Id: I4d66089c6ec8743f119dd4aab641b22ebdad7b5c

7 years agoDO NOT MERGE: Fix deadlock in AcitivityManagerService. am: dce4be63bb am: a437e7f3f1...
Sudheer Shanka [Mon, 19 Sep 2016 23:02:54 +0000 (23:02 +0000)]
DO NOT MERGE: Fix deadlock in AcitivityManagerService. am: dce4be63bb am: a437e7f3f1 am: c1b2e6db98  -s ours
am: ff9a8d74c7  -s ours

Change-Id: I14d6109858bcf02b5f55eb3e207d6bc1918e746a

7 years agoDO NOT MERGE: Fix deadlock in AcitivityManagerService. am: dce4be63bb am: a437e7f3f1
Sudheer Shanka [Mon, 19 Sep 2016 21:50:49 +0000 (21:50 +0000)]
DO NOT MERGE: Fix deadlock in AcitivityManagerService. am: dce4be63bb am: a437e7f3f1
am: c1b2e6db98  -s ours

Change-Id: I006233ce7258467da7d5c09c9925bd6048d85ed3

7 years agoMerge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into klp-dev am: d1e3e...
Sudheer Shanka [Mon, 19 Sep 2016 21:50:47 +0000 (21:50 +0000)]
Merge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into klp-dev am: d1e3e53d79
am: a4c9bbefdf

Change-Id: I224c2cf56d53acf091a11372f82d1305052c6f18

7 years agoDO NOT MERGE: Fix deadlock in AcitivityManagerService. am: dce4be63bb
Sudheer Shanka [Mon, 19 Sep 2016 21:02:53 +0000 (21:02 +0000)]
DO NOT MERGE: Fix deadlock in AcitivityManagerService. am: dce4be63bb
am: a437e7f3f1

Change-Id: I13fdcfc2ecca2e5e1d178d61ef8ec6990a0fc3af

7 years agoMerge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into klp-dev
Sudheer Shanka [Mon, 19 Sep 2016 20:16:17 +0000 (20:16 +0000)]
Merge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into klp-dev
am: d1e3e53d79

Change-Id: Id794cb9cd3792317d2786671f2f84a6ad8bbd404

7 years agoDO NOT MERGE: Fix deadlock in AcitivityManagerService.
Sudheer Shanka [Mon, 19 Sep 2016 20:16:13 +0000 (20:16 +0000)]
DO NOT MERGE: Fix deadlock in AcitivityManagerService.
am: dce4be63bb

Change-Id: Ia1db0d226d84ed07da6712f554327b49c9fe59c0

7 years agoMerge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into lmp-dev
Sudheer Shanka [Mon, 19 Sep 2016 20:14:20 +0000 (20:14 +0000)]
Merge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into lmp-dev
am: b358ee3558  -s ours

Change-Id: Idf726fba98ec0e78135498248d111d8571324657

7 years agoDO NOT MERGE: Fix deadlock in AcitivityManagerService.
Sudheer Shanka [Mon, 19 Sep 2016 20:14:16 +0000 (20:14 +0000)]
DO NOT MERGE: Fix deadlock in AcitivityManagerService.
am: 2d608378f4  -s ours

Change-Id: Ie6c10a3ef11ea0ec560f20ef49f14f46184d1a4d

7 years agoMerge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into lmp-dev
Sudheer Shanka [Mon, 19 Sep 2016 20:01:47 +0000 (20:01 +0000)]
Merge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into lmp-dev

7 years agoMerge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into klp-dev
Sudheer Shanka [Mon, 19 Sep 2016 19:59:18 +0000 (19:59 +0000)]
Merge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into klp-dev

7 years agoMerge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into lmp-mr1-dev
Sudheer Shanka [Mon, 19 Sep 2016 19:59:14 +0000 (19:59 +0000)]
Merge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into lmp-mr1-dev

7 years agoFix build break due to automerge of 7d2198b5
Paul Jensen [Mon, 19 Sep 2016 12:53:20 +0000 (08:53 -0400)]
Fix build break due to automerge of 7d2198b5

Bug: 30100884

Change-Id: I8fa379a74b5d9467b5b9498bd18de2a043963c6f

7 years agoMerge "Avoid crashing when downloading MitM'd PAC that is too big" into klp-dev am...
Paul Jensen [Mon, 19 Sep 2016 11:40:02 +0000 (11:40 +0000)]
Merge "Avoid crashing when downloading MitM'd PAC that is too big" into klp-dev am: 96c045807b am: 7c08c4d5cc am: 963ca6f947
am: 3532f10fcb

Change-Id: I9dc833de510da32d47c4e6b0a78eae4cc7a38832

7 years agoAvoid crashing when downloading MitM'd PAC that is too big am: 7d2198b586 am: 9c1cb7a...
Paul Jensen [Mon, 19 Sep 2016 11:37:54 +0000 (11:37 +0000)]
Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b586 am: 9c1cb7a273 am: 6634e90ad7
am: 66ee2296a9

Change-Id: Ib0023b44e521b936ab2f9450ad367b1feda64492

7 years agoMerge "Avoid crashing when downloading MitM'd PAC that is too big" into klp-dev am...
Paul Jensen [Mon, 19 Sep 2016 11:34:00 +0000 (11:34 +0000)]
Merge "Avoid crashing when downloading MitM'd PAC that is too big" into klp-dev am: 96c045807b am: 7c08c4d5cc
am: 963ca6f947

Change-Id: I1a509c39640e7f9d76bd2e420764aeb3d823a3df

7 years agoAvoid crashing when downloading MitM'd PAC that is too big am: 7d2198b586 am: 9c1cb7a273
Paul Jensen [Mon, 19 Sep 2016 11:31:54 +0000 (11:31 +0000)]
Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b586 am: 9c1cb7a273
am: 6634e90ad7

Change-Id: Id46b32b80d47f6b7e2bfab2740978377a6b711cf

7 years agoMerge "Avoid crashing when downloading MitM'd PAC that is too big" into klp-dev am...
Paul Jensen [Mon, 19 Sep 2016 11:27:47 +0000 (11:27 +0000)]
Merge "Avoid crashing when downloading MitM'd PAC that is too big" into klp-dev am: 96c045807b
am: 7c08c4d5cc

Change-Id: Idd0a3598ffac808a39703a23238b47a02bca66ed

7 years agoAvoid crashing when downloading MitM'd PAC that is too big am: 7d2198b586
Paul Jensen [Mon, 19 Sep 2016 11:25:21 +0000 (11:25 +0000)]
Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b586
am: 9c1cb7a273

Change-Id: I8cd4b0d33da22bc29abd176672659c3eeb8c7d5b

7 years agoMerge "Avoid crashing when downloading MitM'd PAC that is too big" into klp-dev
Paul Jensen [Mon, 19 Sep 2016 11:19:16 +0000 (11:19 +0000)]
Merge "Avoid crashing when downloading MitM'd PAC that is too big" into klp-dev
am: 96c045807b

Change-Id: Ia20ba679f7b0445567b43aa74eef27f751453d4e

7 years agoAvoid crashing when downloading MitM'd PAC that is too big
Paul Jensen [Mon, 19 Sep 2016 11:19:13 +0000 (11:19 +0000)]
Avoid crashing when downloading MitM'd PAC that is too big
am: 7d2198b586

Change-Id: I512d6f9de6a92dd3cabec93bcadf437f5cf2e16d

7 years agoMerge "Avoid crashing when downloading MitM'd PAC that is too big" into klp-dev
Paul Jensen [Mon, 19 Sep 2016 11:10:59 +0000 (11:10 +0000)]
Merge "Avoid crashing when downloading MitM'd PAC that is too big" into klp-dev

7 years agoDO NOT MERGE: Catch all exceptions when parsing IME meta data am: f71d2cddf1 am:...
Tadashi G. Takaoka [Sun, 18 Sep 2016 12:47:22 +0000 (12:47 +0000)]
DO NOT MERGE: Catch all exceptions when parsing IME meta data am: f71d2cddf1 am: 57454cf15e am: 29f2e1d93a  -s ours
am: 2578264b86  -s ours

Change-Id: I0f5483480d7ba6c5a5386635fabc0db0bb5aefdb

7 years agoDO NOT MERGE: Catch all exceptions when parsing IME meta data am: f71d2cddf1 am:...
Tadashi G. Takaoka [Sun, 18 Sep 2016 12:22:55 +0000 (12:22 +0000)]
DO NOT MERGE: Catch all exceptions when parsing IME meta data am: f71d2cddf1 am: 57454cf15e
am: 29f2e1d93a  -s ours

Change-Id: Iaed8d1cc6e6a6bf00a9602ebb829d008f8c4e56e

7 years agoDO NOT MERGE: Catch all exceptions when parsing IME meta data am: f71d2cddf1
Tadashi G. Takaoka [Sun, 18 Sep 2016 12:17:17 +0000 (12:17 +0000)]
DO NOT MERGE: Catch all exceptions when parsing IME meta data am: f71d2cddf1
am: 57454cf15e

Change-Id: I2620580fca624c6ab4520f0a31c42cef42bafa01

7 years agoMerge "DO NOT MERGE: Catch all exceptions when parsing IME meta data" into lmp-dev
Tadashi G. Takaoka [Sun, 18 Sep 2016 12:04:06 +0000 (12:04 +0000)]
Merge "DO NOT MERGE: Catch all exceptions when parsing IME meta data" into lmp-dev
am: 5fa097311c  -s ours

Change-Id: I4c06dd7ff10cafcf15d0e4ece474c97343f608ae

7 years agoDO NOT MERGE: Catch all exceptions when parsing IME meta data
Tadashi G. Takaoka [Sun, 18 Sep 2016 12:04:03 +0000 (12:04 +0000)]
DO NOT MERGE: Catch all exceptions when parsing IME meta data
am: c6fc6c3b55  -s ours

Change-Id: I1433140b2805ca127956f210a3faa81f83dd3069

7 years agoDO NOT MERGE: Catch all exceptions when parsing IME meta data
Tadashi G. Takaoka [Sun, 18 Sep 2016 12:03:59 +0000 (12:03 +0000)]
DO NOT MERGE: Catch all exceptions when parsing IME meta data
am: f71d2cddf1

Change-Id: Iaa5041d4b5fc61860f7ce95ecce60d39bbd5023b

7 years agoMerge "DO NOT MERGE: Catch all exceptions when parsing IME meta data" into lmp-mr1-dev
Tadashi G. Takaoka [Sun, 18 Sep 2016 11:55:55 +0000 (11:55 +0000)]
Merge "DO NOT MERGE: Catch all exceptions when parsing IME meta data" into lmp-mr1-dev

7 years agoMerge "DO NOT MERGE: Catch all exceptions when parsing IME meta data" into lmp-dev
Tadashi G. Takaoka [Sun, 18 Sep 2016 11:55:33 +0000 (11:55 +0000)]
Merge "DO NOT MERGE: Catch all exceptions when parsing IME meta data" into lmp-dev

7 years agoUse "all_downloads" instead of "my_downloads".
Jeff Sharkey [Fri, 16 Sep 2016 21:48:24 +0000 (21:48 +0000)]
Use "all_downloads" instead of "my_downloads".
am: 1547194418

Change-Id: I6dabba1f82ef1989eb2a52c3c493127a174ff315

7 years agoUse "all_downloads" instead of "my_downloads".
Jeff Sharkey [Fri, 16 Sep 2016 18:04:05 +0000 (12:04 -0600)]
Use "all_downloads" instead of "my_downloads".

We can no longer return the "my_downloads" paths: if those Uris were
shared beyond the app that requested the download, access would be
denied.  Instead, we need to switch to using "all_downloads" Uris so
that permission grants can be issued to third-party viewer apps.

Since an app requesting a download doesn't normally have permission
to "all_downloads" paths, DownloadProvider now issues narrow grants
toward the owner of each download, both at device boot and when new
downloads are started.

Bug: 3053711530945409
Change-Id: I533125b36444877f54373d88922f2acc777e250b

7 years agoDO NOT MERGE: Catch all exceptions when parsing IME meta data
Tadashi G. Takaoka [Fri, 16 Sep 2016 03:12:14 +0000 (12:12 +0900)]
DO NOT MERGE: Catch all exceptions when parsing IME meta data

Bug: 30568284
Change-Id: I0b613f8ce0f014320c5ac1bf445699ea2702a0a2
(manually cherry picked from 9b2997d22e6ce2a15065d8e7608dd77b316c2065)

7 years agoDO NOT MERGE: Catch all exceptions when parsing IME meta data
Tadashi G. Takaoka [Fri, 16 Sep 2016 03:12:14 +0000 (12:12 +0900)]
DO NOT MERGE: Catch all exceptions when parsing IME meta data

Bug: 30568284
Change-Id: I0b613f8ce0f014320c5ac1bf445699ea2702a0a2
(manually cherry picked from 9b2997d22e6ce2a15065d8e7608dd77b316c2065)

7 years agoDO NOT MERGE: Catch all exceptions when parsing IME meta data
Tadashi G. Takaoka [Fri, 16 Sep 2016 03:00:57 +0000 (12:00 +0900)]
DO NOT MERGE: Catch all exceptions when parsing IME meta data

Bug: 30568284
Change-Id: I0b613f8ce0f014320c5ac1bf445699ea2702a0a2
(manually cherry picked from 9b2997d22e6ce2a15065d8e7608dd77b316c2065)

7 years agoDO NOT MERGE: Fix deadlock in AcitivityManagerService.
Sudheer Shanka [Fri, 16 Sep 2016 02:00:43 +0000 (19:00 -0700)]
DO NOT MERGE: Fix deadlock in AcitivityManagerService.

Don't hold mPidsSelfLocked lock when calling
cleanUpApplicationRecordLocked.

Bug: 31463143
Change-Id: I1fddd06f5e35b67fea041741f5746c57a39208ba

7 years agoDO NOT MERGE: Fix deadlock in AcitivityManagerService.
Sudheer Shanka [Wed, 14 Sep 2016 21:37:14 +0000 (14:37 -0700)]
DO NOT MERGE: Fix deadlock in AcitivityManagerService.

Don't hold mPidsSelfLocked lock when calling
cleanUpApplicationRecordLocked.

Bug: 31463143
Change-Id: I421962cbfd7c466662edcef805c3e27321dc5a98

7 years agoDO NOT MERGE: Fix deadlock in AcitivityManagerService.
Sudheer Shanka [Wed, 14 Sep 2016 21:37:14 +0000 (14:37 -0700)]
DO NOT MERGE: Fix deadlock in AcitivityManagerService.

Don't hold mPidsSelfLocked lock when calling
cleanUpApplicationRecordLocked.

Bug: 31463143
Change-Id: I421962cbfd7c466662edcef805c3e27321dc5a98

7 years ago[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed
Ajay Panicker [Thu, 8 Sep 2016 20:23:02 +0000 (13:23 -0700)]
[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed

Bug: 28672558
Change-Id: I4bc14bd7f098e34012c2ae1eeba2d439145901f0

7 years agoDO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change...
Sungsoo [Fri, 9 Sep 2016 23:08:29 +0000 (23:08 +0000)]
DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change am: 1bdd10a953 am: b336cce830 am: d07324fe85  -s ours
am: f495cf6944  -s ours

Change-Id: If47c5a777ad3c7e4cca070ca633ec01442444c8e

7 years agoDO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change...
Sungsoo [Fri, 9 Sep 2016 23:00:35 +0000 (23:00 +0000)]
DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change am: 1bdd10a953 am: b336cce830
am: d07324fe85  -s ours

Change-Id: Ie3049cea7663d06632b0e3139f30f01e7dba5df0

7 years agoDO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change
Sungsoo [Fri, 9 Sep 2016 22:54:32 +0000 (22:54 +0000)]
DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change
am: aebe2347a7  -s ours

Change-Id: I58dd093cb10fd89e44d59867f5a4c1a378a61661

7 years agoDO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change...
Sungsoo [Fri, 9 Sep 2016 22:54:12 +0000 (22:54 +0000)]
DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change am: 1bdd10a953
am: b336cce830

Change-Id: Ib90b72ce9abefc6a7ceab1070555ded45dc8567d

7 years agoDO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change
Sungsoo [Fri, 9 Sep 2016 22:46:23 +0000 (22:46 +0000)]
DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change
am: 1bdd10a953

Change-Id: I644f8187ed6f5957fc273b98c10ed0c602ed1879

7 years ago[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed
Ajay Panicker [Thu, 8 Sep 2016 20:23:02 +0000 (13:23 -0700)]
[DO NOT MERGE] Prevent FDs from being leaked when accepted sockets are closed

Bug: 28672558
Change-Id: I4bc14bd7f098e34012c2ae1eeba2d439145901f0

7 years ago[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)
Ajay Panicker [Thu, 8 Sep 2016 18:01:29 +0000 (11:01 -0700)]
[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)

setPairingConfirmation was set to only require BLUETOOTH_ADMIN
permission which shouldn't be able to set the confirmation itself.

This is restricted to BLUETOOTH_PRIVILEGED permission.

Bug: 29043989
Change-Id: Iddc935f0b02f5ff56e930914b4b664377e786184

7 years ago[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)
Ajay Panicker [Thu, 8 Sep 2016 18:01:29 +0000 (11:01 -0700)]
[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)

setPairingConfirmation was set to only require BLUETOOTH_ADMIN
permission which shouldn't be able to set the confirmation itself.

This is restricted to BLUETOOTH_PRIVILEGED permission.

Bug: 29043989
Change-Id: Iddc935f0b02f5ff56e930914b4b664377e786184

7 years agoDO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change
Sungsoo [Thu, 8 Sep 2016 07:04:44 +0000 (16:04 +0900)]
DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change

ExifInterface object can be created with a unsupported file format.
If saveAttribute is called with an unsupported file format, ExifInterface
makes the file corrupted. This CL prevents those cases by throwing
an exception before making any change on the file.

Bug: 30936376
Change-Id: I915f56b00ec9422b53591ac5534e070a1d6798e6

7 years agoDO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change
Sungsoo [Thu, 8 Sep 2016 07:04:44 +0000 (16:04 +0900)]
DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change

ExifInterface object can be created with a unsupported file format.
If saveAttribute is called with an unsupported file format, ExifInterface
makes the file corrupted. This CL prevents those cases by throwing
an exception before making any change on the file.

Bug: 30936376
Change-Id: I915f56b00ec9422b53591ac5534e070a1d6798e6

7 years agoDO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change
Sungsoo [Thu, 8 Sep 2016 07:04:44 +0000 (16:04 +0900)]
DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change

ExifInterface object can be created with a unsupported file format.
If saveAttribute is called with an unsupported file format, ExifInterface
makes the file corrupted. This CL prevents those cases by throwing
an exception before making any change on the file.

Bug: 30936376
Change-Id: I915f56b00ec9422b53591ac5534e070a1d6798e6

7 years agoBackport changes to whitelist sockets opened by the zygote.
Narayan Kamath [Wed, 7 Sep 2016 18:53:40 +0000 (18:53 +0000)]
Backport changes to whitelist sockets opened by the zygote.
am: 7ec85f9d54

Change-Id: I6db56b5b06636201382f6d908297644183253c0b

7 years agoBackport changes to whitelist sockets opened by the zygote.
Narayan Kamath [Fri, 19 Aug 2016 12:45:24 +0000 (13:45 +0100)]
Backport changes to whitelist sockets opened by the zygote.

This is the backport of the following commits :

Commit c5f27a7cb2ec816f483a65255034a1b57a8aa22:
-----------------------------------------------

Reopen whitelisted zygote file descriptors after a fork.

We don't want these descriptors to be shared post-fork, so we'll
have to close and reopen them when the zygote forks. The set of
open descriptors is checked against a whitelist and it is a fatal
error if a non whitelisted FD is opened. It is also a fatal error
if anything other than a regular file / character device or socket
is opened at the time of forking.

This work is done in two stages :
- An initial list of FDs is constructed and cached prior to the
  first zygote fork.

- On each subsequent fork, we check whether the list of open FDs
  has changed. We are currently tolerant of changes, but in the
  longer term, it should be a fatal error if the set of open file
  descriptors in the zygote changes.

- Post fork, we traverse the list of open descriptors and reopen
  them if necessary.

bug: 30963384

Commit 3764a260f0c90dcb323caeda14baf903cc108759:
-----------------------------------------------

Add a whitelist of sockets on fork.

Maintain a whitelist of AF_UNIX sockets that are permitted
to exist at the time of forking. If an open socket does not belong
to the whitelist (or is not AF_UNIX), the process will abort. If an
open socket is whitelisted, it will be redirected to /dev/null after
a sucessful fork. This allows us to unify our handling of the special
zygote sockets (/dev/socket/zygote[_secondary]) with the existing
whitelist of non socket file descriptors.

This change also removes non-fatal ALOGW messages since they have the
side effect of reopening the logging socket.

bug: 30963384

Commit 0b76d6a28e6978151bf245a775329cdae5e574d5:
-----------------------------------------------
fd_utils: Fix broken usage of iterators.

There were two separate issues here :
- RestatInternal was using an iterator after a call to erase(). This
  will not work because it will be invalidated.
- The "standard" for loop idiom for iterating over a map while making
  structural changes to it is broken. Switch to a while loop and treat
  cases where elements are erased differently from cases where they
  aren't.

bug: 31092930
bug: 30963384

Plus additional changes:
-----------------------------------------------
- change std::unordered_map to std::tr1::unordered_map.
- add /dev/alarm and /dev/__properties__ to the whitelist.
- map.erase(iterator) returns void prior to C++11, so need the kludge
  of calling erase(it++).

Change-Id: I694ff66d5f227239b0190ffc2287882b16e336fa

8 years agoAvoid crashing when downloading MitM'd PAC that is too big
Paul Jensen [Mon, 22 Aug 2016 13:15:40 +0000 (09:15 -0400)]
Avoid crashing when downloading MitM'd PAC that is too big

There's two pieces to this fix:
1. Move PAC loading off IoThread which isn't meant for
   blocking network fetches.  If the fetch takes more than
   60s Android reboots when the IoThread is used.
2. Limit PAC fetching to 20MB.  Any PAC bigger than that
   is likely evil.
MitM of PACs should only be possbile when a non-SSL PAC URL
is used.

Change-Id: Ie1658a1c705615dc85a7fc68053f0dad8d048294
Fixes: 30100884

8 years agoDO NOT MERGE: Clean up when recycling a pid with a pending launch am: a3af5c6207...
Sudheer Shanka [Mon, 22 Aug 2016 22:33:15 +0000 (22:33 +0000)]
DO NOT MERGE: Clean up when recycling a pid with a pending launch am: a3af5c6207 am: 21ef672cab am: e0d1ff1c42  -s ours
am: b31a6955a4  -s ours

Change-Id: I6fb134e75355bc1fdcc2dd9a21b51802575c28f3

8 years agoresolve merge conflicts of 270947f to klp-modular-dev am: 76c4b2a7b6 -s ours
Sudheer Shanka [Mon, 22 Aug 2016 22:28:24 +0000 (22:28 +0000)]
resolve merge conflicts of 270947f to klp-modular-dev am: 76c4b2a7b6  -s ours
am: bbbb514bc9

Change-Id: I47bfb18ce300e52a092da534b8aac720f0b8aa3f

8 years agoDO NOT MERGE: Clean up when recycling a pid with a pending launch am: a3af5c6207...
Sudheer Shanka [Mon, 22 Aug 2016 22:19:10 +0000 (22:19 +0000)]
DO NOT MERGE: Clean up when recycling a pid with a pending launch am: a3af5c6207 am: 21ef672cab
am: e0d1ff1c42  -s ours

Change-Id: I8a1464443e84bb7987235d25ad40ae01386d72ef

8 years agoresolve merge conflicts of 270947f to klp-modular-dev
Sudheer Shanka [Mon, 22 Aug 2016 22:19:06 +0000 (22:19 +0000)]
resolve merge conflicts of 270947f to klp-modular-dev
am: 76c4b2a7b6  -s ours

Change-Id: Icdcd0929eb7bd32665e91fe2598af46db3ff01bd

8 years agoDO NOT MERGE: Clean up when recycling a pid with a pending launch am: a3af5c6207
Sudheer Shanka [Mon, 22 Aug 2016 22:11:52 +0000 (22:11 +0000)]
DO NOT MERGE: Clean up when recycling a pid with a pending launch am: a3af5c6207
am: 21ef672cab

Change-Id: Ia073a40c330038e77ff5992c056a8fe0a5924edb

8 years agoresolve merge conflicts of 270947f to klp-modular-dev
Sudheer Shanka [Fri, 19 Aug 2016 18:27:31 +0000 (11:27 -0700)]
resolve merge conflicts of 270947f to klp-modular-dev

Change-Id: I703a7f8eb0897e518c3df9e8c7efa19508611a47

8 years agoMerge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into klp-dev
Sudheer Shanka [Fri, 19 Aug 2016 17:46:12 +0000 (17:46 +0000)]
Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into klp-dev
am: de04301f9a

Change-Id: I1d04889e2227d0a9a6b86b44ce38cdc5763dfac0

8 years agoDO NOT MERGE: Clean up when recycling a pid with a pending launch
Sudheer Shanka [Fri, 19 Aug 2016 17:32:01 +0000 (17:32 +0000)]
DO NOT MERGE: Clean up when recycling a pid with a pending launch
am: a3af5c6207

Change-Id: Ibdd69f2fa346dc31224fa6357718f56aa26ded1d

8 years agoMerge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp-dev
Sudheer Shanka [Fri, 19 Aug 2016 17:11:30 +0000 (17:11 +0000)]
Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp-dev
am: 96052ea905  -s ours

Change-Id: I6d7353ed5154dfa3c6d556e4701c8c8e4f66feac

8 years agoDO NOT MERGE: Clean up when recycling a pid with a pending launch
Amith Yamasani [Fri, 19 Aug 2016 17:11:28 +0000 (17:11 +0000)]
DO NOT MERGE: Clean up when recycling a pid with a pending launch
am: a92810a189  -s ours

Change-Id: Ic25323f818ee224640686c4e1d6c3b3f62ff828f

8 years agoMerge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into klp-dev
Sudheer Shanka [Fri, 19 Aug 2016 17:07:04 +0000 (17:07 +0000)]
Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into klp-dev

8 years agoMerge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp...
Sudheer Shanka [Fri, 19 Aug 2016 17:06:58 +0000 (17:06 +0000)]
Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp-mr1-dev

8 years agoMerge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp-dev
Sudheer Shanka [Fri, 19 Aug 2016 17:06:56 +0000 (17:06 +0000)]
Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp-dev

8 years agoMerge "Process: Fix communication with zygote." into klp-dev am: 6829cf28e2 am: 8fdee...
Narayan Kamath [Thu, 18 Aug 2016 10:23:23 +0000 (10:23 +0000)]
Merge "Process: Fix communication with zygote." into klp-dev am: 6829cf28e2 am: 8fdee85e87 am: 4cf5241f47
am: efab128e67

Change-Id: I7159b2996f35311a630cdb7b2646c0e94d159c1f

8 years agoProcess: Fix communication with zygote. am: 8e69dd2284 am: b85e9e9108 am: b56f4f53e1...
Narayan Kamath [Thu, 18 Aug 2016 10:23:20 +0000 (10:23 +0000)]
Process: Fix communication with zygote. am: 8e69dd2284 am: b85e9e9108 am: b56f4f53e1  -s ours
am: 2984748753

Change-Id: Id9f73afcbc747e3e341c5cfa665e4929747fdbac

8 years agoMerge "Process: Fix communication with zygote." into klp-dev am: 6829cf28e2 am: 8fdee...
Narayan Kamath [Thu, 18 Aug 2016 10:19:28 +0000 (10:19 +0000)]
Merge "Process: Fix communication with zygote." into klp-dev am: 6829cf28e2 am: 8fdee85e87
am: 4cf5241f47

Change-Id: Ibd736c16c8af9397e774c5abb917a9a3d31681a0

8 years agoProcess: Fix communication with zygote. am: 8e69dd2284 am: b85e9e9108
Narayan Kamath [Thu, 18 Aug 2016 10:16:48 +0000 (10:16 +0000)]
Process: Fix communication with zygote. am: 8e69dd2284 am: b85e9e9108
am: b56f4f53e1  -s ours

Change-Id: I67e1ff67c88d8c70a9d6d0698c857be77f09f534

8 years agoMerge "Process: Fix communication with zygote." into klp-dev am: 6829cf28e2
Narayan Kamath [Thu, 18 Aug 2016 09:56:29 +0000 (09:56 +0000)]
Merge "Process: Fix communication with zygote." into klp-dev am: 6829cf28e2
am: 8fdee85e87

Change-Id: I654191bebb88a8005e9f46ad8b8b1f932214b3c9

8 years agoProcess: Fix communication with zygote. am: 8e69dd2284
Narayan Kamath [Thu, 18 Aug 2016 09:56:24 +0000 (09:56 +0000)]
Process: Fix communication with zygote. am: 8e69dd2284
am: b85e9e9108

Change-Id: Ie4874c088e05f4f5bc2073661010d413e60b3f7b

8 years agoProcess: Fix communication with zygote.
Narayan Kamath [Thu, 18 Aug 2016 09:53:12 +0000 (09:53 +0000)]
Process: Fix communication with zygote.
am: e29c6493c0

Change-Id: I86b073f7f69943911aa0bea782e29ae6d86609a2

8 years agoMerge "Process: Fix communication with zygote." into klp-dev
Narayan Kamath [Thu, 18 Aug 2016 09:50:56 +0000 (09:50 +0000)]
Merge "Process: Fix communication with zygote." into klp-dev
am: 6829cf28e2

Change-Id: I740364ba90a8d1f14a5b2d2aacfe44948a4583d2

8 years agoProcess: Fix communication with zygote.
Narayan Kamath [Thu, 18 Aug 2016 09:50:52 +0000 (09:50 +0000)]
Process: Fix communication with zygote.
am: 8e69dd2284

Change-Id: I3860d3f66e256a6446df5d8ce20f752d1c002e0f

8 years agoMerge "Process: Fix communication with zygote." into klp-dev
Narayan Kamath [Thu, 18 Aug 2016 09:46:17 +0000 (09:46 +0000)]
Merge "Process: Fix communication with zygote." into klp-dev

8 years agoProcess: Fix communication with zygote.
Narayan Kamath [Tue, 9 Aug 2016 16:00:25 +0000 (17:00 +0100)]
Process: Fix communication with zygote.

Don't write partial requests, and don't return (or throw) early after
partially reading a response.

bug: 30143607

(cherry-picked from commit 448be0a62209c977593d81617853a8a428d013df)

Change-Id: I5881fdd5e81023cd21fb4d23a471a5031987a1f1

8 years agoProcess: Fix communication with zygote.
Narayan Kamath [Tue, 9 Aug 2016 16:00:25 +0000 (17:00 +0100)]
Process: Fix communication with zygote.

Don't write partial requests, and don't return (or throw) early after
partially reading a response.

bug: 30143607

(cherry-picked from commit 448be0a62209c977593d81617853a8a428d013df)

Change-Id: I5881fdd5e81023cd21fb4d23a471a5031987a1f1

8 years agoDO NOT MERGE: Clean up when recycling a pid with a pending launch
Sudheer Shanka [Sat, 13 Aug 2016 01:49:56 +0000 (18:49 -0700)]
DO NOT MERGE: Clean up when recycling a pid with a pending launch

Fix for accidental launch of a broadcast receiver in an
incorrect app instance.

Bug: 30202481
Change-Id: I84b74edc29ca3fb88048b44af682ecbeb176b774

8 years agoDO NOT MERGE: Clean up when recycling a pid with a pending launch
Amith Yamasani [Fri, 5 Aug 2016 22:25:03 +0000 (15:25 -0700)]
DO NOT MERGE: Clean up when recycling a pid with a pending launch

Fix for accidental launch of a broadcast receiver in an
incorrect app instance.

Bug: 30202481
Change-Id: I8ec8f19c633f3aec8da084dab5fd5b312443336f

8 years agoDO NOT MERGE: Clean up when recycling a pid with a pending launch
Amith Yamasani [Fri, 5 Aug 2016 22:25:03 +0000 (15:25 -0700)]
DO NOT MERGE: Clean up when recycling a pid with a pending launch

Fix for accidental launch of a broadcast receiver in an
incorrect app instance.

Bug: 30202481
Change-Id: I8ec8f19c633f3aec8da084dab5fd5b312443336f