Commit Graph

51398 Commits

Author SHA1 Message Date
David Anderson 4e8b131b83 Merge "Sketch out libsnapshot for update_engine integration."
am: 3dcb41b224

Change-Id: I80098240360af4cfccce8bee92a3700266bb7d64
2019-07-18 16:00:21 -07:00
David Anderson 3dcb41b224 Merge "Sketch out libsnapshot for update_engine integration." 2019-07-18 22:42:13 +00:00
Raman Tenneti 01e4c2a35f Merge "Revert "add unittests for libnativeloader""
am: 80fa85c594

Change-Id: I7edd4661cef091ad7c6446a8c0c1ce03a7bb38f2
2019-07-18 15:01:44 -07:00
Jiyong Park 7cf8c51f4e Merge "add unittests for libnativeloader"
am: ce813ef66f

Change-Id: I98333c7dc1937c594ccb1df5658b133fd8ab1d84
2019-07-18 14:51:43 -07:00
Raman Tenneti 80fa85c594 Merge "Revert "add unittests for libnativeloader"" 2019-07-18 21:50:31 +00:00
Raman Tenneti 4ec2b28983 Revert "add unittests for libnativeloader"
This reverts commit 6b6437bab5.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Ice571bf7379743d516e0185fd9f1f0ffb284240a
2019-07-18 21:48:36 +00:00
Treehugger Robot ce813ef66f Merge "add unittests for libnativeloader" 2019-07-18 21:14:23 +00:00
Christopher Ferris 3ec2f3eeb0 Merge "Move to isolated testing."
am: 604ccb147c

Change-Id: I1003c6b6be21e1ef20ecd89842bd5189aab26403
2019-07-18 12:07:39 -07:00
Christopher Ferris 1c4f14f4b5 Merge "Add cause message when stack overflow is detected."
am: bcc00c5c8f

Change-Id: I224b1059a43a603259073e426c4f922be3820ebf
2019-07-18 12:06:54 -07:00
Christopher Ferris 604ccb147c Merge "Move to isolated testing." 2019-07-18 19:00:46 +00:00
Christopher Ferris bcc00c5c8f Merge "Add cause message when stack overflow is detected." 2019-07-18 18:55:46 +00:00
Martijn Coenen 90e29ac471 Merge "Ignore class_{reset|start}_post_data on non-updatable APEX."
am: 3f2d17632e

Change-Id: Ibf7f570b124d139dd1449a41604988ac64b82508
2019-07-18 01:21:15 -07:00
Martijn Coenen 3f2d17632e Merge "Ignore class_{reset|start}_post_data on non-updatable APEX." 2019-07-18 07:51:51 +00:00
Jiyong Park 6b6437bab5 add unittests for libnativeloader
libnativeloader hasn't had a unit test. Now we have it. The unittest
mocks calls to libdl, libbridgedloader, and JNI using gmock.

Not all tests are added yet. To ease the review, a few tests for core
scenarios are added.

Bug: 130388701
Test: libnativeloader_test

Change-Id: I518512047da66b44bc99cec26e2c34ba4985cca3
2019-07-18 16:04:55 +09:00
David Anderson 8a0f82fefa Sketch out libsnapshot for update_engine integration.
This is a skeleton API so we can begin implementing both libsnapshot and
the relevant changes in update_engine.

Bug: 136678799
Test: builds
Change-Id: I5dc0fc1f401e94da2b5996cd69ab4076847282a4
2019-07-17 20:30:51 -07:00
Christopher Ferris ea8e7d10d7 Move to isolated testing.
Modify the MapInfoCreateMemoryTest to work in the isolated mode.

Test: Ran unit tests on host/target.
Change-Id: I84e01d96e852acd813e0f203b4a207cfaf8ca556
2019-07-17 18:08:32 -07:00
Christopher Ferris da923d90ec Merge "Move to the libc++ demangler."
am: 19b24bada5

Change-Id: I1e4b8a5cba4e19c2d4795f20a4ac9c6da823642e
2019-07-17 17:51:31 -07:00
Christopher Ferris 19b24bada5 Merge "Move to the libc++ demangler." 2019-07-18 00:19:37 +00:00
Mathieu Chartier af3f7755ca Merge "Re-make showmap host supported"
am: 856544f8b1

