OSDN Git Service

android-x86/frameworks-native.git
8 years agoMerge "Hold a wakelock during dumpstate." into cw-f-dev
Wei Liu [Fri, 19 Aug 2016 17:14:15 +0000 (17:14 +0000)]
Merge "Hold a wakelock during dumpstate." into cw-f-dev
am: a2cc07e7ba

Change-Id: I14c44714c8f90d21136a546b32cea0415d67d8b7

8 years agoHold a wakelock during dumpstate.
Wei Liu [Fri, 19 Aug 2016 17:14:12 +0000 (17:14 +0000)]
Hold a wakelock during dumpstate.
am: d7803db0e9

Change-Id: I134c8cc5a656bc2d24e58d2dd8a4d200784e1049

8 years agoMerge "Hold a wakelock during dumpstate." into cw-f-dev
Wei Liu [Fri, 19 Aug 2016 17:06:55 +0000 (17:06 +0000)]
Merge "Hold a wakelock during dumpstate." into cw-f-dev

8 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 14:01:50 +0000 (14:01 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac am: c29c3734af am: ce0e72911c am: 2c39ea1025 am: fa5aafc9f3 am: 1f36bcd2ba am: 75469c1fc9 am: 083f4ecca2 am: b10cd89507 am: 46eee7d103
am: 0d6390b4e1

Change-Id: I10a26606f5f22e3559fdbe5d4945cc8a187ea82d

8 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 13:47:27 +0000 (13:47 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac am: c29c3734af am: ce0e72911c am: 2c39ea1025 am: fa5aafc9f3 am: 1f36bcd2ba am: 75469c1fc9 am: 083f4ecca2 am: b10cd89507
am: 46eee7d103

Change-Id: Ie304611aec749c44cc455ec1f1ab43e65926334f

8 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 13:22:58 +0000 (13:22 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac am: c29c3734af am: ce0e72911c am: 2c39ea1025 am: fa5aafc9f3 am: 1f36bcd2ba am: 75469c1fc9 am: 083f4ecca2
am: b10cd89507

Change-Id: I78dd4d0aa005ffa5e88b2dbce5464c771cb3b98f

8 years agoresolve merge conflicts of 083f4ec to nyc-dev-plus-aosp
Arve Hjønnevåg [Fri, 19 Aug 2016 01:30:30 +0000 (01:30 +0000)]
resolve merge conflicts of 083f4ec to nyc-dev-plus-aosp
am: 504fd0a2e9

Change-Id: I7c0bd051ffd81ca419538083dfd3027a1bd716ea

8 years agoresolve merge conflicts of 083f4ec to nyc-dev-plus-aosp
Arve Hjønnevåg [Fri, 19 Aug 2016 01:23:22 +0000 (18:23 -0700)]
resolve merge conflicts of 083f4ec to nyc-dev-plus-aosp

Change-Id: I1532b1e4ee225f821fcd6a9eaee11f20bac8c9e1

8 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 01:21:01 +0000 (01:21 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac am: c29c3734af am: ce0e72911c am: 2c39ea1025 am: fa5aafc9f3 am: 1f36bcd2ba am: 75469c1fc9
am: 083f4ecca2

Change-Id: Ie1931218577e24e4ab0eb7328ccff60a2ca54400

8 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 01:15:05 +0000 (01:15 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac am: c29c3734af am: ce0e72911c am: 2c39ea1025 am: fa5aafc9f3 am: 1f36bcd2ba
am: 75469c1fc9

Change-Id: Icbe1e240a365b6f473ee060cdec384db3b49db24

8 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 01:11:01 +0000 (01:11 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac am: c29c3734af am: ce0e72911c am: 2c39ea1025 am: fa5aafc9f3
am: 1f36bcd2ba

Change-Id: Ic4225509044c66a55910b827e8076cf20c4b5bba

8 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 01:07:30 +0000 (01:07 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac am: c29c3734af am: ce0e72911c am: 2c39ea1025
am: fa5aafc9f3

Change-Id: I2b83c66f04f7dbfb1740d525ba6d424c9ea42c2b

8 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 01:04:30 +0000 (01:04 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac am: c29c3734af am: ce0e72911c
am: 2c39ea1025

Change-Id: I355431fb0c566965759cd3d07d481c475cb494d0

8 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 01:01:29 +0000 (01:01 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac am: c29c3734af
am: ce0e72911c

Change-Id: I2c36fdb4c92359a03af1c8a563d4d73b9e2898a2

8 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 00:58:34 +0000 (00:58 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7 am: 2cb14836ac
am: c29c3734af

Change-Id: I72992d6662bbace5cecce2b96389139c96d2e181

8 years agoServiceManager: Allow system services running as secondary users to add services...
Arve Hjnnevg [Fri, 19 Aug 2016 00:49:29 +0000 (00:49 +0000)]
ServiceManager: Allow system services running as secondary users to add services am: e6bbe69ba7
am: 2cb14836ac

Change-Id: Ia7deecedc7eff4fb35742ba9c7475ca32ecf48aa

8 years agoServiceManager: Allow system services running as secondary users to add services
Arve Hjnnevg [Fri, 19 Aug 2016 00:46:28 +0000 (00:46 +0000)]
ServiceManager: Allow system services running as secondary users to add services
am: e6bbe69ba7

Change-Id: Iebb7be5ff42026adb2ff2d2b610902b995acdbc0

8 years agoHold a wakelock during dumpstate.
Wei Liu [Thu, 18 Aug 2016 18:01:05 +0000 (11:01 -0700)]
Hold a wakelock during dumpstate.

b/30832947

Change-Id: I9f6f6a9a9cef80aafea5eeb7769f4ac19baba3e5

8 years agoServiceManager: Allow system services running as secondary users to add services
Arve Hjønnevåg [Thu, 18 Aug 2016 22:42:35 +0000 (15:42 -0700)]
ServiceManager: Allow system services running as secondary users to add services

This should be reverted when all system services have been cleaned up to not
do this. A process looking up a service while running in the background will
see the service registered by the active user (assuming the service is
registered on every user switch), not the service registered by the user that
the process itself belongs to.

BUG: 30795333
Change-Id: I1b74d58be38ed358f43c163692f9e704f8f31dbe

8 years agoMerge "Remove unused include." am: 5242fb42fb am: 23e469f5dc
Dmitriy Filchenko [Thu, 18 Aug 2016 03:23:34 +0000 (03:23 +0000)]
Merge "Remove unused include." am: 5242fb42fb am: 23e469f5dc
am: def5b03a2e

Change-Id: I5dda05a56540ca027158662d679998538c38cbdb

8 years agoMerge "Remove unused include." am: 5242fb42fb
Dmitriy Filchenko [Thu, 18 Aug 2016 03:21:03 +0000 (03:21 +0000)]
Merge "Remove unused include." am: 5242fb42fb
am: 23e469f5dc

Change-Id: I830745f6bcf717089a6264a700ccf8a5e5ab96c0

8 years agoMerge "Remove unused include."
Dmitriy Filchenko [Thu, 18 Aug 2016 03:17:36 +0000 (03:17 +0000)]
Merge "Remove unused include."
am: 5242fb42fb

Change-Id: Id3ccb5f3dfb9d2188b6e570eaaa6ba23438ae392

8 years agoMerge "Remove unused include."
Treehugger Robot [Thu, 18 Aug 2016 03:13:47 +0000 (03:13 +0000)]
Merge "Remove unused include."

8 years agoRemove unused include.
Dmitriy Filchenko [Thu, 18 Aug 2016 01:00:39 +0000 (18:00 -0700)]
Remove unused include.

BUG: 29824203

Change-Id: Ied8ccb8c30632b41f6c6c3d848dc94d7b1e731e0

8 years agoMerge "Add anrd trace to bugreport" into cw-f-dev
Zhengyin Qian [Wed, 17 Aug 2016 20:29:10 +0000 (20:29 +0000)]
Merge "Add anrd trace to bugreport" into cw-f-dev
am: c4178812a4

Change-Id: I26564e52044808330cfef78e49056f4b96b76dc0

8 years agoresolve merge conflicts of 068ecc7 to nyc-mr1-dev-plus-aosp
Zhengyin Qian [Wed, 17 Aug 2016 20:23:17 +0000 (13:23 -0700)]
resolve merge conflicts of 068ecc7 to nyc-mr1-dev-plus-aosp

Change-Id: I8b294812ae72df1cf430b592357a2634085a5c49

8 years agoMerge "Add anrd trace to bugreport" into cw-f-dev
TreeHugger Robot [Wed, 17 Aug 2016 20:01:48 +0000 (20:01 +0000)]
Merge "Add anrd trace to bugreport" into cw-f-dev

8 years agoOtapreopt: Allow A/B dexopt only when bootcomplete am: 90ba9eb2f1
Andreas Gampe [Wed, 17 Aug 2016 18:59:25 +0000 (18:59 +0000)]
Otapreopt: Allow A/B dexopt only when bootcomplete am: 90ba9eb2f1
am: 3573f3e105

Change-Id: I80acef4f3c5a1c4c5d9ccd987f344d30f79c18ce

8 years agoOtapreopt: Allow A/B dexopt only when bootcomplete
Andreas Gampe [Wed, 17 Aug 2016 18:31:02 +0000 (18:31 +0000)]
Otapreopt: Allow A/B dexopt only when bootcomplete
am: 90ba9eb2f1

Change-Id: I99c3b9b773499969069d9b08682d435f838f9f23

8 years agoAdd anrd trace to bugreport
Zhengyin Qian [Wed, 10 Aug 2016 23:48:14 +0000 (16:48 -0700)]
Add anrd trace to bugreport

Bug: 30672082
Change-Id: If009f6339f47ceeaf6452172d18cfdae564c36ad

8 years agoOtapreopt: Allow A/B dexopt only when bootcomplete
Andreas Gampe [Wed, 17 Aug 2016 00:43:33 +0000 (17:43 -0700)]
Otapreopt: Allow A/B dexopt only when bootcomplete

Under certain circumstances cmd may not return because it is waiting
for a service manager. Avoid this situation by restricting the otapreopt
script to only do work when the system has completed boot (which
means that a service manager must exist).

Bug: 30797145
Change-Id: Ic1445e20f1ca06fb38e7707771bde818836c3adc

8 years agootapreopt: Collect and print size of artifacts am: e7d5552677
Andreas Gampe [Mon, 15 Aug 2016 15:16:57 +0000 (15:16 +0000)]
otapreopt: Collect and print size of artifacts am: e7d5552677
am: 14db1889f5

Change-Id: I38f47b668b530c570769828dce6e84f612a49ab7

8 years agootapreopt: Collect and print size of artifacts
Andreas Gampe [Mon, 15 Aug 2016 15:12:27 +0000 (15:12 +0000)]
otapreopt: Collect and print size of artifacts
am: e7d5552677

Change-Id: Ife7a3b6fb0bcc68ce5ca11ea2474e9f8fa8b9c2f

8 years agootapreopt: Collect and print size of artifacts
Andreas Gampe [Sat, 13 Aug 2016 02:35:57 +0000 (19:35 -0700)]
otapreopt: Collect and print size of artifacts

Collect and print the size of artifacts when moving after a reboot.
This helps in diagnosing issues after the fact.

Bug: 30832951
Change-Id: Iee410adf59dcbb74fa4b49edb27d028025cd8bf9

8 years agoMerge "DO NOT MERGE SF: Add property to disable HWC virtual displays" into nyc-mr1...
Dan Stoza [Fri, 12 Aug 2016 16:47:29 +0000 (16:47 +0000)]
Merge "DO NOT MERGE SF: Add property to disable HWC virtual displays" into nyc-mr1-dev am: e26ce9f612
am: c65a0ebf68

Change-Id: Ie55679325194224637fe9bb312bed3d6e6fc34d2

8 years agoDO NOT MERGE SF: Add property to disable HWC virtual displays am: 3cf4bfe236
Dan Stoza [Fri, 12 Aug 2016 16:47:28 +0000 (16:47 +0000)]
DO NOT MERGE SF: Add property to disable HWC virtual displays am: 3cf4bfe236
am: cce24b398c

Change-Id: I0eb9092b3f09b607bb4d2da5d5533867d6ef1ebd

8 years agoMerge "DO NOT MERGE SF: Add property to disable HWC virtual displays" into nyc-mr1-dev
Dan Stoza [Fri, 12 Aug 2016 16:44:25 +0000 (16:44 +0000)]
Merge "DO NOT MERGE SF: Add property to disable HWC virtual displays" into nyc-mr1-dev
am: e26ce9f612

Change-Id: I2976ce23d74de6cdaa2285c39d13d2a80e5eaf7a

8 years agoDO NOT MERGE SF: Add property to disable HWC virtual displays
Dan Stoza [Fri, 12 Aug 2016 16:44:25 +0000 (16:44 +0000)]
DO NOT MERGE SF: Add property to disable HWC virtual displays
am: 3cf4bfe236

Change-Id: I615cdf9466cbb37d32890f126dc0be1fecf9a50a

8 years agoMerge "DO NOT MERGE SF: Add property to disable HWC virtual displays" into nyc-mr1-dev
Dan Stoza [Fri, 12 Aug 2016 16:36:04 +0000 (16:36 +0000)]
Merge "DO NOT MERGE SF: Add property to disable HWC virtual displays" into nyc-mr1-dev

8 years agoDO NOT MERGE SF: Add property to disable HWC virtual displays
Dan Stoza [Tue, 2 Aug 2016 17:27:31 +0000 (10:27 -0700)]
DO NOT MERGE SF: Add property to disable HWC virtual displays

Adds the property debug.sf.disable_hwc_vds, which will disable the use
of Hardware Composer virtual displays inside SurfaceFlinger (falling
back to SurfaceFlinger management and client composition of such
displays).

Also adds a Binder debug interface for controlling this behavior.

Bug: 30510632
Change-Id: I2c1a199213a24195b144bfa0c0f1679f2dfd0668

8 years agoMerge "SF: Fix a couple of Layer ref count issues" into nyc-mr1-dev am: 1ff2b85b03
Dan Stoza [Tue, 9 Aug 2016 22:32:59 +0000 (22:32 +0000)]
Merge "SF: Fix a couple of Layer ref count issues" into nyc-mr1-dev am: 1ff2b85b03
am: 31212b5015

Change-Id: I8da2be987f367aa5cc97fae9508cac56b3edd6a6

8 years agoSF: Fix a couple of Layer ref count issues am: 92cd24e5f6
Dan Stoza [Tue, 9 Aug 2016 22:32:58 +0000 (22:32 +0000)]
SF: Fix a couple of Layer ref count issues am: 92cd24e5f6
am: 56e16bb1ca

Change-Id: I64cac41e0f6e6412a3334cf17c15c9b754f8dd07

8 years agoMerge "SF: Fix a couple of Layer ref count issues" into nyc-mr1-dev
Dan Stoza [Tue, 9 Aug 2016 22:29:58 +0000 (22:29 +0000)]
Merge "SF: Fix a couple of Layer ref count issues" into nyc-mr1-dev
am: 1ff2b85b03

Change-Id: Iac13fc45e6b5e5dd469ffd42394aa64a65f3d457

8 years agoSF: Fix a couple of Layer ref count issues
Dan Stoza [Tue, 9 Aug 2016 22:29:58 +0000 (22:29 +0000)]
SF: Fix a couple of Layer ref count issues
am: 92cd24e5f6

Change-Id: Ia62ec102448136979df26ba907bfb1852d4d0373

8 years agoMerge "SF: Fix a couple of Layer ref count issues" into nyc-mr1-dev
Dan Stoza [Tue, 9 Aug 2016 22:25:37 +0000 (22:25 +0000)]
Merge "SF: Fix a couple of Layer ref count issues" into nyc-mr1-dev

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36 -s ours am:...
Arve Hjnnevg [Tue, 9 Aug 2016 21:30:23 +0000 (21:30 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36  -s ours am: a82f82293a am: 1c220583e4 am: ce472fbb54  -s ours am: e8cb9c8982 am: 1414d7b372 am: b8d937caeb am: 1864a8748d  -s ours am: a4ef62b859 am: 27f9c82730
am: cb69c31db8

Change-Id: I5d3be52f6a7fd507072fbe4f4bad07c2714ad9da

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931...
Arve Hjnnevg [Tue, 9 Aug 2016 21:30:22 +0000 (21:30 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931 am: 101c678909  -s ours am: e55418a857 am: 419626b496 am: 12151706b2 am: 899d956cf3  -s ours am: 66818cfeae am: d3866c201b
am: a30a8d075c

Change-Id: I276610212da97412d541b87ab73b275d24f94e64

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36 -s ours am:...
Arve Hjnnevg [Tue, 9 Aug 2016 21:24:26 +0000 (21:24 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36  -s ours am: a82f82293a am: 1c220583e4 am: ce472fbb54  -s ours am: e8cb9c8982 am: 1414d7b372 am: b8d937caeb am: 1864a8748d  -s ours am: a4ef62b859
am: 27f9c82730

Change-Id: I2187dc6218065463b04bdb49a65754ad89ed28b2

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931...
Arve Hjnnevg [Tue, 9 Aug 2016 21:24:26 +0000 (21:24 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931 am: 101c678909  -s ours am: e55418a857 am: 419626b496 am: 12151706b2 am: 899d956cf3  -s ours am: 66818cfeae
am: d3866c201b

Change-Id: If5210c25834538adb53c6f8b8310cfda18c3478e

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36 -s ours am:...
Arve Hjnnevg [Tue, 9 Aug 2016 21:24:25 +0000 (21:24 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36  -s ours am: a82f82293a am: 1c220583e4 am: ce472fbb54  -s ours am: e8cb9c8982 am: 1414d7b372 am: b8d937caeb am: 1864a8748d  -s ours am: a4ef62b859
am: 0869559543

Change-Id: Id5dbe1d076ba8c53fe9097ed251f16d13f448316

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931...
Arve Hjnnevg [Tue, 9 Aug 2016 21:24:24 +0000 (21:24 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931 am: 101c678909  -s ours am: e55418a857 am: 419626b496 am: 12151706b2 am: 899d956cf3  -s ours am: 66818cfeae
am: f10b164b00

Change-Id: I13bcf7dc4fa7acf44156510f073065d7c0881052

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36 -s ours am:...
Arve Hjnnevg [Tue, 9 Aug 2016 21:22:26 +0000 (21:22 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36  -s ours am: a82f82293a am: 1c220583e4 am: ce472fbb54  -s ours am: e8cb9c8982 am: 1414d7b372 am: b8d937caeb am: 1864a8748d  -s ours
am: a4ef62b859

Change-Id: Ia01791f2f6a16f4484fa0f965daf598d8a5bb30b

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36 -s ours am:...
Arve Hjnnevg [Tue, 9 Aug 2016 21:22:25 +0000 (21:22 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36  -s ours am: a82f82293a am: 1c220583e4 am: ce472fbb54  -s ours am: e8cb9c8982 am: 1414d7b372 am: b8d937caeb am: 1864a8748d  -s ours
am: a4ef62b859

Change-Id: I471e71c1abbb065d2e3c87671dadbff614fc4a9d

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36 -s ours am:...
Arve Hjnnevg [Tue, 9 Aug 2016 21:18:53 +0000 (21:18 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36  -s ours am: a82f82293a am: 1c220583e4 am: ce472fbb54  -s ours am: e8cb9c8982 am: 1414d7b372 am: b8d937caeb
am: 1864a8748d  -s ours

Change-Id: I2e022f5c528ded283a40ad3e3a4ac230070a242b

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931...
Arve Hjnnevg [Tue, 9 Aug 2016 21:16:24 +0000 (21:16 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931 am: 101c678909  -s ours am: e55418a857 am: 419626b496 am: 12151706b2 am: 899d956cf3  -s ours
am: 66818cfeae

Change-Id: Ie8be0fb9b943e5bc8b1046e8e3eb3384e52b223a

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931...
Arve Hjnnevg [Tue, 9 Aug 2016 21:16:24 +0000 (21:16 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931 am: 101c678909  -s ours am: e55418a857 am: 419626b496 am: 12151706b2 am: 899d956cf3  -s ours
am: 66818cfeae

Change-Id: Ide7a6b47d4a0027203741f12c8229ba3948cb3c0

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36 -s ours am:...
Arve Hjnnevg [Tue, 9 Aug 2016 21:16:23 +0000 (21:16 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36  -s ours am: a82f82293a am: 1c220583e4 am: ce472fbb54  -s ours am: e8cb9c8982 am: 1414d7b372
am: b8d937caeb

Change-Id: I82f6a95334c5c8e484260f120b54ac1d386274da

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36 -s ours am:...
Arve Hjnnevg [Tue, 9 Aug 2016 21:13:23 +0000 (21:13 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36  -s ours am: a82f82293a am: 1c220583e4 am: ce472fbb54  -s ours am: e8cb9c8982
am: 1414d7b372

Change-Id: I50541ba686cafded699568f710627bf3e4f8aa1d

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36 -s ours am:...
Arve Hjnnevg [Tue, 9 Aug 2016 21:10:26 +0000 (21:10 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36  -s ours am: a82f82293a am: 1c220583e4 am: ce472fbb54  -s ours
am: e8cb9c8982

Change-Id: I9445235baf1ea98e3e47af3034fa49b0593ae1b2

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931...
Arve Hjnnevg [Tue, 9 Aug 2016 21:10:26 +0000 (21:10 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931 am: 101c678909  -s ours am: e55418a857 am: 419626b496 am: 12151706b2
am: 899d956cf3  -s ours

Change-Id: I107ec23f410d6ee30603596e4bd4b93c93619791

8 years agoMerge "DO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8 am: a9963d...
Android Build Merger (Role) [Tue, 9 Aug 2016 21:07:43 +0000 (21:07 +0000)]
Merge "DO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8 am: a9963dcfb7 am: cac59eae3b am: 0c63d9490c  -s ours am: cc453b9926 am: d0081e169c" into nyc-mr1-dev-plus-aosp

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8 am: a9963dcfb7...
Arve Hjnnevg [Tue, 9 Aug 2016 21:07:37 +0000 (21:07 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8 am: a9963dcfb7 am: cac59eae3b am: 0c63d9490c  -s ours am: cc453b9926
am: d0081e169c

Change-Id: I1f4369f036c4146ffe39f30f1e60e15c48e3cd37

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36 -s ours am:...
Arve Hjnnevg [Tue, 9 Aug 2016 21:07:31 +0000 (21:07 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36  -s ours am: a82f82293a am: 1c220583e4
am: ce472fbb54  -s ours

Change-Id: I9ac9efe65b6985fc7bd4e7be8a37e471023bd450

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8 am: a9963dcfb7...
Arve Hjnnevg [Tue, 9 Aug 2016 21:07:25 +0000 (21:07 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8 am: a9963dcfb7 am: cac59eae3b am: 0c63d9490c  -s ours am: cc453b9926 am: 8ea9d9a8f9
am: ec6d0ac5c7

Change-Id: I4a2dca71addd5a3a5f442688a8314e5702497329

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931...
Arve Hjnnevg [Tue, 9 Aug 2016 21:07:23 +0000 (21:07 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931 am: 101c678909  -s ours am: e55418a857 am: 419626b496
am: 12151706b2

Change-Id: I0e550c834f988591d761a1830bee72e99be968f1

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36 -s ours am:...
Arve Hjnnevg [Tue, 9 Aug 2016 21:04:24 +0000 (21:04 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36  -s ours am: a82f82293a
am: 1c220583e4

Change-Id: Ie1ab626a476ecada3ed5171489dc3fec0cf5a1f5

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8 am: a9963dcfb7...
Arve Hjnnevg [Tue, 9 Aug 2016 21:04:24 +0000 (21:04 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8 am: a9963dcfb7 am: cac59eae3b am: 0c63d9490c  -s ours
am: cc453b9926

Change-Id: I6b8be55f4d748f243cb8aeddfb63d9b1740ee0ad

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931...
Arve Hjnnevg [Tue, 9 Aug 2016 21:04:24 +0000 (21:04 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931 am: 101c678909  -s ours am: e55418a857
am: 419626b496

Change-Id: Ibe41eb3a2c9a0e28211d546b6b79469bb0523d01

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8 am: a9963dcfb7...
Arve Hjnnevg [Tue, 9 Aug 2016 21:04:23 +0000 (21:04 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8 am: a9963dcfb7 am: cac59eae3b am: 0c63d9490c  -s ours am: cc453b9926
am: 8ea9d9a8f9

Change-Id: I3cbea8b6234ac366ac99dc45f57b54e0ddba1a11

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8 am: a9963dcfb7...
Arve Hjnnevg [Tue, 9 Aug 2016 21:01:24 +0000 (21:01 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8 am: a9963dcfb7 am: cac59eae3b am: 0c63d9490c  -s ours
am: cc453b9926

Change-Id: Ib6cd35f8e1fbabfeca37626854eba9c927b120ca

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36 -s ours
Arve Hjnnevg [Tue, 9 Aug 2016 21:01:23 +0000 (21:01 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: eb304f0a36  -s ours
am: a82f82293a

Change-Id: Ib91d630f70f4fa434915ac15938c7dca94fe3de5

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931...
Arve Hjnnevg [Tue, 9 Aug 2016 20:58:24 +0000 (20:58 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931 am: 101c678909  -s ours
am: e55418a857

Change-Id: If0008ff56fb3348ac1bef2c77e99032bf6d51680

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8 am: a9963dcfb7...
Arve Hjnnevg [Tue, 9 Aug 2016 20:58:24 +0000 (20:58 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8 am: a9963dcfb7 am: cac59eae3b
am: 0c63d9490c  -s ours

Change-Id: I2d17ab94a66c5ee9b5aa7d0bd8a89e31f39d7b9d

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931
Arve Hjnnevg [Tue, 9 Aug 2016 20:55:31 +0000 (20:55 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340 am: 171ab27931
am: 101c678909  -s ours

Change-Id: I3c98fc1516193caab37bcb9cf88ffe6104dd65b1

8 years agoServiceManager: Restore basic uid check am: 2b74d2c1d2 am: 3f505a247e
Arve Hjnnevg [Tue, 9 Aug 2016 20:55:24 +0000 (20:55 +0000)]
ServiceManager: Restore basic uid check am: 2b74d2c1d2 am: 3f505a247e
am: 3c9535fe33

Change-Id: I80a483caaeb2e8497991c4311d943dc7e8a4a2be

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check
Arve Hjnnevg [Tue, 9 Aug 2016 20:55:23 +0000 (20:55 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check
am: eb304f0a36  -s ours

Change-Id: I6bae641d0ec80aaba79b716ef8bcd46279aca0ed

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8 am: a9963dcfb7
Arve Hjnnevg [Tue, 9 Aug 2016 20:55:19 +0000 (20:55 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8 am: a9963dcfb7
am: cac59eae3b

Change-Id: I672617263a66261b36de2f3fb6c7829d39f87e51

8 years agoServiceManager: Restore basic uid check am: 2b74d2c1d2
Arve Hjnnevg [Tue, 9 Aug 2016 20:52:19 +0000 (20:52 +0000)]
ServiceManager: Restore basic uid check am: 2b74d2c1d2
am: 3f505a247e

Change-Id: Iae46cadfc90e7f8e13657978fab4e01cefb5b9ba

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8
Arve Hjnnevg [Tue, 9 Aug 2016 20:52:18 +0000 (20:52 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: f03ba2c0d8
am: a9963dcfb7

Change-Id: Id42cd61ca837cc5e9da644feaae10f8f7d0e6c11

8 years agoServiceManager: Restore basic uid check am: 2b74d2c1d2
Arve Hjnnevg [Tue, 9 Aug 2016 20:49:56 +0000 (20:49 +0000)]
ServiceManager: Restore basic uid check am: 2b74d2c1d2
am: 8039d6e068

Change-Id: I390b0dcc54c4bd949df775d82d267b14fe798e37

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340
Arve Hjnnevg [Tue, 9 Aug 2016 20:49:54 +0000 (20:49 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check am: 247ae46340
am: 171ab27931

Change-Id: I3cfc70e8fb1dd393a92ace283d36ee2b35585ea4

8 years agoServiceManager: Restore basic uid check
Arve Hjnnevg [Tue, 9 Aug 2016 20:49:53 +0000 (20:49 +0000)]
ServiceManager: Restore basic uid check
am: 2b74d2c1d2

Change-Id: I01ebfcff30a8b25e3d8435b96bd437fb6e41f8a5

8 years agoSF: Fix a couple of Layer ref count issues
Dan Stoza [Tue, 9 Aug 2016 20:21:03 +0000 (13:21 -0700)]
SF: Fix a couple of Layer ref count issues

This is an attempt at fixing two reference counting issues for Layers.

The first issue is that since we were holding an sp<IBinder> (really a
reference to a LayerCleaner) inside the layer state for deferred
transactions, there was a possibility that it could end up being the
last strong reference to the LayerCleaner such that when it was
destroyed while applying a non-deferred transaction, it would attempt
to grab the SurfaceFlinger main lock to destroy its Layer. Since this
occurred in the main SurfaceFlinger loop, which was already holding
the lock to process transactions, this would cause a deadlock.

To fix this, the sp<IBinder> inside the layer state was changed to a
wp<IBinder>, only being promoted when it actually needs to be accessed
(i.e., when the deferred transaction is created).

The second issue is that we were promoting and holding a strong
reference to a Layer before calling into SurfaceFlinger to destroy it
on the onLayerDestroyed path (triggered when a LayerCleaner is
destroyed). After returning from the attempt to grab the SurfaceFlinger
main lock, it was possible that this strong reference was the last one
keeping the Layer alive, and destroying it at this point could cause
the HWC2 version of the layer to be destroyed at effectively any point,
even between validate/present.

To fix this, the promotion of the weak Layer reference was moved inside
the critical section where the SurfaceFlinger main lock is held.

Bug: 30503916
Bug: 30281222
Change-Id: I1c6a271f9a7b5d6eea9a9db61d971f262d0cfe84

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check
Arve Hjnnevg [Tue, 9 Aug 2016 20:46:49 +0000 (20:46 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check
am: 247ae46340

Change-Id: I67af781d5876b13daca82cb7e947397c94cd62e7

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check
Arve Hjnnevg [Tue, 9 Aug 2016 20:46:49 +0000 (20:46 +0000)]
DO NOT MERGE ServiceManager: Restore basic uid check
am: f03ba2c0d8

Change-Id: I1435bfcd119116cdd242cf7714ef9535d7abc6fa

8 years agoServiceManager: Restore basic uid check
Arve Hjnnevg [Tue, 9 Aug 2016 20:46:48 +0000 (20:46 +0000)]
ServiceManager: Restore basic uid check
am: 2b74d2c1d2

Change-Id: I27c3515350a64177f2e1de2599fe48eda7b3a739

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check
Arve Hjønnevåg [Mon, 1 Aug 2016 23:05:17 +0000 (16:05 -0700)]
DO NOT MERGE ServiceManager: Restore basic uid check

Prevent apps from registering services without relying on selinux checks.

Bug: 29431260

Change-Id: I38c6e8bc7f7cba1cbd3568e8fed1ae7ac2054a9b

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check
Arve Hjønnevåg [Mon, 1 Aug 2016 23:05:17 +0000 (16:05 -0700)]
DO NOT MERGE ServiceManager: Restore basic uid check

Prevent apps from registering services without relying on selinux checks.

Bug: 29431260

Change-Id: I38c6e8bc7f7cba1cbd3568e8fed1ae7ac2054a9b

8 years agoDO NOT MERGE ServiceManager: Restore basic uid check
Arve Hjønnevåg [Mon, 1 Aug 2016 23:05:17 +0000 (16:05 -0700)]
DO NOT MERGE ServiceManager: Restore basic uid check

Prevent apps from registering services without relying on selinux checks.

Bug: 29431260

Change-Id: I38c6e8bc7f7cba1cbd3568e8fed1ae7ac2054a9b

8 years agoMerge "Don't use profiles with vm safe mode" into nyc-mr1-dev am: cf6e673296
Mathieu Chartier [Sat, 6 Aug 2016 02:08:22 +0000 (02:08 +0000)]
Merge "Don't use profiles with vm safe mode" into nyc-mr1-dev am: cf6e673296
am: 98051e00c8

Change-Id: Id8232d97b5b835c52c752998304387de5c355782

8 years agoDon't use profiles with vm safe mode am: d46d37b8d4
Mathieu Chartier [Sat, 6 Aug 2016 02:08:22 +0000 (02:08 +0000)]
Don't use profiles with vm safe mode am: d46d37b8d4
am: cc772f3f63

Change-Id: I086faba35309013f581f53439e90441e249a94e4

8 years agoMerge "Don't use profiles with vm safe mode" into nyc-mr1-dev
Mathieu Chartier [Sat, 6 Aug 2016 02:04:58 +0000 (02:04 +0000)]
Merge "Don't use profiles with vm safe mode" into nyc-mr1-dev
am: cf6e673296

Change-Id: I2a8761cd74641e4cbec312b34536de6f33b50a09

8 years agoDon't use profiles with vm safe mode
Mathieu Chartier [Sat, 6 Aug 2016 02:04:58 +0000 (02:04 +0000)]
Don't use profiles with vm safe mode
am: d46d37b8d4

Change-Id: Ib91e3020496903d43458fee944770744be918e2c

8 years agoMerge "Don't use profiles with vm safe mode" into nyc-mr1-dev
Mathieu Chartier [Sat, 6 Aug 2016 01:56:54 +0000 (01:56 +0000)]
Merge "Don't use profiles with vm safe mode" into nyc-mr1-dev

8 years agoDon't use profiles with vm safe mode
Mathieu Chartier [Sat, 6 Aug 2016 00:48:12 +0000 (17:48 -0700)]
Don't use profiles with vm safe mode

vm safe mode uses interpret only compiler filter, this filter will
generate a full app image if a profile is also passed down. App
image generation without a profile currently has a bug where uses
library is not pruned correctly.

Bug: 30688277

Change-Id: I60d87d698789583b8ab797eb47d031c96caf6d9b
Test: N5X boot, package compile speed-profile comb.BBClient

8 years agoresolve merge conflicts of 35ea9f8 to nyc-mr1-dev-plus-aosp
Dan Willemsen [Fri, 5 Aug 2016 23:08:04 +0000 (16:08 -0700)]
resolve merge conflicts of 35ea9f8 to nyc-mr1-dev-plus-aosp

Change-Id: I6f0ff0ecfd9c91adc46c059bab440aab6d666e62

8 years agoresolve merge conflicts of 0783d5f to stage-aosp-master
Dan Willemsen [Fri, 5 Aug 2016 22:57:47 +0000 (22:57 +0000)]
resolve merge conflicts of 0783d5f to stage-aosp-master
am: 2a001e8bfe

Change-Id: Ib0fc16f4a35761c0b2a3e3273800e1f27e527577

8 years agoresolve merge conflicts of 0783d5f to stage-aosp-master
Dan Willemsen [Fri, 5 Aug 2016 21:06:41 +0000 (14:06 -0700)]
resolve merge conflicts of 0783d5f to stage-aosp-master

Change-Id: I4fe9c0391d6d41bae5fbbb0df6e00e264e87649f

8 years agoMerge "Start converting Android.mk to Android.bp"
Dan Willemsen [Fri, 5 Aug 2016 20:44:52 +0000 (20:44 +0000)]
Merge "Start converting Android.mk to Android.bp"

8 years agoMerge "Tune SensorService thread priority, lower sensor event latency" into nyc-mr1...
Peng Xu [Fri, 5 Aug 2016 18:21:16 +0000 (18:21 +0000)]
Merge "Tune SensorService thread priority, lower sensor event latency" into nyc-mr1-dev am: 283854bb86
am: a06c38ac2c

Change-Id: Ic72025a410c09096c5a4425840827fbd10c144f0