Commit graph

37803 commits

Author SHA1 Message Date
Jiyong Park
a91e8d0152 Merge "Support partners to expose their own system libs to Android apps"
am: ad5ed892a7

Change-Id: Ib1d2d9ecfd7d559114258359e1408849549c2eae
2017-12-19 18:29:56 +00:00
Julien Desprez
9db200e4dc Merge "Add suite component to test modules"
am: 20bc9eb60b

Change-Id: I6dd534a93db0423b5bc8b3e5f7db5c2850e3a2d2
2017-12-19 18:28:58 +00:00
Treehugger Robot
ad5ed892a7 Merge "Support partners to expose their own system libs to Android apps" 2017-12-19 16:21:29 +00:00
Jiyong Park
d1006fe659 Support partners to expose their own system libs to Android apps
Partners (entities other than AOSP) can expose their own system
libraries which are in /system/lib[64] to Android apps. This can be done
by adding the name of the libs into the files
/system/etc/public.libraries-<companyname>.txt.

There can be multiple of the txt files on a device, which is for the
case that multiple partners contributing to the same system image
have their own set of public libraries.

The public libraries MUST be named as lib<name>.<companyname>.so. This
is to prevent accidental exposure of AOSP-defined system private libs.

Note 1:
<companyname> doesn't need to be the same as the value of the sysprop
ro.product.manufacturer or anything that can be part of a file path.

Note 2:
This feature is not for exposing SoC-specific libs to Android apps. That
is already done by /vendor/etc/public.libraries.txt and is only for
libs in /vendor/lib[64].

Bug: 68280171
Test: mm -j under /system/core/libnativeloader/test
cts-tradefed run commandAndExit cts-dev -m CtsJniTestCases -t
android.jni.cts.JniStaticTest#test_linker_namespaces

Change-Id: I7d32ec27c7858e35b96c7c98223cc110acb35b81
2017-12-19 23:35:09 +09:00
Treehugger Robot
20bc9eb60b Merge "Add suite component to test modules" 2017-12-19 08:15:29 +00:00
Steven Moreland
b810209438 Merge "Remove CompileTimeIfElse."
am: 6d8aff5fdc

Change-Id: I0a23c1d7174098acc43de368bbb9e25785fb6222
2017-12-19 01:49:54 +00:00
Treehugger Robot
6d8aff5fdc Merge "Remove CompileTimeIfElse." 2017-12-19 01:44:19 +00:00
Steve Paik
12400958a8 Merge "Create wrapper function for set_wakeup_callback"
am: d848876ff7

Change-Id: I6ee09acad175923ad9bfd26ab64377626ed92108
2017-12-19 00:29:39 +00:00
Treehugger Robot
d848876ff7 Merge "Create wrapper function for set_wakeup_callback" 2017-12-19 00:06:15 +00:00
Steven Moreland
8edb49060a Remove CompileTimeIfElse.
- not used anywhere
- equivalent to std::conditional

Test: none
Bug: none
Change-Id: Iffc00acb899d5159359d60c09443c7d2d7fdf2a0
2017-12-18 15:52:50 -08:00
Josh Gao
e9200b5db0 Merge "unwindstack: add some perfunctory MemoryOffline tests."
am: 8b18000b39

Change-Id: I814e7208c6969f4d335415320af2940753a178fa
2017-12-18 22:29:05 +00:00
Treehugger Robot
8b18000b39 Merge "unwindstack: add some perfunctory MemoryOffline tests." 2017-12-18 22:21:45 +00:00
Tom Cherry
705cbc7562 Merge "Reland "Have property_service create a serialized property_contexts file""
am: 432cca5c32

Change-Id: I6853876fd18d769f14c12be688457a58b8711bfd
2017-12-18 22:11:18 +00:00
Tom Cherry
432cca5c32 Merge "Reland "Have property_service create a serialized property_contexts file"" 2017-12-18 22:02:35 +00:00
Elliott Hughes
be281d0b56 Merge "Increased number of Android log lines for tombstones"
am: 3e58777255

Change-Id: Idc35a4de4fd0cc08297ea96ece4e0e081c0783d5
2017-12-18 18:57:36 +00:00
Elliott Hughes
3e58777255 Merge "Increased number of Android log lines for tombstones" 2017-12-18 18:52:05 +00:00
Steve Paik
2d44190539 Create wrapper function for set_wakeup_callback
Bug: 70669809
Test:  Compiles