Change-Id: I12d9efe3c3506ec5645e8348fb8ee17dc7481582
2019-07-17 17:19:24 -07:00
Mathieu Chartier 856544f8b1 Merge "Re-make showmap host supported" 2019-07-17 23:50:05 +00:00
Christopher Ferris 481e8379d3 Add cause message when stack overflow is detected.
Test: Ran new unit tests.
Test: Ran crasher stack-overflow, crasher64 stack-overflow and verified
Test: stack overflow cause is shown.
Test: Ran stack overflow app and verified tombstone includes stack-overflow
Test: message.
Change-Id: I9bb01186dff5ed81c77d84b6aaedb5332ddd7256
2019-07-17 14:14:26 -07:00
Christopher Ferris a74aae8033 Move to the libc++ demangler.
The previous versions of the libc++ demangler crashed on bad input.
However, the new version passes a fuzzer and has a lot of tests. Since
it's more complete than the local demangler, use it instead.

Modified the expected output of an offline test since the new demangler
handles a case that didn't work before.

Verified that the time it takes for the check_for_leak tests did not
change after this.

Bug: 136138882

Test: Ran the unit tests.
Test: Verified the __cxa_demangle function passes the fuzzer when run for
Test: hours. Both the 32 bit and 64 bit version of __cxa_demangle were
Test: fuzzed using external/libcxxabi/fuzz.
Change-Id: I10c06b589d57c36d89dbecba020b1ef2da69634a
2019-07-17 13:49:37 -07:00
Mathieu Chartier c0c28faa97 Re-make showmap host supported
Also fix bugs that made it not compile on host. Motivation is to be
able to analyze smaps files easily on the host.

Test: showmap -f maps.txt
Bug: 137034556

Change-Id: I7b8ca1237ce1ec17d02cd5217c73b62ee978cb05
2019-07-17 12:28:27 -07:00
Elliott Hughes 03cca21541 Merge "Remove perfprofd reference."
am: 97c06703f6

Change-Id: If6374e130ff430e7171ac71c7889844aab10775f
2019-07-17 11:47:44 -07:00
Treehugger Robot 97c06703f6 Merge "Remove perfprofd reference." 2019-07-17 18:30:37 +00:00
Josh Gao 1c8ecd77cd Merge changes I35f8843e,Icd2a94f8,I6c20f3b3
am: 1f1a0009fc

Change-Id: I13b66d553915bf4bdada12e854214d3232150423
2019-07-17 11:20:59 -07:00
Steven Moreland bb15e25719 Merge "libutils: RefBase remove 'basetype' typedefs"
am: 6b924d5a97

Change-Id: I45de9fe25279c0a787a98ec2e10a2f3fd5f18516
2019-07-17 11:20:14 -07:00
Josh Gao 1f1a0009fc Merge changes I35f8843e,Icd2a94f8,I6c20f3b3
* changes:
  adb: win32: don't shutdown socket when closing.
  adb: win32: silence wine test failure.
  adb: win32: fix adb_test.
2019-07-17 18:04:29 +00:00
Treehugger Robot 6b924d5a97 Merge "libutils: RefBase remove 'basetype' typedefs" 2019-07-17 17:49:28 +00:00
Elliott Hughes ffaabf54ba Remove perfprofd reference.
Dead and gone.

Test: treehugger
Change-Id: I8c08cada5313ddede5ebb4973d61cef2bb8a0a7e
2019-07-17 08:17:44 -07:00
Martijn Coenen 728586f5b2 Ignore class_{reset|start}_post_data on non-updatable APEX.
For devices that use FDE and don't support updatable APEXes, don't
stop and restart all processes - there is no need and it only increases
boot time for these devices.

Additionally, some daemons have never been restarted in the past, and
restarting them exposes certain issues.

Bug: 137251597
Bug: 136777273
Bug: 135627804
Test: verified manually w/ ro.updatable.apex=false
Change-Id: I9590f2c2cdfab0a49f39846896460305d44221ee
2019-07-17 08:49:44 +02:00
Tri Vo b00894dc64 Merge "Set /sys/power/wake_lock permissions on init."
am: e75c6c841b

Change-Id: I300152717163bc5419015c03b5dc23a2beb62422
2019-07-16 18:55:40 -07:00
Tri Vo e75c6c841b Merge "Set /sys/power/wake_lock permissions on init." 2019-07-17 01:30:45 +00:00
Josh Gao 08bd13eb3d adb: win32: don't shutdown socket when closing.
This appears to be an attempt to do orderly shutdown, but it doesn't
wait until the socket becomes readable, so it doesn't actually work. We
implement orderly shutdown elsewhere already, so delete this so that we
don't accidentally shutdown a duped socket.

