OSDN Git Service

android-x86/frameworks-base.git
7 years agoZygote: Additional whitelists for runtime overlay / other static resources. am: 0ad0e...
Narayan Kamath [Fri, 11 Nov 2016 00:04:09 +0000 (00:04 +0000)]
Zygote: Additional whitelists for runtime overlay / other static resources. am: 0ad0e859f6 am: 1e6a5d11a6 am: f0cd32619e  -s ours am: 4c26a969e9
am: b7884e5a9f

Change-Id: Ice56c0d81f57757cb9e238cd20c5d968142b8bdd

7 years agoFix idmap leak in zygote process am: 0244ca8d10 am: 82537abc3b am: 85afb42c16 am...
neo.chae [Fri, 11 Nov 2016 00:02:56 +0000 (00:02 +0000)]
Fix idmap leak in zygote process am: 0244ca8d10 am: 82537abc3b am: 85afb42c16 am: b4b2203c5e
am: fb74b8773a

Change-Id: I4a2630b7217462897070029a613489c7909aedf6

7 years agoMerge "Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop...
Xin Li [Fri, 11 Nov 2016 00:01:56 +0000 (00:01 +0000)]
Merge "Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop-mr1-dev" into lmp-mr1-dev." into lmp-mr1-dev am: 78f15948fb am: 34de2a2d45  -s ours am: a5c82e7dd9
am: ca2abc5b71

Change-Id: Ia45feea279ef24afe3450108fc63343461abf7ea

7 years agoMerge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop-mr1...
Xin Li [Fri, 11 Nov 2016 00:00:49 +0000 (00:00 +0000)]
Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop-mr1-dev" into lmp-mr1-dev. am: 7e0483fcec  -s ours am: 16090c6177  -s ours am: 0a568ae56e
am: 9788dd5bd2

Change-Id: I317b0be7182896e39fd23b152ff08ebf4de37592

7 years agoMerge "Zygote: Additional whitelisting for legacy devices." into mnc-dev am: 75c6b8c324
Narayan Kamath [Thu, 10 Nov 2016 23:59:49 +0000 (23:59 +0000)]
Merge "Zygote: Additional whitelisting for legacy devices." into mnc-dev am: 75c6b8c324
am: 9958eb7180

Change-Id: I1fd9dd6f8326ab7077c62fccde6dc508a971db3e

7 years agoZygote: Additional whitelisting for legacy devices. am: 5e2f7c6229
Narayan Kamath [Thu, 10 Nov 2016 23:58:54 +0000 (23:58 +0000)]
Zygote: Additional whitelisting for legacy devices. am: 5e2f7c6229
am: 6bf96c1192

Change-Id: I65bc57fa4fe9fa1257ce0f4b5836616594643234

7 years agoMerge "Zygote: Additional whitelists for runtime overlay / other static resources...
Narayan Kamath [Thu, 10 Nov 2016 23:57:55 +0000 (23:57 +0000)]
Merge "Zygote: Additional whitelists for runtime overlay / other static resources." into mnc-dev am: b3b03a9d78
am: ba23956c45

Change-Id: I0b1c263050e6c15f1d6915bd86b14f257c92e9eb

7 years agoZygote: Additional whitelists for runtime overlay / other static resources. am: 4e8ba...
Narayan Kamath [Thu, 10 Nov 2016 23:56:58 +0000 (23:56 +0000)]
Zygote: Additional whitelists for runtime overlay / other static resources. am: 4e8ba1d73e
am: d501e032d8

Change-Id: I97c4e04554c2da5bee56dc741cf71c7d2f1cba60

7 years agoMerge "DhcpClient: guard against failure to parse packets" into mnc-dev am: fce4e43167
Hugo Benichi [Thu, 10 Nov 2016 23:55:53 +0000 (23:55 +0000)]
Merge "DhcpClient: guard against failure to parse packets" into mnc-dev am: fce4e43167
am: 3d9a2d7206

Change-Id: I00250433819d7b04a101f747da100c0d13a0adcb

7 years agoresolve merge conflicts of 89aa6fb to mnc-dr-dev
Hugo Benichi [Thu, 10 Nov 2016 23:46:53 +0000 (23:46 +0000)]
resolve merge conflicts of 89aa6fb to mnc-dr-dev
am: a0cfb157ec

Change-Id: I10ee0e4e8ef8a1785a16f6f83b8bb38b8847e85a

7 years agoZygote: Additional whitelists for runtime overlay / other static resources. am: 0ad0e...
Narayan Kamath [Thu, 10 Nov 2016 23:45:32 +0000 (23:45 +0000)]
Zygote: Additional whitelists for runtime overlay / other static resources. am: 0ad0e859f6 am: 1e6a5d11a6 am: f0cd32619e  -s ours
am: 4c26a969e9

Change-Id: I708b2d077eaad2c7bcf7d39a0d0449a5265779f1

7 years agoFix idmap leak in zygote process am: 0244ca8d10 am: 82537abc3b am: 85afb42c16
neo.chae [Thu, 10 Nov 2016 23:44:32 +0000 (23:44 +0000)]
Fix idmap leak in zygote process am: 0244ca8d10 am: 82537abc3b am: 85afb42c16
am: b4b2203c5e

