Commit Graph

38148 Commits

Author SHA1 Message Date
Narayan Kamath 55c9284f55 Merge "zip_archive: Allow crc_out to be nullptr in Inflate." 2017-11-01 11:12:18 +00:00
Christopher Ferris fda7edd13e Move sp/pc not changing check into Unwinder.
Remove this check from the DwarfSection class.

Rather than have every step function make the check, doing it at the
top level avoids having every function do the same check.

Bug: 68167269

Test: New unit tests, ran debuggerd -b on processes.
Change-Id: I23b7c799faaf26c93c1b72848df18c78de6c42fb
2017-10-31 17:51:02 -07:00
TreeHugger Robot 9a3af552a0 Merge "storaged: split proto file into multiple CE areas" 2017-10-31 23:23:48 +00:00
Chih-Hung Hsieh 048df230ab Use -Werror in system/core/libnativebridge
* Fix unused static variable warning.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I9c3a2031ac49368a1833a9d46af8174c3c9cd32e
2017-10-31 15:55:40 -07:00
Christopher Ferris 584333e3b2 Fix template support.
- Fix template applying to function name without a starting N.
- Fix return types for templates handling.
- Add support for the T substitution parameter.
- Fix a case where the literal L handler was not being set properly.

Bug: 67678053

Test: New unit tests, fuzzer.
Change-Id: I4f831038047eb2cd8519426f16aa2bdcb846d92d
2017-10-31 15:00:54 -07:00
Jin Qian 6df3bc6301 storaged: split proto file into multiple CE areas
Use user_id (from app uid) to determine file location.
/data/misc_ce/<user_id>/storaged/storaged.proto

Vold notifies storaged when a user's CE area becomes available.
Then storaged restores data from the proto in that area and
combines them into IO history.

Vold also notifies storaged when the CE area is being deleted.
Storaged clears internal history about this user and deletes the
proto file.

IO perf is stored in user_0 area since it's not user related.

Test: dumpsys storaged before/after multiple users' unlock
Bug: 63740245
Change-Id: I39f923f6b09e9f2a29e9286ce02b3b3bcbfb9f94
2017-10-31 14:31:13 -07:00
James Hawkins a57e13b70a Merge "bootstat: Add another boot reason." am: bb3769349d am: 90cde982dc
am: 92eca147c3

Change-Id: I88545e70f2e4342bf983ca48f3acacd4e783edf9
2017-10-31 20:17:24 +00:00
James Hawkins 92eca147c3 Merge "bootstat: Add another boot reason." am: bb3769349d
am: 90cde982dc

Change-Id: Ia5903a912e540e1549ac43058d36564e22a91330
2017-10-31 20:12:12 +00:00
James Hawkins 90cde982dc Merge "bootstat: Add another boot reason."
am: bb3769349d

Change-Id: I8893cc8af331832e4f031aaee382e15848ccf7bf
2017-10-31 20:10:06 +00:00
Treehugger Robot bb3769349d Merge "bootstat: Add another boot reason." 2017-10-31 20:02:00 +00:00
James Hawkins 8ac79bc820 bootstat: Add another boot reason.
Bug: None
Test: None
Change-Id: I865a12e9c8833c4a345284181aa1812be3eddadd
2017-10-31 10:07:34 -07:00
Brendan Jackman affdc23407 Merge "logcat: Note in help that regexps are Perl-compatible" am: 411111acf4 am: 9d11756d48
am: 2f402d34ff

Change-Id: I21ddbb984018b893343327e60f42d54dc719695b
2017-10-31 17:02:16 +00:00
Brendan Jackman 2f402d34ff Merge "logcat: Note in help that regexps are Perl-compatible" am: 411111acf4
am: 9d11756d48

Change-Id: I3859490b9e3ec1e6e68c2caa052962f89fffd51f
2017-10-31 16:59:00 +00:00
Brendan Jackman 9d11756d48 Merge "logcat: Note in help that regexps are Perl-compatible"
am: 411111acf4

Change-Id: Ifbe765500c99a0a0e3ef858dbadf7ecbbf518f4a
2017-10-31 16:54:57 +00:00
Treehugger Robot 411111acf4 Merge "logcat: Note in help that regexps are Perl-compatible" 2017-10-31 16:48:47 +00:00
Brendan Jackman a5141130f3 logcat: Note in help that regexps are Perl-compatible
The expressions accepted by the '-e'/'--grep' command line option are
PCRE:

