Commit graph

45432 commits

Author SHA1 Message Date
Bowgo Tsai
49ab41e7ab Merge "Adding libfs_avb host tests into presubmit"
am: c90b0eafda

Change-Id: I1a07297380f718a22e44a35f9f997bdaed743978
2019-01-28 21:45:30 -08:00
Tom Cherry
9691e45085 Merge "Remove extranous reading of fstab in BuilderTest::block_device_info"
am: 47a4082f88

Change-Id: I9875a9075eacc1e0e556adee3f9411d91e44cd55
2019-01-28 21:44:17 -08:00
Tom Cherry
9eaed18adb Merge "Remove the rest of users of the old style fstab"
am: 286684f835

Change-Id: Ice6d3023349398b2ba5ed99588cc2f457377fb6d
2019-01-28 21:42:24 -08:00
Martin Stjernholm
8f13a7f400 Merge "Add libnativebridge.so link to vndk_lite linker config."
am: 0b6d56e68b

Change-Id: Ic558af4547212e35e8725a0dab7db1b762cf9afd
2019-01-28 21:39:07 -08:00
Tom Cherry
acf95ae6d4 Merge "fs_mgr: remove old fs_mgr functions that are not currently used"
am: 2648b801ed

Change-Id: Id5cdb57603ccbf58f6c0cda3f071bbb27fabfe93
2019-01-28 21:34:02 -08:00
Steven Moreland
9edd9ebe1d Merge "Move clang-formats to build."
am: 66853db0a2

Change-Id: I005a7e056c9050ec927f59a7f195ddc3f7d39773
2019-01-28 20:09:07 -08:00
Greg Kaiser
d13559092c Merge "adb: Fix incorrect logging statement"
am: 32aaba6dcf

Change-Id: I7900ad07fceb4472744ca0d0c159960dde9dfabf
2019-01-28 20:08:32 -08:00
Tom Cherry
80fba27032 Merge changes Ibdecf0c9,I41bd92a7,I5669ed10
am: 561498e357

Change-Id: Ia0ba17bfee3d97dd4390f942ec7931c2b7a68ea6
2019-01-28 20:07:59 -08:00
Treehugger Robot
2cbdc561ad Merge "meminfo: Add memtrack dmabufinfo library" 2019-01-29 03:33:34 +00:00
Treehugger Robot
c90b0eafda Merge "Adding libfs_avb host tests into presubmit" 2019-01-29 01:46:41 +00:00
Treehugger Robot
47a4082f88 Merge "Remove extranous reading of fstab in BuilderTest::block_device_info" 2019-01-29 00:30:54 +00:00
Treehugger Robot
286684f835 Merge "Remove the rest of users of the old style fstab" 2019-01-29 00:29:09 +00:00
Sandeep Patil
dfa00a7729 meminfo: Remove libpagemap dependency
Remove all tests that validated libmeminfo against the libpagemap
implementation and make libmeminfo_test self sufficient.

Bug: 111694435
Bug: 113035067
Test: libmeminfo_test
Change-Id: I21b9a0e2c71ef3f1f672a3b1de8080c0c36b4bfe
Signed-off-by: Sandeep Patil <sspatil@google.com>
2019-01-28 15:05:52 -08:00
Yifan Hong
505b5513b4 healthd: update owners
Test: pass
Change-Id: I2efea4086ef9f8d9865da387bfc91345a31fc123
2019-01-28 14:55:39 -08:00
Christopher Ferris
7010ecb50d Fix bug in unwind_info display of exidx frame.
The rosegment changed the load segments and broke the unwind_info printing
of unwind information for the arm exidx frame.

Test: Fixed and verified by dumping the arm exidx frame.
Change-Id: I7270175e4dcb7fee2b96a16d168880ebd09f19b1
2019-01-28 14:51:19 -08:00
Treehugger Robot
0b6d56e68b Merge "Add libnativebridge.so link to vndk_lite linker config." 2019-01-28 22:49:15 +00:00
Yifan Hong
082d295fb3 healthd: charger loads resources from /product
Load resources from /product/etc/res/{values,images}/charger. If a
resource fails, falls back to /res/{values,images}/charger.