Change-Id: Ifd540b5f9cb1e32a002ed86c67eda30189f4e23f

7 years agoMerge "Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop...
Xin Li [Thu, 10 Nov 2016 23:43:39 +0000 (23:43 +0000)]
Merge "Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop-mr1-dev" into lmp-mr1-dev." into lmp-mr1-dev am: 78f15948fb am: 34de2a2d45  -s ours
am: a5c82e7dd9

Change-Id: I5ee94abbb8f6f4e8f98e8b81349ba58da3601407

7 years agoMerge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop-mr1...
Xin Li [Thu, 10 Nov 2016 23:42:19 +0000 (23:42 +0000)]
Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop-mr1-dev" into lmp-mr1-dev. am: 7e0483fcec  -s ours am: 16090c6177  -s ours
am: 0a568ae56e

Change-Id: I49e2be8c77a13c939fe5f7bf6c16e0e80fb3bbbb

7 years agoMerge "Zygote: Additional whitelisting for legacy devices." into mnc-dev
Narayan Kamath [Thu, 10 Nov 2016 23:40:40 +0000 (23:40 +0000)]
Merge "Zygote: Additional whitelisting for legacy devices." into mnc-dev
am: 75c6b8c324

Change-Id: I4fb2f20ad4391915fe4ea734158274af5e879e10

7 years agoZygote: Additional whitelisting for legacy devices.
Narayan Kamath [Thu, 10 Nov 2016 23:40:36 +0000 (23:40 +0000)]
Zygote: Additional whitelisting for legacy devices.
am: 5e2f7c6229

Change-Id: I36adcd8393eab2bb4421f9e3e72302c5db37422a

7 years agoMerge "Zygote: Additional whitelists for runtime overlay / other static resources...
Narayan Kamath [Thu, 10 Nov 2016 23:39:07 +0000 (23:39 +0000)]
Merge "Zygote: Additional whitelists for runtime overlay / other static resources." into mnc-dev
am: b3b03a9d78

Change-Id: Iafd7fc34df0fb88710003ea94219301d77ca78ed

7 years agoZygote: Additional whitelists for runtime overlay / other static resources.
Narayan Kamath [Thu, 10 Nov 2016 23:39:03 +0000 (23:39 +0000)]
Zygote: Additional whitelists for runtime overlay / other static resources.
am: 4e8ba1d73e

Change-Id: I52347c0024cc230d6e3db739eaafd78989c18430

7 years agoMerge "DhcpClient: guard against failure to parse packets" into mnc-dev
Hugo Benichi [Thu, 10 Nov 2016 23:37:51 +0000 (23:37 +0000)]
Merge "DhcpClient: guard against failure to parse packets" into mnc-dev
am: fce4e43167

Change-Id: I9bf79e439213358381668b8c15d2d3061fa1170d

7 years agoMerge "DO NOT MERGE ANYWHERE Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission...
Chris Elliott [Thu, 10 Nov 2016 17:48:19 +0000 (17:48 +0000)]
Merge "DO NOT MERGE ANYWHERE Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission" into cw-e-dev

7 years agoDO NOT MERGE ANYWHERE Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission
Hugo Benichi [Tue, 19 Jul 2016 06:59:27 +0000 (15:59 +0900)]
DO NOT MERGE ANYWHERE Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission

This patch creates a new permission used by ConnectivityService to give
access to restricted networks without the NET_CAPABILITY_NOT_RESTRICTED
capability bit on.

Bug: 24497316
Change-Id: I5b6c8a9ef14395b2f1ab26cb17b24d7876ec79f1

7 years agoresolve merge conflicts of 89aa6fb to mnc-dr-dev
Hugo Benichi [Thu, 10 Nov 2016 01:31:31 +0000 (10:31 +0900)]
resolve merge conflicts of 89aa6fb to mnc-dr-dev

Change-Id: I9e4e538081600be6a8199060bcb0d4040c071a22

7 years agoZygote: Additional whitelists for runtime overlay / other static resources. am: 0ad0e...
Narayan Kamath [Wed, 9 Nov 2016 20:28:35 +0000 (20:28 +0000)]
Zygote: Additional whitelists for runtime overlay / other static resources. am: 0ad0e859f6 am: 1e6a5d11a6
am: f0cd32619e  -s ours

Change-Id: I1b1a0428d1cc49ee4096f5459a5aa1a1f62ed700

7 years agoFix idmap leak in zygote process am: 0244ca8d10 am: 82537abc3b
neo.chae [Wed, 9 Nov 2016 20:25:12 +0000 (20:25 +0000)]
Fix idmap leak in zygote process am: 0244ca8d10 am: 82537abc3b
am: 85afb42c16

Change-Id: Ibb5ac24b2149637bf19b9a16153b1fcde5dbb45f

7 years agoMerge "Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop...
Xin Li [Wed, 9 Nov 2016 20:24:12 +0000 (20:24 +0000)]
Merge "Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop-mr1-dev" into lmp-mr1-dev." into lmp-mr1-dev am: 78f15948fb
am: 34de2a2d45  -s ours