Change-Id: I55f8b9995c2d872504b586addb07a18206da7fbe
2017-12-18 10:22:04 -08:00
Julien Desprez
5b585791db Add suite component to test modules
Test: build
Bug: 65303193
Change-Id: I620c7034b9bdfa056dbde97c28bc5abc3375cc42
2017-12-18 18:08:53 +00:00
Jiyong Park
c56fafa4fc Merge "Do not use versioned VNDK directory in vendor partition"
am: 3459e5823e

Change-Id: I71264e329c01771a694999c710cdc41f4db69b7b
2017-12-18 05:01:46 +00:00
Treehugger Robot
3459e5823e Merge "Do not use versioned VNDK directory in vendor partition" 2017-12-18 04:58:39 +00:00
chirag honnavar
def0888a80 Increased number of Android log lines for tombstones
5 lines are not enough for debug

Bug: b/69815742

Change-Id: I3117f221f4945941ec277064ffd2765dda74e192
2017-12-18 09:28:49 +09:00
Yabin Cui
29088725b2 Merge "libbacktrace: export offline unwinding failures."
am: 742fc190c8

Change-Id: Ic0443e038996a0b8d88af3c03c196aca5df85fee
2017-12-16 20:43:54 +00:00
Yabin Cui
742fc190c8 Merge "libbacktrace: export offline unwinding failures." 2017-12-16 20:40:25 +00:00
Christopher Ferris
31bf08431c Merge "Fix issues in libunwindstack."
am: e05d6afb90

Change-Id: I69d62a4d9fb9810ce13e22d57b84b1cc3d29f05f
2017-12-16 02:48:54 +00:00
Christopher Ferris
e05d6afb90 Merge "Fix issues in libunwindstack." 2017-12-16 02:44:35 +00:00
Josh Gao
664de1b788 Merge "crash_dump: fork a copy of the target's address space."
am: 152bcf9b80

Change-Id: I222a960a411d3f1ab0b5ee8f61c3c812a875a0b4
2017-12-16 01:07:58 +00:00
Josh Gao
152bcf9b80 Merge "crash_dump: fork a copy of the target's address space." 2017-12-16 01:01:13 +00:00
Josh Gao
f4a94c44b6 unwindstack: add some perfunctory MemoryOffline tests.
Add some tests for the behavior of MemoryOffline.

Test: libunwindstack_test 32/64 on hikey960
Change-Id: Ib65a0fe5347b86062ffeaf0adaf9af57066edb76
2017-12-15 14:11:12 -08:00
Josh Gao
2b2ae0c88e crash_dump: fork a copy of the target's address space.
Reduce the amount of time that a process remains paused by pausing its
threads, fetching their registers, and then performing unwinding on a
copy of its address space. This also works around a kernel change
that's in 4.9 that prevents ptrace from reading memory of processes
that we don't have immediate permissions to ptrace (even if we
previously ptraced them).

Bug: http://b/62112103
Bug: http://b/63989615
Test: treehugger
Change-Id: I7b9cc5dd8f54a354bc61f1bda0d2b7a8a55733c4
2017-12-15 14:11:12 -08:00
Yabin Cui
f88082811a libbacktrace: export offline unwinding failures.
This is to help debugging different offline unwiding failures.

Bug: http://b/69383534
Test: run backtrace_test.
Change-Id: I5ed4837027a9f17d032925e97e9f5927161444b3
2017-12-15 13:29:53 -08:00
Christopher Ferris
e7b6624c3f Fix issues in libunwindstack.
- Add a load_bias field in MapInfo so that it can be loaded offline,
  and also so it can be cached.
- Add an Add function to the Maps class so that it's possible to manually
  create a map.
- Remove the OfflineMaps class since I haven't found a reason for this to
  exist.
- Add a pointer to the gnu debugdata compressed section in the interface
  itself and modify the step path to try eh_frame, then debug_frame, then
  gnu_debugdata. This way arm can add exidx as the last step behind
  gnu_debugdata. Add an offline test to verify the order of unwind.
- Fix x86_64_ucontext_t since it was a different size on 32 bit and 64 bit
  systems.

Test: Pass new unit tests.
Change-Id: I978b70d6c244bd307c62a29886d24c1a8cb2af23
2017-12-15 11:17:45 -08:00
Steve Paik
d5c078986e Merge "Fix LOG() messages to drop \n"
am: 3fca67514a