https://android.googlesource.com/platform/system/core/+/master/logcat/logcat.cpp#1018

Say so in the help string.

Change-Id: I7f6af130d5e39570bb49310a928f5d495e5b269b
2017-10-31 12:44:54 +00:00
Narayan Kamath 70baef3b37 Merge "zip_archive: Allow crc_out to be nullptr in Inflate." 2017-10-31 11:40:58 +00:00
Christopher Ferris 9319066cc5 Merge "Switch libbacktrace new unwinder." am: f0da1c42a3 am: 6a63731ebc
am: 93651571fc

Change-Id: I8a3f150b3187f41c0ce73031bf6f30c207deddcc
2017-10-31 01:13:21 +00:00
Christopher Ferris 93651571fc Merge "Switch libbacktrace new unwinder." am: f0da1c42a3
am: 6a63731ebc

Change-Id: Ia03139e68f99e2dae985675f3f901e7bdd949ee3
2017-10-31 00:54:20 +00:00
Christopher Ferris 6a63731ebc Merge "Switch libbacktrace new unwinder."
am: f0da1c42a3

Change-Id: I4726a4bcbbb986f3325e55e62d41fc6617a2c5e8
2017-10-31 00:48:51 +00:00
Christopher Ferris f0da1c42a3 Merge "Switch libbacktrace new unwinder." 2017-10-31 00:33:46 +00:00
Christopher Ferris 086baf981d Switch libbacktrace new unwinder.
Update the backtrace leak tests to share a map since this is the most
common way it will be used, and it runs much faster.

Remove the CreateNew functions, and references to them.

Remove benchmarks of CreateNew functions.

Test: Builds, ran new unit tests, ran art tests.

Change-Id: I4a25a412f1a74c6d43aebbebbf32ead20ead8f94
2017-10-30 13:37:50 -07:00
Narayan Kamath 2d1e23f5d6 zip_archive: Allow crc_out to be nullptr in Inflate.
Only compute the crc32 if required. In addition :
- Add unit tests for Inflate that cover this addition.
- Fix an inconsistency in return codes that was revealed
  by this new test.

Bug: 35246701
Test: zip_archive_tests
Test: make; zipalign.
Merged-In: I31d7554378f94fc8995f707471d57cb98311e2c2
Change-Id: I05111bfa665c610f93d1c1dee987a509bf87aa65
2017-10-30 18:26:41 +00:00
Narayan Kamath 5b54e6637f zip_archive: Allow crc_out to be nullptr in Inflate.
Only compute the crc32 if required. In addition :
- Add unit tests for Inflate that cover this addition.
- Fix an inconsistency in return codes that was revealed
  by this new test.

Bug: 35246701
Test: zip_archive_tests
Test: make; zipalign.

(cherry picked from commit d9e85b14afd5a2ee14bb4df46cf576c5f9c25f24)

Change-Id: I31d7554378f94fc8995f707471d57cb98311e2c2
2017-10-30 18:18:08 +00:00
Jae Shin 187c3e6f4c Merge changes from topic "rs_vndk_step3" am: 51ec0a1387 am: 1d69a95b0d -s ours
am: 7572d2b7c5  -s ours

Change-Id: If04ff58b8d3911b3799cac822f56afda2872b111
2017-10-30 03:55:19 +00:00
Jiyong Park 83ec1e8552 Fix: make vndk namespace visible for 2016 Pixes am: 6ed1a1c339 am: fc2c73af93 -s ours
am: 237a053bc2  -s ours

Change-Id: I52c9acde34c451b0619c8d938ff5e99c112e1810
2017-10-30 03:54:56 +00:00
Jiyong Park 178b7cbd2b vndk: remove vendor/lib from the search path of the 'vndk' namespace am: 7f654c3243 am: 03b5221a41 -s ours
am: 33398203d7  -s ours

Change-Id: I1c6ee091b70dc7569de1a92bc72c15ae878942f7
2017-10-30 03:54:33 +00:00
Jiyong Park 2b899e3c50 libz is back to LLNDK am: e58fa1b0c6 am: 3fc71ffaa3 -s ours
am: 599d4fef35  -s ours