Change-Id: Ifbc0ae4b514592e5e731b555bd4d393e46ad136d

7 years agoMerge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop-mr1...
Xin Li [Wed, 9 Nov 2016 20:23:04 +0000 (20:23 +0000)]
Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop-mr1-dev" into lmp-mr1-dev. am: 7e0483fcec  -s ours
am: 16090c6177  -s ours

Change-Id: I25ba4f5731ecaed22faa95e3948e389405dca7e7

7 years agoMerge "Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into marshmal...
Xin Li [Wed, 9 Nov 2016 20:17:53 +0000 (20:17 +0000)]
Merge "Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into marshmallow-dev" into mnc-dev." into mnc-dev am: cc115c5931
am: eda0b0078e

Change-Id: Ibf745e727c36dd04b5cb30b574cca4b5709b9f4b

7 years agoMerge "Merge "DO NOT MERGE - Added Emergency affordance feature" into marshmallow...
Xin Li [Wed, 9 Nov 2016 20:17:00 +0000 (20:17 +0000)]
Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into marshmallow-dev" into mnc-dev. am: ee2903686f  -s ours
am: 6166af96ba

Change-Id: I591eb39cc8f7e3528a35ae1d98f641fdf12c4082

7 years agoZygote: Additional whitelists for runtime overlay / other static resources. am: 0ad0e...
Narayan Kamath [Wed, 9 Nov 2016 20:14:07 +0000 (20:14 +0000)]
Zygote: Additional whitelists for runtime overlay / other static resources. am: 0ad0e859f6
am: 1e6a5d11a6

Change-Id: Ia98abb9cb437dd3c42b80de5c0cd98c965e6603e

7 years agoFix idmap leak in zygote process am: 0244ca8d10
neo.chae [Wed, 9 Nov 2016 20:13:07 +0000 (20:13 +0000)]
Fix idmap leak in zygote process am: 0244ca8d10
am: 82537abc3b

Change-Id: I83d338ebfdefd0f935c4cfb14c3b15efca1cce0f

7 years agoMerge "Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop...
Xin Li [Wed, 9 Nov 2016 20:11:44 +0000 (20:11 +0000)]
Merge "Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop-mr1-dev" into lmp-mr1-dev." into lmp-mr1-dev
am: 78f15948fb

Change-Id: I5f5509cd98a6a98ce9edc782e9d8ef9093fa86e4

7 years agoMerge "Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into marshmal...
Xin Li [Wed, 9 Nov 2016 20:11:42 +0000 (20:11 +0000)]
Merge "Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into marshmallow-dev" into mnc-dev." into mnc-dev
am: cc115c5931

Change-Id: I9e226ffdca4c3633061f0202da367e2be0eeeb1f

7 years agoMerge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop-mr1...
Xin Li [Wed, 9 Nov 2016 20:11:40 +0000 (20:11 +0000)]
Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop-mr1-dev" into lmp-mr1-dev.
am: 7e0483fcec  -s ours

Change-Id: I3a351771548f827aeecf9a4c8305b907c106abc5

7 years agoMerge "Merge "DO NOT MERGE - Added Emergency affordance feature" into marshmallow...
Xin Li [Wed, 9 Nov 2016 20:11:37 +0000 (20:11 +0000)]
Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into marshmallow-dev" into mnc-dev.
am: ee2903686f  -s ours

Change-Id: I565953c9962f328055512615185de735c33a50bb

7 years agoMerge "Zygote: Additional whitelisting for legacy devices." into mnc-dev
Narayan Kamath [Wed, 9 Nov 2016 11:26:09 +0000 (11:26 +0000)]
Merge "Zygote: Additional whitelisting for legacy devices." into mnc-dev

7 years agoMerge "Zygote: Additional whitelists for runtime overlay / other static resources...
Narayan Kamath [Wed, 9 Nov 2016 09:45:32 +0000 (09:45 +0000)]
Merge "Zygote: Additional whitelists for runtime overlay / other static resources." into mnc-dev

7 years agoZygote: Additional whitelists for runtime overlay / other static resources.
Narayan Kamath [Wed, 9 Nov 2016 09:39:20 +0000 (09:39 +0000)]
Zygote: Additional whitelists for runtime overlay / other static resources.
am: 0ad0e859f6

Change-Id: Id24798deebb738ba6c6b6abef28ca96c0c61dc79

7 years agoFix idmap leak in zygote process
neo.chae [Wed, 9 Nov 2016 09:21:46 +0000 (09:21 +0000)]
Fix idmap leak in zygote process
am: 0244ca8d10

Change-Id: Ia35ded23161ad5c5c6fe4dea388e74b8d8af2955

7 years agoMerge "DhcpClient: guard against failure to parse packets" into mnc-dev
Hugo Benichi [Wed, 9 Nov 2016 02:24:41 +0000 (02:24 +0000)]
Merge "DhcpClient: guard against failure to parse packets" into mnc-dev

7 years agoMerge "Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into marshmal...
Xin Li [Tue, 8 Nov 2016 21:25:38 +0000 (21:25 +0000)]
Merge "Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into marshmallow-dev" into mnc-dev." into mnc-dev

