OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into lmp-mr1-dev am...
Sudheer Shanka [Tue, 20 Sep 2016 00:11:54 +0000 (00:11 +0000)]
Merge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into lmp-mr1-dev am: 900550de49 am: 94da8023d5
am: 426ba52b42  -s ours

Change-Id: I861ed40fa031d4add94e48b2fbbfb965ef1ca7d2

7 years agoDO NOT MERGE: Fix deadlock in AcitivityManagerService. am: e8340a9ed5 am: 5c53e1b8bb
Sudheer Shanka [Mon, 19 Sep 2016 23:04:23 +0000 (23:04 +0000)]
DO NOT MERGE: Fix deadlock in AcitivityManagerService. am: e8340a9ed5 am: 5c53e1b8bb
am: 271aa24036  -s ours

Change-Id: Icaccd5612147cad9679f98476cf92bb3216e94f1

7 years agoMerge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into lmp-mr1-dev am...
Sudheer Shanka [Mon, 19 Sep 2016 22:45:40 +0000 (22:45 +0000)]
Merge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into lmp-mr1-dev am: 900550de49
am: 94da8023d5

Change-Id: Iedc174184adc89009ce498558a496b72d1c31a05

7 years agoDO NOT MERGE: Fix deadlock in AcitivityManagerService. am: e8340a9ed5
Sudheer Shanka [Mon, 19 Sep 2016 22:35:55 +0000 (22:35 +0000)]
DO NOT MERGE: Fix deadlock in AcitivityManagerService. am: e8340a9ed5
am: 5c53e1b8bb

Change-Id: Icd67597290378b8b62328cbfafa35fd0fc0497b6

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

Change-Id: I16a545056d2fc3404164a1b63ef79165f46e54f1

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

Change-Id: I52277ddde0b68b3be1764f325d04601e48a1cb1e

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 agoMerge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into mnc-dev
Sudheer Shanka [Mon, 19 Sep 2016 19:59:10 +0000 (19:59 +0000)]
Merge "DO NOT MERGE: Fix deadlock in AcitivityManagerService." into mnc-dev

7 years agoFix build break due to automerge of 7d2198b5 am: baae57ab24 am: 009e08116f
Paul Jensen [Mon, 19 Sep 2016 14:50:48 +0000 (14:50 +0000)]
Fix build break due to automerge of 7d2198b5 am: baae57ab24 am: 009e08116f
am: d6a5f68f52

Change-Id: I55e5c90dd0b2c52a1cbee5d6be14a339157d6a75

7 years agoFix build break due to automerge of 7d2198b5 am: baae57ab24
Paul Jensen [Mon, 19 Sep 2016 14:43:28 +0000 (14:43 +0000)]
Fix build break due to automerge of 7d2198b5 am: baae57ab24
am: 009e08116f

Change-Id: Ied1bf21ec09d9774bd0f12d2688244fe7dc2bd80

7 years agoFix build break due to automerge of 7d2198b5
Paul Jensen [Mon, 19 Sep 2016 14:37:29 +0000 (14:37 +0000)]
Fix build break due to automerge of 7d2198b5
am: baae57ab24

Change-Id: Iafcc207308b94d37a04d196def0e7c7a5ce037d9

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 12:01:57 +0000 (12:01 +0000)]
Merge "Avoid crashing when downloading MitM'd PAC that is too big" into klp-dev am: 96c045807b am: 7c08c4d5cc am: 963ca6f947 am: 3532f10fcb am: 849f1ba2d9 am: b7ba9fd70f
am: 4121b70a7d

Change-Id: I225d23b2ad0afa6113c085d2ee7e51c996896902

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:55:30 +0000 (11:55 +0000)]
Merge "Avoid crashing when downloading MitM'd PAC that is too big" into klp-dev am: 96c045807b am: 7c08c4d5cc am: 963ca6f947 am: 3532f10fcb am: 849f1ba2d9
am: b7ba9fd70f

Change-Id: If57722c1437bd5ea7b3a1fd016cbc7fce8237965

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

Change-Id: I2bd78344796e888c4fa26dcf2e07a0a24994cb42

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

Change-Id: I9379db3398f066841fdb5435d8128e2d12bff63b

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:50:23 +0000 (11:50 +0000)]
Merge "Avoid crashing when downloading MitM'd PAC that is too big" into klp-dev am: 96c045807b am: 7c08c4d5cc am: 963ca6f947 am: 3532f10fcb
am: 849f1ba2d9

