OSDN Git Service
Pirama Arumuga Nainar [Fri, 29 Mar 2019 16:22:48 +0000 (09:22 -0700)]
Merge changes from topic "coverage_flush" am:
41cb9915b2
am:
9fcdb3edaf
Change-Id: I87d76100735dad338e5df31bc2e11325012da2db
Pirama Arumuga Nainar [Fri, 29 Mar 2019 16:21:42 +0000 (09:21 -0700)]
Add OWNERS for system/extras/toolchain-extras am:
26ca42cb84
am:
e6eff58534
Change-Id: I8ce8124a95f930fe3e7376fb78c84c78d4a7a622
Pirama Arumuga Nainar [Fri, 29 Mar 2019 16:18:05 +0000 (09:18 -0700)]
Merge changes from topic "coverage_flush"
am:
41cb9915b2
Change-Id: I8da9aa6f78d7f30f4dbbb52a804058accfef6905
Pirama Arumuga Nainar [Fri, 29 Mar 2019 16:17:42 +0000 (09:17 -0700)]
Add OWNERS for system/extras/toolchain-extras
am:
26ca42cb84
Change-Id: I0c505636472a7a95810ae5008fa8474b22f7090a
Pirama Arumuga Nainar [Fri, 29 Mar 2019 15:57:32 +0000 (15:57 +0000)]
Merge changes from topic "coverage_flush"
* changes:
Helper static library for coverage/profile collection
Add OWNERS for system/extras/toolchain-extras
Bernie Innocenti [Fri, 29 Mar 2019 04:15:21 +0000 (21:15 -0700)]
Merge "Fix incorrect error checking on unique_fd" am:
d2515c56d4
am:
3a431be49b
Change-Id: I147a5d51706e80e967cd91477f837b6ac1c1d0f1
Bernie Innocenti [Fri, 29 Mar 2019 04:09:08 +0000 (21:09 -0700)]
Merge "Fix incorrect error checking on unique_fd"
am:
d2515c56d4
Change-Id: I731d55e1a0585f4a4d5677e9094e22d56bde4c56
Treehugger Robot [Fri, 29 Mar 2019 03:52:46 +0000 (03:52 +0000)]
Merge "Fix incorrect error checking on unique_fd"
Pirama Arumuga Nainar [Tue, 22 May 2018 22:40:49 +0000 (15:40 -0700)]
Helper static library for coverage/profile collection
Bug: http://b/
128524141
This static library adds two different ways to trigger the Clang profile
runtime to flush GCOV profiles:
- a real-time signal (37) targeted to this process/pid
- a transistion of "coverage.flush" sysprop from "0" -> "1".
Test: libprofile-extras-test
Change-Id: I6bc8149b32ca1aebd4646b28150985b7b93ab33f
Yifan Hong [Thu, 28 Mar 2019 21:05:29 +0000 (14:05 -0700)]
Merge "lpdump: log warning message." am:
8162690b3f
am:
8d6d2c44f9
Change-Id: If40f4d783ec223395cc1ea6d07c6914fb37401ef
Yifan Hong [Thu, 28 Mar 2019 20:52:39 +0000 (13:52 -0700)]
Merge "lpdump: log warning message."
am:
8162690b3f
Change-Id: Id6b3d5591f558c11e512877ac44a7236b90d7bd9
Treehugger Robot [Thu, 28 Mar 2019 20:26:32 +0000 (20:26 +0000)]
Merge "lpdump: log warning message."
Yifan Hong [Thu, 28 Mar 2019 17:42:05 +0000 (10:42 -0700)]
lpdump: log warning message.
Warning messages were placed in the output stream as well.
Put them in logcat so that stdout is always a valid JSON
string.
Test: lpdump --json on walleye
Bug:
126233777
Change-Id: If313eeaee9c347c498818f53decdf092328f142c
Dan Willemsen [Thu, 28 Mar 2019 17:30:42 +0000 (10:30 -0700)]
Merge "Convert more of system/extras to Android.bp" am:
0a35afacda
am:
03cc6a3537
Change-Id: Id7c90b9e86e0b7aeb2e51663d3382d4f003f68f5
Dan Willemsen [Thu, 28 Mar 2019 17:25:48 +0000 (10:25 -0700)]
Merge "Convert more of system/extras to Android.bp"
am:
0a35afacda
Change-Id: Ib7f43ab43b562057540920367c70c621fca98ab8
Treehugger Robot [Thu, 28 Mar 2019 17:12:20 +0000 (17:12 +0000)]
Merge "Convert more of system/extras to Android.bp"
Dan Willemsen [Sat, 23 Mar 2019 20:53:03 +0000 (13:53 -0700)]
Convert more of system/extras to Android.bp
See build/soong/README.md for more information about Soong.
Bug:
122331914
Test: cd system/extras; mma
Test: treehugger
Change-Id: Ic1cf293df2c848c7476ca93c150106a4a3cd849c
Bernie Innocenti [Thu, 28 Mar 2019 11:48:02 +0000 (20:48 +0900)]
Fix incorrect error checking on unique_fd
The expression "!fd" calls the implicit conversion to int, but comparing
the raw fd against 0 won't work, since open() and other POSIX calls
returning file descriptors use -1 to signal an error.
Test: m verity_verifier
Change-Id: Ib117de62ff46c8d3389db54875bfa269fd539b51
Pirama Arumuga Nainar [Mon, 25 Mar 2019 18:40:27 +0000 (11:40 -0700)]
Add OWNERS for system/extras/toolchain-extras
Test: N/A
Change-Id: Idb0886aceb84da2465a2e37c6b8d4673ac770b32
Daniel Rosenberg [Wed, 27 Mar 2019 00:40:16 +0000 (17:40 -0700)]
Merge "Change checkpoint_gc to run until threshold is met" am:
632a01f745
am:
14c86ddd39
Change-Id: I5918a1b0a6b052e49e465b2637caca87b008f015
Daniel Rosenberg [Wed, 27 Mar 2019 00:13:31 +0000 (17:13 -0700)]
Merge "Change checkpoint_gc to run until threshold is met"
am:
632a01f745
Change-Id: Id0a30badf557476f99031d9e11f53cfdddc819b7
Daniel Rosenberg [Tue, 26 Mar 2019 23:25:18 +0000 (23:25 +0000)]
Merge "Change checkpoint_gc to run until threshold is met"
Yifan Hong [Tue, 26 Mar 2019 22:39:08 +0000 (15:39 -0700)]
Merge changes from topic "lpdumpd" am:
384833d0af
am:
133b475d03
Change-Id: Idc0375283a66bd88bda29df0177c2de28118283f
Yifan Hong [Tue, 26 Mar 2019 22:38:46 +0000 (15:38 -0700)]
lpdump: Add --json option am:
7ea1a93cbf
am:
dc8fdcd331
Change-Id: I516ac5f1ecb24534c96168c271b9820b7d068280
Yifan Hong [Tue, 26 Mar 2019 22:38:25 +0000 (15:38 -0700)]
Make lpdump possible without root. am:
b84fb57317
am:
885cae02dc
Change-Id: I856a8856e242bc76e7e40c579d6f0c043f5cbadf
Yifan Hong [Tue, 26 Mar 2019 22:38:05 +0000 (15:38 -0700)]
lpdump: refactor to use std::ostream am:
b48d79fa91
am:
d85c47a6d1
Change-Id: Iec6d82938997d4c964c67211ed5b77b7bca96463
Yifan Hong [Tue, 26 Mar 2019 21:32:04 +0000 (14:32 -0700)]
Merge changes from topic "lpdumpd"
am:
384833d0af
Change-Id: I92f6f9f1610b117ccfcb23282e49c31fb87656c3
Yifan Hong [Tue, 26 Mar 2019 21:31:37 +0000 (14:31 -0700)]
lpdump: Add --json option
am:
7ea1a93cbf
Change-Id: Idedff158c574e949826231bbf3d146665d75f645
Yifan Hong [Tue, 26 Mar 2019 21:31:11 +0000 (14:31 -0700)]
Make lpdump possible without root.
am:
b84fb57317
Change-Id: Iaf4fbccd87835bda3273a50fd11aa81006df3930
Yifan Hong [Tue, 26 Mar 2019 21:30:40 +0000 (14:30 -0700)]
lpdump: refactor to use std::ostream
am:
b48d79fa91
Change-Id: Ie422d550bc48ef7dcb1f7f2a271f3d9febb54fca
Yifan Hong [Tue, 26 Mar 2019 20:35:36 +0000 (20:35 +0000)]
Merge changes from topic "lpdumpd"
* changes:
suspend_stress: depend on libbase
lpdump: Add --json option
Make lpdump possible without root.
lpdump: refactor to use std::ostream
Daniel Rosenberg [Fri, 22 Mar 2019 23:01:10 +0000 (16:01 -0700)]
Change checkpoint_gc to run until threshold is met
Run until garbage collection is done to prevent long boot times while
f2fs checkpointing runs garbage collection
Test: Apply update, or run /vendor/bin/checkpoint_gc UNUSED 1
Bug:
123367711
Change-Id: I4481b9179a819621dd77f5088778950e49d73ff3
Yifan Hong [Fri, 22 Mar 2019 19:32:53 +0000 (12:32 -0700)]
suspend_stress: depend on libbase
It links to libcutils statically.
Test: builds
Change-Id: Ia1ddc848777f67b4aae3abfb901f84e38d397f62
Yifan Hong [Fri, 15 Mar 2019 23:06:50 +0000 (16:06 -0700)]
lpdump: Add --json option
This option outputs in JSON format. In addition, it emits information
like usage data on mounted file systems, and block size of super block
devices.
Test: `lpdump --json` on host and device
Bug:
126233777
Change-Id: Iad68eb3932f317637e07cd692cdebe71e52db769
Yifan Hong [Fri, 15 Mar 2019 21:19:08 +0000 (14:19 -0700)]
Make lpdump possible without root.
Test: adb unroot && adb shell lpdump
Bug:
126233777
Change-Id: Ie559072fe53fee43d7c4a9e8f97a89d979e5b9bc
Pirama Arumuga Nainar [Wed, 20 Mar 2019 21:27:07 +0000 (14:27 -0700)]
Merge "Do not use --exclude-libs linker flag for Windows" am:
a3cec0985a
am:
0526409654
Change-Id: I3c34c73f5c7008c01a2d7b19b1c6de7f5e035b6f
Pirama Arumuga Nainar [Wed, 20 Mar 2019 21:23:02 +0000 (14:23 -0700)]
Merge "Do not use --exclude-libs linker flag for Windows"
am:
a3cec0985a
Change-Id: Ic32e7be86135692b2527430e7661ffc801e478a3
Pirama Arumuga Nainar [Wed, 20 Mar 2019 21:13:18 +0000 (21:13 +0000)]
Merge "Do not use --exclude-libs linker flag for Windows"
Yifan Hong [Tue, 19 Mar 2019 23:18:11 +0000 (16:18 -0700)]
lpdump: refactor to use std::ostream
... so that the output stream / error stream can be
replaced with stringstream later.
Test: lpdump
Bug:
126233777
Change-Id: I837554b0289a5d669f0f89d35e7da1b79dd33b28
Bowgo Tsai [Tue, 19 Mar 2019 05:18:24 +0000 (22:18 -0700)]
Merge "Allowing product-specific fstab.postinstall" am:
66920d2072
am:
43145ee304
Change-Id: I0639b020ee967009f8006fb4e5e1240703be3650
Bowgo Tsai [Tue, 19 Mar 2019 05:14:11 +0000 (22:14 -0700)]
Merge "Allowing product-specific fstab.postinstall"
am:
66920d2072
Change-Id: Ibd593a3530053d011fad17a705cebb30b164e47d
Treehugger Robot [Tue, 19 Mar 2019 05:02:58 +0000 (05:02 +0000)]
Merge "Allowing product-specific fstab.postinstall"
Yifan Hong [Mon, 18 Mar 2019 17:11:21 +0000 (10:11 -0700)]
Merge "libjsonverify: allow option for missing files." am:
ea299553a0
am:
e6045ac0f6
Change-Id: I405edd0c77904ebc3b57dfa26709024d12ba6e75
Yifan Hong [Mon, 18 Mar 2019 17:06:21 +0000 (10:06 -0700)]
Merge "libjsonverify: allow option for missing files."
am:
ea299553a0
Change-Id: Ia2cadf6e732116e8c8db8b3d683fed6dc1dc6a09
Yifan Hong [Mon, 18 Mar 2019 16:53:47 +0000 (16:53 +0000)]
Merge "libjsonverify: allow option for missing files."
Yifan Hong [Tue, 5 Mar 2019 00:27:11 +0000 (16:27 -0800)]
libjsonverify: allow option for missing files.
When 'optional' is set to true:
- If file is missing, test pass (with logs)
- If file is present but empty, test fails
- If file is present but in wrong format, test fails
Test: vts_processgroup_validate_test
Bug:
123664216
Change-Id: Ib6640c3c1ce159c5cac068042af564d98c9bbb1f
Gavin Corkery [Thu, 14 Mar 2019 14:32:44 +0000 (07:32 -0700)]
Merge "Rename data/pkg_staging to data/app-staging" am:
aac8abab9d
am:
11a29880f3
Change-Id: Ifea950f6fd40fd0085fa8723b478bcbbae6cdbfc
Gavin Corkery [Thu, 14 Mar 2019 14:22:40 +0000 (07:22 -0700)]
Merge "Rename data/pkg_staging to data/app-staging"
am:
aac8abab9d
Change-Id: I606af9209c8c24edda1e619bb0d495ee103395d5
Gavin Corkery [Thu, 14 Mar 2019 14:14:38 +0000 (14:14 +0000)]
Merge "Rename data/pkg_staging to data/app-staging"
Gavin Corkery [Wed, 27 Feb 2019 11:18:03 +0000 (11:18 +0000)]
Rename data/pkg_staging to data/app-staging
Test: n/a
Bug:
126330086
Change-Id: I73367a60c23ca17d0557253bea25279c104e1e53
Merged-In: I73367a60c23ca17d0557253bea25279c104e1e53
The Android Open Source Project [Mon, 11 Mar 2019 21:16:55 +0000 (14:16 -0700)]
[automerger skipped] Merge "DO NOT MERGE - Skip PPRL.190305.001 into master" am:
2b19df1b56 -s ours
am:
1705924845 -s ours
am skip reason: subject contains skip directive
Change-Id: Ie7b047a9d68c59f681eb8294673e0b377541079b
The Android Open Source Project [Mon, 11 Mar 2019 21:06:06 +0000 (14:06 -0700)]
[automerger skipped] DO NOT MERGE - Skip PPRL.190305.001 into master am:
380f832144 -s ours
am:
6693200241 -s ours
am skip reason: subject contains skip directive
Change-Id: Ic39fe91ac6ddfd26a1dfa346e87e1ebe522888ed
The Android Open Source Project [Mon, 11 Mar 2019 20:40:05 +0000 (13:40 -0700)]
[automerger skipped] Merge "DO NOT MERGE - Skip PPRL.190305.001 into master"
am:
2b19df1b56 -s ours
am skip reason: subject contains skip directive
Change-Id: I4000c2a5804e4934521f1af82da522d7b3ea11e6
The Android Open Source Project [Mon, 11 Mar 2019 20:09:02 +0000 (13:09 -0700)]
[automerger skipped] DO NOT MERGE - Skip PPRL.190305.001 into master
am:
380f832144 -s ours
am skip reason: subject contains skip directive
Change-Id: Ibc1bb86c7b497bf925489f2053ab2863c5052fe5
Treehugger Robot [Mon, 11 Mar 2019 19:43:56 +0000 (19:43 +0000)]
Merge "DO NOT MERGE - Skip PPRL.190305.001 into master"
The Android Open Source Project [Mon, 11 Mar 2019 19:00:42 +0000 (12:00 -0700)]
DO NOT MERGE - Skip PPRL.190305.001 into master
Bug:
127812889
Change-Id: I58060ed58fb41b540f42431bb994b6370a53812c
Pirama Arumuga Nainar [Fri, 8 Mar 2019 00:39:58 +0000 (16:39 -0800)]
Do not use --exclude-libs linker flag for Windows
Bug: http://b/
110800681
This flag is not supported by lld, and probably has no effect on Windows
with the binutils linkers.
Test: Build with lld
Change-Id: I1ca242bf0a004695a101b5b5c068867c69ea9f33
Bowgo Tsai [Wed, 27 Feb 2019 03:43:39 +0000 (11:43 +0800)]
Allowing product-specific fstab.postinstall
To allow mount system_other with different file systems, mount options,
or verity settings, we need to put the fstab into /product and keep
the /system/etc/fstab.postinstall generic.
Device can add the following into device/*/BoardConfig.mk to use
the fstab from /product:
PRODUCT_PRODUCT_PROPERTIES += \
ro.postinstall.fstab.prefix=/product
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/fstab.postinstall:$(TARGET_COPY_OUT_PRODUCT)/etc/fstab.postinstall
In the $(LOCAL_PATH)/fstab.postinstall:
/dev/block/by-name/system /postinstall ext4 ro,nosuid,nodev,noexec slotselect_other,avb_keys=/product/etc/avb/system_other.avbpubkey
[serial log]:
init: Overriding previous 'ro.' property' ro.postinstall.fstab.prefix':'/system' with new value '/product'
init: processing action (ro.postinstall.fstab.prefix=/product && sys.cppreopt=requested) from (/system/etc/init/cppreopts.rc:27)
init: [libfs_avb]Returning avb_handle for '/postinstall' with status: Success
init: [libfs_avb]Built verity table: '1 /dev/block/by-name/system_a
/dev/block/by-name/system_a 4096 4096 709501 709501 sha1
71941953c7b61238a1779e55f8dbba2eab6c702a 0b7840796a7be
6ecadffaf6fc2f085400c9a0c78 10 use_fec_from_device
/dev/block/by-name/system_a fec_roots 2 fec_blocks 715089 fec_start
715089 restart_on_corruption ignore_zero_blocks
...
init: Command 'mount_all /product/etc/fstab.postinstall'
action=ro.postinstall.fstab.prefix=/product && sys.cppreopt=requested
(/system/etc/init/cppreopts.rc:28) took 109ms and succeeded
[logcat log]:
cppreopts: Copied file from /postinstall/priv-app/... to /data/dalvik-cache/arm64/...
...
1750 1750 I PackageManager: cppreopts took 21976 ms
Bug:
112103720
Test: factory reset and boot device, checks cppreopt logs
Change-Id: If826ac45804be085b48a50cab6741960658dc09f
Florian Mayer [Wed, 6 Mar 2019 16:50:51 +0000 (08:50 -0800)]
Merge "Use unique_ptr for Maps object." am:
00b2081911
am:
5fd15b8e87
Change-Id: I6c6ff9150ca1d6093531a0d05681b1b30db31d7b
Florian Mayer [Wed, 6 Mar 2019 16:46:50 +0000 (08:46 -0800)]
Merge "Use unique_ptr for Maps object."
am:
00b2081911
Change-Id: Ief662c58d50300e2d91d88f272e89d7dccc3117c
Florian Mayer [Wed, 6 Mar 2019 16:31:10 +0000 (16:31 +0000)]
Merge "Use unique_ptr for Maps object."
Daniel Rosenberg [Fri, 1 Mar 2019 04:30:38 +0000 (20:30 -0800)]
Merge "Add a postinstall script for GC on F2FS" am:
9604da99e1
am:
feca79078e
Change-Id: I561645fb6a1a0eee164b684efd9ffbf483bfe1a5
Daniel Rosenberg [Fri, 1 Mar 2019 04:26:34 +0000 (20:26 -0800)]
Merge "Add a postinstall script for GC on F2FS"
am:
9604da99e1
Change-Id: I0be4cd40888937bdcb0a09ad7b737f4fd23af73a
Daniel Rosenberg [Fri, 1 Mar 2019 04:16:59 +0000 (04:16 +0000)]
Merge "Add a postinstall script for GC on F2FS"
Daniel Rosenberg [Thu, 14 Feb 2019 00:24:25 +0000 (16:24 -0800)]
Add a postinstall script for GC on F2FS
This script is intended to run on F2FS checkpointing devices.
It triggers garbage collection for a period of time to make
mounting with checkpoint=disable smoother.
Test: Set this script as a postinstall script on vendor
Bug:
123367711
Change-Id: I87e143a2004da5852654688c3c8773510b7073ae
Yabin Cui [Thu, 28 Feb 2019 22:54:04 +0000 (14:54 -0800)]
Merge "simpleperf: make app api available for profileable apps." am:
c8467aa1cd
am:
ce72022e9e
Change-Id: I845fd21fc9ffda51356a7d2c4869f7aa8dc57d41
Yabin Cui [Thu, 28 Feb 2019 22:37:44 +0000 (14:37 -0800)]
Merge "simpleperf: make app api available for profileable apps."
am:
c8467aa1cd
Change-Id: Ie527fdf062e84ce6bbc5c59a8630e4516478c8a3
Yabin Cui [Thu, 28 Feb 2019 21:54:52 +0000 (21:54 +0000)]
Merge "simpleperf: make app api available for profileable apps."
Yabin Cui [Mon, 25 Feb 2019 23:22:43 +0000 (15:22 -0800)]
simpleperf: make app api available for profileable apps.
Add api-prepare cmd to prepare recording via app api.
Add api-collect cmd to collect recording data generated by app api. The
recording data is compressed into a zip file.
The two added cmds support both debuggable apps and profileable apps.
Move api_app_profiler.py to api_profiler.py. And use the two added cmds in it.
Also improve app_api code:
1. Fix finding simpleperf.
2. Use time based output filenames.
Bug:
123717243
Test: test manually, will add run python tests later.
Change-Id: I88c20578d01a84bc20ea72276f2cab0f3c4d9109
Yabin Cui [Thu, 28 Feb 2019 19:02:23 +0000 (11:02 -0800)]
Merge "simpleperf: add test for a problem recording user stack." am:
549d13ff00
am:
459b57ac50
Change-Id: Ia19db7759edfab694572b163d7722fd3841f9fbc
Yabin Cui [Thu, 28 Feb 2019 18:58:26 +0000 (10:58 -0800)]
Merge "simpleperf: add test for a problem recording user stack."
am:
549d13ff00
Change-Id: I45f022ad18fed5d6158e80adffdba37e796e89d1
Yabin Cui [Thu, 28 Feb 2019 18:45:55 +0000 (18:45 +0000)]
Merge "simpleperf: add test for a problem recording user stack."
Yabin Cui [Thu, 28 Feb 2019 12:42:40 +0000 (04:42 -0800)]
Merge "simpleperf: fix 32-bit simpleperf_unit_test." am:
12b04e5e17
am:
ab1c67e5e7
Change-Id: I91d3e4e12c956e533509f3cf02db63e891a45637
Yabin Cui [Thu, 28 Feb 2019 12:38:38 +0000 (04:38 -0800)]
Merge "simpleperf: fix 32-bit simpleperf_unit_test."
am:
12b04e5e17
Change-Id: I7d32798b4779127258f9fdfdcea5d8f47759bbb4
Treehugger Robot [Thu, 28 Feb 2019 12:27:09 +0000 (12:27 +0000)]
Merge "simpleperf: fix 32-bit simpleperf_unit_test."
Yabin Cui [Thu, 28 Feb 2019 00:14:59 +0000 (16:14 -0800)]
Merge "simpleperf: fix showing a misleading msg." am:
284f5b9611
am:
66d2a889bb
Change-Id: I0a5fa52b4ef65eeef4436877925f28fc92fdc1b9
Yabin Cui [Thu, 28 Feb 2019 00:06:53 +0000 (16:06 -0800)]
Merge "simpleperf: fix showing a misleading msg."
am:
284f5b9611
Change-Id: Ie613a93ef83ac509f0104a87e989efe0a68bcf50
Yabin Cui [Wed, 27 Feb 2019 23:44:34 +0000 (23:44 +0000)]
Merge "simpleperf: fix showing a misleading msg."
Yabin Cui [Wed, 27 Feb 2019 18:53:16 +0000 (10:53 -0800)]
simpleperf: fix 32-bit simpleperf_unit_test.
Previously simpleperf_unit_test links with libLLVM_android,
which doesn't have 32-bit version on device. This makes
32-bit simpleperf_unit_test fail. So switch it to static llvm
libs.
Bug: none
Test: build and run simpleperf_unit_test.
Change-Id: I23dcf647c6a7e37a8126315bf0417d4de283f05d
Yabin Cui [Wed, 27 Feb 2019 21:44:16 +0000 (13:44 -0800)]
simpleperf: add test for a problem recording user stack.
Also fix a line in another test.
Bug:
113127950
Test: run simpleperf_unit_test.
Change-Id: Id7fd20cdc441734a8d39255fecfbd8fe9021274e
Yabin Cui [Wed, 27 Feb 2019 21:01:47 +0000 (13:01 -0800)]
simpleperf: fix showing a misleading msg.
Bug: none
Test: run simpleperf manually.
Test: run simpleperf_unit_test.
Change-Id: I848d6508b8acecdba3be2d2fc1ce15be4e2a368b
David Anderson [Wed, 27 Feb 2019 20:07:12 +0000 (12:07 -0800)]
Merge "libfscrypt: Do not encrypt the "gsi" folder." am:
de8da60180
am:
63c62374b7
Change-Id: I268dedba401b9944d97dcdd7fe895da4104e342a
David Anderson [Wed, 27 Feb 2019 19:56:28 +0000 (11:56 -0800)]
Merge "libfscrypt: Do not encrypt the "gsi" folder."
am:
de8da60180
Change-Id: Iaf0da57d4d0829b49f87ec57886a156b01d786f1
David Anderson [Wed, 27 Feb 2019 19:48:14 +0000 (19:48 +0000)]
Merge "libfscrypt: Do not encrypt the "gsi" folder."
Florian Mayer [Wed, 27 Feb 2019 19:35:01 +0000 (19:35 +0000)]
Use unique_ptr for Maps object.
Change-Id: I727832857834c527c17bac532253aaac60e1b314
Sami Tolvanen [Tue, 26 Feb 2019 16:31:12 +0000 (08:31 -0800)]
Merge "Fix build error of generating fec data" am:
1efeb1d970
am:
918742ac86
Change-Id: Id85c5ed4936d1ed7f8463b483e9e942e8ef72e6f
Sami Tolvanen [Tue, 26 Feb 2019 16:26:58 +0000 (08:26 -0800)]
Merge "Fix build error of generating fec data"
am:
1efeb1d970
Change-Id: I4e1bb2582335cc89785a0a668432b1e498c2f5a8
Sami Tolvanen [Tue, 26 Feb 2019 16:17:07 +0000 (16:17 +0000)]
Merge "Fix build error of generating fec data"
Martin Stjernholm [Tue, 26 Feb 2019 07:29:08 +0000 (23:29 -0800)]
Merge "Fix libdexfile dependencies to avoid direct dependency on libdexfile_external." am:
c65e54940b
am:
653e8b4615
Change-Id: Ia99308c3494e39b7a4bf05d14c0efa1f9c85133e
Martin Stjernholm [Tue, 26 Feb 2019 07:09:24 +0000 (23:09 -0800)]
Merge "Fix libdexfile dependencies to avoid direct dependency on libdexfile_external."
am:
c65e54940b
Change-Id: I2ecef404bfe0277f88278d2b8623d3b58b23a46b
Jeff Vander Stoep [Tue, 26 Feb 2019 07:03:07 +0000 (23:03 -0800)]
Merge "cppreopts: remove DAC capabilities" am:
f7d22c0919
am:
5cef3f8263
Change-Id: I8bcb4597e2debc9f7fb2ae7092d12ec3f5684d0b
Jeff Vander Stoep [Tue, 26 Feb 2019 06:51:41 +0000 (22:51 -0800)]
Merge "cppreopts: remove DAC capabilities"
am:
f7d22c0919
Change-Id: I20f23abaaddd7e29ae8ddf9a9167928b08ad1938
Elliott Hughes [Tue, 26 Feb 2019 06:02:12 +0000 (22:02 -0800)]
Merge "su: fix the command line syntax." am:
ec993d71cf
am:
0d827f3e57
Change-Id: I02fe3f668d9d43b547ad8839b5d793c593f17c25
Xin Li [Tue, 26 Feb 2019 04:52:44 +0000 (20:52 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Merge pi-dev@
5234907 into stage-aosp-master" into stage-aosp-master
am:
d792a6af1a -s ours
am skip reason: subject contains skip directive
Change-Id: I5abb890b103a6a5b880698d04c16c861c1551e6c
David Anderson [Tue, 26 Feb 2019 00:34:24 +0000 (16:34 -0800)]
libfscrypt: Do not encrypt the "gsi" folder.
On FBE devices without metadata encryption, GSI images must not be
encrypted, since they are written using normal write() calls rather than
going through device-mapper.
Bug:
126249541
Test: GSI works on FBE device without metadata encryption
Change-Id: Ie14be778eb4a7f18dd8ea33a044ba86f909f3cce
Treehugger Robot [Mon, 25 Feb 2019 20:59:13 +0000 (20:59 +0000)]
Merge "Fix libdexfile dependencies to avoid direct dependency on libdexfile_external."
Treehugger Robot [Mon, 25 Feb 2019 20:21:52 +0000 (20:21 +0000)]
Merge "cppreopts: remove DAC capabilities"
Jeff Vander Stoep [Sat, 23 Feb 2019 14:08:43 +0000 (06:08 -0800)]
cppreopts: remove DAC capabilities
Define service for cppreopts.sh in order to drop DAC capabilities for
for it and its children. Capabilities were already blocked by SELinux
so this does not cause a functional change, but rather shifts the
blocking mechanism to the DAC capability check which fails less
noisily. Otherwise, this change is intended to preserve the previous
behavior and uses "exec_start" to presever the blocking behavior of
"exec".
This prevents an selinux denial which is causing occasional presubmit
failures:
avc: denied { sys_resource } for comm="preopt2cachenam" capability=24
scontext=u:r:preopt2cachename:s0 tcontext=u:r:preopt2cachename:s0
tclass=capability permissive=0
Bug:
79414024
Test: Boot a phone with the cppreopts feature. Verify no logcat errors and all
the files are copied to the location given by preopt2cachename.
Change-Id: If630b53d32c3c0414939b1f8db8d486406003567
Xin Li [Mon, 25 Feb 2019 15:25:05 +0000 (07:25 -0800)]
[automerger skipped] DO NOT MERGE - Merge pi-dev@
5234907 into stage-aosp-master
am:
97b9015991 -s ours
am skip reason: subject contains skip directive
Change-Id: Icef4a9d79b578d4f0fe55715b16190b4f60c6a7e
Martin Stjernholm [Wed, 20 Feb 2019 16:58:42 +0000 (16:58 +0000)]
Fix libdexfile dependencies to avoid direct dependency on libdexfile_external.
It should be dlopen'ed lazily by libdexfile_support now.
Test: mmma system/extras/simpleperf
Test: atest simpleperf_unit_test
(1 failure in cpu_offline test, but that happens even without this CL)
Bug:
124827589
Bug:
123186083
Change-Id: Ibeb37b130f0081965b986622794f60ec75cd2e17