7 years agoMerge "Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop...
Xin Li [Tue, 8 Nov 2016 21:24:12 +0000 (21:24 +0000)]
Merge "Merge "Merge "DO NOT MERGE - Added Emergency affordance feature" into lollipop-mr1-dev" into lmp-mr1-dev." into lmp-mr1-dev

7 years agoFix idmap leak in zygote process
neo.chae [Mon, 31 Oct 2016 15:02:38 +0000 (00:02 +0900)]
Fix idmap leak in zygote process

Fix a idmap leak in AssetManager::addSystemOverlays.
And, The fix could also prevent fd leak of idmap.

Test: none
Bug: 32691930

Signed-off-by: Hyangseok Chae <neo.chae@lge.com>
(cherry picked from commit 6a742a38509693f8b39ee9a5ad2803fca12688bf)

Change-Id: Idc4af77db2b0cb739bd6b009b6af0f9123be1aac

7 years agoZygote: Additional whitelists for runtime overlay / other static resources.
Narayan Kamath [Fri, 23 Sep 2016 08:07:11 +0000 (09:07 +0100)]
Zygote: Additional whitelists for runtime overlay / other static resources.

Partially cherry picked from commit 1c15c635785c64a.

These files are safe to reopen for the same reason that files in
/system/framework are. They're regular files and will not change after
the first zygote fork.

Bug: 32618130

Change-Id: I119e0bfcbf397cb331064adf148d92a5cd3ea92f

7 years agoMerge "Public volumes belong to a single user." into mnc-dr-dev
Jeff Sharkey [Mon, 7 Nov 2016 23:54:41 +0000 (23:54 +0000)]
Merge "Public volumes belong to a single user." into mnc-dr-dev
am: b232177c61

Change-Id: I0188c9744af905133ad36ab45705828d5286b804

7 years agoPublic volumes belong to a single user.
Jeff Sharkey [Mon, 7 Nov 2016 23:54:35 +0000 (23:54 +0000)]
Public volumes belong to a single user.
am: 6b0079d3bc

Change-Id: Ibcd6221eaa3e15dddd0682c21eae2460cdf1683f

7 years agoMerge "Public volumes belong to a single user." into mnc-dev am: 34849c22e7
Jeff Sharkey [Mon, 7 Nov 2016 23:48:57 +0000 (23:48 +0000)]
Merge "Public volumes belong to a single user." into mnc-dev am: 34849c22e7
am: 60acc3e6ab

Change-Id: I105a361b58b19c1102bef2c88a0ad5f281c793c6

7 years agoPublic volumes belong to a single user. am: 3a062a67fa
Jeff Sharkey [Mon, 7 Nov 2016 23:46:19 +0000 (23:46 +0000)]
Public volumes belong to a single user. am: 3a062a67fa
am: e80720a731

Change-Id: I2ccf22ad13ff106b1ee3c750258917dee6c6f631

7 years agoMerge "Public volumes belong to a single user." into mnc-dr-dev
Jeff Sharkey [Mon, 7 Nov 2016 23:43:23 +0000 (23:43 +0000)]
Merge "Public volumes belong to a single user." into mnc-dr-dev

7 years agoMerge "Public volumes belong to a single user." into mnc-dev
Jeff Sharkey [Mon, 7 Nov 2016 23:35:40 +0000 (23:35 +0000)]
Merge "Public volumes belong to a single user." into mnc-dev
am: 34849c22e7

Change-Id: I5c57bb60ad565b4382184dbe55fc0e61d2fc3f0f

7 years agoPublic volumes belong to a single user.
Jeff Sharkey [Mon, 7 Nov 2016 23:35:34 +0000 (23:35 +0000)]
Public volumes belong to a single user.
am: 3a062a67fa

Change-Id: Ibe40a7985bde6ff6d8bc307c28b94f7b1445c961

7 years agoMerge "Public volumes belong to a single user." into mnc-dev
Jeff Sharkey [Mon, 7 Nov 2016 23:27:52 +0000 (23:27 +0000)]
Merge "Public volumes belong to a single user." into mnc-dev

7 years agoZygote: Additional whitelisting for legacy devices.
Narayan Kamath [Mon, 7 Nov 2016 19:59:29 +0000 (19:59 +0000)]
Zygote: Additional whitelisting for legacy devices.

On M and below, we provide a blanket whitelist for all files under
"/vendor/zygote_whitelist". This path is whitelisted purely to allow
this patch to be applied easily on legacy devices and configurations.

Note that this does not amount to a loosening of our security policy
because whitelisted files are reopened anyway.

Bug: 32691930
Test: manual
Change-Id: If5b53f6f0a707f8d36603c09bfd3f72dbfbbbb99

7 years agoZygote: Additional whitelists for runtime overlay / other static resources.
Narayan Kamath [Fri, 23 Sep 2016 08:07:11 +0000 (09:07 +0100)]
Zygote: Additional whitelists for runtime overlay / other static resources.

Partially cherry picked from commit 1c15c635785c64a.

These files are safe to reopen for the same reason that files in
/system/framework are. They're regular files and will not change after
the first zygote fork.

Bug: 32618130