Change-Id: I3213d64cc5396a22096e3ad484a3f769f03f6cda

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

Change-Id: I2433d723fd9ec13774eff4aa40a089e73932f357

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 13:40:52 +0000 (13:40 +0000)]
DO NOT MERGE: Catch all exceptions when parsing IME meta data am: f71d2cddf1 am: 57454cf15e am: 29f2e1d93a  -s ours am: 2578264b86  -s ours am: 94537b171c am: 9bb068a5ad
am: 22c8e0b51d  -s ours

Change-Id: I55c117eeaeaaf2801fc19fdc6619a20fc17c13a2

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

Change-Id: I0e4ea875ea14217e98ed5df3642046ce8d3db52a

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

Change-Id: I382b954e67faa6ebf662349a763aafe8704ae711

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 agoMerge "DO NOT MERGE: Catch all exceptions when parsing IME meta data" into lmp-dev...
Tadashi G. Takaoka [Sun, 18 Sep 2016 12:29:44 +0000 (12:29 +0000)]
Merge "DO NOT MERGE: Catch all exceptions when parsing IME meta data" into lmp-dev am: 5fa097311c  -s ours am: 233e3b22f9 am: c296565749
am: dd583cf069  -s ours

Change-Id: I72554dbf5ccc292baf9a6769c0f52a66cc7d33ee

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

Change-Id: I8a3cba1aaacab87ac5b2ab00c29c7c52f3c8a55c

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:23:36 +0000 (12:23 +0000)]
Merge "DO NOT MERGE: Catch all exceptions when parsing IME meta data" into lmp-dev am: 5fa097311c  -s ours am: 233e3b22f9
am: c296565749

Change-Id: I3b97c7b101c53c77f03c889d945d4630edebee44

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 agoMerge "DO NOT MERGE: Catch all exceptions when parsing IME meta data" into lmp-mr1...
Tadashi G. Takaoka [Sun, 18 Sep 2016 12:21:50 +0000 (12:21 +0000)]
Merge "DO NOT MERGE: Catch all exceptions when parsing IME meta data" into lmp-mr1-dev am: 8fa8da727b am: 9ef783599b
am: 8310560c62  -s ours

Change-Id: I4091f8ea0cff4720b792d49ee2d5f5cd9c3d3027

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

Change-Id: Ia01e63fcf975c21136c0b0206ecd413ec3d975ad

7 years agoDO NOT MERGE: Catch all exceptions when parsing IME meta data am: 43f4980e77 am:...
Tadashi G. Takaoka [Sun, 18 Sep 2016 12:17:27 +0000 (12:17 +0000)]
DO NOT MERGE: Catch all exceptions when parsing IME meta data am: 43f4980e77 am: cd8595cdcf
am: f9dac671ca  -s ours

Change-Id: I252b7a8870a3b161a72e1fd7e0dcc7943e6d08ed

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-mr1...
Tadashi G. Takaoka [Sun, 18 Sep 2016 12:12:22 +0000 (12:12 +0000)]
Merge "DO NOT MERGE: Catch all exceptions when parsing IME meta data" into lmp-mr1-dev am: 8fa8da727b
am: 9ef783599b

Change-Id: Idd8e19b941e01ff2de557c569bb06dc0a7bbb6d1

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:12:15 +0000 (12:12 +0000)]
Merge "DO NOT MERGE: Catch all exceptions when parsing IME meta data" into lmp-dev am: 5fa097311c  -s ours
am: 233e3b22f9

Change-Id: Iec8b29d93df5e23d80fe9c48f102a6c8d5b4daba

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

Change-Id: I27939b464cc8e57a7eba7e03af0f4601fb777ec3

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

Change-Id: Idcd2180c908fb20bfd861c74e07c45c7b2cffed5

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 agoMerge "DO NOT MERGE: Catch all exceptions when parsing IME meta data" into lmp-mr1-dev
Tadashi G. Takaoka [Sun, 18 Sep 2016 12:04:01 +0000 (12:04 +0000)]
Merge "DO NOT MERGE: Catch all exceptions when parsing IME meta data" into lmp-mr1-dev
am: 8fa8da727b