Test: wine adb_test
Change-Id: I35f8843e8e6dbc7886fd545f0e43375a005e160f
2019-07-16 15:22:58 -07:00
Josh Gao 2ad4c3696f adb: win32: silence wine test failure.
Wine implements sockets with their own internal socketpair, which
results in the poll disconnect test failing.

Bug: http://b/117568356
Test: wine adb_test.exe
Change-Id: Icd2a94f8297fefd5c02e6517568fe288b168032c
2019-07-16 15:22:51 -07:00
Josh Gao efd8ae2d54 adb: win32: fix adb_test.
At some point between Q and master, adb_test.exe stopped working because
it wasn't being linked with -municode?

Test: wine adb_test.exe
Change-Id: I6c20f3b3241cee2052d31d1ca85b8a9738828f6e
2019-07-16 15:21:59 -07:00
Tri Vo c6a84e873b Set /sys/power/wake_lock permissions on init.
system_suspend need to be an early_hal as it's required before storage
encryption can get unlock on FDE devices.

/sys/power/wake_lock is a dependency of system_suspend (only in Q and
earlier). Permissions on this file need to be set early enough.

Bug: 136777986
Bug: 133175847
Test: boot blueline
Change-Id: I8a9d3374b327e451fb98d2279d1bac9477a9560d
2019-07-16 14:33:00 -07:00
Steven Moreland 18daa7b5f0 libutils: RefBase remove 'basetype' typedefs
useless/unused

Bug: N/A
Test: N/A
Change-Id: I72462a64411a58d22e071f20e2c950bd99fdffb1
2019-07-16 21:06:28 +00:00
David Anderson 9047835824 Merge "Revert "Revert "Remove libfiemap_writer from fs_mgr and move it to gsid."""
am: eb599db1c5

Change-Id: I818660e3f297ba1f801ee7b215ce1d3de052a837
2019-07-16 12:47:27 -07:00
David Anderson 4605a96076 Merge "libdm: Fix race conditions in LoopControl::Attach."
am: 974dadf904

Change-Id: Ieb08ab0217f5d9a3dc9538672bbaf7037487b49b
2019-07-16 12:47:03 -07:00
David Anderson eb599db1c5 Merge "Revert "Revert "Remove libfiemap_writer from fs_mgr and move it to gsid.""" 2019-07-16 19:03:09 +00:00
David Anderson 974dadf904 Merge "libdm: Fix race conditions in LoopControl::Attach." 2019-07-16 19:03:09 +00:00
Tom Cherry 2d9148abb2 Merge "Add nolint for implicit borrowed_fd constructors"
am: 8987f061c4

Change-Id: Ibfb6497be968af5e008c1b20de9de9e9041706a5
2019-07-16 01:37:16 -07:00
Treehugger Robot 8987f061c4 Merge "Add nolint for implicit borrowed_fd constructors" 2019-07-16 04:11:20 +00:00
Steven Moreland 2cdc6d7baf Merge "Reserve 'init'."
am: a19f51eccc

Change-Id: I7074046592fae42725536df2c2820e9b52983305
2019-07-15 19:50:45 -07:00
Treehugger Robot a19f51eccc Merge "Reserve 'init'." 2019-07-16 02:35:29 +00:00
Steven Moreland b8d01f377f Merge "Remove obsolete subdirs entry."
am: 100e8ffbcd

Change-Id: I3e11bcc22e77e9c1f36278721c7f8bb7e05d5a08
2019-07-15 19:32:53 -07:00
Treehugger Robot 100e8ffbcd Merge "Remove obsolete subdirs entry." 2019-07-16 02:02:40 +00:00
Kiyoung Kim 7b64a9a73a Merge "Run linkerconfig from init process"
am: 2f174171d7

Change-Id: I1c228374303842ce7d02cb30ee23c83ef43808d9
2019-07-15 17:39:34 -07:00
Ryan Prichard 4440f8bc20 Merge changes I5e33e5bf,I64237006
am: c37f4a4199

Change-Id: I1afe1a7cd33f6316411143429a593d29ac192516
2019-07-15 17:35:07 -07:00