OSDN Git Service

android-x86/frameworks-native.git
5 years agoMerge "dumpstate: handle errors gracefully"
Nandana Dutt [Mon, 4 Mar 2019 15:09:26 +0000 (07:09 -0800)]
Merge "dumpstate: handle errors gracefully"
am: e953b04799

Change-Id: I6d55aa42a196ac53883057800596b0d065ce605c

5 years agoMerge "dumpstate: handle errors gracefully"
Treehugger Robot [Mon, 4 Mar 2019 14:58:30 +0000 (14:58 +0000)]
Merge "dumpstate: handle errors gracefully"

5 years agoMerge "Ensure we select the right execution binary for all dexopt commands"
Calin Juravle [Sat, 2 Mar 2019 02:49:00 +0000 (18:49 -0800)]
Merge "Ensure we select the right execution binary for all dexopt commands"
am: 3e167da916

Change-Id: I8b32fe8ad5a98e60ca353029cfa6933e59cee315

5 years agoMerge "Ensure we select the right execution binary for all dexopt commands"
Calin Juravle [Sat, 2 Mar 2019 02:36:00 +0000 (02:36 +0000)]
Merge "Ensure we select the right execution binary for all dexopt commands"

5 years agoEnsure we select the right execution binary for all dexopt commands
Calin Juravle [Fri, 1 Mar 2019 04:29:41 +0000 (20:29 -0800)]
Ensure we select the right execution binary for all dexopt commands

Some devices may not have the debug version of the binaries, so even if we
are asked to use them we can't...

Unify the logic which decides what execution binary to use and apply it to
all commands (dex2oat, profman, dexoptanalyzer).

(follow up fixes to 67a14f6584d6108c29b923ce6a77c0ed5cf347dc)

Test: installd tests
Bug: 124009579
Change-Id: Iec439c0ed63e709cdf35b7f718533eafd429b9c2

5 years agoMerge "Update fence event path for kernel 4.10+"
Jesse Hall [Fri, 1 Mar 2019 21:07:50 +0000 (13:07 -0800)]
Merge "Update fence event path for kernel 4.10+"
am: f3e024a065

Change-Id: I885b096a6b30e9281293d088595f0b6e66005ae6

5 years agoMerge "Update fence event path for kernel 4.10+"
Treehugger Robot [Fri, 1 Mar 2019 20:56:05 +0000 (20:56 +0000)]
Merge "Update fence event path for kernel 4.10+"

5 years agoUpdate fence event path for kernel 4.10+
Jesse Hall [Tue, 26 Feb 2019 00:24:10 +0000 (16:24 -0800)]
Update fence event path for kernel 4.10+

The sysfs path for controlling dma fence events changed yet again in
Linux 4.10, see kernel commit f54d1867005c3.

Test: adb shell atrace --list_categories | grep sync
Test: external/chromium-trace/systrace.py sync, check for dma_fence
      events in trace.html's event list
Change-Id: I45905cf199d5de3d5679151f19f8aa693adea5e1

5 years agodumpstate: handle errors gracefully
Nandana Dutt [Fri, 22 Feb 2019 15:12:35 +0000 (15:12 +0000)]
dumpstate: handle errors gracefully

Return error codes instead of exiting.

Fixes: 123584708
Test: adb shell
/data/nativetest64/dumpstate_smoke_test/dumpstate_smoke_test &&
adb shell /data/nativetest64/dumpstate_test/dumpstate_test

Change-Id: I2b5fcad4e7a7369e02f0c8f5532e0fc69d45480b

5 years agoMerge "Use DEX2OATBOOTCLASSPATH in installd."
Nicolas Geoffray [Tue, 26 Feb 2019 21:01:35 +0000 (13:01 -0800)]
Merge "Use DEX2OATBOOTCLASSPATH in installd."
am: 95ea7b751a

Change-Id: Iddddc8bbef7feb2188b991d46ef4c3d28d50011c

5 years agoMerge "Use DEX2OATBOOTCLASSPATH in installd."
Nicolas Geoffray [Tue, 26 Feb 2019 20:38:32 +0000 (20:38 +0000)]
Merge "Use DEX2OATBOOTCLASSPATH in installd."

5 years agoMerge "Query the enable_apex_image flag from native experiment."
Nicolas Geoffray [Tue, 26 Feb 2019 15:38:26 +0000 (07:38 -0800)]
Merge "Query the enable_apex_image flag from native experiment."
am: 2cb4a0538f

Change-Id: I35770107e30df01ef38c64926eec072b2a76a951