Change-Id: Ic46e534eebdba8def4e32318aee04601179fc7a9

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 agoDO NOT MERGE: Catch all exceptions when parsing IME meta data
Tadashi G. Takaoka [Sun, 18 Sep 2016 12:03:58 +0000 (12:03 +0000)]
DO NOT MERGE: Catch all exceptions when parsing IME meta data
am: 43f4980e77

Change-Id: Ibbf09fdbcaf00fd41d832e3e2597978e2a0863a9

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

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 agoMerge commit '0a9d537f623b2c11dce707fb9b91fea016fd0e9f' into manual_merge_0a9d537
Jeff Sharkey [Fri, 16 Sep 2016 22:57:34 +0000 (16:57 -0600)]
Merge commit '0a9d537f623b2c11dce707fb9b91fea016fd0e9f' into manual_merge_0a9d537

Change-Id: Ib1a0bbb34edb61666ac5739f0b0eaadbe4c5fe06

7 years agoUse "all_downloads" instead of "my_downloads". am: 1547194418 am: f6d7c1ed15
Jeff Sharkey [Fri, 16 Sep 2016 22:07:27 +0000 (22:07 +0000)]
Use "all_downloads" instead of "my_downloads". am: 1547194418 am: f6d7c1ed15
am: 6db572cf00

Change-Id: I687a883d528cc260aad3ee3da5600d3e0542c940

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

Change-Id: Icb352ec7b0e746264a6311b5fba1fc1272b627b0

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: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 [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 agoEnsure munmap matches mmap
John Reck [Mon, 12 Sep 2016 17:43:35 +0000 (10:43 -0700)]
Ensure munmap matches mmap

Bug: 31350622
Change-Id: I6d3f9faec32d54360caa6706d17405e20b50966c

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

Change-Id: Ie0a7dad2ed06124a537077f8fb85c95bc1d49781

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

Change-Id: I491d585b91c7d7b130bbfbcdd62aaddf57718c56

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

Change-Id: Ied9ac7711abaee4d1f534d35f7882f0a93c425bf

7 years agoDO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change...
Sungsoo [Fri, 9 Sep 2016 23:27:21 +0000 (23:27 +0000)]
DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change am: aebe2347a7  -s ours am: 3af57850a0 am: c17e29076e
am: ca88e604e4  -s ours

Change-Id: Iae1ea19a96fbf9421a24b5682c4b769af95b2660

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:08:29 +0000 (23:08 +0000)]
DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change am: aebe2347a7  -s ours am: 3af57850a0
am: c17e29076e

Change-Id: If6e85c284a811287a9751eb501e50dabe2dfe8b1

7 years agoDO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change...
Sungsoo [Fri, 9 Sep 2016 23:01:41 +0000 (23:01 +0000)]
DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change am: 659275dc30 am: 8d3e6bd3ef
am: dde94fc477  -s ours

Change-Id: I301706cbdc5fd2ca56eb671891e55fd31dfa469a

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 23:00:21 +0000 (23:00 +0000)]
DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change am: aebe2347a7  -s ours
am: 3af57850a0

Change-Id: I70f6b639cab68d401d3927c67192d3b89e08eee3

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:28 +0000 (22:54 +0000)]
DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change am: 659275dc30
am: 8d3e6bd3ef

Change-Id: I83f7733039ee73407aa5d7f3848ad1074e9dfb03

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:44 +0000 (22:46 +0000)]
DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change
am: 659275dc30

Change-Id: I385c86e9753f1c99201a4f32b3c8b840da51376e

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 agoMerge "DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before...
Sungsoo Lim [Fri, 9 Sep 2016 22:39:06 +0000 (22:39 +0000)]
Merge "DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change" into mnc-dev

7 years agoMerge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1...
Narayan Kamath [Fri, 9 Sep 2016 10:18:19 +0000 (10:18 +0000)]
Merge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1-ub-dev
am: 00e808b06b

Change-Id: I14939b5bf04ba47229e663b2ffc50543c5c6bc9a

7 years agoBackport changes to whitelist sockets opened by the zygote.
Narayan Kamath [Fri, 9 Sep 2016 10:15:11 +0000 (10:15 +0000)]
Backport changes to whitelist sockets opened by the zygote.
am: 82c6e6267e  -s ours

Change-Id: Ib35b2567f19aff39d285794951cf9b8cb8d74ef1