Change-Id: I119e0bfcbf397cb331064adf148d92a5cd3ea92f

7 years agoPublic volumes belong to a single user.
Jeff Sharkey [Wed, 2 Nov 2016 21:26:01 +0000 (15:26 -0600)]
Public volumes belong to a single user.

When a public (vfat) device is inserted, it's strongly associated
with the current foreground user, and no other users should be able
to access it, since otherwise that would be a cross-user data leak.

To use the device under a different user, switch users and then
eject/remount the device.

Test: verified user isolation of USB drive
Bug: 32523490
Change-Id: I590c791996f1fea8d78f625dc942d149f1f41614

7 years agoPublic volumes belong to a single user.
Jeff Sharkey [Wed, 2 Nov 2016 21:26:01 +0000 (15:26 -0600)]
Public volumes belong to a single user.

When a public (vfat) device is inserted, it's strongly associated
with the current foreground user, and no other users should be able
to access it, since otherwise that would be a cross-user data leak.

To use the device under a different user, switch users and then
eject/remount the device.

Test: verified user isolation of USB drive
Bug: 32523490
Change-Id: I590c791996f1fea8d78f625dc942d149f1f41614

7 years agoDO NOT MERGE ANYWHERE Enable shader cache for applications that shared UID with multi...
Shuo Gao [Tue, 1 Mar 2016 05:32:03 +0000 (13:32 +0800)]
DO NOT MERGE ANYWHERE Enable shader cache for applications that shared UID with multiple packages

from AOSP: https://android-review.googlesource.com/#/c/209490/

Frameworks supported a mature mechanism for shader cache per each package already,
but as a special case such as Settings APP, if there are several packages in this
application which means that multiple packages shared the same SharedUserID with it,
it won't initialize the graphics disk caches, thereby APP like Settings have to
rebuild and relink shader every time during launch, which cause a bad launching
performance, so here to enable the GFX and RS cache initialization for multiple
shared packages case too.

Change-Id: If0f927e3399b775804abf1d9a868887951f471c5
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
7 years agoDO NOT MERGE ANYWHERE libhwui: make setSurface asynchronous
Thomas Buhot [Fri, 4 Dec 2015 11:18:03 +0000 (12:18 +0100)]
DO NOT MERGE ANYWHERE libhwui: make setSurface asynchronous

from AOSP: https://android-review.googlesource.com/#/c/183305/

On the critical path of the cold launch of applications
the main thread of the started application tells the RenderThread
to create a surface. This process is synchronous and blocks
the main thread of the application until the creation
of the EGLContext is complete.
As a consequence the launch time of the application is delayed
by time spent allocating the EGL Context in the RenderThread.

With this optimization the launch time of any application
is improved (for example settings by 20 to 40 ms).

Change-Id: Ibf47aaa0abb8dedf7aa00693073db3785d9d6b08
Signed-off-by: Thomas Buhot <thomas.buhot@intel.com>
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
7 years agoDhcpClient: guard against failure to parse packets
Hugo Benichi [Tue, 11 Oct 2016 02:39:39 +0000 (11:39 +0900)]
DhcpClient: guard against failure to parse packets

DhcpPacket.decodeFullPacket() is not exception safe and can throw
various runtime exceptions when trying to parse malicious or malformed
packets.

This patch adds a generic catch-all-exception in DhcpClient to avoid
propagating the exception and killing the framework process on reception
of such malformed packets.

