Commit graph

59221 commits

Author SHA1 Message Date
Treehugger Robot
141aa49eea Merge "adb: extract syncmsg structs." am: c549b122f4 am: a651084255
Change-Id: I492b747e5d49d8b537a834bc731edb36579b79d9
2020-03-23 06:36:29 +00:00
Treehugger Robot
a651084255 Merge "adb: extract syncmsg structs." am: c549b122f4
Change-Id: Ica5f977153486f01b2b2099dcdee6251e09800ae
2020-03-23 06:18:52 +00:00
Treehugger Robot
c549b122f4 Merge "adb: extract syncmsg structs." 2020-03-23 06:01:26 +00:00
TreeHugger Robot
46ec39a764 Merge changes from topic "tej-native-feedback" into rvc-dev am: e6ecb06dc7
Change-Id: I2b1ea3b9550f94401b717567963339accdf52d13
2020-03-21 03:17:02 +00:00
Tej Singh
aaae79ed2c Native API feedback for puller API am: c06f147566
Change-Id: Iffadb8536fa7007fa9d72322f13fc844043a7c36
2020-03-21 03:17:00 +00:00
TreeHugger Robot
e6ecb06dc7 Merge changes from topic "tej-native-feedback" into rvc-dev
* changes:
  Minor followups from api feedback
  Native API feedback for puller API
2020-03-21 03:15:06 +00:00
Peter Collingbourne
1bb50da990 Merge "Make GetPcAdjustment a free function." am: fffdd1ab1a am: 5ea462525d
Change-Id: Id1608eba38f210e5d7f914a0cb2535411a3f938f
2020-03-21 00:48:55 +00:00
Peter Collingbourne
5ea462525d Merge "Make GetPcAdjustment a free function." am: fffdd1ab1a
Change-Id: I038028a0a1873ffd56a73fd631cb51c9bff8fb05
2020-03-21 00:37:00 +00:00
Peter Collingbourne
fffdd1ab1a Merge "Make GetPcAdjustment a free function." 2020-03-21 00:18:54 +00:00
Yurii Zubrytskyi
b959a788b2 Merge "Adding block kind to protocol for future streaming of a tree." into rvc-dev am: c0a5aff0df
Change-Id: Ie9f752720280473a4634c184448cbc6b3a57812b
2020-03-20 22:27:09 +00:00
Yurii Zubrytskyi
c0a5aff0df Merge "Adding block kind to protocol for future streaming of a tree." into rvc-dev 2020-03-20 22:20:57 +00:00
Tom Cherry
fb6017c620 Merge "init: add ctl.oneshot_on/ctl.oneshot_off" am: 321151247c am: 553cbca0be
Change-Id: Ie7ac70672f2904d834e1e3a961c820cca877bd61
2020-03-20 21:27:15 +00:00
Jeffrey Huang
b7501cd033 [automerger skipped] Merge "Add new directory for stats metadata" into rvc-dev am: 440d20ff6d -s ours
am skip reason: Change-Id I1a918d189d8bcb394ec6f818d033dbf7e4518713 with SHA-1 58c88615f2 is in history

Change-Id: I1e18a7a4184a2ce6fd04ffa398093f5a490e4989
2020-03-20 21:21:51 +00:00
Tom Cherry
553cbca0be Merge "init: add ctl.oneshot_on/ctl.oneshot_off" am: 321151247c
Change-Id: I6a1745539bc520d4b69bbf0a663aabee30353b1d
2020-03-20 21:12:19 +00:00
Jeffrey Huang
440d20ff6d Merge "Add new directory for stats metadata" into rvc-dev 2020-03-20 21:07:35 +00:00
Tom Cherry
321151247c Merge "init: add ctl.oneshot_on/ctl.oneshot_off" 2020-03-20 20:57:18 +00:00
Tej Singh
47e5ae49c2 Minor followups from api feedback
Bug: 150788562
Test: m
Change-Id: I3473e49bc3f3682300b036ddeb032c3776d8d830
2020-03-20 12:16:28 -07:00
TreeHugger Robot
275ccf192c [automerger skipped] Merge "DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp@6304901 into stage-aosp-master" into stage-aosp-master am: 6d0b7c5ddd -s ours
am skip reason: subject contains skip directive

Change-Id: Id149cafd50d5d44fb7115da99fc5cae62c3295a7
2020-03-20 18:31:59 +00:00
Ryan Mitchell
d63fd67408 [automerger skipped] Merge "Allow loading zip at an offset in fd" into rvc-dev am: a355d925a5 -s ours
am skip reason: Change-Id I772fc8b462d71de0529717c420ced552103a6e3f with SHA-1 23150e4fe4 is in history