Change-Id: I4f1c60ab1d9c6b8e406463055cd808d59823a348
2017-10-30 03:54:14 +00:00
Jiyong Park ad9eb45e75 Make the rs namespace visible am: 7075bca364 am: e6840fdba7 -s ours
am: 73e8943fa7  -s ours

Change-Id: Idea81eb9e63733860c51d317abbe42044105cfbe
2017-10-30 03:53:51 +00:00
Justin Yun 6eeda9b84a Add libft2.so to ll-ndk for rs namespace am: 136eb05892 am: c6a2e38f95 -s ours
am: f9fb272881  -s ours

Change-Id: I37666ecb389ed5283599f71b01cb974c367249fa
2017-10-30 03:53:22 +00:00
Justin Yun 3390ee362a Move libz vndk-sp from ll-ndk am: 8ebf6ee6f6 am: 505f997ff5 -s ours
am: 45967481a2  -s ours

Change-Id: I951cd45733a58a6f92bd49a3e0aec46aeca52fa8
2017-10-30 03:52:56 +00:00
Jae Shin 7572d2b7c5 Merge changes from topic "rs_vndk_step3" am: 51ec0a1387
am: 1d69a95b0d  -s ours

Change-Id: I3edeca5baeeea9c9ed3894c6b02841718167d9d8
2017-10-30 03:45:08 +00:00
Jiyong Park 237a053bc2 Fix: make vndk namespace visible for 2016 Pixes am: 6ed1a1c339
am: fc2c73af93  -s ours

Change-Id: I3404be83d23ef1562d554cf74607238712954bf3
2017-10-30 03:44:39 +00:00
Jiyong Park 33398203d7 vndk: remove vendor/lib from the search path of the 'vndk' namespace am: 7f654c3243
am: 03b5221a41  -s ours

Change-Id: I1a45f664bd7beafbff06840c29fefdcd73687c15
2017-10-30 03:44:21 +00:00
Jiyong Park 599d4fef35 libz is back to LLNDK am: e58fa1b0c6
am: 3fc71ffaa3  -s ours

Change-Id: I6d632ddf3bde2781a031df6806fdd4caec7a423e
2017-10-30 03:43:58 +00:00
Jiyong Park 73e8943fa7 Make the rs namespace visible am: 7075bca364
am: e6840fdba7  -s ours

Change-Id: I219c1c4a0d9c07a1a0f2b726fdda83dd7879473a
2017-10-30 03:43:40 +00:00
Justin Yun f9fb272881 Add libft2.so to ll-ndk for rs namespace am: 136eb05892
am: c6a2e38f95  -s ours

Change-Id: I00aec3fefe1c31c28ace4614f9d118191a01c2e0
2017-10-30 03:43:26 +00:00
Justin Yun 45967481a2 Move libz vndk-sp from ll-ndk am: 8ebf6ee6f6
am: 505f997ff5  -s ours

Change-Id: I7bd3506f381eabfd7f517cffa3d1cef3d1286995
2017-10-30 03:43:10 +00:00
Jae Shin 1d69a95b0d Merge changes from topic "rs_vndk_step3"
am: 51ec0a1387

Change-Id: I99cd5841a18417b6edd38f403efde4a867715b9a
2017-10-30 03:34:16 +00:00
Jiyong Park fc2c73af93 Fix: make vndk namespace visible for 2016 Pixes
am: 6ed1a1c339

Change-Id: I51682220904d38750a88fd0786e2b7ad3a9e4ba8
2017-10-30 03:33:52 +00:00
Jiyong Park 03b5221a41 vndk: remove vendor/lib from the search path of the 'vndk' namespace
am: 7f654c3243

Change-Id: I18d3361d294871d3f12729ed8b8007befd3b0b88
2017-10-30 03:33:23 +00:00
Jiyong Park 3fc71ffaa3 libz is back to LLNDK
am: e58fa1b0c6

Change-Id: Id982fbbc19fff4ff4eb2e703595b25e7009abdee
2017-10-30 03:32:44 +00:00
Jiyong Park e6840fdba7 Make the rs namespace visible
am: 7075bca364