If the device has GSI flashed, resources may exist in both paths.
Resources in /product is used with a higher priority.

Test: turn off device, charge, observe animation
Bug: 119549685
Change-Id: I5a5143d132a0cc6ce9135469fb523feeeafd1b1b
2019-01-28 14:46:53 -08:00
Erick Reyes
d2918fe218 meminfo: Add memtrack dmabufinfo library
This is the userspace component for the improved shared memory buffer
tracking.

A new static library called libdmabufinfo will provide APIs to parse dmabuf
debugfs entries. The library can also map and read the file descriptors
per process to cross-reference the global data per process.

This change only adds a global API to read dmabuf stats from debugfs.

Bug: 63860998
Test: dmabufinfo_test
Change-Id: Ib0deedc73337a70875e03e07d3e9a692c4c33e63
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Erick Reyes <erickreyes@google.com>
Signed-off-by: Sandeep Patil <sspatil@google.com>
2019-01-28 14:16:23 -08:00
Tom Cherry
b688d917cd Remove the rest of users of the old style fstab
And deprecate one more old style function that is not used after this
change.

Test: boot, disable and enable verity
Change-Id: Id509f479850120352b4ea4dc3b6c40f6e8e2e53e
2019-01-28 12:34:33 -08:00
Treehugger Robot
2648b801ed Merge "fs_mgr: remove old fs_mgr functions that are not currently used" 2019-01-28 20:27:23 +00:00
Treehugger Robot
66853db0a2 Merge "Move clang-formats to build." 2019-01-28 20:16:54 +00:00
Treehugger Robot
32aaba6dcf Merge "adb: Fix incorrect logging statement" 2019-01-28 20:10:50 +00:00
Martin Stjernholm
626c7ca588 Add libnativebridge.so link to vndk_lite linker config.
Getting it back in line with the normal ld.config.txt. This was missed in
http://r.android.com/854740.

Test: Flash and boot on marlin
Bug: 119867084
Bug: 113373927
Change-Id: Ic7e482133250eda20ff2c94c27bdee30e015ab5c
2019-01-28 19:11:29 +00:00
Tom Cherry
679a6bacc6 Remove extranous reading of fstab in BuilderTest::block_device_info
Previously information from the fstab was needed for this test, but
that's not longer the case, so skip reading the fstab altogether.

Test: build
Change-Id: I3989c62e19ae2d8606f2bc3a617f9cc3da0e5a6f
2019-01-28 11:04:18 -08:00
Florian Mayer
1c993b76bf Allow to move frames out of Unwinder.
This saves a copy for every unwind we do in heapprofd.

Change-Id: Ife7aa1ce68831729d96ccd4c3e54ca531f98b6bc
2019-01-28 17:11:07 +00:00
Tom Cherry
2f0331d9b6 fs_mgr: remove old fs_mgr functions that are not currently used
New code should be using the new Fstab class, so remove these older
functions that don't have current users.

Test: build
Change-Id: I3ba2b12b838b4b46979963869939fd4b65264738
2019-01-28 09:06:10 -08:00
Tom Cherry
561498e357 Merge changes Ibdecf0c9,I41bd92a7,I5669ed10
* changes:
  fs_mgr: test parsing all mount and fs mgr options
  fs_mgr: convert parse_flags over to C++
  fs_mgr: store file_contents_mode and file_names_mode directly
2019-01-28 16:52:25 +00:00
chenbruce
c114fa270d Merge "Linker namespace configuration for the Resolv APEX."
am: 2d3ef2a22f

Change-Id: I8762937b9fce9c87f4b12903a5923973238e739d
2019-01-28 08:20:04 -08:00
Treehugger Robot
2d3ef2a22f Merge "Linker namespace configuration for the Resolv APEX." 2019-01-28 15:21:52 +00:00
Greg Kaiser
fdb9800fcc adb: Fix incorrect logging statement
We were logging "fd.get()" after we had already done a
"std::move(fd)".  That won't log the value we were hoping for.
We instead cache the file descriptor value in a local int prior
to the move(), and log that.

