Commit graph

59955 commits

Author SHA1 Message Date
David Anderson
083df2945e fastbootd: Unmount /cache before flashing.
Bug: 150112538
Test: fastboot flash cache on non-A/B device
Change-Id: I8a86bc4d12e4b3be020bbe47e02262a5aaa913a7
Merged-In: I8a86bc4d12e4b3be020bbe47e02262a5aaa913a7
2020-03-31 13:23:00 -07:00
Yurii Zubrytskyi
490c1f0866 [automerger skipped] Merge changes from topic "incremental-default" into rvc-dev am: 3db3d6f8d6 -s ours
am skip reason: Change-Id Id27009250090a65fbb45bb65fc39c1799bf1f861 with SHA-1 3c1803cab5 is in history

Change-Id: If880db4c67dea1de95d9cfcc49e39f91a4288f34
2020-03-31 20:10:54 +00:00
David Anderson
15e63dff21 libdm: Link libraries statically for VTS.
Bug: 152180548
Test: 32-bit libdm_test
Change-Id: I9f356c854833b5e68820e4d3d4e9709af1288381
Merged-In: I9f356c854833b5e68820e4d3d4e9709af1288381
2020-03-31 13:00:03 -07:00
Yurii Zubrytskyi
3db3d6f8d6 Merge changes from topic "incremental-default" into rvc-dev
* changes:
  adb: fix apex installation.
  [adb] Use incremental installation by default
2020-03-31 19:28:07 +00:00
Tianjie
0ec0eaa214 Support parsing of data descriptor
The size fields in the data descriptor can be either 4 bytes or 8 bytes.
This depends on if the size are read from the zip64 extended field in
the local file header. This cl adds support to parse these cases.

Also fix a misconception in that the uncompressed and compressed size
doesn't need to exist together in the zip64 fields of the central
directory. But they still need to co-exist in the fields of the local
file header.

Bug: 150900468
Test: unit tests pass, python tests pass
Change-Id: Ia54f9bf56c85ff456ead90a136f7fddc5be5220c
2020-03-31 12:01:12 -07:00
TreeHugger Robot
3d3fdf85af Merge "libstatspull documentation for puller guardrails" into rvc-dev am: 614da3f1e0
Change-Id: I86d8047126bfb15510ad166926d3e8a9ab6bd4bd
2020-03-31 18:47:42 +00:00
TreeHugger Robot
614da3f1e0 Merge "libstatspull documentation for puller guardrails" into rvc-dev 2020-03-31 18:25:56 +00:00
Tom Cherry
e4a6ed8534 fastbootd: sync() after flashing partitions or updating super
There is a chance that devices are failing to reboot in the lab due to
sync() taking explicitly long during reboot.  Let's add the sync()'s
here to ensure they get accounted for in the flashing process.

A side benefit is it's likely safer to sync immediately after
flashing than to hope init does it during reboot.

Bug: 150863651
Test: flash local devices successfully
Change-Id: I4c4b0114f3cde8af4b8b2cb283ec21f869ef9f6f
2020-03-31 10:54:58 -07:00
Yurii Zubrytskyi
304153cf37 Merge "adb: fix apex installation." am: f8dc296dfd am: 39f4a75392
Change-Id: I4f30b0dd7317d3540254dd9591f2f2ce751241c2
2020-03-31 17:34:59 +00:00
Yurii Zubrytskyi
26dc4cc04d Merge "adb: fix apex installation." am: f8dc296dfd am: 39f4a75392
Change-Id: I89c773a5d5169c01e9ca58f1f8f6575d4e0882a8
2020-03-31 17:34:46 +00:00
Peter Collingbourne
a7b4c5d25a Fix off-by-one in ReadBuildIDFromMemory.
This was sometimes causing build ids to be truncated, probably because
of memory corruption in std::string. A similar off-by-one was fixed in
ReadBuildID in aosp/939619.