Bug: 31850211
Change-Id: I2e723a792ff067ada2834da875700d4df16c5159

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens am: 418e0869ba...
Sungsoo [Tue, 18 Oct 2016 18:13:55 +0000 (18:13 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens am: 418e0869ba am: a5affb045e am: 9a15881184  -s ours am: 21c4e6d532  -s ours am: ec44540d42 am: 583a7017ce  -s ours am: 8c94179f51
am: 336791758a

Change-Id: I7aba59c53b9fbeb6d58d139d730cdb13af78d6bb

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens am: 418e0869ba...
Sungsoo [Tue, 18 Oct 2016 18:07:19 +0000 (18:07 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens am: 418e0869ba am: a5affb045e am: 9a15881184  -s ours am: 21c4e6d532  -s ours am: ec44540d42 am: 583a7017ce  -s ours
am: 8c94179f51

Change-Id: I8abecc3855c2dd92fbf25717bd56481dd1ee37ea

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens am: 418e0869ba...
Sungsoo [Tue, 18 Oct 2016 18:00:54 +0000 (18:00 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens am: 418e0869ba am: a5affb045e am: 9a15881184  -s ours am: 21c4e6d532  -s ours am: ec44540d42
am: 583a7017ce  -s ours

Change-Id: I39976fd7bf943dd9b4e38c084270c977cf0511ca

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens am: 135524f2c5...
Sungsoo [Tue, 18 Oct 2016 18:00:45 +0000 (18:00 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens am: 135524f2c5  -s ours am: 02cd808ab8 am: 8e2451759d  -s ours am: 9cf942973d
am: 25cbc1b7ec

Change-Id: Ie8e3cfffd550c15b8d43d59539962d07934e76a3

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens am: 418e0869ba...
Sungsoo [Tue, 18 Oct 2016 17:54:57 +0000 (17:54 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens am: 418e0869ba am: a5affb045e am: 9a15881184  -s ours am: 21c4e6d532  -s ours
am: ec44540d42

Change-Id: Id4fd3422c443d5e7363d3ff27b2ba0eeb532f1dd

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens am: ad74e88f1d...
Sungsoo [Tue, 18 Oct 2016 17:47:59 +0000 (17:47 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens am: ad74e88f1d am: 41b775b40a  -s ours am: 8be090868e
am: 69febedd6d

Change-Id: Id1c70a1131d860d027fed915088918232899f026

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens am: 418e0869ba...
Sungsoo [Tue, 18 Oct 2016 17:47:58 +0000 (17:47 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens am: 418e0869ba am: a5affb045e am: 9a15881184  -s ours
am: 21c4e6d532  -s ours

Change-Id: Ibf02e62ee13accd5d204c44faeb6aa8c05afb709

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens am: 135524f2c5...
Sungsoo [Tue, 18 Oct 2016 17:47:56 +0000 (17:47 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens am: 135524f2c5  -s ours am: 02cd808ab8 am: 8e2451759d  -s ours
am: 9cf942973d

Change-Id: Ice1c96b49f7350a41cf35779f0f1fb06f6ff0c77

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens am: 418e0869ba...
Sungsoo [Tue, 18 Oct 2016 17:41:55 +0000 (17:41 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens am: 418e0869ba am: a5affb045e
am: 9a15881184  -s ours

Change-Id: I67ba2d8b8d3c3f32fca417303ee422482acc40d8

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens am: 135524f2c5...
Sungsoo [Tue, 18 Oct 2016 17:41:49 +0000 (17:41 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens am: 135524f2c5  -s ours am: 02cd808ab8
am: 8e2451759d  -s ours

Change-Id: Id0d69d1bddcf0d6059b53bd3a4b2b55df493899c

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens am: ad74e88f1d...
Sungsoo [Tue, 18 Oct 2016 17:41:45 +0000 (17:41 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens am: ad74e88f1d am: 41b775b40a  -s ours
am: 8be090868e

Change-Id: I9e9954d2d058b6552d4d9900df51a4050a90c1fe

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens am: 418e0869ba
Sungsoo [Tue, 18 Oct 2016 17:35:23 +0000 (17:35 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens am: 418e0869ba
am: a5affb045e

Change-Id: I4bb4440c019839073b4fcf6df54d726a02286680

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens am: ad74e88f1d
Sungsoo [Tue, 18 Oct 2016 17:35:22 +0000 (17:35 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens am: ad74e88f1d
am: 41b775b40a  -s ours

Change-Id: I6ce63b74988fb4f87565be611a47c2f4a28cbc9b

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens am: cb17930077
Sungsoo [Tue, 18 Oct 2016 17:35:20 +0000 (17:35 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens am: cb17930077
am: 761a1ed3a6

Change-Id: Ia6679d76895a452267f23dd71096c397c5b48c88

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens am: 135524f2c5...
Sungsoo [Tue, 18 Oct 2016 17:35:16 +0000 (17:35 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens am: 135524f2c5  -s ours
am: 02cd808ab8

Change-Id: Ic14a5adecb6fb0732a5b3c2a68a28fdcf1eb1bc4

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens
Sungsoo [Tue, 18 Oct 2016 17:29:03 +0000 (17:29 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens
am: 135524f2c5  -s ours

Change-Id: I34fc1b37171ad6ea5d79035df6c4730260a0b47b

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens
Sungsoo [Tue, 18 Oct 2016 17:29:00 +0000 (17:29 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens
am: cb17930077

Change-Id: I4b8f9270f75800e1390c3a840b41316c20ea4aa8

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens
Sungsoo [Tue, 18 Oct 2016 17:28:58 +0000 (17:28 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens
am: 418e0869ba

Change-Id: Ifad08d681f67abc4dd9ad5d8c4e82b038cbd8322

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens
Sungsoo [Tue, 18 Oct 2016 17:28:58 +0000 (17:28 +0000)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens
am: ad74e88f1d

Change-Id: Ic8a6e5b579c028a560436cdc6c3ca68a51cbf229

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens
Sungsoo [Tue, 18 Oct 2016 05:12:00 +0000 (14:12 +0900)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens

Bug: 32068647, Bug: 30936376
Change-Id: I22fa2384348c890ca726d2b1632cd54e59d25a8f

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens
Sungsoo [Tue, 18 Oct 2016 05:12:00 +0000 (14:12 +0900)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens

Bug: 32068647, Bug: 30936376
Change-Id: I22fa2384348c890ca726d2b1632cd54e59d25a8f

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens
Sungsoo [Tue, 18 Oct 2016 05:12:00 +0000 (14:12 +0900)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens

Bug: 32068647, Bug: 30936376
Change-Id: I22fa2384348c890ca726d2b1632cd54e59d25a8f

7 years agoDO NOT MERGE) ExifInterface: Close the file when an exception happens
Sungsoo [Tue, 18 Oct 2016 05:12:00 +0000 (14:12 +0900)]
DO NOT MERGE) ExifInterface: Close the file when an exception happens

Bug: 32068647, Bug: 30936376
Change-Id: I22fa2384348c890ca726d2b1632cd54e59d25a8f

7 years agoMerge "DO NOT MERGE Isolated processes don't get precached system service binders...
Suprabh Shukla [Sat, 15 Oct 2016 01:26:36 +0000 (01:26 +0000)]
Merge "DO NOT MERGE Isolated processes don't get precached system service binders" into klp-dev am: 6739ba0280 am: c36913e68a am: e3c0c509ea  -s ours am: 5bea7d3aee  -s ours am: 0eef6b3ff2 am: 6d7f209964  -s ours am: 5d1bfd9d5f
am: 13fdd92274

Change-Id: Id6ee67119933051f4e1f6f40f6d1c979f3714257

7 years agoDO NOT MERGE Isolated processes don't get precached system service binders am: 2aa7e5...
Suprabh Shukla [Sat, 15 Oct 2016 01:25:36 +0000 (01:25 +0000)]
DO NOT MERGE Isolated processes don't get precached system service binders am: 2aa7e5e861 am: 9df66924c0 am: e07b811d78  -s ours am: 9c78d0ad9f  -s ours am: 7dfd05f0e5 am: 2432cf3645  -s ours am: 99f8b9c2b4
am: f6c384c657

Change-Id: Ic30f0de82d7b3486a6ac43ed38487935fc97db15

7 years agoMerge "DO NOT MERGE Isolated processes don't get precached system service binders...
Suprabh Shukla [Sat, 15 Oct 2016 01:22:13 +0000 (01:22 +0000)]
Merge "DO NOT MERGE Isolated processes don't get precached system service binders" into klp-dev am: 6739ba0280 am: c36913e68a am: e3c0c509ea  -s ours am: 5bea7d3aee  -s ours am: 0eef6b3ff2 am: 6d7f209964  -s ours
am: 5d1bfd9d5f

Change-Id: I7b50c1509c99f68908a670f0e346bb4b1b848dc5

7 years agoMerge "DO NOT MERGE Isolated processes don't get precached system service binders...
Suprabh Shukla [Sat, 15 Oct 2016 01:18:24 +0000 (01:18 +0000)]
Merge "DO NOT MERGE Isolated processes don't get precached system service binders" into klp-dev am: 6739ba0280 am: c36913e68a am: e3c0c509ea  -s ours am: 5bea7d3aee  -s ours am: 0eef6b3ff2
am: 6d7f209964  -s ours

Change-Id: Iff979c99a7aff3e68740052c49b7850275839965

7 years agoDO NOT MERGE Isolated processes don't get precached system service binders am: 2aa7e5...
Suprabh Shukla [Sat, 15 Oct 2016 01:18:22 +0000 (01:18 +0000)]
DO NOT MERGE Isolated processes don't get precached system service binders am: 2aa7e5e861 am: 9df66924c0 am: e07b811d78  -s ours am: 9c78d0ad9f  -s ours am: 7dfd05f0e5 am: 2432cf3645  -s ours
am: 99f8b9c2b4

Change-Id: Ie5f386f3f17370449de23fc8f3bfb8c7a1881495

7 years agoDO NOT MERGE Isolated processes don't get precached system service binders am: 2aa7e5...
Suprabh Shukla [Sat, 15 Oct 2016 01:10:39 +0000 (01:10 +0000)]
DO NOT MERGE Isolated processes don't get precached system service binders am: 2aa7e5e861 am: 9df66924c0 am: e07b811d78  -s ours am: 9c78d0ad9f  -s ours am: 7dfd05f0e5
am: 2432cf3645  -s ours

Change-Id: Icbc41a48fbd9cc8f1c7423c96cac5730a52a78c9

7 years agoMerge "DO NOT MERGE Isolated processes don't get precached system service binders...
Suprabh Shukla [Sat, 15 Oct 2016 01:10:15 +0000 (01:10 +0000)]
Merge "DO NOT MERGE Isolated processes don't get precached system service binders" into klp-dev am: 6739ba0280 am: c36913e68a am: e3c0c509ea  -s ours am: 5bea7d3aee  -s ours
am: 0eef6b3ff2

Change-Id: Ia5e16b194bb3af63506557c88ef2f5077dc58000

7 years agoDO NOT MERGE Isolated processes don't get precached system service binders am: 2aa7e5...
Suprabh Shukla [Sat, 15 Oct 2016 01:04:39 +0000 (01:04 +0000)]
DO NOT MERGE Isolated processes don't get precached system service binders am: 2aa7e5e861 am: 9df66924c0 am: e07b811d78  -s ours am: 9c78d0ad9f  -s ours
am: 7dfd05f0e5

Change-Id: Icfcde7dc91379a4e69d688501a0c46797b212103

7 years agoMerge "DO NOT MERGE Isolated processes don't get precached system service binders...
Suprabh Shukla [Sat, 15 Oct 2016 00:59:41 +0000 (00:59 +0000)]
Merge "DO NOT MERGE Isolated processes don't get precached system service binders" into klp-dev am: 6739ba0280 am: c36913e68a am: e3c0c509ea  -s ours
am: 5bea7d3aee  -s ours

Change-Id: If66e50ff4d2f4c1b91ed3204d7a11000429489d5

7 years agoMerge "DO NOT MERGE Isolated processes don't get precached system service binders...
Suprabh Shukla [Sat, 15 Oct 2016 00:58:28 +0000 (00:58 +0000)]
Merge "DO NOT MERGE Isolated processes don't get precached system service binders" into lmp-dev am: 35bd0fc5f0  -s ours am: 40a13c5917 am: 0645127e25  -s ours am: 3da33f8bb0
am: efbb0d6db3

Change-Id: Id1d55253fc4203161467ee9018d514211afd484e

7 years agoDO NOT MERGE Isolated processes don't get precached system service binders am: 4779ee...
Suprabh Shukla [Sat, 15 Oct 2016 00:57:34 +0000 (00:57 +0000)]
DO NOT MERGE Isolated processes don't get precached system service binders am: 4779ee70a2  -s ours am: 8d124e37f1 am: 56b525a313  -s ours am: 250e86a01d
am: b8a7dcde9b

Change-Id: I54cdd478bb2edcf6e9948d0f3e9e60372e1793ea

7 years agoDO NOT MERGE Isolated processes don't get precached system service binders am: 190e66...
Christopher Tate [Sat, 15 Oct 2016 00:56:44 +0000 (00:56 +0000)]
DO NOT MERGE Isolated processes don't get precached system service binders am: 190e66685f am: eafeb8becf  -s ours am: 1d86a376c8
am: f2e19dd663

Change-Id: Iab8084402119c914bfe8debe806bbad946da11f1

7 years agoDO NOT MERGE Isolated processes don't get precached system service binders am: 2aa7e5...
Suprabh Shukla [Sat, 15 Oct 2016 00:56:40 +0000 (00:56 +0000)]
DO NOT MERGE Isolated processes don't get precached system service binders am: 2aa7e5e861 am: 9df66924c0 am: e07b811d78  -s ours
am: 9c78d0ad9f  -s ours

Change-Id: I6e82648a135bd8ae17337eb97518eb8856d065e0

7 years agoMerge "DO NOT MERGE Isolated processes don't get precached system service binders...
Suprabh Shukla [Sat, 15 Oct 2016 00:50:25 +0000 (00:50 +0000)]
Merge "DO NOT MERGE Isolated processes don't get precached system service binders" into lmp-dev am: 35bd0fc5f0  -s ours am: 40a13c5917 am: 0645127e25  -s ours
am: 3da33f8bb0

Change-Id: I3ed0137173331704a30a0fa9702a5298a9877b70

7 years agoMerge "DO NOT MERGE Isolated processes don't get precached system service binders...
Suprabh Shukla [Sat, 15 Oct 2016 00:49:46 +0000 (00:49 +0000)]
Merge "DO NOT MERGE Isolated processes don't get precached system service binders" into klp-dev am: 6739ba0280 am: c36913e68a
am: e3c0c509ea  -s ours

Change-Id: I287e60913bd2a3f6b46d1d5ef2413727e3e63cc2

7 years agoDO NOT MERGE Isolated processes don't get precached system service binders am: 4779ee...
Suprabh Shukla [Sat, 15 Oct 2016 00:49:32 +0000 (00:49 +0000)]
DO NOT MERGE Isolated processes don't get precached system service binders am: 4779ee70a2  -s ours am: 8d124e37f1 am: 56b525a313  -s ours
am: 250e86a01d

Change-Id: I69b250516595f8d46c77064ef7a38f3b8c45c939

7 years agoDO NOT MERGE Isolated processes don't get precached system service binders am: 2aa7e5...
Suprabh Shukla [Sat, 15 Oct 2016 00:48:51 +0000 (00:48 +0000)]
DO NOT MERGE Isolated processes don't get precached system service binders am: 2aa7e5e861 am: 9df66924c0
am: e07b811d78  -s ours

Change-Id: Ia9271aeed1c2953a318fc4bf50ee169739147d66

7 years agoDO NOT MERGE Isolated processes don't get precached system service binders am: 190e66...
Christopher Tate [Sat, 15 Oct 2016 00:48:41 +0000 (00:48 +0000)]
DO NOT MERGE Isolated processes don't get precached system service binders am: 190e66685f am: eafeb8becf  -s ours
am: 1d86a376c8

Change-Id: I8ac2637092e435c87d4695e2b7b89090be410841

7 years agoMerge "DO NOT MERGE Isolated processes don't get precached system service binders...
Suprabh Shukla [Sat, 15 Oct 2016 00:43:00 +0000 (00:43 +0000)]
Merge "DO NOT MERGE Isolated processes don't get precached system service binders" into lmp-dev am: 35bd0fc5f0  -s ours am: 40a13c5917
am: 0645127e25  -s ours

Change-Id: I6ae49833a96e2e12420cfb916c8e080766a253e4