Change-Id: I9a0e5d5bd5c85836dac6cff07ead64a495b78e94
2020-03-20 18:21:08 +00:00
Alex Buynytskyy
e7817e42d1 Adding block kind to protocol for future streaming of a tree.
Bug: b/152050621
Test: adb install --incremental megacity.apk
Change-Id: I0c977080475088bf046a521a85f78595aac994f0
2020-03-20 11:18:33 -07:00
Ryan Mitchell
a355d925a5 Merge "Allow loading zip at an offset in fd" into rvc-dev 2020-03-20 18:16:30 +00:00
TreeHugger Robot
6d0b7c5ddd Merge "DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp@6304901 into stage-aosp-master" into stage-aosp-master 2020-03-20 18:15:04 +00:00
Tej Singh
c06f147566 Native API feedback for puller API
1. Rename registerPullAtomCallback to setPullAtomCallback
2. Rename unregisterPullAtomCallback to clearPullAtomCallback
3. Change Ns to Millis for consistency with java
4. Swap metadata and callback params in setPullAtomCallback to match
java
5. Added getters for PullAtomMetadata
6. Added libstatspull_test to test PullAtomMetadata
7. Changed the types on setAdditiveFields from int to int32_t

Test: make
Test: atest LibStatsPullTests
Test: bit libstatspull_test:*
Bug: 1507885621
Bug: 151875223
Change-Id: I5cb07bfe71b1002180403828d5e8e6a5b88ce6fe
2020-03-20 11:10:56 -07:00
Josh Gao
6e9bbfcc0e Merge "adbd: add apex_available and visibility for internal libs." am: 448519736b am: b802fd9b1c
Change-Id: I4f3ba750255be96a1f0a0b3a18d16b2266ccf9fa
2020-03-20 10:29:17 +00:00
Josh Gao
b802fd9b1c Merge "adbd: add apex_available and visibility for internal libs." am: 448519736b
Change-Id: I86c2a487a5acf833a763f6a78c0af9d399c310ce
2020-03-20 10:13:16 +00:00
TreeHugger Robot
97046b951c Merge "[adb] Print fewer progress messages for push/pull" into rvc-dev am: 934135d576
Change-Id: I3a05ae90ff85a979a1d4efc661e8c8a2f2aa13e7
2020-03-20 10:13:15 +00:00
TreeHugger Robot
934135d576 Merge "[adb] Print fewer progress messages for push/pull" into rvc-dev 2020-03-20 09:59:55 +00:00
Josh Gao
448519736b Merge "adbd: add apex_available and visibility for internal libs." 2020-03-20 09:58:23 +00:00
TreeHugger Robot
50821ab80b Merge "[adb] Optimize fdevent machinery" into rvc-dev am: fd3b80c99c
Change-Id: I80e4f2baaacb88ec78a6fc0a557fe7d748536e0d
2020-03-20 06:47:42 +00:00
TreeHugger Robot
fd3b80c99c Merge "[adb] Optimize fdevent machinery" into rvc-dev 2020-03-20 06:33:47 +00:00
Peter Collingbourne
5ac3927878 Make GetPcAdjustment a free function.
We're now using it in contexts that don't have all of the registers available,
such as GWP-ASan and soon MTE, so it doesn't make sense to have it be a
member function of Regs.

Bug: 135772972
Change-Id: I18b104ea0adb78588d7e475d0624cefc701ba52c
2020-03-19 17:51:20 -07:00
Josh Gao
eddae92928 adb: extract syncmsg structs.
Make it so that we can get the sizeof a member of syncmsg without having
an instance of syncmsg or doing something awful along the lines of
sizeof(reinterpret_cast<syncmsg*>(nullptr)->status).

Test: m adb adbd
Change-Id: I4830e7f90033c7706ff52cdd8d13e9cf40c73628
2020-03-19 17:24:15 -07:00
TreeHugger Robot
057c848b97 [automerger skipped] Merge "fastboot: add support for v3 boot header format" into rvc-dev am: 3b1ce56667 -s ours
am skip reason: Change-Id Ibf396e2d18d8b22cad50db290f3fd4e46ff85d9b with SHA-1 15303f2f67 is in history

Change-Id: I5349c92f3d0ddd30d5c1c6016c737cdcb4ebda3e
2020-03-20 00:17:03 +00:00
TreeHugger Robot
3b1ce56667 Merge "fastboot: add support for v3 boot header format" into rvc-dev 2020-03-20 00:01:50 +00:00
TreeHugger Robot
8d4383e728 Merge "[adb] Fix incremental installation on Windows" into rvc-dev am: ea1103cb1d
Change-Id: Id4fc8cd1430efd567f86acc22664c3f452e6fc6f
2020-03-19 22:19:48 +00:00
TreeHugger Robot
ea1103cb1d Merge "[adb] Fix incremental installation on Windows" into rvc-dev 2020-03-19 22:05:53 +00:00
Steve Muckle
b36934bf5f fastboot: add support for v3 boot header format
Support v3 header format when changing the command line with
fastboot boot or using flash:raw.