Bug: 129873279
Change-Id: I401fe7f991dbd135f5b4836381b48ea3c6a2243f
2020-03-31 10:29:38 -07:00
Yurii Zubrytskyi
39f4a75392 Merge "adb: fix apex installation." am: f8dc296dfd
Change-Id: I3ce241b4c9c48d20eaa5cb221ff8d04c215ca713
2020-03-31 17:11:02 +00:00
Josh Gao
cbdc9934c2 adb: fix apex installation.
Incremental doesn't support apex installation, but we were exiting
instead of returning -1 to fall back to regular installation.

Bug: http://b/151900478
Test: manual
Change-Id: Id27009250090a65fbb45bb65fc39c1799bf1f861
Merged-In: Id27009250090a65fbb45bb65fc39c1799bf1f861
2020-03-31 10:09:21 -07:00
Yurii Zubrytskyi
bc445fbab8 [adb] Use incremental installation by default
This CL turns on the incremental installation for all
"adb install ..." commands where no explicit mode has been set.
To disable this, set the ADB_INSTALL_DEFAULT_INCREMENTAL
environment variable to 0/n/no/false. Unset to enable back

+ improve the install command argument parsing a bit: allow
  --wait for all installation modes, --incr is enough for
  an incremental install (and --no-incr to disable it)

Bug: 150183149
Test: adb install with different apks and command line switches
Change-Id: I1a237f34b70d920146746ab16104e28ef555a5fd
Merged-In: I1a237f34b70d920146746ab16104e28ef555a5fd
2020-03-31 10:04:15 -07:00
Yurii Zubrytskyi
f8dc296dfd Merge "adb: fix apex installation." 2020-03-31 16:56:07 +00:00
Jaegeuk Kim
1cf59ba6f6 Merge "rootdir: init.rc: use default dirty writeout policy" am: a76ee8b929 am: 6fa02ca30a
Change-Id: I58005b0aa6730143d75f76704a58081983d9abb3
2020-03-31 16:20:05 +00:00
Jaegeuk Kim
701add4103 Merge "rootdir: init.rc: use default dirty writeout policy" am: a76ee8b929 am: 6fa02ca30a
Change-Id: Icec865962b9463d9303d2367b97f074b3b17e8cb
2020-03-31 16:19:48 +00:00
Jaegeuk Kim
6fa02ca30a Merge "rootdir: init.rc: use default dirty writeout policy" am: a76ee8b929
Change-Id: I5c2ff99cc705e4d454539e734549e1e2e019fc8a
2020-03-31 16:05:16 +00:00
Jaegeuk Kim
a76ee8b929 Merge "rootdir: init.rc: use default dirty writeout policy" 2020-03-31 15:57:22 +00:00
TreeHugger Robot
6df6c31276 [automerger skipped] Merge "init: require root for oneshot_on test" into rvc-dev am: d456db6d50 -s ours
am skip reason: Change-Id I7118025cc20081a200000bf484a08c9ed0b0d3ec with SHA-1 14f4afd2f2 is in history

Change-Id: Ibedea64551ae3f2b7f24c16726524f185a45ea9d
2020-03-31 15:47:16 +00:00
TreeHugger Robot
d456db6d50 Merge "init: require root for oneshot_on test" into rvc-dev 2020-03-31 15:33:51 +00:00
Paul Duffin
2b859925ea Add "com.android.os.statsd" to libprocessgroup apex_available
The dependency path that determined libprocessgroup is in the
com.android.os.statsd APEX is:

  com.android.os.statsd
    shared lib -> libstatspull
    static lib -> libutils
    shared lib -> libprocessgroup