5 years agoMerge "Query the enable_apex_image flag from native experiment."
Nicolas Geoffray [Tue, 26 Feb 2019 15:26:17 +0000 (15:26 +0000)]
Merge "Query the enable_apex_image flag from native experiment."

5 years agoUse DEX2OATBOOTCLASSPATH in installd.
Nicolas Geoffray [Fri, 22 Feb 2019 21:42:45 +0000 (21:42 +0000)]
Use DEX2OATBOOTCLASSPATH in installd.

Bug: 119800099
Bug: 122937705
Test: dexopt_test
Change-Id: Ie31762910a51ddb1211eed6a24456f0a70379d9c

5 years agoMerge "Whitelist the staging directory in installd"
Shafik Nassar [Tue, 26 Feb 2019 11:15:35 +0000 (03:15 -0800)]
Merge "Whitelist the staging directory in installd"
am: 99ba118644

Change-Id: I5be2f0d4a82e7e352453371a3ca5f8d6e46ab2d3

5 years agoMerge "Whitelist the staging directory in installd"
Shafik Nassar [Tue, 26 Feb 2019 10:59:50 +0000 (10:59 +0000)]
Merge "Whitelist the staging directory in installd"

5 years agoQuery the enable_apex_image flag from native experiment.
Nicolas Geoffray [Mon, 25 Feb 2019 13:31:10 +0000 (13:31 +0000)]
Query the enable_apex_image flag from native experiment.

Bug: 119800099
Test: m
Change-Id: Ibcd90840b4342fae14307ef7f30eec96d58a698b

5 years agoMerge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master" into stage-aosp...
Xin Li [Sat, 23 Feb 2019 00:39:18 +0000 (00:39 +0000)]
Merge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master" into stage-aosp-master

5 years agoMerge "Rename IDumpstateListener errorcode"
Nandana Dutt [Fri, 22 Feb 2019 08:54:16 +0000 (00:54 -0800)]
Merge "Rename IDumpstateListener errorcode"
am: d7d075fbf6

Change-Id: I2d37f696f9236fe36378a56ee5a0937771ce43a1

5 years agoMerge "Rename IDumpstateListener errorcode"
Nandana Dutt [Fri, 22 Feb 2019 08:43:48 +0000 (08:43 +0000)]
Merge "Rename IDumpstateListener errorcode"

5 years agoMerge "Log duration reporter to logcat"
Nandana Dutt [Thu, 21 Feb 2019 19:13:47 +0000 (11:13 -0800)]
Merge "Log duration reporter to logcat"
am: 86d900ff2d

Change-Id: I2ac8e95d3700764b2e98a49bfcd40fe8dbdf4a18

5 years agoMerge "Log duration reporter to logcat"
Treehugger Robot [Thu, 21 Feb 2019 19:00:12 +0000 (19:00 +0000)]
Merge "Log duration reporter to logcat"

5 years agoMerge "installd: parameterize user data snapshots with snapshot_id"
Nikita Ioffe [Thu, 21 Feb 2019 18:43:03 +0000 (10:43 -0800)]
Merge "installd: parameterize user data snapshots with snapshot_id"
am: 8a3c8b1a94

Change-Id: Id1393797cda2a83ae39c4dd016657b9ad57b451a

5 years agoDO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master
Xin Li [Thu, 21 Feb 2019 17:25:01 +0000 (09:25 -0800)]
DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master

Bug: 120848293
Change-Id: Icba28487cde3a6e33898450eaf53ee2be58a3dc8

5 years agoMerge "installd: parameterize user data snapshots with snapshot_id"
Treehugger Robot [Thu, 21 Feb 2019 16:28:22 +0000 (16:28 +0000)]
Merge "installd: parameterize user data snapshots with snapshot_id"

5 years agoRename IDumpstateListener errorcode
Nandana Dutt [Thu, 21 Feb 2019 16:10:10 +0000 (16:10 +0000)]
Rename IDumpstateListener errorcode

BUG:123571915
Test: adb shell /data/nativetest64/dumpstate_smoke_test/dumpstate_smoke_test --gtest_filter=DumpstateBinderTest.*
Change-Id: I5533f3bfed647a4068893b61dee371f5a4678650

5 years agoLog duration reporter to logcat
Nandana Dutt [Thu, 21 Feb 2019 13:16:07 +0000 (13:16 +0000)]
Log duration reporter to logcat

This is to help debug bugreport generation latency
BUG: 124089395
BUG: 123315882
Test: manual

Change-Id: I65b40054d48d36c7b51b3b78feac2295266a4720

5 years agoinstalld: parameterize user data snapshots with snapshot_id
Nikita Ioffe [Mon, 4 Feb 2019 11:06:37 +0000 (11:06 +0000)]
installd: parameterize user data snapshots with snapshot_id