Bug: 151750405
Test: fastboot boot and flash:raw with updated cmdline and v3 header
Merged-In: Ibf396e2d18d8b22cad50db290f3fd4e46ff85d9b
Change-Id: Ibf396e2d18d8b22cad50db290f3fd4e46ff85d9b
2020-03-19 14:48:28 -07:00
TreeHugger Robot
c11bd89fe3 Merge "Enforce permission in native puller API." into rvc-dev am: 5a495becd0
Change-Id: I37715c5a1315f8767afe970ef35d2d855594115e
2020-03-19 21:36:52 +00:00
TreeHugger Robot
5a495becd0 Merge "Enforce permission in native puller API." into rvc-dev 2020-03-19 21:12:52 +00:00
Tom Cherry
bdbf5047c9 init: add ctl.oneshot_on/ctl.oneshot_off
Some services are lazy HALs on some platforms and not lazy HALs on
others; this is known at runtime by hwservicemanager, so this change
adds these properties to allow hwservicemanager to turn one oneshot
(for lazy HALs).  It may also be required to make a lazy HAL not lazy
anymore, and oneshot_off is provided for this.

Bug: 147841742
Test: new unit test that turn on and off oneshot on a service (bootanim)
      and observes that it follows the expected behavior
Change-Id: I79524e2c9a5008f90c8d3bc40920fde00602a439
2020-03-19 12:54:25 -07:00
TreeHugger Robot
80afce0b66 Merge "[adb data server] Initialize variable" into rvc-dev am: 126a1c2dd0
Change-Id: If01b50552b08160da93b4b6b3880133d17b3e2ed
2020-03-19 17:32:33 +00:00
TreeHugger Robot
126a1c2dd0 Merge "[adb data server] Initialize variable" into rvc-dev 2020-03-19 17:14:28 +00:00
Jeffrey Huang
c262d79974 Add new directory for stats metadata
Also reordered the directories in alphabetical order

Test: m -j
Bug: 149838525
Merged-In: I1a918d189d8bcb394ec6f818d033dbf7e4518713
Change-Id: I4b10a01ed6b3285aec6d87765f225c41ec55be96
2020-03-19 10:13:11 -07:00
Xin Li
14ebe4c17d DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp@6304901 into stage-aosp-master
Bug: 151763422
Change-Id: Ibbace08eb78d88b6ef77c22d8902428da36830ba
2020-03-19 10:10:44 -07:00
Yurii Zubrytskyi
67caf0ceef [adb] Print fewer progress messages for push/pull
Windows console IO is terribly slow. Reducing the number of
printed progress messages speeds up the transfer rate
from 80 to 130 MB/s on Windows laptop

Bug: 151900478
Test: adb push/pull
Change-Id: I223284c8a662bd8f2b8ba280cdcc8c930d3e5205
2020-03-19 00:21:08 -07:00
Treehugger Robot
7f71a87033 Merge "fastboot: add support for v3 boot header format" am: 3ab681c9a8 am: 7e3e65cc4b
Change-Id: I37bf625f75ed1fc885dcfd0ad83a00317ea3c1e4
2020-03-19 06:34:33 +00:00
Yurii Zubrytskyi
76820308c5 [adb] Optimize fdevent machinery
- Use one fewer heap allocation per fdevent object
- Lazy-init the fdevent context

Bug: 151239696
Test: various adb commands on Win/Linux

Change-Id: Ic7de207b30495e618f187e097c0276ad42c34005
2020-03-18 23:20:00 -07:00
Treehugger Robot
7e3e65cc4b Merge "fastboot: add support for v3 boot header format" am: 3ab681c9a8
Change-Id: Id838e3bb6cd3af28dece666a0f6d3de5aa183322
2020-03-19 06:13:06 +00:00
Treehugger Robot
3ab681c9a8 Merge "fastboot: add support for v3 boot header format" 2020-03-19 05:47:48 +00:00
Yurii Zubrytskyi
c3ac339daf [adb] Fix incremental installation on Windows
Use only the syscalls that work with the wrapped ADB fds, or
extract the native handles for the case when need to call one
not wrapped.

Bug: 151239696
Test: adb install --incremental <apk> on Windows
Change-Id: Ia6de620171ab696b8136dcb60a2b63af6f86419f
2020-03-18 22:28:01 -07:00