Test: TreeHugger
Change-Id: I715874ac63329280ffb55881fb2590fb31dc2457
2019-01-28 06:17:44 -08:00
Nicolas Geoffray
79c48f1a83 Merge "Make runtime namespace visible."
am: 3ea7785ee9

Change-Id: I74058f6dd78784359a87603ab5002c07656b4443
2019-01-28 01:29:27 -08:00
Nicolas Geoffray
3ea7785ee9 Merge "Make runtime namespace visible." 2019-01-28 09:16:21 +00:00
chenbruce
aa87fd5f7d Linker namespace configuration for the Resolv APEX.
Support netd to load resolv Apex.
Switch namespaces when switching library paths between
/system and the APEX, so that internal library dependencies in both
locations are loaded from their own directory.

Bug: 119527674
Test: make; flash; lsof -p $(pidof netd)
Test: 1. manual test datacall/wifi work
      2. manual test tethering work
      3. system/netd/tests/runtests.sh
Change-Id: I3f69e85f2f529636f0ef29a2d9d71ad582c46dfb
2019-01-28 16:42:58 +08:00
Hridya Valsaraju
863e8fb3b7 Merge "Make 'fastboot boot' command support boot header version 2"
am: b44996bfa9

Change-Id: I81239dd72347ebbe5360c2bcf9c158c84dd8cb79
2019-01-27 21:40:54 -08:00
Treehugger Robot
b44996bfa9 Merge "Make 'fastboot boot' command support boot header version 2" 2019-01-28 05:34:52 +00:00
Christopher Ferris
8bd4aa963a Merge "Add GetPrintableBuildID()."
am: 49047d711b

Change-Id: If23b529363e07473a498896ef493565f7a4cecb5
2019-01-25 23:09:38 -08:00
Christopher Ferris
49047d711b Merge "Add GetPrintableBuildID()." 2019-01-26 07:03:35 +00:00
Christopher Ferris
9a96618c9d Merge "Add a few leak check tests."
am: ed7ca8bb14

Change-Id: Icae3c879ca1abbd556a08d494556da14e92f2c12
2019-01-25 22:55:35 -08:00
Christopher Ferris
ed7ca8bb14 Merge "Add a few leak check tests." 2019-01-26 06:45:39 +00:00
Jiyong Park
8f6b3ed826 Merge "Remove permitted path for non-isolated namespace"
am: ce17f19bc8

Change-Id: Ib81fa94e013c48eb155069438d701c75cff92950
2019-01-25 22:11:24 -08:00
Treehugger Robot
ce17f19bc8 Merge "Remove permitted path for non-isolated namespace" 2019-01-26 06:01:48 +00:00
Cody Schuffelen
8435ddc499 Merge "Add native vsock support to ADB."
am: d290bb7ed8

Change-Id: I6acb0811ad5c1fb7ed521c59450d8a838a92faf3
2019-01-25 21:37:15 -08:00
Treehugger Robot
d290bb7ed8 Merge "Add native vsock support to ADB." 2019-01-26 05:25:28 +00:00
Wei Wang
9155524429 Merge "Fix path for default prop"
am: 3c2c9d8d43

Change-Id: I9ceb4b7a02fcfd869aab0c28545bfb9d31ebb683
2019-01-25 20:36:57 -08:00
Treehugger Robot
3c2c9d8d43 Merge "Fix path for default prop" 2019-01-26 04:22:37 +00:00
Mark Salyzyn
7cc3afb98c Merge "fs_mgr: ReadDefaultFstab suppress ReadFstabFromDt logging"
am: 33cff00c1c