- snapshot_id will be provided by RollbackManagerService and for a given
  rollback will be equal to its rollback_id.
- snapshotAppData now creates a folder to snapshot data to, in case it
  does not exist.
- removed ceDataInode from restoreAppDataSnapshot API, since it's only
  called if users phone is unlocked, meaning that CE data is available and
  doesn't require inode to be accessed.
- refactored installd_service_test to reduce test set up boilerplate.
- added a test to cover case when snapshots for different packages have
  the same snapshot_id.

Bug: 124029909
Test: installd_utils_test installd_service_test, RollbackTest
Change-Id: I4177a44a60cdfdc5429a28c613ce661b24482b8b
Merged-In: I4177a44a60cdfdc5429a28c613ce661b24482b8b
(cherry picked from commit b68f0d14931905472b93ad08a753a01a33bd315b)

5 years agoMerge "dumpstate: Fix IO Errors during zip writing."
Narayan Kamath [Thu, 21 Feb 2019 10:07:52 +0000 (02:07 -0800)]
Merge "dumpstate: Fix IO Errors during zip writing."
am: 01f59ce0f6

Change-Id: I4a051d10c07877ea4fcfa328bef18c4d346c9de1

5 years agoMerge "dumpstate: Fix IO Errors during zip writing."
Narayan Kamath [Thu, 21 Feb 2019 10:00:34 +0000 (10:00 +0000)]
Merge "dumpstate: Fix IO Errors during zip writing."

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190205.001 into master"
Xin Li [Wed, 20 Feb 2019 16:36:13 +0000 (08:36 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190205.001 into master"
am: f93e7adddd -s ours
am skip reason: subject contains skip directive

Change-Id: I5a4bd6710b8230d7b0129b82436e654d89783e07

5 years agoMerge "DO NOT MERGE - Merge PPRL.190205.001 into master"
Xin Li [Wed, 20 Feb 2019 16:25:59 +0000 (16:25 +0000)]
Merge "DO NOT MERGE - Merge PPRL.190205.001 into master"

5 years agoMerge "Installd: Add more compilation-related presubmits"
Andreas Gampe [Wed, 20 Feb 2019 16:10:48 +0000 (08:10 -0800)]
Merge "Installd: Add more compilation-related presubmits"
am: e736b8fe32

Change-Id: I198692a7fcc8469bc12dca46492dda0c802d59f1

5 years agoMerge "Installd: Add more compilation-related presubmits"
Treehugger Robot [Wed, 20 Feb 2019 15:56:58 +0000 (15:56 +0000)]
Merge "Installd: Add more compilation-related presubmits"

5 years agoMerge "Revert^2: dexopt: Fix target-sdk-version argument creation"
David Brazdil [Wed, 20 Feb 2019 15:33:56 +0000 (07:33 -0800)]
Merge "Revert^2: dexopt: Fix target-sdk-version argument creation"
am: e9d502a4d0

Change-Id: Ia61f9278c42fad65c91a5465ce5844c17c5399fa

5 years agoMerge "Revert^2: dexopt: Fix target-sdk-version argument creation"
Treehugger Robot [Wed, 20 Feb 2019 15:24:32 +0000 (15:24 +0000)]
Merge "Revert^2: dexopt: Fix target-sdk-version argument creation"

5 years agoWhitelist the staging directory in installd
shafik [Tue, 19 Feb 2019 12:19:48 +0000 (12:19 +0000)]
Whitelist the staging directory in installd

Make the path /data/pkg_staging a valid path for APK and APEX files, inorder
to allow the deletion of APEX files after their corresponding sessions
reach a final state.

Bug: 123624108
Test: manual - trigger APEX deletion from the mentioned directory
Change-Id: I9bf03c924080e8c75a6c0e9d163460d365061487

5 years agoMerge changes I33f0b3a0,I772b7981
Nandana Dutt [Wed, 20 Feb 2019 14:12:03 +0000 (06:12 -0800)]
Merge changes I33f0b3a0,I772b7981
am: b4406da4a5

Change-Id: If513e7528a851fd1f70f1a3acf2c711f8cbe4fa8

5 years agoMerge changes I33f0b3a0,I772b7981
Nandana Dutt [Wed, 20 Feb 2019 14:03:55 +0000 (14:03 +0000)]
Merge changes I33f0b3a0,I772b7981

* changes:
  Make dumpstate listener callbacks synchronous
  dumpstate: enforce oneshot

5 years agoRevert^2: dexopt: Fix target-sdk-version argument creation
David Brazdil [Wed, 20 Feb 2019 10:39:34 +0000 (10:39 +0000)]
Revert^2: dexopt: Fix target-sdk-version argument creation

Refactor CL I8fdf96cfe0343042d1a868ca09e6c6b9a629b967 has a typo
which leaves the target-sdk-version argument of dex2oat always empty.
Fix the issue.

This reverts commit 142836515437bec4545d982387895190b8e5c678.

Test: manual inspection of command line arguments
Test: adb shell pm compile -m speed <package>
Change-Id: I6b92e8c595e3c00d71ab13d976ee43f58d1a0013

5 years agoMake dumpstate listener callbacks synchronous
Nandana Dutt [Tue, 19 Feb 2019 13:05:37 +0000 (13:05 +0000)]
Make dumpstate listener callbacks synchronous

Dumpstate binder service is oneshot and needs to exit in error
conditions, often right after calling onError. This can make the event
handling on client complex since there could be a race between death
recipient and onError. To make things simpler make onError synchronous.
To keep it consistent make the other callbacks synchronous as well.

Also add a new error code to signal another bugreport is running.

BUG: 123571915
Test: adb shell /data/nativetest64/dumpstate_smoke_test/dumpstate_smoke_test --gtest_filter=DumpstateBinderTest.*

Change-Id: I33f0b3a080ba493dba3521439daa6a46354a8470
(cherry picked from commit e64c3aa814b8cbd62907b8026899533a0f24c8f6)

5 years agodumpstate: enforce oneshot
Nandana Dutt [Fri, 15 Feb 2019 16:13:53 +0000 (16:13 +0000)]
dumpstate: enforce oneshot

Ensure the service exits after errors as well as after successful
finish as a oneshot service should.

While at it also move remove(file) to unlink(file) and fix an error
in checking the return value of unlink.

BUG: 123571915
Test: adb shell /data/nativetest64/dumpstate_smoke_test/dumpstate_smoke_test --gtest_filter=DumpstateBinderTest.*
Change-Id: I772b7981cd3b2f7c285ab980495d5539d57ebf46

5 years agoMerge "Add Winscope report to the bugreport when using continuous mode"
Nataniel Borges [Tue, 19 Feb 2019 22:38:21 +0000 (14:38 -0800)]
Merge "Add Winscope report to the bugreport when using continuous mode"
am: 27c8800af0

Change-Id: I72963b8502b46d9f68ff67cfdfe67c4463971a87

5 years agoMerge "Revert "dexopt: Fix target-sdk-version argument creation""
Andreas Gampe [Tue, 19 Feb 2019 22:37:16 +0000 (14:37 -0800)]
Merge "Revert "dexopt: Fix target-sdk-version argument creation""
am: 683f3188c9

Change-Id: I157f552d4a1f52fd85f64aa92096b6a44ee1b90b

5 years agoMerge "Add Winscope report to the bugreport when using continuous mode"
Treehugger Robot [Tue, 19 Feb 2019 22:21:05 +0000 (22:21 +0000)]
Merge "Add Winscope report to the bugreport when using continuous mode"

5 years agoAdd Winscope report to the bugreport when using continuous mode
Nataniel Borges [Sat, 26 Jan 2019 00:37:16 +0000 (16:37 -0800)]
Add Winscope report to the bugreport when using continuous mode

When logging window traces in continuous mode the window manager doesn't
continuously save data to disk.

The window traces (continuous or not) have to be present in the bug
report.

Add instruction to dump the window trace during bugreporting.

To activate continuous trace:
- adb shell cmd window tracing continuous true
- adb shell cmd window tracing start

To manually dump window trace:
 - adb shell dumpsys window trace

Test: Flash a device. Set continuous mode. Start the trace. Trigger a
bugreport. Check if the zip file contains the a wm_trace.pb under
FS/data/misc/wmtrace

Change-Id: I1af0b3b37e48ba026fa64515d7e330a2ba7663b6

5 years agoMerge "Revert "dexopt: Fix target-sdk-version argument creation""
Andreas Gampe [Tue, 19 Feb 2019 22:19:28 +0000 (22:19 +0000)]
Merge "Revert "dexopt: Fix target-sdk-version argument creation""

5 years agoInstalld: Add more compilation-related presubmits
Andreas Gampe [Tue, 19 Feb 2019 22:11:59 +0000 (14:11 -0800)]
Installd: Add more compilation-related presubmits

Bug: 124771423
Test: TH
Change-Id: I878040cfe32c790b7adf0d7865cf41d60d421547

5 years agoRevert "dexopt: Fix target-sdk-version argument creation"
Andreas Gampe [Tue, 19 Feb 2019 22:01:51 +0000 (22:01 +0000)]
Revert "dexopt: Fix target-sdk-version argument creation"

This reverts commit d458a4f956193afdb52138606f6e61fc00b363bf.

Reason for revert: Breaks tests and manual compile

Bug: 124771423
Change-Id: Icb0fba371ffdc7464f8df21c6b92c7d7faf568f8
Test: N/A

5 years agodumpstate: Fix IO Errors during zip writing.
Narayan Kamath [Fri, 8 Feb 2019 18:18:08 +0000 (18:18 +0000)]
dumpstate: Fix IO Errors during zip writing.

We need to always call FinishEntry, even when the poll times
out for whatever unrelated reason.

Bug: 124089395
Test: manual
Test: adb shell /data/nativetest64/dumpstate_test/dumpstate_test
Test: adb shell /data/nativetest64/dumpstate_smoke_test/dumpstate_smoke_test

Change-Id: I039f3b049042988e5e520771b45d0b511d11c461

5 years agoMerge "Add a dalvik.vm.boot-image option for zygote and installd."
Nicolas Geoffray [Tue, 19 Feb 2019 14:33:37 +0000 (06:33 -0800)]
Merge "Add a dalvik.vm.boot-image option for zygote and installd."
am: a2849b1aec

Change-Id: I4be1fc0a076c76c6de575fd3f832be87e9b273e3

5 years agoMerge "Add a dalvik.vm.boot-image option for zygote and installd."
Nicolas Geoffray [Tue, 19 Feb 2019 14:27:26 +0000 (14:27 +0000)]
Merge "Add a dalvik.vm.boot-image option for zygote and installd."

5 years agoAdd a dalvik.vm.boot-image option for zygote and installd.
Nicolas Geoffray [Thu, 14 Feb 2019 15:57:47 +0000 (15:57 +0000)]
Add a dalvik.vm.boot-image option for zygote and installd.

To experiment with a non-fully AOT'ed boot image.

Bug: 119800099
Test: adb shell setprop dalvik.vm.boot-image "/system/framework/boot.art"
Change-Id: I7c5bb0bf38ffc988734e691dff90866aead3a5b7

5 years agoMerge "dexopt: Fix target-sdk-version argument creation"
David Brazdil [Tue, 19 Feb 2019 09:59:43 +0000 (01:59 -0800)]
Merge "dexopt: Fix target-sdk-version argument creation"
am: cf867594cf

Change-Id: Ibd11be8b186991c6c1571e0b147a75cc44a95303

5 years agoMerge "dexopt: Fix target-sdk-version argument creation"
David Brazdil [Tue, 19 Feb 2019 09:53:39 +0000 (09:53 +0000)]
Merge "dexopt: Fix target-sdk-version argument creation"

5 years agoDO NOT MERGE - Merge PPRL.190205.001 into master
Xin Li [Mon, 18 Feb 2019 23:58:34 +0000 (15:58 -0800)]
DO NOT MERGE - Merge PPRL.190205.001 into master

Bug: 124234733
Change-Id: Ie986006f23ae05d80cc1c69eb9fbf20c5bd5d1a7

5 years agodexopt: Fix target-sdk-version argument creation
David Brazdil [Mon, 18 Feb 2019 15:24:41 +0000 (15:24 +0000)]
dexopt: Fix target-sdk-version argument creation

Refactor CL I8fdf96cfe0343042d1a868ca09e6c6b9a629b967 has a typo
which leaves the target-sdk-version argument of dex2oat always empty.
Fix the issue.

Test: manual inspection of command line arguments
Change-Id: Ibeff04758dabacf4ea04fd9e54976798fcba10f1

5 years agoMerge "dumpstate: format readme"
Nandana Dutt [Mon, 18 Feb 2019 10:55:39 +0000 (02:55 -0800)]
Merge "dumpstate: format readme"
am: 0119e28e9e

Change-Id: I4d736a374a5c3405f1ecc0e85a4965c1e1f7ddd3

5 years agoMerge "dumpstate: format readme"
Treehugger Robot [Mon, 18 Feb 2019 10:52:27 +0000 (10:52 +0000)]
Merge "dumpstate: format readme"

5 years agoMerge "Fix dumpstate smoke test"
Nandana Dutt [Mon, 18 Feb 2019 09:07:29 +0000 (01:07 -0800)]
Merge "Fix dumpstate smoke test"
am: 917b4d4392

Change-Id: Idaaf794a1a5bc487cee938c11ee913c147f0ac1a

5 years agoMerge "Fix dumpstate smoke test"
Treehugger Robot [Mon, 18 Feb 2019 09:01:18 +0000 (09:01 +0000)]
Merge "Fix dumpstate smoke test"

5 years agoMerge "libbinder_ndk: AServiceManager_checkService # apex"
Steven Moreland [Sat, 16 Feb 2019 01:58:25 +0000 (17:58 -0800)]
Merge "libbinder_ndk: AServiceManager_checkService # apex"
am: 7d3f8168e0

Change-Id: I13c6895098e3ed908563207860dbe304c63ee681

5 years agoMerge "libbinder_ndk: AServiceManager_checkService # apex"
Treehugger Robot [Sat, 16 Feb 2019 01:44:15 +0000 (01:44 +0000)]
Merge "libbinder_ndk: AServiceManager_checkService # apex"

5 years agoMerge "Add xfrm stats to dumpstate"
Benedict Wong [Fri, 15 Feb 2019 18:55:33 +0000 (10:55 -0800)]
Merge "Add xfrm stats to dumpstate"
am: 661d91e832

Change-Id: Id935abb239175464161d44f08dcd1c668a10d13e

5 years agolibbinder_ndk: AServiceManager_checkService # apex
Steven Moreland [Fri, 15 Feb 2019 18:53:08 +0000 (10:53 -0800)]
libbinder_ndk: AServiceManager_checkService # apex

Feature parity, for faster loading times, etc..

Bug: N/A (requested for use in libnetd_resolv)
Test: ./runtests.sh, noting specifically:
[ RUN      ] NdkBinder.CheckServiceThatDoesntExist
[       OK ] NdkBinder.CheckServiceThatDoesntExist (0 ms)
[ RUN      ] NdkBinder.CheckServiceThatDoesExist
[       OK ] NdkBinder.CheckServiceThatDoesExist (0 ms)

Change-Id: I36b2a7420f5dd374e6b60898a778bbcedb9bd406

5 years agoMerge "Add xfrm stats to dumpstate"
Benedict Wong [Fri, 15 Feb 2019 18:41:07 +0000 (18:41 +0000)]
Merge "Add xfrm stats to dumpstate"

5 years agoFix dumpstate smoke test
Nandana Dutt [Fri, 15 Feb 2019 15:24:24 +0000 (15:24 +0000)]
Fix dumpstate smoke test

run_main exits when finished, which is suitable if we want to run
assertions on bugreport file. Instead call an intermediate function.

Test: adb shell /data/nativetest64/dumpstate_smoke_test/dumpstate_smoke_test
Change-Id: I43708325dcaaf8f0f1ca59f181c216bfb25d28bf

5 years agoMerge "dumpstate: Update readme"
Nandana Dutt [Fri, 15 Feb 2019 15:20:50 +0000 (07:20 -0800)]
Merge "dumpstate: Update readme"
am: afff99c55a

Change-Id: Id8061b2a2088d4b0d39a8c178bf1da2271991760

5 years agoMerge "dumpstate: Update readme"
Treehugger Robot [Fri, 15 Feb 2019 15:07:35 +0000 (15:07 +0000)]
Merge "dumpstate: Update readme"

5 years agodumpstate: format readme
Nandana Dutt [Fri, 15 Feb 2019 10:07:23 +0000 (10:07 +0000)]
dumpstate: format readme

Test: n/a
Change-Id: I89359eca7a822098fd06326130ab63f6c5eb88ff

5 years agodumpstate: Update readme
Nandana Dutt [Fri, 15 Feb 2019 10:01:41 +0000 (10:01 +0000)]
dumpstate: Update readme

Add commands to update the shared libraries for incremental development.

Test: n/a
Change-Id: I6118db5cab4ffa06dfa59e05bf7b2ca87865aeb0

5 years agoMerge "DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into stage-aosp...
Xin Li [Thu, 14 Feb 2019 22:11:34 +0000 (22:11 +0000)]
Merge "DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into stage-aosp-master" into stage-aosp-master

5 years agoMerge "Call dmabuf_dump tool in dumpstate"
Erick Reyes [Wed, 13 Feb 2019 23:06:09 +0000 (15:06 -0800)]
Merge "Call dmabuf_dump tool in dumpstate"
am: 8678bdeb41

Change-Id: I7449d290feb58fd00d61a7aa2d59c04e4d0f36de

5 years agoMerge "Call dmabuf_dump tool in dumpstate"
Treehugger Robot [Wed, 13 Feb 2019 22:39:49 +0000 (22:39 +0000)]
Merge "Call dmabuf_dump tool in dumpstate"

5 years agoMerge changes from topic "cut_dependency"
Jiyong Park [Wed, 13 Feb 2019 03:14:35 +0000 (19:14 -0800)]
Merge changes from topic "cut_dependency"
am: 1e29946a3e

Change-Id: Id38b33ef756ba41f51c161ef247952c387512b2c

5 years agoCut the static deps from libvulkan to libnativeloader and libnativebridge
Jiyong Park [Wed, 13 Feb 2019 03:13:13 +0000 (19:13 -0800)]
Cut the static deps from libvulkan to libnativeloader and libnativebridge
am: 2d81f3c409

Change-Id: Ibe74e66eef1ac6fb90c9b0ead672ec65e595506c

5 years agoMerge changes from topic "cut_dependency"
Treehugger Robot [Wed, 13 Feb 2019 02:17:34 +0000 (02:17 +0000)]
Merge changes from topic "cut_dependency"

* changes:
  Revert "Delay start of surfaceflinger until after the Runtime APEX is mounted."
  Cut the static deps from libvulkan to libnativeloader and libnativebridge

5 years agoCall dmabuf_dump tool in dumpstate
Erick Reyes [Mon, 11 Feb 2019 22:46:36 +0000 (14:46 -0800)]
Call dmabuf_dump tool in dumpstate

This tool will dump shared buffer information on bug reports. Since it
is being rolled out on specific products, look for the binary in
/product/bin and execute it if found.

Bug: 63860998

Change-Id: If6e4ff48d3bc62e1fa7a88f16cc6ab0d5b05176f
Signed-off-by: Erick Reyes <erickreyes@google.com>
5 years agoDO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into stage-aosp-master
Xin Li [Tue, 12 Feb 2019 17:53:40 +0000 (09:53 -0800)]
DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into stage-aosp-master

Bug: 124234733
Change-Id: Iff213d95a3da69f58cd95afd129323ad7613c8e4

5 years agoMerge "libbinder_ndk: vendor available"
Steven Moreland [Tue, 12 Feb 2019 17:45:35 +0000 (09:45 -0800)]
Merge "libbinder_ndk: vendor available"
am: 658187ca59

Change-Id: I59fdae284484900e7df197c985af881edc46b108

5 years agoMerge "libbinder_ndk: vendor available"
Steven Moreland [Tue, 12 Feb 2019 17:28:43 +0000 (17:28 +0000)]
Merge "libbinder_ndk: vendor available"

5 years agoMerge "Clear BOOTCLASSPATH for APP AOT compilation."
Vladimir Marko [Tue, 12 Feb 2019 13:57:56 +0000 (05:57 -0800)]
Merge "Clear BOOTCLASSPATH for APP AOT compilation."
am: 96602ece01

Change-Id: I4dfd48704a338117507c2b433ee62e2f240e0104

5 years agoMerge "Clear BOOTCLASSPATH for APP AOT compilation."
Vladimir Marko [Tue, 12 Feb 2019 13:45:57 +0000 (13:45 +0000)]
Merge "Clear BOOTCLASSPATH for APP AOT compilation."

5 years agoCut the static deps from libvulkan to libnativeloader and libnativebridge
Jiyong Park [Mon, 28 Jan 2019 15:36:19 +0000 (00:36 +0900)]
Cut the static deps from libvulkan to libnativeloader and libnativebridge

The dependencies are replaced with *_lazy libraries which dynamically
load and links to the real libraries at runtime using dlopen and dlsym.

This allows libvulkan to be used by early processes that are executed
before the activation of the runtime APEX where libnativeloader and
libnativebridge are provided.

Bug: 123403798
Test: m
Test: device boots to the UI
Change-Id: Id55e7b8b0269b1f39917cf9f5c57f55218a67fc4

5 years agoRevert "Delay start of surfaceflinger until after the Runtime APEX is mounted."
Jiyong Park [Mon, 28 Jan 2019 15:43:04 +0000 (00:43 +0900)]
Revert "Delay start of surfaceflinger until after the Runtime APEX is mounted."

This reverts commit a1ce9e7a833aa4a98ab5530a3a713838df7a4803.

Reason: static deps to libnativeloader and libnativebridge no longer
exist

Bug: 123403798
Test: device boots to the UI
Test: bootanimation is shown from the very beginning

Change-Id: I40fc87e0189e410e8501837517481f87786d5503

5 years agoMerge "Add missing error checks in tests."
Alan Stokes [Tue, 12 Feb 2019 10:00:27 +0000 (02:00 -0800)]
Merge "Add missing error checks in tests."
am: 7771604bd2

Change-Id: I39eb243582146e206391da01e849f903f8a75395

5 years agoMerge "Add missing error checks in tests."
Alan Stokes [Tue, 12 Feb 2019 09:49:22 +0000 (09:49 +0000)]
Merge "Add missing error checks in tests."

5 years agolibbinder_ndk: vendor available
Steven Moreland [Mon, 11 Feb 2019 23:04:13 +0000 (15:04 -0800)]
libbinder_ndk: vendor available

Bug: 121279086
Test: N/A
Change-Id: Ief1a52d2b51e071728a6379713c3e694f865cec5

5 years agoMerge "Convert libGLES_android to Android.bp"
Dan Willemsen [Mon, 11 Feb 2019 14:57:41 +0000 (06:57 -0800)]
Merge "Convert libGLES_android to Android.bp"
am: e2c9396283

Change-Id: I12db81b790db898ab0adb4aa6c17293961397902

5 years agoMerge "Convert libGLES_android to Android.bp"
Treehugger Robot [Mon, 11 Feb 2019 14:48:51 +0000 (14:48 +0000)]
Merge "Convert libGLES_android to Android.bp"

5 years agoClear BOOTCLASSPATH for APP AOT compilation.
Vladimir Marko [Fri, 8 Feb 2019 15:11:59 +0000 (15:11 +0000)]
Clear BOOTCLASSPATH for APP AOT compilation.

Let dex2oat pick up the boot classpath from the boot image,
excluding the updatable module components. This allows
updating those modules without recompiling apps.

Test: Manually check bootclasspath entry in an oat file
      compiled on device.
Bug: 122937705
Change-Id: I353f3862c9ece046a36010aa121d1f88ec9be78f

5 years agoMerge "Remove obsolete comment from cmds/installd/otapreopt_chroot.cpp."
Roland Levillain [Mon, 11 Feb 2019 11:22:45 +0000 (03:22 -0800)]
Merge "Remove obsolete comment from cmds/installd/otapreopt_chroot.cpp."
am: 174ebcf3c0

Change-Id: I0020649c9f0030da59c5328928856303efb9d7db

5 years agoMerge "Remove obsolete comment from cmds/installd/otapreopt_chroot.cpp."
Roland Levillain [Mon, 11 Feb 2019 11:17:20 +0000 (11:17 +0000)]
Merge "Remove obsolete comment from cmds/installd/otapreopt_chroot.cpp."

5 years agoConvert libGLES_android to Android.bp
Dan Willemsen [Mon, 11 Feb 2019 00:42:07 +0000 (16:42 -0800)]
Convert libGLES_android to Android.bp

See build/soong/README.md for more information.

It's split into two libraries since Soong does not support the .cpp.arm
syntax.

Bug: 122332691
Test: treehugger
Change-Id: Ia21e467509832401214c8475486c8a7dd49653f6

5 years agoMerge "Add member typedef referring to base interface"
Pawin Vongmasa [Sat, 9 Feb 2019 08:26:56 +0000 (00:26 -0800)]
Merge "Add member typedef referring to base interface"
am: fc4aeea853

Change-Id: I50776c39f6978bd8ff282253226dd8beed825a13

5 years agoMerge "Add member typedef referring to base interface"
Pawin Vongmasa [Sat, 9 Feb 2019 08:20:16 +0000 (08:20 +0000)]
Merge "Add member typedef referring to base interface"

5 years agoSnap for 5180536 from cb5531e3576fec2be6e366f16dd85696a20552b3 to pi-platform-release
android-build-team Robot [Sat, 9 Feb 2019 02:37:08 +0000 (02:37 +0000)]
Snap for 5180536 from cb5531e3576fec2be6e366f16dd85696a20552b3 to pi-platform-release

Change-Id: I371b04b4aaaec81d980678f6315b920d9b5c27ac

5 years agoAdd member typedef referring to base interface
Pawin Vongmasa [Sat, 9 Feb 2019 01:38:49 +0000 (17:38 -0800)]
Add member typedef referring to base interface

A member typedef named "BaseInterface" is added to BnInterface and
BpInterface to refer to the base interface class.

Test: Builds

Bug: 123736523
Change-Id: Iae4c18cb037481edc357fde1edc718acb79ecc23

5 years agoMerge "surfaceflinger: Update OWNERS"
Marissa Wall [Fri, 8 Feb 2019 23:33:19 +0000 (15:33 -0800)]
Merge "surfaceflinger: Update OWNERS"
am: 2c9ea71904

Change-Id: I174141cd1206f373eff57521974db9b1903cb777

5 years agoMerge "surfaceflinger: Update OWNERS"
Treehugger Robot [Fri, 8 Feb 2019 23:11:31 +0000 (23:11 +0000)]
Merge "surfaceflinger: Update OWNERS"