Commit Graph

51490 Commits

Author SHA1 Message Date
Kiyoung Kim 08e56a5826 Merge "Replace xargs with other shell command" am: 18545d3852
am: 6aa4d948b9

Change-Id: I5f9d7149598e14dd446bd63722152a0757c86dbe
2019-07-18 18:51:32 -07:00
Kiyoung Kim 6aa4d948b9 Merge "Replace xargs with other shell command"
am: 18545d3852

Change-Id: I08355acaa6c57a557ca53791c00a6e51c02020fb
2019-07-18 18:40:06 -07:00
Treehugger Robot 18545d3852 Merge "Replace xargs with other shell command" 2019-07-19 01:20:15 +00:00
David Anderson 888c5f53aa Merge "Add a metadata folder for libsnapshot." am: 45a1c998d1
am: f1ce0e51bb

Change-Id: Icd9a9ee21accb3cc6c79f30efe2f4af753b4a51b
2019-07-18 16:10:13 -07:00
David Anderson aacd6c06f9 Merge "Sketch out libsnapshot for update_engine integration." am: 3dcb41b224
am: 4e8b131b83

Change-Id: I02560ee3b64c99835eb1f47457f196eace2d854c
2019-07-18 16:10:07 -07:00
David Anderson f1ce0e51bb Merge "Add a metadata folder for libsnapshot."
am: 45a1c998d1

Change-Id: I450ae649c089b3c5108cc26a714d851e6615d298
2019-07-18 16:00:31 -07:00
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 45a1c998d1 Merge "Add a metadata folder for libsnapshot." 2019-07-18 22:42:13 +00:00
David Anderson 3dcb41b224 Merge "Sketch out libsnapshot for update_engine integration." 2019-07-18 22:42:13 +00:00
Raman Tenneti 27ee907211 Merge "Revert "add unittests for libnativeloader"" am: 80fa85c594
am: 01e4c2a35f

Change-Id: I14382c3d3aa17b32024e1d1098e854c43c63e7c4
2019-07-18 15:11:48 -07:00
Jiyong Park 00484c24ba Merge "add unittests for libnativeloader" am: ce813ef66f
am: 7cf8c51f4e

Change-Id: I43543f08c21fc7e4641c11d04192d39a487fa5a6
2019-07-18 15:02:23 -07: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 55a8ad378c Merge "Move to isolated testing." am: 604ccb147c
am: 3ec2f3eeb0

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

Change-Id: Ief3acf88db4d0a08374188fcf7ca357f62f22dd4
2019-07-18 12:16:57 -07: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
Kiyoung Kim 95d55818a4 Replace xargs with other shell command
Recently Android build team changed environment to use prebuilt toybox
binaries for common tools (aosp/852849). However, as toybox xargs does
not support -I option, update_and_install_ld_config.mk started to fail
filtering out private vndk libraries from the list. To resolve this,
xargs usages are replaced with other shell command (read).

Bug: 137832162
Test: m -j && tested on Cuttlefish
Change-Id: I218ce6272c781f826b87c8efc0d3c77bf6bc3af5
2019-07-18 20:30:44 +09:00
Martijn Coenen e422419ef1 Merge "Ignore class_{reset|start}_post_data on non-updatable APEX." am: 3f2d17632e
am: 90e29ac471

Change-Id: I85161e9ce50be3ac8a8751d87cc2aea1a647b040
2019-07-18 01:29:18 -07: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
David Anderson 001747e890 Add a metadata folder for libsnapshot.
/metadata/ota will store the update state ("none", "applying",
"booting", "merging") for each dynamic partition. The data will be
managed by libsnapshot, whose primary consumer will be update_engine
but will also be available to recovery/fastbootd.

Bug: 136678799
Test: /metadata/ota exists
Change-Id: I3e06484cafeb363904914767abc8984adaa37021
2019-07-17 19:17:27 -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 cd1e51681b Merge "Move to the libc++ demangler." am: 19b24bada5
am: da923d90ec

Change-Id: I628ead418977e651b672dd21a27bdb36e84b58d6
2019-07-17 18:04:01 -07:00
Christopher Ferris da923d90ec Merge "Move to the libc++ demangler."
am: 19b24bada5

Change-Id: I1e4b8a5cba4e19c2d4795f20a4ac9c6da823642e
2019-07-17 17:51:31 -07:00
Mathieu Chartier 2cf810ad1e Merge "Re-make showmap host supported" am: 856544f8b1
am: af3f7755ca

Change-Id: I2c4155b87382525a1d25453444a82c0ddeee496c
2019-07-17 17:29:24 -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 fa66ee3411 Merge "Remove perfprofd reference." am: 97c06703f6
am: 03cca21541

Change-Id: Ie9e1f86fdbfaa5e1f73fc6d1e4f052c90412b85c
2019-07-17 11:56:06 -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 ce2024c2e9 Merge changes I35f8843e,Icd2a94f8,I6c20f3b3 am: 1f1a0009fc
am: 1c8ecd77cd

Change-Id: I84b695eab24839e8aa40bc7b203d6ed584c021b7
2019-07-17 11:29:15 -07:00
Steven Moreland ad6267c726 Merge "libutils: RefBase remove 'basetype' typedefs" am: 6b924d5a97
am: bb15e25719

Change-Id: I63f67d1a5a869e87d9040fdd2d954390b0ed3bc2
2019-07-17 11:27:54 -07: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