Tao Bao
42aaa3f5a6
Merge "Update OWNERS." am: 938e736f91 am: 03a5bd4d0d am: bfdff1ce7d
...
am: 70e92b2a8e
Change-Id: I46f0ce5b4ee04cd038d610cf5b1c5863b46d4a6c
2019-10-09 09:14:09 -07:00
Tao Bao
70e92b2a8e
Merge "Update OWNERS." am: 938e736f91 am: 03a5bd4d0d
...
am: bfdff1ce7d
Change-Id: I2b87d2d40e124f85b2809e2ce8e05a2350845a86
2019-10-09 09:08:01 -07:00
Tao Bao
bfdff1ce7d
Merge "Update OWNERS." am: 938e736f91
...
am: 03a5bd4d0d
Change-Id: Ieb5a5d5c07432e13734c5ccfbfbc8c47bcaec07e
2019-10-09 08:58:32 -07:00
Tao Bao
03a5bd4d0d
Merge "Update OWNERS."
...
am: 938e736f91
Change-Id: I905db1a8c1a46b8ca00a3aef10fdae4487562d6b
2019-10-09 08:52:01 -07:00
Tao Bao
938e736f91
Merge "Update OWNERS."
2019-10-09 15:33:13 +00:00
Tao Bao
7d47aebd79
Update OWNERS.
...
Test: N/A
Change-Id: I290fe43ee14fa3751f9ddb2c009bff235d8e1cff
2019-10-08 20:32:42 -07:00
Tianjie Xu
f2dab76cc6
Merge "Run BORINGSSL_self_test() in updater_main" am: 8316f2f09a am: 0b89939ddf am: 49e732cf65
...
am: ce1e355bd5
Change-Id: I00a80900757539a3532c82697b261fa598cf6c3c
2019-10-07 16:29:52 -07:00
Tianjie Xu
ce1e355bd5
Merge "Run BORINGSSL_self_test() in updater_main" am: 8316f2f09a am: 0b89939ddf
...
am: 49e732cf65
Change-Id: Ie9616bcce2f6a9b0f49e0925bc572e9e8d077e40
2019-10-07 16:21:37 -07:00
Tianjie Xu
49e732cf65
Merge "Run BORINGSSL_self_test() in updater_main" am: 8316f2f09a
...
am: 0b89939ddf
Change-Id: Ia2c1904980d5eb1d0f4d0f94ba0cf16a2693c59a
2019-10-07 16:15:19 -07:00
Tianjie Xu
0b89939ddf
Merge "Run BORINGSSL_self_test() in updater_main"
...
am: 8316f2f09a
Change-Id: I7ba12a5cfde83239310ab76f6f7fef722b20366a
2019-10-07 16:08:48 -07:00
Tianjie Xu
8316f2f09a
Merge "Run BORINGSSL_self_test() in updater_main"
2019-10-07 22:51:44 +00:00
Tao Bao
cff290f997
Merge "minadbd: Return battery level via getprop." am: e0e34a7f5c am: 58b5a5a550 am: a216efcb8d
...
am: fe12eead1b
Change-Id: Ic4a0e9bea04c7d2c17803c46ce98bf5dd7c1a592
2019-10-07 09:15:35 -07:00
Tao Bao
fe12eead1b
Merge "minadbd: Return battery level via getprop." am: e0e34a7f5c am: 58b5a5a550
...
am: a216efcb8d
Change-Id: I5116c33aaceab865757bf43922f568b617f75249
2019-10-07 09:08:35 -07:00
Tao Bao
a216efcb8d
Merge "minadbd: Return battery level via getprop." am: e0e34a7f5c
...
am: 58b5a5a550
Change-Id: Iae4141cc09a8a9d9facb061ded59575c4a3e1649
2019-10-07 08:42:51 -07:00
Tao Bao
58b5a5a550
Merge "minadbd: Return battery level via getprop."
...
am: e0e34a7f5c
Change-Id: Ib714d7add905ac1b2084f4144a2017a01a21fd2f
2019-10-07 08:37:00 -07:00
Tao Bao
e0e34a7f5c
Merge "minadbd: Return battery level via getprop."
2019-10-07 15:17:40 +00:00
Tianjie Xu
97692467a1
Run BORINGSSL_self_test() in updater_main
...
We need to run the these tests when starting updater to verify the
statically linked libcrypto. The test function is based on the known
answer tests, and it doesn't compute the hash of the libcrypto library.
Bug: 141003171
Test: unit tests pass, run a updater on cuttlefish
Change-Id: I897918a54bca76ea0c928102e7287df27505e1cc
2019-10-05 17:06:48 -07:00
Bill Peckham
6ea6270400
Merge "Moving recovery resources from /system to /vendor" am: 3903b26368 am: 1bf401d03f am: c1eef556dc
...
am: 5a096ecf5a
Change-Id: I56923c156eeda064494f6a873f2aaed4524fd39c
2019-10-04 20:45:10 -07:00
Bill Peckham
5a096ecf5a
Merge "Moving recovery resources from /system to /vendor" am: 3903b26368 am: 1bf401d03f
...
am: c1eef556dc
Change-Id: Iba5ee12b8f4919ffebd88ae4999737cfa8033883
2019-10-04 20:38:05 -07:00
Bill Peckham
c1eef556dc
Merge "Moving recovery resources from /system to /vendor" am: 3903b26368
...
am: 1bf401d03f
Change-Id: I4f4030b67c3bb62498d2217344e1f6f69393d057
2019-10-04 20:30:56 -07:00
Bill Peckham
1bf401d03f
Merge "Moving recovery resources from /system to /vendor"
...
am: 3903b26368
Change-Id: I477c2cbe802fff389a8e333ea693859d9a21a63e
2019-10-04 20:24:15 -07:00
Bill Peckham
3903b26368
Merge "Moving recovery resources from /system to /vendor"
2019-10-05 03:14:12 +00:00
Tao Bao
b548bea778
minadbd: Return battery level via getprop.
...
`adb rescue getprop rescue.battery_level` returns the current battery
level.
Bug: 134560109
Test: Build and boot into rescue mode.
Test: `adb rescue getprop ro.build.fingerprint`
Test: `adb rescue getprop rescue.battery_level`
Test: `adb rescue getprop` to dump all the properties.
Test: Run recovery_unit_test.
Change-Id: I78a9e8ab9783ffc8532cb93e6a64fb2157c19bd5
2019-10-04 15:33:27 -07:00
Tao Bao
6475738243
Merge "recovery_utils: Use libvoid_headers." am: 4782e79324 am: 7018c5b2d8 am: c1c275dd5c
...
am: bc943c57df
Change-Id: Ibc99b5af3bdc1a4b67c8b54ff3511971f55a0cb7
2019-10-03 17:35:41 -07:00
Tao Bao
bc943c57df
Merge "recovery_utils: Use libvoid_headers." am: 4782e79324 am: 7018c5b2d8
...
am: c1c275dd5c
Change-Id: I1b345bafba1b84449e41a03dffa0c468b0ad1ac4
2019-10-03 17:29:44 -07:00
Tao Bao
c1c275dd5c
Merge "recovery_utils: Use libvoid_headers." am: 4782e79324
...
am: 7018c5b2d8
Change-Id: I65988e9fd53ec68be39d9bb44d2268df22dd911c
2019-10-03 17:23:22 -07:00
Tao Bao
7018c5b2d8
Merge "recovery_utils: Use libvoid_headers."
...
am: 4782e79324
Change-Id: I4b1527c70eeaaea0cbf10702272b5cf8f5284714
2019-10-03 17:16:36 -07:00
Bill Peckham
341644d657
Moving recovery resources from /system to /vendor
...
This change is part of a topic that moves the recovery resources from the
system partition to the vendor partition, if it exists, or the vendor directory
on the system partition otherwise. The recovery resources are moving from the
system image to the vendor partition so that a single system image may be used
with either an A/B or a non-A/B vendor image. The topic removes a delta in the
system image that prevented such reuse in the past.
The recovery resources that are moving are involved with updating the recovery
partition after an update. In a non-A/B configuration, the system boots from
the recovery partition, updates the other partitions (system, vendor, etc.)
Then, the next time the system boots normally, a script updates the recovery
partition (if necessary). This script, the executables it invokes, and the data
files that it uses were previously on the system partition. The resources that
are moving include the following.
* install-recovery.sh
* applypatch
* recovery-resource.dat (if present)
* recovery-from-boot.p (if present)
This makes the applypatch executable a vendor module.
This change supports making dependencies of the applypatch executable available
to applypatch, which is now on vendor.
Since install-recovery.sh is now a vendor service, we add the
applypatch/vendor_flash_recovery.rc file to /vendor/etc/init to start the
service.
Bug: 68319577
Test: Ensure that recovery partition is updated correctly.
Change-Id: I01c0800ee6078aa6c9d716d5f154ad2d63c7af84
2019-10-04 00:04:56 +00:00
Treehugger Robot
4782e79324
Merge "recovery_utils: Use libvoid_headers."
2019-10-04 00:01:53 +00:00
Tao Bao
2559492d51
Merge "Refactor battery info querying functions into librecovery_utils." am: 678d6395b3 am: 80b6831ddb am: c2e4f011ce
...
am: 54f69b5fd7
Change-Id: Icb0afdf674df2ebbce188f4c58c13e1b85322d66
2019-10-03 09:28:06 -07:00
Tao Bao
54f69b5fd7
Merge "Refactor battery info querying functions into librecovery_utils." am: 678d6395b3 am: 80b6831ddb
...
am: c2e4f011ce
Change-Id: I45482287864ac1cb780dd2fa4b3bed4138c64a5f
2019-10-03 09:21:35 -07:00
Tao Bao
c2e4f011ce
Merge "Refactor battery info querying functions into librecovery_utils." am: 678d6395b3
...
am: 80b6831ddb
Change-Id: Ic110e512c91fd390f87392a0f6601cb6acce9aeb
2019-10-03 09:14:34 -07:00
Tao Bao
80b6831ddb
Merge "Refactor battery info querying functions into librecovery_utils."
...
am: 678d6395b3
Change-Id: I566ad1bb6dd940e6fcd224c8d6cbed234d1ca3bc
2019-10-03 09:07:38 -07:00
Tao Bao
640175e9d1
recovery_utils: Use libvoid_headers.
...
Test: mmm bootable/recovery
Change-Id: I2ad7620d0f967cb018a415358379c34804e232c5
2019-10-03 08:48:49 -07:00
Tao Bao
678d6395b3
Merge "Refactor battery info querying functions into librecovery_utils."
2019-10-03 15:40:23 +00:00
Tao Bao
832c9cd24f
Refactor battery info querying functions into librecovery_utils.
...
Bug: 134560109
Test: Run recovery_unit_test.
Change-Id: Ibbcdcfd507fa23657ee7ff677208b0003ec382ba
2019-10-02 22:04:25 -07:00
Tao Bao
5afb9a1f11
Merge "otautil: Factor out the utils that're private to recovery." am: c6fb9f9df5 am: dc717a5c2b am: 2772cfcb1a
...
am: ee516c147e
Change-Id: Icd4fe936cec72e654b7a4f3e733825bc14f39665
2019-10-02 16:11:50 -07:00
Tao Bao
ee516c147e
Merge "otautil: Factor out the utils that're private to recovery." am: c6fb9f9df5 am: dc717a5c2b
...
am: 2772cfcb1a
Change-Id: I89b1920d0cf6fddb7af1b0927adb6181e1204ab5
2019-10-02 15:27:54 -07:00
Tao Bao
2772cfcb1a
Merge "otautil: Factor out the utils that're private to recovery." am: c6fb9f9df5
...
am: dc717a5c2b
Change-Id: Ib3c106d43f5d5a01c2a060703f760855ce135b11
2019-10-02 14:39:01 -07:00
Tao Bao
dc717a5c2b
Merge "otautil: Factor out the utils that're private to recovery."
...
am: c6fb9f9df5
Change-Id: Ib1f978bb79f317d64bfa053ed34cecaf97353ba9
2019-10-02 14:24:27 -07:00
Tao Bao
c6fb9f9df5
Merge "otautil: Factor out the utils that're private to recovery."
2019-10-02 21:00:08 +00:00
Tao Bao
e3f09a72f5
otautil: Factor out the utils that're private to recovery.
...
A number of utility functions are intended for serving recovery's own
use. Exposing them via libotautil (which is a static lib) would pass the
dependencies onto libotautil's users (e.g. recovery image, updater, host
simulator, device-specific recovery UI/updater extensions etc). This CL
finds a new home for the utils that are private to recovery.
Test: mmma bootable/recovery
Change-Id: I575e97ad099b85fe1c1c8c7c9458a5a43d4e11e1
2019-10-02 10:56:46 -07:00
Tao Bao
6ad8de9e2b
Merge "otautil: Drop a few unneeded includes." am: 36f72131ff am: 7f9eb2e012 am: 78506ddf1a
...
am: f8d4db46a9
Change-Id: I4e6b15b372f70e584632aa32c04cb18f66616f91
2019-10-01 19:34:02 -07:00
Tao Bao
f8d4db46a9
Merge "otautil: Drop a few unneeded includes." am: 36f72131ff am: 7f9eb2e012
...
am: 78506ddf1a
Change-Id: I37d895c5d35fb9c9435e5bed838c524fb0fa0f17
2019-10-01 19:28:00 -07:00
Tao Bao
78506ddf1a
Merge "otautil: Drop a few unneeded includes." am: 36f72131ff
...
am: 7f9eb2e012
Change-Id: Ic094365bd36c3b466ec1904f1c6b16265f18f7da
2019-10-01 19:21:59 -07:00
Tao Bao
7f9eb2e012
Merge "otautil: Drop a few unneeded includes."
...
am: 36f72131ff
Change-Id: I7c358332c176fbc425490fd416f70ef35ac02cdb
2019-10-01 19:16:00 -07:00
Treehugger Robot
36f72131ff
Merge "otautil: Drop a few unneeded includes."
2019-10-02 02:00:52 +00:00
Tao Bao
f6ed376b20
otautil: Drop a few unneeded includes.
...
Test: mmma bootable/recovery
Change-Id: I6ed8f9eca7183f84537c770baaffddd22b6e9f28
2019-10-01 16:00:17 -07:00
Tao Bao
e1bf5b2404
Merge changes I6c35d2e4,If16c3e19 am: c3f32b95e5 am: 48fb5e27a1 am: be4305fcd1
...
am: abdf3b93b6
Change-Id: Iaeca6c089344fccf0d4abe4bbc2f12ce3cfc1ba1
2019-10-01 14:58:33 -07:00
Tao Bao
abdf3b93b6
Merge changes I6c35d2e4,If16c3e19 am: c3f32b95e5 am: 48fb5e27a1
...
am: be4305fcd1
Change-Id: I25bfe5dea51627e8d8d269860cff0b883636dc8e
2019-10-01 14:52:54 -07:00