7 years agoMerge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1...
Narayan Kamath [Fri, 9 Sep 2016 10:05:44 +0000 (10:05 +0000)]
Merge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1-ub-dev

7 years agoMerge "Backport changes to whitelist sockets opened by the zygote." into mnc-dev
Narayan Kamath [Thu, 8 Sep 2016 08:12:17 +0000 (08:12 +0000)]
Merge "Backport changes to whitelist sockets opened by the zygote." into mnc-dev

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 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 [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++).

(cherry picked from commit 7ec85f9d549971af59f047d5eafd7a829e1541c7)

Change-Id: If44dc64275d753553233b78a05d41df9d5bfdc36

7 years agoBackport changes to whitelist sockets opened by the zygote. am: 7ec85f9d54 am: f7b9f8...
Narayan Kamath [Wed, 7 Sep 2016 20:07:58 +0000 (20:07 +0000)]
Backport changes to whitelist sockets opened by the zygote. am: 7ec85f9d54 am: f7b9f84f87 am: 9a409265fc  -s ours
am: 9802fcfa2b

Change-Id: Iabeefa7d07d78002c124ce62dc210111b83a99b7

7 years agoBackport changes to whitelist sockets opened by the zygote. am: 7ec85f9d54 am: f7b9f84f87
Narayan Kamath [Wed, 7 Sep 2016 20:01:56 +0000 (20:01 +0000)]
Backport changes to whitelist sockets opened by the zygote. am: 7ec85f9d54 am: f7b9f84f87
am: 9a409265fc  -s ours

Change-Id: Idf4dcc5ab7e8b0510848cbd2f220fe7a8e4b3e04

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

Change-Id: I317cecff389f30c5d47e4adee1afafbde8d9d23d

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:
-----------------------------------------------
- add /dev/__properties__ to the whitelist.

Change-Id: Ic512be6362c3c5d84767e933884872b7e995dfea

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

7 years agoresolve merge conflicts of 270947f to klp-modular-dev am: 76c4b2a7b6 -s ours am...
Sudheer Shanka [Thu, 25 Aug 2016 23:07:56 +0000 (23:07 +0000)]
resolve merge conflicts of 270947f to klp-modular-dev am: 76c4b2a7b6  -s ours am: bbbb514bc9 am: 6a50270944 am: a0994c6d58
am: cdf70ba0a3

Change-Id: Ia7c597b1b96e65cce89396a6b509a796bb17bc2c

7 years agoMerge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp...
Sudheer Shanka [Thu, 25 Aug 2016 23:07:53 +0000 (23:07 +0000)]
Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp-dev am: 96052ea905  -s ours am: f368bdee06 am: f21534a288
am: dfc2d0a4bc  -s ours

Change-Id: Ia4a5952bc4fda5be8602708215ff1d72a5db297a

7 years agoDO NOT MERGE: Clean up when recycling a pid with a pending launch am: a92810a189...
Amith Yamasani [Thu, 25 Aug 2016 23:07:51 +0000 (23:07 +0000)]
DO NOT MERGE: Clean up when recycling a pid with a pending launch am: a92810a189  -s ours am: 9be12f8986 am: 03b0f5c3ec
am: 7b8140652b  -s ours

Change-Id: I40d855d0f87483a6a8733475b490ddf6ee582433

7 years agoMerge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp...
Sudheer Shanka [Thu, 25 Aug 2016 23:07:49 +0000 (23:07 +0000)]
Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp-mr1-dev am: 5e55214ab7 am: c8aedeeaf6
am: 26bb7bf86c  -s ours

Change-Id: Id2ddb640c8d041f13a78c5f07fb1749968618b61

7 years agoDO NOT MERGE: Clean up when recycling a pid with a pending launch am: b02862c2cf...
Amith Yamasani [Thu, 25 Aug 2016 23:07:46 +0000 (23:07 +0000)]
DO NOT MERGE: Clean up when recycling a pid with a pending launch am: b02862c2cf am: dd0be992c0
am: 117a383099  -s ours

Change-Id: I8173ba5c3156a6294d672db63c4a310b0c880cfb

7 years agoresolve merge conflicts of 5191225 to mnc-dev
Narayan Kamath [Thu, 25 Aug 2016 09:43:25 +0000 (10:43 +0100)]
resolve merge conflicts of 5191225 to mnc-dev

Change-Id: I8dd276f61e77b0fe2d861f4b0d34d76bf533192f

7 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