Change-Id: Ibe1a95bb9e7978f6625884588d76dbbda0728b9d
2017-10-30 03:31:58 +00:00
Justin Yun c6a2e38f95 Add libft2.so to ll-ndk for rs namespace
am: 136eb05892

Change-Id: I1712e67623dca027de7103acbe677241ae1ca0b6
2017-10-30 03:31:06 +00:00
Justin Yun 505f997ff5 Move libz vndk-sp from ll-ndk
am: 8ebf6ee6f6

Change-Id: I4b5c6959a67d6a08c5effcdbc0334009faa7423f
2017-10-30 03:30:10 +00:00
Jae Shin 51ec0a1387 Merge changes from topic "rs_vndk_step3"
* changes:
  Tests are run with proper namespace configs by their locations
  Fix: make vndk namespace visible for 2016 Pixes
  vndk: remove vendor/lib from the search path of the 'vndk' namespace
  libz is back to LLNDK
  Make the rs namespace visible
  Add libft2.so to ll-ndk for rs namespace
  Move libz vndk-sp from ll-ndk
2017-10-30 03:22:53 +00:00
Jiyong Park 6ed1a1c339 Fix: make vndk namespace visible for 2016 Pixes
The nativeloader tries to find the 'vndk' namespace when there is a
vendor apk in the classloader paths. This can happen even for a
downloaded app if the app is using a vendor apk via <uses-library> tag.

In order to prevent the nativeloader from failing to find the vndk
namespace, the namespace is marked as visible.

Bug: 66482442
Test: download the app mentioned in the bug, it does not crash.
Merged-In: I82e2394eb6eedcb8645e1a5b3735bbfe2735b312
Change-Id: I82e2394eb6eedcb8645e1a5b3735bbfe2735b312
(cherry picked from commit 1cc09e749f)
2017-10-30 10:27:45 +09:00
Jiyong Park 7f654c3243 vndk: remove vendor/lib from the search path of the 'vndk' namespace
'vndk' namespace is the place for VNDK-SP libs. So /vendor/lib must be
removed from its search paths. It was there just because libhardware
(which is VNDK-SP) is loading HAL libs in vendor partition from there.
However this problem has been solved by modifying the libhardware so
that HAL libs are loaded from the 'sphal' namespace and not from the
current (the 'vndk') namespace.

Bug: 37731053
Test: sailfish builds and boots
Merged-In: Ia88934a975aa8811e05b5ba408e42d132f20f4e9
Change-Id: Ia88934a975aa8811e05b5ba408e42d132f20f4e9
(cherry picked from commit f01b52895d)
2017-10-30 10:27:45 +09:00
Jiyong Park e58fa1b0c6 libz is back to LLNDK
For 2016 pixel devices, where VNDK is not fully enforced, move libz back
to LLNDK so that we can pass the CTS without requiring the default
namespace to be isolated.

If we have libz in vndk-sp directory, test_linker_namespaces fails
because /system/lib/vndk-sp/libz.so becomes accessible. In order to make
the lib inaccessible, we have to make the default namespace isolated,
but this can't be done for 2016 pixel devices where VNDK is not fully
enforced. So, we choose to remove /system/lib/vndk-sp/libz.so and keep
the single copy at /system/lib.

Bug: 65018779
Test: android.jni.cts.JniStaticTest#test_linker_namespaces successful on
2016 pixel devices

Merged-In: Ib6b6560b02be69d2015c0afb86acf07c02b30c2f
Change-Id: Ib6b6560b02be69d2015c0afb86acf07c02b30c2f
(cherry picked from commit 697eb2da0d)
2017-10-30 10:27:45 +09:00
Jiyong Park 7075bca364 Make the rs namespace visible
This allows us to dlopen libRS_internal.so directly from the rs
namespace, not from the sphal namespace.

Bug: 64747884
Test: VtsHalRenderscriptV1_0TargetTest successful on the device built
with BOARD_VNDK_VERSION=current and [system] namespace config is applied
to /data/nativetest[64]/* processes.

Merged-In: I0b441791e395798e80a84592ca01e771bb1c201a
Change-Id: I0b441791e395798e80a84592ca01e771bb1c201a
(cherry picked from commit 421a5e46b7)
2017-10-30 10:27:45 +09:00