Change-Id: I666cd47c924f5d6f767517bc3c9631907fb44f5e
2017-12-15 17:03:24 +00:00
Treehugger Robot
3fca67514a Merge "Fix LOG() messages to drop \n" 2017-12-15 16:54:41 +00:00
Tim Murray
b9b168bdad Merge "adb: disable checksum on new versions"
am: 578a564994

Change-Id: I5f9abf1c91296ae7c488a26d3d77489e4ce70d18
2017-12-15 02:38:08 +00:00
Treehugger Robot
578a564994 Merge "adb: disable checksum on new versions" 2017-12-15 02:28:59 +00:00
Steve Paik
fea16e1dea Fix LOG() messages to drop \n
Bug: 70669809
Test: It's gone
Change-Id: Id66776a229be677c89968d1e0dc81fc8b4b7de5d
2017-12-14 17:31:58 -08:00
Jiyong Park
ca33a874fe Merge "Re-format ld.config.*.txt files"
am: eef035f641

Change-Id: I0c840069e3ec17a051427e52e99ece6cfc53e93f
2017-12-15 01:00:04 +00:00
Treehugger Robot
eef035f641 Merge "Re-format ld.config.*.txt files" 2017-12-15 00:52:48 +00:00
Dan Albert
1c9e17f8b0 Merge "Include what we use."
am: 5b6c9f5fb2

Change-Id: I258b635153dbd0f42cbf285dd09f269d91ec290a
2017-12-14 23:59:13 +00:00
Treehugger Robot
5b6c9f5fb2 Merge "Include what we use." 2017-12-14 23:52:55 +00:00
Elliott Hughes
64c59c23f3 Merge "BENCHMARK_MAIN now requires a semicolon."
am: 981379b70f

Change-Id: Id61096655f23b5c4679a2b0edfca58a1329ff6ad
2017-12-14 23:29:34 +00:00
Elliott Hughes
981379b70f Merge "BENCHMARK_MAIN now requires a semicolon." 2017-12-14 23:24:15 +00:00
Tim Murray
de47194940 adb: disable checksum on new versions
The checksum is unnecessary. Improves adb performance by 40% on USB2.

Test: new adb works with new + old adbd, old adb works with new adbd
bug 67327728

Change-Id: I761d8a5a62deaea9bbb092ea9926b2d6d312f00d
2017-12-14 14:18:26 -08:00
Tom Cherry
0b75d1987e Merge "Always check prefix matches array at each node"
am: 385ea22741

Change-Id: I9d4b9d9587212061dabcba206a17e3f18176641d
2017-12-14 16:55:41 +00:00
Treehugger Robot
385ea22741 Merge "Always check prefix matches array at each node" 2017-12-14 16:47:40 +00:00
Jiyong Park
60a2966fc9 Do not use versioned VNDK directory in vendor partition
Paths for extended VNDK libs don't need version suffix, because there
always is the single version that the vendor(odm) modules are built
against.

Bug: 70601582
Test: walleye boots to the UI.
Test: No further test is possible since we don't have extended VNDK yet
in our source tree.

Change-Id: Idbf4bb820ddb136d00744f64ddf6ebe6442ad16e
2017-12-14 21:43:04 +09:00
Jiyong Park
2498e1b1d3 Re-format ld.config.*.txt files
Re-format the files by splitting lines using +=.

Also add /odm/${LIB} where needed.

A few directories that are no longer required are removed from the
search paths and permitted paths.

Test: walleye and sailfish boots to the UI, renderscript, camera,
camcodder, sound, etc. are working.

Change-Id: I3150f0c3d35130d6b1a665e3f0813d33b1b7f546
2017-12-14 21:43:04 +09:00
Bowgo Tsai
72db512c47 Merge "first stage mount: support mount points like /vendor/abc"
am: edaa28771f

Change-Id: I9d3b557784f806c5892a81bc7173c93e54ef83f4
2017-12-14 06:52:02 +00:00
Treehugger Robot
edaa28771f Merge "first stage mount: support mount points like /vendor/abc" 2017-12-14 06:45:37 +00:00
Logan Chien
eec408ee59 Merge "android.hardware.graphics.allocator@2.0 is no longer VNDK-SP"
am: 4bba172ed2

Change-Id: I60e964bc697c667c9511d88dff6c86a7ebc9efa5
2017-12-14 03:07:46 +00:00