Bug: 152762638
Test: m droid
Change-Id: Idf5d93085f926cc4fbeba40cbe03684c49baab72
2020-03-31 14:20:34 +01:00
Josh Gao
1158d91e1b Merge "Statically link libadbd into minadbd." am: db22f23dd3 am: b903481992
Change-Id: Ib6c45e3c5b8b1ee049b9f9a0cb02302ea66c990a
2020-03-31 08:53:49 +00:00
Josh Gao
c8a8e2a35e Merge "Statically link libadbd into minadbd." am: db22f23dd3 am: b903481992
Change-Id: I44d9fa2effda1f09c80bc3855ba7e3fd4c1bb6cc
2020-03-31 08:53:38 +00:00
Josh Gao
b903481992 Merge "Statically link libadbd into minadbd." am: db22f23dd3
Change-Id: I8967341c18c7702ed405c464f901589461bd5f77
2020-03-31 08:41:06 +00:00
Josh Gao
db22f23dd3 Merge "Statically link libadbd into minadbd." 2020-03-31 08:25:27 +00:00
Josh Gao
265d6e1dfd Merge "adb: temporarily kill adb_benchmark." am: d6211a2dde am: a056a8f239
Change-Id: I404efe22c9e53c47dc6032aa21831649a7844139
2020-03-31 04:09:14 +00:00
Josh Gao
764bffe411 Merge "adb: temporarily kill adb_benchmark." am: d6211a2dde am: a056a8f239
Change-Id: I2204d9e9deae233cf827b4b71ee950360bc433bc
2020-03-31 04:09:06 +00:00
Josh Gao
a056a8f239 Merge "adb: temporarily kill adb_benchmark." am: d6211a2dde
Change-Id: I8bf789ca5eef0cc43dc019e79f99c098eb85f6a9
2020-03-31 03:56:10 +00:00
Josh Gao
d6211a2dde Merge "adb: temporarily kill adb_benchmark." 2020-03-31 03:40:47 +00:00
Josh Gao
3c1803cab5 adb: fix apex installation.
Incremental doesn't support apex installation, but we were exiting
instead of returning -1 to fall back to regular installation.

Bug: http://b/151900478
Test: manual
Change-Id: Id27009250090a65fbb45bb65fc39c1799bf1f861
2020-03-31 02:08:14 +00:00
Tom Cherry
5b1c316a1f init: require root for oneshot_on test
Bug: 152630580
Bug: 152637928
Bug: 152662041
Bug: 152662652
Test: this test is skipped when run as non-root
Merged-In: I7118025cc20081a200000bf484a08c9ed0b0d3ec
Change-Id: I7118025cc20081a200000bf484a08c9ed0b0d3ec
(cherry picked from commit 14f4afd2f2)
2020-03-30 18:52:44 -07:00
Josh Gao
3735614b28 Statically link libadbd into minadbd.
Bug: http://b/150317254
Test: booted aosp_walleye-eng into recovery
Change-Id: Ie479ae2fbaf1006228a531dab26c7d535ed403db
2020-03-30 18:51:15 -07:00
Jaegeuk Kim
58ff5075ac rootdir: init.rc: use default dirty writeout policy
This patch removed the old writeout policy tune which was never touched since
2009. In the meantime, most of Android devices are equipped with over 4GB DRAM
and very fast flash storages like UFS, which becomes more like desktop or
servers in 2009. So, it'd be worth to go back to use the default kernel configs.

Bug: 129751503
Change-Id: Idb58f5b01bbc4afd270cffba5b8912ea3565819f
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2020-03-31 01:49:13 +00:00
Tej Singh
0d7fb3d260 libstatspull documentation for puller guardrails
Test: atest LibStatsPullTests
Bug: 152543610
Change-Id: Ia5caad7c9307c02fef7d3dfe70998601e7ffeb55
2020-03-30 18:15:05 -07:00
Josh Gao
553a34f2d3 Merge "Move adbd's legacy USB implementation to fastboot." am: fd193bd291 am: 0a9431d0f3
Change-Id: I55be3ec897df71fdc803b9242a989342bbc605cb
2020-03-31 00:51:50 +00:00
Josh Gao
ed91f30517 Merge "Move adbd's legacy USB implementation to fastboot." am: fd193bd291 am: 0a9431d0f3
Change-Id: I0cd942c1e13bf432fc91ed366266ee3227bde361
2020-03-31 00:50:44 +00:00
Josh Gao
0a9431d0f3 Merge "Move adbd's legacy USB implementation to fastboot." am: fd193bd291
Change-Id: I935ccc046e2975413b7390b1b439d2e0380566e0
2020-03-31 00:37:42 +00:00
Josh Gao
fd193bd291 Merge "Move adbd's legacy USB implementation to fastboot." 2020-03-31 00:24:20 +00:00
Josh Gao
c6cb89ea80 adb: temporarily kill adb_benchmark.
Temporarily delete adb_benchmark, since it seems difficult to make this
sensibly work with a single target that's used for both libadb and
libadbd benchmarking.