Change-Id: Ia141090dee34971c219be0e57a228a03e20001af
2019-01-25 19:55:20 -08:00
Treehugger Robot
33cff00c1c Merge "fs_mgr: ReadDefaultFstab suppress ReadFstabFromDt logging" 2019-01-26 03:47:49 +00:00
Jiyong Park
c84bbb0079 Remove permitted path for non-isolated namespace
No reason to have permitted path for non-isolated namespace.

Bug: 123303398
Test: N/A
Change-Id: Iaddb358efab7a2017c17f74ee53a9d711646b57c
2019-01-26 11:34:40 +09:00
Cody Schuffelen
a05b64d432 Add native vsock support to ADB.
vsock is a socket address family for communicating into and out of
virtual machines. Addresses have a port and CID. The CID is unique to
each virtual machine on the computer. The VM host always has CID 2.
http://man7.org/linux/man-pages/man7/vsock.7.html

Inside the android guest, the adb daemon hosts a vsock server with
VMADDR_CID_ANY, automatically using the guest CID. The adb server
can now connect to addresses of the form vsock:cid:port, where the CID
must be specified and the port defaults to 5555.

This is a significant speed improvement for ADB connections in
Cuttlefish, with 150-200 MB/s for `adb push` and 100-150 MB/s for
`adb pull`. It also allows removing some proxying steps from Cuttlefish,
simplifying the full connection path, and removes a dependency on the
unstable ivshmem protocol.

Commands tested against a Cuttlefish VM with CID 3:
adb connect vsock:3:5555
adb -s vsock:3:5555 shell
adb disconnect vsock:3:5555

Supporting "adb disconnect" and "adb -s" required modifying some of the
parts that parse addresses / serials.

push/pull trials with native adb vsock support in cuttlefish:

100m: 1 file pushed. 297.6 MB/s (104857600 bytes in 0.336s)
100m: 1 file pushed. 270.3 MB/s (104857600 bytes in 0.370s)
100m: 1 file pushed. 271.7 MB/s (104857600 bytes in 0.368s)
100m: 1 file pushed. 250.5 MB/s (104857600 bytes in 0.399s)
100m: 1 file pushed. 277.1 MB/s (104857600 bytes in 0.361s)
100m: 1 file pushed. 263.5 MB/s (104857600 bytes in 0.379s)
100m: 1 file pushed. 242.6 MB/s (104857600 bytes in 0.412s)
100m: 1 file pushed. 271.8 MB/s (104857600 bytes in 0.368s)
100m: 1 file pushed. 267.1 MB/s (104857600 bytes in 0.374s)

/data/local/tmp/100m: 1 file pulled. 212.8 MB/s (104857600 bytes in 0.470s)
/data/local/tmp/100m: 1 file pulled. 236.7 MB/s (104857600 bytes in 0.423s)
/data/local/tmp/100m: 1 file pulled. 201.2 MB/s (104857600 bytes in 0.497s)
/data/local/tmp/100m: 1 file pulled. 255.6 MB/s (104857600 bytes in 0.391s)
/data/local/tmp/100m: 1 file pulled. 199.6 MB/s (104857600 bytes in 0.501s)
/data/local/tmp/100m: 1 file pulled. 214.6 MB/s (104857600 bytes in 0.466s)
/data/local/tmp/100m: 1 file pulled. 254.2 MB/s (104857600 bytes in 0.393s)
/data/local/tmp/100m: 1 file pulled. 212.5 MB/s (104857600 bytes in 0.471s)
/data/local/tmp/100m: 1 file pulled. 218.9 MB/s (104857600 bytes in 0.457s)
/data/local/tmp/100m: 1 file pulled. 223.6 MB/s (104857600 bytes in 0.447s)

Bug: 121166534
Change-Id: I50f21fb5c9acafb8daa789df4e28c9e1bbbbf2ef
Test: adb connect/shell/disconnect
2019-01-25 17:55:06 -08:00
Nicolas Geoffray
a9b4f2b66b Make runtime namespace visible.
So that ART can look it up by name.

Test: m && boots
Change-Id: Ib747a92e7decad2f9effe976a771a4eb0becc440
2019-01-26 01:06:43 +00:00