Josh Gao
faf6159952
Merge "libdebuggerd: cleanup." am: 2b8a95a2a7
...
am: 8577f499b6
Change-Id: I5f45f0a1466685d53f2e1ad0e0f6e3b95fd8598d
2017-09-01 20:02:24 +00:00
Josh Gao
8577f499b6
Merge "libdebuggerd: cleanup."
...
am: 2b8a95a2a7
Change-Id: Icf6a347c23771894af164265538d3f90e3ecd940
2017-09-01 19:56:17 +00:00
Treehugger Robot
2b8a95a2a7
Merge "libdebuggerd: cleanup."
2017-09-01 19:45:31 +00:00
Bowgo Tsai
0bf9c716bd
Merge "Revert "adbd: lessen security constraints when the device is unlocked"" am: 9638729a9d
...
am: 08a8c4209f
Change-Id: I22a007674b17d7bb1d23ddd49d73ba3a918cfe33
2017-08-31 08:30:33 +00:00
Bowgo Tsai
08a8c4209f
Merge "Revert "adbd: lessen security constraints when the device is unlocked""
...
am: 9638729a9d
Change-Id: I25eab992b0a4c2f144454cd5865fad1a762cfc61
2017-08-31 08:27:33 +00:00
Treehugger Robot
9638729a9d
Merge "Revert "adbd: lessen security constraints when the device is unlocked""
2017-08-31 08:21:08 +00:00
Bowgo Tsai
53aeb8af81
Merge "Move adbd from root to system" am: 3d6f85167e
...
am: f390f04381
Change-Id: I5916c9dc47c2560c0acbdc1b405e752e041d4bbe
2017-08-31 06:35:57 +00:00
Bowgo Tsai
0603ec4294
Revert "adbd: lessen security constraints when the device is unlocked"
...
This reverts commit f1d3dbc32f .
With the following changes to move /sbin/adbd to /system/bin/adbd,
we don't need this workaround anymore.
https://android-review.googlesource.com/#/q/topic:move-adbd-to-system+(status:open+OR+status:merged)
Bug: 63313955
Bug: 63381692
Bug: 64822208
Test: 'adb root' works in VTS for a non-A/B device (userdebug GSI + user boot.img)
Change-Id: Ic1249d6abd7d6e6e7380a661df16d25447853a48
2017-08-31 14:30:51 +08:00
Bowgo Tsai
f390f04381
Merge "Move adbd from root to system"
...
am: 3d6f85167e
Change-Id: I3b89a7a8e98252319f850a225ef7ba2080e54879
2017-08-31 06:30:48 +00:00
Treehugger Robot
3d6f85167e
Merge "Move adbd from root to system"
2017-08-31 06:22:16 +00:00
Christopher Ferris
b41875be0b
Merge "Add proper support for embedded elf files." am: 537c68c8ed
...
am: 863fcdb0ca
Change-Id: I038dcbbd11f35a494a5197b315278b35b9a72236
2017-08-31 02:32:15 +00:00
Christopher Ferris
863fcdb0ca
Merge "Add proper support for embedded elf files."
...
am: 537c68c8ed
Change-Id: Ia28dbb1bbd02d54602a6256295cccf2def9caf04
2017-08-31 02:25:05 +00:00
Christopher Ferris
537c68c8ed
Merge "Add proper support for embedded elf files."
2017-08-31 02:17:41 +00:00
Christopher Ferris
3f805ac3f8
Add proper support for embedded elf files.
...
- Add a method to get the max size of an elf file by reading the
section header offset + size. This will properly map an elf
file embedded into an apk, instead of just mapping in what is done
by the dynamic linker. It does assume that the section headers are
at the end of the elf file.
- Add new tests for the above functionality.
- Update the unwind_symbols tool to take an address for finding a
function instead of dumping the entire symbol table.
Bug: 23762183
Test: Unit tests pass, unwind through the camera process and verify
Test: the GoogleCamera.apk shows some function names.
Change-Id: I00c021680fe1d43b60d652bf91bbf6667d9617be
2017-08-30 15:50:11 -07:00
Tom Cherry
f8d36679bf
Merge "use a single file for storing persistent properties" am: e1f9a58c86
...
am: 39088d35ee
Change-Id: I98871252072953ba8f892cdb1feef09a1b59e769
2017-08-30 19:49:38 +00:00
Tom Cherry
39088d35ee
Merge "use a single file for storing persistent properties"
...
am: e1f9a58c86
Change-Id: Iea9d022eee79e3a4ccf9f5ebc6739d565b6e51b1
2017-08-30 19:42:08 +00:00
Tom Cherry
e1f9a58c86
Merge "use a single file for storing persistent properties"
2017-08-30 19:30:18 +00:00
Josh Gao
35e06ef181
Merge "base: hopefully fix the mac build." am: 815f74a759
...
am: 8949a0255e
Change-Id: I97a5cc9e916ea0905861a2bd87c6902cdc66187c
2017-08-30 08:14:27 +00:00
Josh Gao
8949a0255e
Merge "base: hopefully fix the mac build."
...
am: 815f74a759
Change-Id: I335e774a3c6e1ed1fd662552ae158bd232ae6c78
2017-08-30 08:07:27 +00:00
Treehugger Robot
815f74a759
Merge "base: hopefully fix the mac build."
2017-08-30 08:03:32 +00:00
Josh Gao
4221e2cc03
base: hopefully fix the mac build.
...
Test: none
Change-Id: Idd4f353a158a0c096d16ecf87e239c50aba79cf7
2017-08-29 21:28:32 -07:00
Ting-Yuan Huang
e657bf552c
Merge "sdcard: mute false compiler alarm" am: cb4e164562
...
am: 124294a348
Change-Id: I6e8964c4eb7426b838c5f780a5c87136bfbc24e5
2017-08-30 02:49:37 +00:00
Ting-Yuan Huang
124294a348
Merge "sdcard: mute false compiler alarm"
...
am: cb4e164562
Change-Id: Iefc21ac2b479095e50a764495843db28bebdffa5
2017-08-30 02:43:07 +00:00
Treehugger Robot
cb4e164562
Merge "sdcard: mute false compiler alarm"
2017-08-30 02:31:54 +00:00
Tom Cherry
16fad42007
use a single file for storing persistent properties
...
We have seen that storing persistent properties in separate files
causes increased boot latency compared to if they were stored in a
single contiguous file.
This change creates a simple format for a contiguously stored property
file, and adds the support for arbitrary characters in the names of
persistent properties, which previously had been restricted. It has a
mechanism for converting older devices to the new format as well.
Bug: 64392887
Test: boot bullhead with new properties
Test: boot bullhead and verify old properties are converted to the new
property file
Test: corrupt property file and ensure that it gets recovered from memory
Test: new unit tests
Change-Id: I60d8201d655ce5c97b33faae81d5ca8dbbb21a14
2017-08-29 17:45:06 -07:00
Ting-Yuan Huang
1991ae9459
sdcard: mute false compiler alarm
...
Clang static analyzer worries that strcpy to a field may overwrites
other fields. Use snprintf() instead.
Test: built without seeing the warning.
Change-Id: I75d8edf1353b5d052fd14a954362bd0632c258fa
2017-08-29 17:21:13 -07:00
Josh Gao
c3706668c6
libdebuggerd: cleanup.
...
Move libdebuggerd headers into their own directory for namespacing,
move some includes to the top of their implementing files, delete some
dead code.
Test: mma, treehugger
Change-Id: Ie4c44e32e2ab3bc678092899d257fd4ed634aa34
2017-08-29 15:18:46 -07:00
Josh Gao
4db97b46fa
Merge "base: add Pipe and Socketpair wrappers." am: 287e8348de
...
am: b8ae24c73b
Change-Id: I9ae44e8ef9ddaf4cf9bf3a8f8a514074c5104bdc
2017-08-29 21:54:18 +00:00
Josh Gao
b8ae24c73b
Merge "base: add Pipe and Socketpair wrappers."
...
am: 287e8348de
Change-Id: I7f86122ee2239ad8daebc59d17f14f665e65983b
2017-08-29 21:47:56 +00:00
Treehugger Robot
287e8348de
Merge "base: add Pipe and Socketpair wrappers."
2017-08-29 21:26:39 +00:00
Tom Cherry
32e268561a
Merge "Globally allow up to 32K FDs open per process" am: 451ff37052
...
am: 42fb030221
Change-Id: I3c73e3e235d496d0ad65a7c5a4aee2fb23aeb173
2017-08-29 21:20:02 +00:00
Tom Cherry
42fb030221
Merge "Globally allow up to 32K FDs open per process"
...
am: 451ff37052
Change-Id: Icb14faacb7d10fd99dd66e2172e04c0e73a8b170
2017-08-29 21:15:03 +00:00
Tom Cherry
451ff37052
Merge "Globally allow up to 32K FDs open per process"
2017-08-29 21:01:23 +00:00
Christopher Ferris
e69ff20c0f
Merge "Update the tests." am: 4614a7ae1b
...
am: 8547fb9003
Change-Id: I0ad4c3cd4cf548433f4d553d8685986f27977800
2017-08-29 17:44:31 +00:00
Christopher Ferris
8547fb9003
Merge "Update the tests."
...
am: 4614a7ae1b
Change-Id: Ieeb5e4ccc512ddf120e29c55f6d7fdb01aa4c11c
2017-08-29 17:38:31 +00:00
Christopher Ferris
4614a7ae1b
Merge "Update the tests."
2017-08-29 17:30:41 +00:00
Jerry Zhang
9c5679caf0
Merge "adb: Use kernel aio for functionfs." am: aaa90cfe06
...
am: 6fe5cda8aa
Change-Id: I1dd26f8156c19911dc000ab5a3734b2a8ca474e5
2017-08-29 03:43:18 +00:00
Jerry Zhang
6fe5cda8aa
Merge "adb: Use kernel aio for functionfs."
...
am: aaa90cfe06
Change-Id: Ia89f076b94c8974544923b64ea53dffd6b8c8397
2017-08-29 03:38:26 +00:00
Treehugger Robot
aaa90cfe06
Merge "adb: Use kernel aio for functionfs."
2017-08-29 03:28:26 +00:00
Christopher Ferris
458cc66b07
Update the tests.
...
- Change all load_base to load_bias in the test files.
- Add the test files to the backtrace_test.
- Add a function to get the path to the test libraries.
- Change aarch64 to arm64 for offline test code.
- Modify the offline tests so that they can be easily updated when
unwinding on any arch for any other arch is possible.
- Add tests of CreateNew for remote debugging.
Test: Ran unit tests on host and angler.
Change-Id: Id6c5afe73aeb2ac22463dd81f061799fcb1c178b
2017-08-28 18:08:52 -07:00
Josh Gao
3c186bc32c
Merge "adb: improve CHECKs." am: 9f38e19b88
...
am: f628362478
Change-Id: I4d381032b4dfbca95a203473af4fcc6164b1fca8
2017-08-28 23:46:24 +00:00
Josh Gao
f628362478
Merge "adb: improve CHECKs."
...
am: 9f38e19b88
Change-Id: Icc50ced0faeda5653288922ec787311e30c5085d
2017-08-28 23:40:23 +00:00
Treehugger Robot
9f38e19b88
Merge "adb: improve CHECKs."
2017-08-28 23:35:44 +00:00
Tom Cherry
5727a169c1
Merge "init: fix signal handling and LOG(FATAL) in child processes" am: 30bf4b7500
...
am: 43e92299e9
Change-Id: I1df0e8ced15a283cccda88f24ebcfcb33b23c3c3
2017-08-28 22:01:16 +00:00
Tom Cherry
43e92299e9
Merge "init: fix signal handling and LOG(FATAL) in child processes"
...
am: 30bf4b7500
Change-Id: I9147d02a9e710f9e8068a9b3b061768daf2648e9
2017-08-28 21:55:45 +00:00
Josh Gao
fdf832dfd3
base: add Pipe and Socketpair wrappers.
...
Also, switch debuggerd_handler over to using android::base::unique_fd.
Test: treehugger
Change-Id: I97b2ce22f1795ce1c4370f95d00d769846cc54b8
2017-08-28 14:51:07 -07:00
Tom Cherry
30bf4b7500
Merge "init: fix signal handling and LOG(FATAL) in child processes"
2017-08-28 21:45:38 +00:00
Josh Gao
e46720938d
adb: improve CHECKs.
...
Use CHECK_LT(foo, 1234) instead of CHECK(foo < 1234) so that failing
checks have the values emitted.
Bug: http://b/65063965
Test: adb server nodaemon
Change-Id: I094287f7c4d2d177ea216568d06e9e425a28dd96
2017-08-28 14:43:24 -07:00
Josh Gao
43898a6add
Merge "adbd: don't spin if file sync read fails." am: 32d2eae8b9
...
am: 4dc1892491
Change-Id: If487706ed52943b8034334146286026ddbc5535a
2017-08-28 21:21:15 +00:00
Josh Gao
4dc1892491
Merge "adbd: don't spin if file sync read fails."
...
am: 32d2eae8b9
Change-Id: Ie104bb8ea8d67b5a7ce896d2237a44cc8ea1ab4f
2017-08-28 21:16:13 +00:00