Bug: http://b/150317254
Test: treehugger
Change-Id: Ibf81fdff4f2b7304b586ce9a7955b4bc2c11484e
2020-03-30 16:43:06 -07:00
Josh Gao
0871824de6 Move adbd's legacy USB implementation to fastboot.
This code path is effectively dead in adbd, and fastboot's dependency on
libadbd makes it hard to refactor adbd's dependencies.

Bug: http://b/150317254
Test: built and flashed aosp_walleye-eng
Change-Id: I5118136d32fdcbbd011559ed0a4a71e1dc7bf064
2020-03-30 16:43:06 -07:00
Nikita Ioffe
663cd35030 Make init.userspace_reboot.is_supported a rw property
General recommendation is to avoid read-only properties, and instead control
"read-onlines" by only allowing init/vendor_init to set the property.

Since ro.init.userspace_reboot.is_supported was added in this release, and
nobody outside of the platform is querying it directly, it should be fine to
simply rename it.

Test: adb shell getprop init.userspace_reboot.is_supported
Test: atest CtsUserspaceRebootHostSideTestCases
Bug: 152803929
Change-Id: I7552d5ccc6e9b750a6081947eef8fcb027be13e1
2020-03-30 23:40:45 +01:00
Peter Collingbourne
19aee1a53d Merge "Read fault address on arm64 using proposed kernel API." am: cd63cae6b2 am: 3d89a46db3
Change-Id: I400b550e61a8efe29f6e7cd3a0efd124c6d124f4
2020-03-30 22:39:04 +00:00
Peter Collingbourne
104ee19bdd Merge "Read fault address on arm64 using proposed kernel API." am: cd63cae6b2 am: 3d89a46db3
Change-Id: I83400f6f2a4f959a6fd429b086fb00eeaf480404
2020-03-30 22:27:57 +00:00
Peter Collingbourne
2ef17a53ff Merge "Create a debugger_process_info data structure with the process info pointers." am: 5677803cb7 am: cba2467937
Change-Id: I83a01562b03ef04e016612bcb82d3cea97568ce4
2020-03-30 22:27:51 +00:00
Peter Collingbourne
c137271d87 Merge "Create a debugger_process_info data structure with the process info pointers." am: 5677803cb7 am: cba2467937
Change-Id: I1cfcdce3a24ddafbdc2f89202405908555e98a24
2020-03-30 22:27:23 +00:00
Peter Collingbourne
3d89a46db3 Merge "Read fault address on arm64 using proposed kernel API." am: cd63cae6b2
Change-Id: I87988443ee8e910345038880ede59937bd87ada0
2020-03-30 21:55:47 +00:00
Peter Collingbourne
cba2467937 Merge "Create a debugger_process_info data structure with the process info pointers." am: 5677803cb7
Change-Id: I4442107d1c6cc10a0765548e92af9fe89c2d575a
2020-03-30 21:55:26 +00:00
Peter Collingbourne
cd63cae6b2 Merge "Read fault address on arm64 using proposed kernel API." 2020-03-30 21:40:58 +00:00
Peter Collingbourne
5677803cb7 Merge "Create a debugger_process_info data structure with the process info pointers." 2020-03-30 21:36:41 +00:00