summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Track the change to update_engine_sideload path." am: 97de9c3d3eTao Bao2018-08-152-2/+2
|\ | | | | | | | | | | am: 07c78fe446 Change-Id: I4b0658d1fb7680bac5f48929146b753c14713974
| * Merge "Track the change to update_engine_sideload path."Tao Bao2018-08-152-2/+2
| |\ | | | | | | | | | | | | | | | am: 97de9c3d3e Change-Id: I7b16e7b90ad473581216dda7f991245d7a71525d
| | * Merge "Track the change to update_engine_sideload path."Tao Bao2018-08-152-2/+2
| | |\
| | | * Track the change to update_engine_sideload path.Tao Bao2018-08-142-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 112494634 Test: Build and boot into recovery image on taimen. Verify that `Apply updates from ADB` keeps working. Test: Run recovery_component_test on marlin. Change-Id: I9ee8834053fda79a4fd77bfa83eab3cc51a90dff
* | | | Merge "Add fastboot mode to recovery" am: 19a5316412Hridya Valsaraju2018-08-158-41/+324
|\| | | | | | | | | | | | | | | | | | | | | | | am: b0851cf8c4 Change-Id: I5bfe707e176d742f6ab1bd86b7c5fb65ce4fdc33
| * | | Merge "Add fastboot mode to recovery"Hridya Valsaraju2018-08-158-41/+324
| |\| | | | | | | | | | | | | | | | | | | | | | am: 19a5316412 Change-Id: I115017c90c8ee4a7b28a2742462d157585b1edaa
| | * | Merge "Add fastboot mode to recovery"Treehugger Robot2018-08-148-41/+324
| | |\ \
| | | * | Add fastboot mode to recoveryHridya Valsaraju2018-08-148-41/+324
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a fastboot mode to recovery that can be entered with command line args or with the ui. Add usb property triggers to switch between fastboot and adb configurations. Allow switching between fastboot and adb through usb commands by opening a unix socket. adbd/fastbootd writes to this socket, which interrupts the ui and switches to the new mode. Test: Use fastboot mode Bug: 78793464 Change-Id: I7891bb84427ec734a21a872036629b95ab3fb13c
* | | | | Merge "recovery uses IHealth::getService" am: ce2f0d85fbYifan Hong2018-08-153-63/+33
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c7c56f0e90 Change-Id: Ib96bc483a80a35a0b405c82cf623dfe7c2157ff4
| * | | | Merge "recovery uses IHealth::getService"Yifan Hong2018-08-153-63/+33
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ce2f0d85fb Change-Id: Ic22bf13545f1261f288dc47df9ee123913ad8028
| | * | | Merge "recovery uses IHealth::getService"Yifan Hong2018-08-143-63/+33
| | |\ \ \ | | | |_|/ | | |/| |
| | | * | recovery uses IHealth::getServiceYifan Hong2018-08-143-63/+33
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | recovery is_battery_ok function uses get_health_service(), which calls IHealth::getService("default") then IHealth::getService("backup"). - An OEM can provide the default instance by installing android.hardware.health@2.0-impl-<device>.so to recovery partition. - If that's not found, the "backup" instance is provided to the recovery partition by default. Test: call is_battery_ok() in recovery, successfully get battery information. Bug: 80132328 Change-Id: Ibfee80636325a07bc20b24d044d007a60b3dd7c2
* | | | Merge "updater: Move libupdater to Soong." am: c205dd9d43Tao Bao2018-08-144-37/+81
|\| | | | | | | | | | | | | | | | | | | | | | | am: d1386d8385 Change-Id: Ia5c3eb61af9cf7583dabb82c151867b26dee052f
| * | | Merge "updater: Move libupdater to Soong."Tao Bao2018-08-144-37/+81
| |\| | | | | | | | | | | | | | | | | | | | | | am: c205dd9d43 Change-Id: I00ba7327c02eaae9e1d9262dc6b4ea03179e1e9f
| | * | Merge "updater: Move libupdater to Soong."Tao Bao2018-08-144-37/+81
| | |\ \
| | | * | updater: Move libupdater to Soong.Tao Bao2018-08-134-37/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma -j bootable/recovery Test: Run recovery_unit_test and recovery_component_test on marlin. Change-Id: I2617b87d13c585addf0ed2fbae8c3ce443ea7200
* | | | | Merge "recovery: Drop the dependency on libcrypto_utils.so and libsparse.so." am: 19d002d33fTao Bao2018-08-141-2/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3eceebf7eb Change-Id: I5385c97a363906d06dae4ec26f1b2c82ee78eeb9
| * | | | Merge "recovery: Drop the dependency on libcrypto_utils.so and libsparse.so."Tao Bao2018-08-141-2/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 19d002d33f Change-Id: Ied2c8510c24e8e1d698beefbc36a84bea26aa5aa
| | * | | Merge "recovery: Drop the dependency on libcrypto_utils.so and libsparse.so."Tao Bao2018-08-141-2/+0
| | |\ \ \
| | | * | | recovery: Drop the dependency on libcrypto_utils.so and libsparse.so.Tao Bao2018-08-141-2/+0
| | | | |/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They're only needed in past when we statically linked libs that had dependencies on them. Dropping them doesn't affect the recovery image size, as there're still other users of the libs. But this would avoid the false dependencies on them. Test: `mmma -j bootable/recovery` Change-Id: Ib43cc42221edde9efea1f12357cfc2f2232ec520
* | | | | Merge "Add the hash_tree_info class in Command" am: c0195801dcTianjie Xu2018-08-143-1/+113
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9b64295f3e Change-Id: Iefc9c9f99ced49e30152a0efd04e049124a320fb
| * | | | Merge "Add the hash_tree_info class in Command"Tianjie Xu2018-08-143-1/+113
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c0195801dc Change-Id: I32500b2045271d498d3a67b85e5ec0a51ac8da0c
| | * | | Merge "Add the hash_tree_info class in Command"Tianjie Xu2018-08-143-1/+113
| | |\ \ \ | | | |/ / | | |/| |
| | | * | Add the hash_tree_info class in CommandTianjie Xu2018-08-143-1/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add hash_tree_info to represent the hash tree computation arguments in the transfer commands 'compute_hash_tree'. Also add its parsing code in the Command class. Bug: 25170618 Test: unit tests pass Change-Id: Ie8607968377968e8fb3e58d1af0b8ca315e145be
* | | | | Merge "Reland "Build and use minadbd as a shared library."" am: 337bd80b78Tao Bao2018-08-143-13/+10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7785eec4f2 Change-Id: I198839ac58fd4713f1f4e73f096631be7f4e991e
| * | | | Merge "Reland "Build and use minadbd as a shared library.""Tao Bao2018-08-143-13/+10
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 337bd80b78 Change-Id: Iae00627d92cc7761afe1d99005287284793bbaa8
| | * | | Merge "Reland "Build and use minadbd as a shared library.""Tao Bao2018-08-143-13/+10
| | |\ \ \
| | | * | | Reland "Build and use minadbd as a shared library."Tao Bao2018-08-133-13/+10
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This relands the previously reverted CL in commit c70446ce7b4db79f296833b16ce38eb8a01d83df ("Build and use minadbd as a shared library."). `recovery` has been built with Soong, so the previous concern (unintentionally installing `libminadbd_services.so` to normal system image) no longer holds. Note that `reocvery` can't use `libminadbd_services.a`, as functions like `daemon_service_to_fd()` (needed by `libadbd.so`) won't be linked into `recovery`. This CL moves the dependency of `libminadbd_services` from `librecovery` into `recovery`, as only the latter actually relies on it (via `recovery_main.cpp`). Note that we no longer need to list the transitive dependency on `libadbd` or `libasyncio`. Bug: 112494634 Test: `mmma -j bootable/recovery` Test: Build and boot into recovery with aosp_taimen-userdebug. Verify that sideloading keeps working. Test: `build/soong/build_test.bash --dist` Change-Id: Ic086470b86d6770bede317e0f5534f608fa7b7d2
* | | | | Merge "Remove TODO for b/112462307" am: 1914bd0f4bColin Cross2018-08-141-5/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a681afc358 Change-Id: I4975cdfdf909ca64d027400678bda0ec9153db39
| * | | | Merge "Remove TODO for b/112462307"Colin Cross2018-08-131-5/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1914bd0f4b Change-Id: I2debb7e2402a48a291cc20a9714370b17bcf9392
| | * | | Merge "Remove TODO for b/112462307"Colin Cross2018-08-131-5/+3
| | |\ \ \ | | | |_|/ | | |/| |
| | | * | Remove TODO for b/112462307Colin Cross2018-08-131-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b/112462307 is fixed now, remove the TODO. Bug: 112462307 Test: dexlist out/soong/.intermediates/bootable/recovery/updater_sample/SystemUpdaterSample/android_common/dex/classes.dex | grep getUpdaterState Change-Id: I19cb93a74b714967e4bab2964e229a0ab0a15676
* | | | | Merge "Build `recovery` with Soong." am: df264e0186 am: 24b16491dbTao Bao2018-08-134-189/+140
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 287ce6ebea Change-Id: Idab5e805d896b9595e8fbbe12213b85fb80c2ae1
| * | | | Merge "Build `recovery` with Soong." am: df264e0186Tao Bao2018-08-134-189/+140
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 24b16491db Change-Id: I5708d582aa745e398a165e589ad3df192d1b6c84
| | * | | | Merge "Build `recovery` with Soong."Tao Bao2018-08-134-189/+140
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: df264e0186 Change-Id: Ibb7075be2286f4df99667ef1ace22a58b9bec7df
| | | * | | Merge "Build `recovery` with Soong."Tao Bao2018-08-134-189/+140
| | | |\ \ \
| | | | * | | Build `recovery` with Soong.Tao Bao2018-08-104-189/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: 110380063 Test: `mmma -j bootable/recovery` with aosp_taimen-userdebug Test: Build and boot into recovery on taimen. Check the basic functionalities (`Apply update from ADB`, `View recovery logs`, `Run graphics test`). Test: Run recovery_unit_test and recovery_component_test on marlin. Test: Modify `recovery.cpp` locally to trigger the call to is_battery_ok(). Check that the battery info is reported correctly. Test: `build/soong/build_test.bash --dist` Change-Id: I391eb201d57c760e457ba2bf2410ceb72596795c
* | | | | | | Merge "tests: Create res-testdata for testdata pickup." am: 2cc6211165 am: e5734c014fTao Bao2018-08-137-5/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9c2145d297 Change-Id: I584a1377a809bf730773e824f818fedb9fb75aa5
| * | | | | | Merge "tests: Create res-testdata for testdata pickup." am: 2cc6211165Tao Bao2018-08-137-5/+11
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e5734c014f Change-Id: Ia13c3f4b0940f2089f747d6cf23cc691889f0b25
| | * | | | | Merge "tests: Create res-testdata for testdata pickup."Tao Bao2018-08-137-5/+11
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2cc6211165 Change-Id: Ife7e354f91f07f715e012a37d65fe264c4d0e44d
| | | * | | | Merge "tests: Create res-testdata for testdata pickup."Tao Bao2018-08-137-5/+11
| | | |\ \ \ \ | | | | |_|/ / | | | |/| | |
| | | | * | | tests: Create res-testdata for testdata pickup.Tao Bao2018-08-137-5/+11
| | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It doesn't change the functionality of the test, but allows easier conversion to Soong. Test: Run recovery_component_test on marlin. Change-Id: Ic7419dc86c6b220531ae44e49ab4657394a5d7fa
* | | | | | Merge "Build boot control HAL with Android.bp" am: bbe881693a am: b5e9049476Hridya Valsaraju2018-08-113-34/+37
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1303267b32 Change-Id: Ib7b238164d0e2adc144f57b246d07d95ce9bbd1b
| * | | | | Merge "Build boot control HAL with Android.bp" am: bbe881693aHridya Valsaraju2018-08-113-34/+37
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b5e9049476 Change-Id: I8bed367854e978cabb970dd77801158954e12cc3
| | * | | | Merge "Build boot control HAL with Android.bp"Hridya Valsaraju2018-08-113-34/+37
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bbe881693a Change-Id: Idbd45cd24b99ae92f1dd50b4e6011c87d62d9419
| | | * | | Merge "Build boot control HAL with Android.bp"Treehugger Robot2018-08-113-34/+37
| | | |\ \ \ | | | | |/ / | | | |/| |
| | | | * | Build boot control HAL with Android.bpHridya Valsaraju2018-08-103-34/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 78793464 Test: make Change-Id: Id5efceda0f5e93bbaf33c2dc3e203fd39ef44e28
* | | | | | Merge "updater_sample: Move to Soong." am: afa16480aa am: e98bdd979cTao Bao2018-08-106-73/+76
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ab3a4688b1 Change-Id: Ic3e8f9485d5f9ee0ba0a575f6d72bd03544443de
| * | | | | Merge "updater_sample: Move to Soong." am: afa16480aaTao Bao2018-08-106-73/+76
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e98bdd979c Change-Id: I10ba70e73bea53fa9a7d9408be5f02da7a85d488
| | * | | | Merge "updater_sample: Move to Soong."Tao Bao2018-08-106-73/+76
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: afa16480aa Change-Id: Id8ba9ceacf6c449114759a9b0c92e78ab718a129
| | | * | | Merge "updater_sample: Move to Soong."Tao Bao2018-08-106-73/+76
| | | |\ \ \
| | | | * | | updater_sample: Move to Soong.Tao Bao2018-08-106-73/+76
| | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | Test: Follow the steps in "Running tests" in updater_sample/README.md. Change-Id: I70c3239e3daea0dcdadf02f68abe7d6aafa67a2e
* | | | | | Merge "`recovery` uses more shared libraries." am: 3c5e2c1c7e am: f8f53fd04cTao Bao2018-08-105-23/+54
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 14acf82585 Change-Id: I54b15a9cc81524612f11554385ec2e6db93ff2a6
| * | | | | Merge "`recovery` uses more shared libraries." am: 3c5e2c1c7eTao Bao2018-08-105-23/+54
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f8f53fd04c Change-Id: Ibf374ac95558eecf13e7aeca8f86b4f285e806e0
| | * | | | Merge "`recovery` uses more shared libraries."Tao Bao2018-08-105-23/+54
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3c5e2c1c7e Change-Id: If4070036031ba754c2686ff6dc6d52f7cebd4044
| | | * | | Merge "`recovery` uses more shared libraries."Tao Bao2018-08-105-23/+54
| | | |\ \ \ | | | | |/ / | | | |/| |
| | | | * | `recovery` uses more shared libraries.Tao Bao2018-08-085-23/+54
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 110380063 Test: `m -j installclean && mmma -j bootable/recovery` with aosp_taimen-userdebug Test: Build (`m -j bootimage`) and boot into recovery. Check that `adb sideload` and `Run graphics test` both work. Test: Run recovery_unit_test and recovery_component_test on marlin. Change-Id: Ie6ed0e7cafa352d5faff9d1b6ccef724a0415e65
* | | | | Merge "Revert "Build and use minadbd as a shared library."" am: 08cf9ccb2f am: 60e218cb5eTao Bao2018-08-084-18/+10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 60fafd50d3 Change-Id: I9d952b640128d4ea48bf1b11322e352268428e0a
| * | | | Merge "Revert "Build and use minadbd as a shared library."" am: 08cf9ccb2fTao Bao2018-08-084-18/+10
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 60e218cb5e Change-Id: Icd65d8a26f5e619f3ce08727ca673cc4a65a0570
| | * | | Merge "Revert "Build and use minadbd as a shared library.""Tao Bao2018-08-084-18/+10
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 08cf9ccb2f Change-Id: I5fd181c84e7c968032087f6d1e570cba818e6f11
| | | * | Merge "Revert "Build and use minadbd as a shared library.""Tao Bao2018-08-084-18/+10
| | | |\ \
| | | | * | Revert "Build and use minadbd as a shared library."Tao Bao2018-08-084-18/+10
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 4fd4f89591fe826cf26167bccaeb2802f14fbdc8. The reverted CL has a side effect that unintentionally installs a copy of libminadbd_services.so to the system image. This breaks the check with `build/soong/build_test.bash --dist` which detects and prevents vendor modules from installing files to the system image. Prior to fully converting `recovery` to be built with Soong, we have to statically link recovery-specific modules into `recovery`. Bug: 110380063 Test: `m -j bootimage` with aosp_marlin-userdebug Test: Run minadbd_test on marlin. Test: Boot into recovery and verify that sideloading still works. Test: `build/soong/build_test.bash --dist` Change-Id: I290d55c82e17aa60a5afdf2ff7f896afc4dae8b3
* | | | | Merge "minui: Track libsync module name change." am: 60924fa89a am: 7c42dc7284Tao Bao2018-08-081-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2217000e87 Change-Id: If0aca6d0e9e1dc73d899510951475ba3e489f51d
| * | | | Merge "minui: Track libsync module name change." am: 60924fa89aTao Bao2018-08-081-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7c42dc7284 Change-Id: Ied9da9412ab84395990f0978806d7285530ad06f
| | * | | Merge "minui: Track libsync module name change."Tao Bao2018-08-081-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 60924fa89a Change-Id: Iaa05687f2288ef48a5b9e4ea8e3a7bbea7b00ec2
| | | * | Merge "minui: Track libsync module name change."Tao Bao2018-08-081-1/+1
| | | |\ \
| | | | * | minui: Track libsync module name change.Tao Bao2018-08-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Needs the matching change to libsync_recovery. Test: `mmma -j bootable/recovery` Change-Id: I69b5c978e9b4d16957ffecd360796b29cd95865c
* | | | | | Merge "Fix the DRM_FORMAT match with corresponding PixelFormat" am: 1e4f9c0477 am: e0ded949e6Tao Bao2018-08-081-3/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d6a445c1b5 Change-Id: I5f5e27daddd642fbff036d701e90bf900d8e3c41
| * | | | | Merge "Fix the DRM_FORMAT match with corresponding PixelFormat" am: 1e4f9c0477Tao Bao2018-08-081-3/+7
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e0ded949e6 Change-Id: I24c5dba3f0f22a92279a61cacd1162b8256b22ef
| | * | | | Merge "Fix the DRM_FORMAT match with corresponding PixelFormat"Tao Bao2018-08-081-3/+7
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1e4f9c0477 Change-Id: I6e373814b25c0b2baef633b5c915d8a11e5037fa
| | | * | | Merge "Fix the DRM_FORMAT match with corresponding PixelFormat"Tao Bao2018-08-071-3/+7
| | | |\ \ \ | | | | |/ / | | | |/| |
| | | | * | Fix the DRM_FORMAT match with corresponding PixelFormattangrobin2018-08-071-3/+7
| | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The DRM_FORMAT settings in DrmCreateSurface should match with the correct PixelFormat Bug: 112245291 Test: build and flash boot image to device. Change-Id: I3ee0de38256d1109cd5174b666e2f47dceb637e6
* | | | | Merge "Build and use minadbd as a shared library." am: ea38c4160a am: 479dd68d9eTao Bao2018-08-084-10/+18
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4bdb7b3c33 Change-Id: Ia7bab18c65055cafed6144ff26188fde74cffcd0
| * | | | Merge "Build and use minadbd as a shared library." am: ea38c4160aTao Bao2018-08-084-10/+18
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 479dd68d9e Change-Id: I44428a33c4dd05760f7f763b7813eb924a1bbcc7
| | * | | Merge "Build and use minadbd as a shared library."Tao Bao2018-08-084-10/+18
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: ea38c4160a Change-Id: I5483268632a83ad7ef048e02bede68c8d9ac0dbb
| | | * | Merge "Build and use minadbd as a shared library."Tao Bao2018-08-074-10/+18
| | | |\ \
| | | | * | Build and use minadbd as a shared library.Tao Bao2018-08-074-10/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The former `minadbd` module is now built as a shared library (`libminadbd_services.so`) that serves sideloading under recovery, with a dynamic dependency on `libadbd.so`. This allows sharing and reusing libadbd code on device (both of `adbd` and `recovery` now uses `libadbd.so`). As a result, it reduces the size of `recovery` binary from 1407360-byte to (1272880 + 33032)-byte (aosp_marlin-userdebug). Bug: 78793464 Test: `m -j bootimage` with aosp_marlin-userdebug Test: Run minadbd_test on marlin. Test: Boot into recovery and verify that sideloading still works. Change-Id: I6c2bc3d351d5af71220a9b9f956c8c039e52c781
* | | | | | Merge "Merge Android Pie into master" am: 9791b21c1f am: 555802b108Xin Li2018-08-080-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1f642fcc6a Change-Id: I50bd3a35979569c03a149416bd99617fca06d99f
| * | | | | Merge "Merge Android Pie into master" am: 9791b21c1fXin Li2018-08-080-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 555802b108 Change-Id: Iad6285b0063f3b254146c2110a7f93118c391e05
| | * | | | Merge "Merge Android Pie into master"Xin Li2018-08-070-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9791b21c1f Change-Id: Ic7faf2fe40859909980c26afb4534d23ac7cd3f9
| | | * | | Merge "Merge Android Pie into master"Xin Li2018-08-079-25/+105
| | | |\ \ \
| | | | * \ \ Merge Android Pie into masterXin Li2018-08-079-25/+105
| | | | |\ \ \ | | | | | |_|/ | | | | |/| | | | | | | | | | | | | | | | Bug: 112104996 Change-Id: I3256ec97f091b367c5a2c0b31430a975073a2c1b
* | | | | | | Merge "ueventd is now at /system/bin/ueventd" am: aceb244401 am: 89048728f3Tom Cherry2018-08-071-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9001c159b3 Change-Id: I13f674f9467fa92e1e9ea24ec9b7787cefc41a19
| * | | | | | Merge "ueventd is now at /system/bin/ueventd" am: aceb244401Tom Cherry2018-08-071-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 89048728f3 Change-Id: I72c7db988d81cda296e640cfcdcd63fc70bfb3a1
| | * | | | | Merge "ueventd is now at /system/bin/ueventd"Tom Cherry2018-08-071-1/+1
| | |\| | | | | | | |_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | am: aceb244401 Change-Id: I49aec85c5e32d1b8a3d982b875d188d162694d26
| | | * | | Merge "ueventd is now at /system/bin/ueventd"Tom Cherry2018-08-071-1/+1
| | | |\ \ \ | | | | |/ / | | | |/| |
| | | | * | ueventd is now at /system/bin/ueventdTom Cherry2018-07-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 79758715 Test: boot into recovery Change-Id: I9bf47b2487993e275419befdc9718cc0ac8d3ea7
* | | | | | Merge "Add an updater function to compute hash tree" am: dbe4420325 am: b5bc978432Tianjie Xu2018-08-078-18/+216
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f82ff97029 Change-Id: I5ccf2e886af1076f0af97b36dc87fbf73501e744
| * | | | | Merge "Add an updater function to compute hash tree" am: dbe4420325Tianjie Xu2018-08-078-18/+216
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b5bc978432 Change-Id: Ie876da6cd0c875431124d09619c2c04d71900d4d
| | * | | | Merge "Add an updater function to compute hash tree"Tianjie Xu2018-08-078-18/+216
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dbe4420325 Change-Id: If426801d3494be02404c8e4f6d4f064fd6540a4d
| | | * | | Merge "Add an updater function to compute hash tree"Tianjie Xu2018-08-078-18/+216
| | | |\ \ \ | | | | |_|/ | | | |/| |
| | | | * | Add an updater function to compute hash treeTianjie Xu2018-08-068-18/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new command is part of the transfer.list and allows us to compute the hash tree on non-ab devices. The required arguments for the hash_tree computation are: hash_tree_ranges source_ranges hash_algorithm salt_hex root_hash Bug: 25170618 Test: unit tests pass; run simulator with compute_hash_tree Change-Id: I8ff0d582cc8adabb8a060db7845f38b35b28e62c
* | | | | | Merge "Dynamically load device-specific recovery UI lib." am: 9cf9b689d9 am: 75acf24207Tao Bao2018-08-074-8/+111
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 39259af890 Change-Id: I44e057b36e1bb3fa53059736f0f9e2fcbfc014a4
| * | | | | Merge "Dynamically load device-specific recovery UI lib." am: 9cf9b689d9Tao Bao2018-08-074-8/+111
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 75acf24207 Change-Id: I9a836dc442058856ab4dc71ccccc96029d3194cf
| | * | | | Merge "Dynamically load device-specific recovery UI lib."Tao Bao2018-08-074-8/+111
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9cf9b689d9 Change-Id: I73e3fdc01ff4b51fd18272980ce1360b0bc069f7
| | | * | | Merge "Dynamically load device-specific recovery UI lib."Tao Bao2018-08-064-8/+111
| | | |\ \ \
| | | | * | | Dynamically load device-specific recovery UI lib.Tao Bao2018-08-064-8/+111
| | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used to statically link the device-specific recovery UI extension (`TARGET_RECOVERY_UI_LIB`) into `recovery`. Such a logic can't be easily migrated to Soong, as modules specified by `TARGET_RECOVERY_UI_LIB` may not be built with Soong. Instead of porting all the device-specific codes over, this CL builds and installs the UI lib as a shared library with Android.mk. `recovery` dlopen(3)'s and dlsym(3)'s `make_device` to invoke the device-specific UI lib on start. Note that in order to make dlopen(3) actually working, we have to switch `recovery` to be dynamically linked (we will make the move later anyway). Bug: 110380063 Test: Build and boot into marlin recovery image. Check that device-specific recovery UI is successfully loaded. Change-Id: Ia9861c7559a95f3f50676534540c0cb87cae4574
* | | | | | Merge "minui: Move to Soong." am: f2bc68cfe1 am: ea105889a5Tao Bao2018-08-063-60/+46
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bf40c42766 Change-Id: Ibdb66b0d0f5a5be54dcf6fd9f9797439292af406
| * | | | | Merge "minui: Move to Soong." am: f2bc68cfe1Tao Bao2018-08-063-60/+46
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ea105889a5 Change-Id: Iee4d709563685c7a79aed0e4b9887805c413fb32
| | * | | | Merge "minui: Move to Soong."Tao Bao2018-08-063-60/+46
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f2bc68cfe1 Change-Id: Iab9a892a3d4d691884e4709c288de1d122d67473
| | | * | | Merge "minui: Move to Soong."Tao Bao2018-08-063-60/+46
| | | |\ \ \
| | | | * | | minui: Move to Soong.Tao Bao2018-08-053-60/+46
| | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that although libminui says "shared_libs" in Android.bp file, `recovery` binary will still statically link the libs, until we drop the `LOCAL_FORCE_STATIC_EXECUTABLE := true` flag from `recovery` module. Bug: 110380063 Test: `mmma -j bootable/recovery` with aosp_taimen-userdebug Test: Boot into recovery and `Run graphics test`. Change-Id: I48785d161dfe52eb01667e938d9c3f0a497b61a2
* | | | | | Merge "minui: Use runtime properties instead of build time vars." am: ebc04d1e7a am: ce0409a560Tao Bao2018-08-046-64/+69
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8f545f4c8c Change-Id: I152c9afe31255d5329475fffd19e48a4f17dc792
| * | | | | Merge "minui: Use runtime properties instead of build time vars." am: ebc04d1e7aTao Bao2018-08-046-64/+69
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ce0409a560 Change-Id: Icf0f15841560ece076c33fbc15425d800d656441
| | * | | | Merge "minui: Use runtime properties instead of build time vars."Tao Bao2018-08-046-64/+69
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ebc04d1e7a Change-Id: Ied0cc8732e0c5d75d1608c4aaa637c04548ecfe6
| | | * | | Merge "minui: Use runtime properties instead of build time vars."Tao Bao2018-08-036-64/+69
| | | |\ \ \
| | | | * | | minui: Use runtime properties instead of build time vars.Tao Bao2018-08-026-64/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL removes the use of the following build time macros, and uses the runtime property values instead. - TARGET_RECOVERY_PIXEL_FORMAT - TARGET_RECOVERY_OVERSCAN_PERCENT - TARGET_RECOVERY_DEFAULT_ROTATION Bug: 110380063 Test: Set up taimen with `TARGET_RECOVERY_DEFAULT_ROTATION := ROTATION_LEFT`. Build and check recovery UI. Test: Set up taimen with `TARGET_RECOVERY_PIXEL_FORMAT := ABGR_8888`. Build and check recovery UI. Change-Id: I4439556a03fde4805a18011ef72eff1373f31d47
* | | | | | | Merge "ui: Read custom recovery UI values via system property." am: 2117b4bd07 am: 17bf8d0518Tao Bao2018-08-049-107/+83
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 814468deb5 Change-Id: I6f3120621d06cabf123ec5052cb7ace0f6cb6dde
| * | | | | | Merge "ui: Read custom recovery UI values via system property." am: 2117b4bd07Tao Bao2018-08-049-107/+83
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 17bf8d0518 Change-Id: I2e40e9e62be581fc5fdf3479b851c259909b0184
| | * | | | | Merge "ui: Read custom recovery UI values via system property."Tao Bao2018-08-049-107/+83
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2117b4bd07 Change-Id: Ia9e2d805f2e90b9be8426010581a32d0b27fe8e6
| | | * | | | Merge "ui: Read custom recovery UI values via system property."Tao Bao2018-08-039-107/+83
| | | |\ \ \ \
| | | | * | | | ui: Read custom recovery UI values via system property.Tao Bao2018-08-019-107/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The matching change to build system now writes these values as build properties for recovery image. This allows us dropping the dependency on Android.mk (as well as having more flexibility to do UI customization). Also rename a few constant names, as the naming doesn't fully follow the style guide (which reads "whose value is fixed for the duration of the program"). Bug: 110380063 Test: Build and flash recovery image on taimen, which uses custom margin height. Check the UI and choose `Run graphics test`. Change-Id: I2c50326123639cb36022f51b62cdeed925d77ba7
* | | | | | | | Merge "Remove non-A/B mention from README." am: f8b04fe48d am: a5d6a661c6Zhomart Mukhamejanov2018-08-021-6/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e9775341be Change-Id: If6b73c231f81b3029c4b475deb42849ab594ecb7
| * | | | | | | Merge "Remove non-A/B mention from README." am: f8b04fe48dZhomart Mukhamejanov2018-08-021-6/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a5d6a661c6 Change-Id: If168c6ac766a70ed3f8cf82203d8be478fd87f14
| | * | | | | | Merge "Remove non-A/B mention from README."Zhomart Mukhamejanov2018-08-021-6/+6
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f8b04fe48d Change-Id: Ia46aa857b64b8c344181941013cf2ced7832034f
| | | * | | | | Merge "Remove non-A/B mention from README."Zhomart Mukhamejanov2018-08-021-6/+6
| | | |\ \ \ \ \ | | | | |_|/ / / | | | |/| | | |
| | | | * | | | Remove non-A/B mention from README.Zhomart Mukhamejanov2018-08-021-6/+6
| | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: N/A Change-Id: I8622733d0a23ff062031a67efd0e32480a297322
* | | | | | | Merge "minui: Clean up the use of `rotation`." am: a9ef617aa7 am: f22aeefaedTao Bao2018-08-012-27/+50
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f4e7bec485 Change-Id: Id55014e43e3e97dc773f7e309902831b93c6b2f8
| * | | | | | Merge "minui: Clean up the use of `rotation`." am: a9ef617aa7Tao Bao2018-08-012-27/+50
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f22aeefaed Change-Id: I00374d34eaa826b417fead0c14f4b6b803f61fe2
| | * | | | | Merge "minui: Clean up the use of `rotation`."Tao Bao2018-08-012-27/+50
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a9ef617aa7 Change-Id: Id87dce642ff0c8352c4dea2266cbd08558b20145
| | | * | | | Merge "minui: Clean up the use of `rotation`."Tao Bao2018-08-012-27/+50
| | | |\ \ \ \
| | | | * | | | minui: Clean up the use of `rotation`.Tao Bao2018-08-012-27/+50
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL uses scoped enum for GRRotation. It also refactors the previous comparisions to improve readability -- it was hard to tell the meaning of `if (rotation % 2)` unless by checking the exact values. It also temporarily adds STRINGFY to expand the macro of DEFAULT_ROTATION. This will be removed once minui is changed from reading build time vars to runtime properties. Test: Build and boot into recovery image on marlin. Test: Set `TARGET_RECOVERY_DEFAULT_ROTATION := ROTATION_LEFT` and check the display under recovery with `Run graphics test`. Change-Id: Ieb08b1cd13c284f8dcf906cb2a1430c6bae2835b
* | | | | | | Merge "uncrypt: fix f2fs ioctl argument for pin_file" am: 42f40cd370 am: 03f6185ea6Jaegeuk Kim2018-08-011-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4adfcf962f Change-Id: I2efec91672b2772fdde4d7f474e7366f7f5c07a8
| * | | | | | Merge "uncrypt: fix f2fs ioctl argument for pin_file" am: 42f40cd370Jaegeuk Kim2018-08-011-1/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 03f6185ea6 Change-Id: I8f185f14b4d0e21f1708f422c914ad5b9b871f5c
| | * | | | | Merge "uncrypt: fix f2fs ioctl argument for pin_file"Jaegeuk Kim2018-08-011-1/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 42f40cd370 Change-Id: I54a58ded52eb11cc6ba2834feda3ad22f4658407
| | | * | | | Merge "uncrypt: fix f2fs ioctl argument for pin_file"Treehugger Robot2018-08-011-1/+2
| | | |\ \ \ \ | | | | |/ / / | | | |/| | |
| | | | * | | uncrypt: fix f2fs ioctl argument for pin_fileJaegeuk Kim2018-08-011-1/+2
| | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes missing f2fs ioctl call. Change-Id: Id840b76b9d5c580041aaee4501ac8e69fc3fb818 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
* | | | | | Merge "recovery: Add ability to interrupt UI" am: 561ee9362c am: 3528139409Jerry Zhang2018-07-316-33/+163
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9e9ef363fb Change-Id: I58f3c31c9afa274872167f3d72575a45bebf2ee4
| * | | | | Merge "recovery: Add ability to interrupt UI" am: 561ee9362cJerry Zhang2018-07-316-33/+163
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3528139409 Change-Id: If36991f0f57a358cfd1edce8c249fb22672733e1
| | * | | | Merge "recovery: Add ability to interrupt UI"Jerry Zhang2018-07-316-33/+163
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 561ee9362c Change-Id: Ic33767a7ebaac6c066c0552b502a361b5c498b9e
| | | * | | Merge "recovery: Add ability to interrupt UI"Treehugger Robot2018-07-316-33/+163
| | | |\ \ \ | | | | |/ / | | | |/| |
| | | | * | recovery: Add ability to interrupt UIJerry Zhang2018-07-306-33/+163
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Normally calling a UI method will block indefinitely until the UI is actually used. This creates a method to interrupt the UI, causing waitKey to return -2. This in turn, will cause ShowMenu to return -2. This allows switching between recovery and fastbootd via usb commands. Test: adb shell /data/nativetest64/recovery_unit_test/recovery_unit_test Bug: 78793464 Change-Id: I4c6c9aa18d79070877841a5c9818acf723fa6096
* | | | | Merge "minadbd: avoid overrriding services_to_fd." am: 6f1f2c811a am: 06ce8d32e6Josh Gao2018-07-281-22/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3bef3a72bd Change-Id: I8419fb54222a6663b66896f6e8ac919a008b8d1b
| * | | | Merge "minadbd: avoid overrriding services_to_fd." am: 6f1f2c811aJosh Gao2018-07-281-22/+8
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 06ce8d32e6 Change-Id: If26f8891a4740e64add9352048609a346b46ba88
| | * | | Merge "minadbd: avoid overrriding services_to_fd."Josh Gao2018-07-281-22/+8
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6f1f2c811a Change-Id: Idd6afe20fe9341ee5ff79e6aaf2277490a027e21
| | | * | Merge "minadbd: avoid overrriding services_to_fd."Josh Gao2018-07-281-22/+8
| | | |\ \
| | | | * | minadbd: avoid overrriding services_to_fd.Josh Gao2018-07-271-22/+8
| | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, we were relying on linker ordering pulling in minadbd's copy of services_to_fd instead of libadbd's, which breaks when we switch to dynamically linking. Separate out libadbd's services into a separate function that's in a file that isn't built into libadbd, so that we can provide our own here. Bug: http://b/111831478 Test: mma Change-Id: I2479947b2d81db5e750020fffc2c2c770cb31a78
* | | | | Merge "Move recovery from /sbin to /system/bin" am: 4c80768796 am: ed2480be9bHridya Valsaraju2018-07-273-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dcc5fa4d4f Change-Id: I8e38cceea21c232e325f6f55681846696718e68e
| * | | | Merge "Move recovery from /sbin to /system/bin" am: 4c80768796Hridya Valsaraju2018-07-273-3/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ed2480be9b Change-Id: I91dadd30c1a96be668a5e3f295aa3f039f44d494
| | * | | Merge "Move recovery from /sbin to /system/bin"Hridya Valsaraju2018-07-273-3/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4c80768796 Change-Id: I543608d884f1cfe1fea59e78a4a47c6d6c3be4a1
| | | * | Merge "Move recovery from /sbin to /system/bin"Treehugger Robot2018-07-273-3/+3
| | | |\ \
| | | | * | Move recovery from /sbin to /system/binHridya Valsaraju2018-07-273-3/+3
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Executables should be in /system/bin rather than sbin. Bug: 78793464 Test: boot into recovery, try adb sideload Change-Id: I194589119a099d29e56b0648f0906a5ae2aa6770
* | | | | Merge "Add proto3 support for care_map" am: 8d9b3aec3d am: f3480024c2Tianjie Xu2018-07-266-45/+191
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2a047b9ff3 Change-Id: Ie437e57634525c36087f5255934d02c49b42c37c
| * | | | Merge "Add proto3 support for care_map" am: 8d9b3aec3dTianjie Xu2018-07-266-45/+191
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f3480024c2 Change-Id: Id695d0d49b75c4f0a828bef01bedc36281e15939
| | * | | Merge "Add proto3 support for care_map"Tianjie Xu2018-07-266-45/+191
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8d9b3aec3d Change-Id: Ica2ffa3c1a8d7a9cc2c59a8d30d4dc95907a6882
| | | * | Merge "Add proto3 support for care_map"Tianjie Xu2018-07-266-45/+191
| | | |\ \
| | | | * | Add proto3 support for care_mapTianjie Xu2018-07-256-45/+191
| | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switching to the protobuf format helps to make the care_map more extensible. As we have such plans in the future, add the support to parse the protobuf message in the update_verifier. Bug: 77867897 Test: unit tests pass, update_verifier successfully verifies a care_map.pb Change-Id: I9fe83cb4dd3cc8d6fd0260f2a47338fe142d3938
* | | | | Merge "bootloader_message: Build libbootloader_message as shared lib." am: 8515cd5f23 am: 39e5bdaedbTao Bao2018-07-261-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f2e7b1757a Change-Id: Idfcb05b70c0d26672359ad5d17e0048573c4b353
| * | | | Merge "bootloader_message: Build libbootloader_message as shared lib." am: 8515cd5f23Tao Bao2018-07-261-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 39e5bdaedb Change-Id: I73715616877c05f259f69e275816b1ad28dea818
| | * | | Merge "bootloader_message: Build libbootloader_message as shared lib."Tao Bao2018-07-261-2/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8515cd5f23 Change-Id: Ideed01697fa7f660fcf2ade93b2f55c55c142479
| | | * | Merge "bootloader_message: Build libbootloader_message as shared lib."Tao Bao2018-07-261-2/+2
| | | |\ \ | | | | |/ | | | |/|
| | | | * bootloader_message: Build libbootloader_message as shared lib.Tao Bao2018-07-251-2/+2
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And uses the shared lib version of libbase and libfs_mgr. Bug: 78793464 Test: `m dist` Test: Run recovery_{unit,component}_test on marlin. Change-Id: I750c02d0bfccd6e58fb01f641de02532ace52e00
* | | | Merge "Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master" into stage-dr1-aosp-masterXin Li2018-07-230-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | am: 85b714c876 Change-Id: I91da2b1096a4600ad780e78e2e55e17b55a7069f
| * | | Merge "Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master" into stage-dr1-aosp-masterXin Li2018-07-230-0/+0
| |\ \ \
| | * \ \ Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-masterXin Li2018-07-230-0/+0
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Bug: 111615259 Change-Id: Ifee8c187c99abad5c496eca2b5bb6f8b8f857ceb
* | | | | | Merge "Revert "Make recovery libraries shared / recovery_available"" into stage-aosp-master am: 5c9e580f4fHridya Valsaraju2018-07-236-27/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 56ba447c57 Change-Id: I6edc5cac3a536a64f3ee5bff4de2392149735ee9
| * | | | | Merge "Revert "Make recovery libraries shared / recovery_available"" into stage-aosp-masterHridya Valsaraju2018-07-236-27/+8
| |\ \ \ \ \ | | |/ / / / | |/| | / / | | | |/ / | | |/| | | | | | | am: 5c9e580f4f Change-Id: Ia92390634bc67f3cffbe3a2644af52abee2bd07f
| | * | | Merge "Revert "Make recovery libraries shared / recovery_available"" into stage-aosp-masterTreeHugger Robot2018-07-236-27/+8
| | |\ \ \
| | | * | | Revert "Make recovery libraries shared / recovery_available"Hridya Valsaraju2018-07-236-27/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit c936a6961940a15f7f95befcf35425bad8fa4f7c. Reason for revert: b/111734137 Change-Id: Ie9c1fdc75d6e87dba7019c4e6d1799af25c2f94a
* | | | | | Merge "applypatch: Change applypatch command-line arguments." am: 860b457a15 am: 7d2962b942Tao Bao2018-07-216-338/+252
|\| | | | | | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | am: 4ad9995b5b Change-Id: I6a95f04ce99e8e53b749f7873ddf056e3d9dff3f
| * | | | Merge "applypatch: Change applypatch command-line arguments." am: 860b457a15Tao Bao2018-07-216-338/+252
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7d2962b942 Change-Id: I299c3ee133280d7996574791fb150a1bab7ad8e2
| | * | | Merge "applypatch: Change applypatch command-line arguments."Tao Bao2018-07-216-338/+252
| | |\ \ \ | | | | |/ | | | |/| | | | | | | | | | | | | | | | am: 860b457a15 Change-Id: Ie2d595dbcd8624b8a243f043d04f434d4cf00d5e
| | | * | Merge "applypatch: Change applypatch command-line arguments."Tao Bao2018-07-216-338/+252
| | | |\ \
| | | | * | applypatch: Change applypatch command-line arguments.Tao Bao2018-07-206-338/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This applies to the standalone applypatch executable (/system/bin/applypatch on device). This executable is only used when installing (via patching or flashing) a recovery image on non-A/B device. This CL removes the support for patching non-eMMC targets from applypatch that has been deprecated as part of file-based OTA. For patching eMMC targets, it also drops the support for accepting multiple patches (not useful, since the source file must be fixed). This CL needs the matching change in the same topic, which writes the script of "/system/bin/install-recovery.sh". Note that this CL doesn't chanage the applypatch API signatures, in order to minimize the CL size. *BEFORE* usage: /system/bin/applypatch [-b <bonus-file>] <src-file> <tgt-file> <tgt-sha1> <tgt-size> [<src-sha1>:<patch> ...] or /system/bin/applypatch -c <file> [<sha1> ...] or /system/bin/applypatch -l Filenames may be of the form EMMC:<partition>:<len_1>:<sha1_1>:<len_2>:<sha1_2>:... to specify reading from or writing to an EMMC partition. *AFTER* Usage: check mode applypatch --check EMMC:<target-file>:<target-size>:<target-sha1> flash mode applypatch --flash <source-file> --target EMMC:<target-file>:<target-size>:<target-sha1> patch mode applypatch [--bonus <bonus-file>] --patch <patch-file> --target EMMC:<target-file>:<target-size>:<target-sha1> --source EMMC:<source-file>:<source-size>:<source-sha1> show license applypatch --license Bug: 110106408 Test: Run recovery_component_test and recovery_unit_test on marlin. Test: Build a non-A/B target that has /system/bin/install-recovery.sh. Verify that it installs recovery image successfully. Test: Build a non-A/B target that has /system/bin/install-recovery.sh in flashing mode. Verify that it installs recovery image successfully. Change-Id: I71f9a71fb457e6f663e0b5511946949e65b4b78c
* | | | | | Merge "Updates Wear UI to Display Localized Recovery Text." am: 6bc9d605f3 am: 393a97ff8bKarl Shaffer2018-07-201-0/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d275207d9d Change-Id: I78df47b4349fba82b4c0153f7e713992c70c7b10
| * | | | | Merge "Updates Wear UI to Display Localized Recovery Text." am: 6bc9d605f3Karl Shaffer2018-07-201-0/+7
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 393a97ff8b Change-Id: I1d51147f51130dd72c56421682a4a4dc2637212d
| | * | | | Merge "Updates Wear UI to Display Localized Recovery Text."Karl Shaffer2018-07-201-0/+7
| | |\| | | | | | |_|/ | | |/| | | | | | | | | | | | | | | | | am: 6bc9d605f3 Change-Id: I2ee3cd560f729bb47fc66384f43533b34c4e1382
| | | * | Merge "Updates Wear UI to Display Localized Recovery Text."Treehugger Robot2018-07-201-0/+7
| | | |\ \ | | | | |/ | | | |/|
| | | | * Updates Wear UI to Display Localized Recovery Text.Karl Shaffer2018-07-201-0/+7
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates Wear Recovery UI to fix bug. Recovery UI now will display the proper Recovery Text during progress actions above the ProgressBarBaseline as defined in device make files. Change-Id: Idef0cb046dd06979042ca877ba0c61e9faaedec1 Bug: 64330124 (cherry picked from commit 19f6cccdafe53e14b9cd083e69da5887028070a0)
* | | | Make recovery libraries shared / recovery_available am: c936a69619Jerry Zhang2018-07-206-8/+27
|\| | | | | | | | | | | | | | | | | | | | | | | am: 3e8262d633 Change-Id: Ieed70605eaec3b703de9ae1112091cd559cf9103
| * | | Make recovery libraries shared / recovery_availableJerry Zhang2018-07-206-8/+27
|/| | | | |/ / | | | | | | | | | | | | am: c936a69619 Change-Id: Ida8931378dab85f77b43cddee74c3faffa1e6f02
| * | Make recovery libraries shared / recovery_availableJerry Zhang2018-07-206-8/+27
| | | | | | | | | | | | | | | | | | | | | | | | Test: compiles Bug: 78793464 Change-Id: Iff64bc1a597e70f749a9d825f7d386baa427be3d Merged-In: Iff64bc1a597e70f749a9d825f7d386baa427be3d (cherry picked from commit 92969c49dce519803ed0a1986781c474b1bbc82f)
* | | Merge "Fix the arguments passed to getopt_long(3)." am: 29932e7bccTao Bao2018-07-185-10/+32
|\| | | | | | | | | | | | | | | | | am: 2f9d61ad25 Change-Id: I679130a021dd11f3ec5a5ff450b1fa06d2527e66
| * | Merge "Fix the arguments passed to getopt_long(3)."Tao Bao2018-07-175-10/+32
| |\| | | | | | | | | | | | | | | | am: 29932e7bcc Change-Id: I985c5598ad9d9e4222849aff6177fa7e4f0e8820
| | * Merge "Fix the arguments passed to getopt_long(3)."Tao Bao2018-07-175-10/+32
| | |\
| | | * Fix the arguments passed to getopt_long(3).Tao Bao2018-07-175-10/+32
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The getopt_long(3) implementation in Android (upstream freebsd) expects a null-terminated array while parsing long options with required args. if (long_options[match].has_arg == required_argument) { optarg = nargv[optind++]; } ... if (long_options[match].has_arg == required_argument && optarg == NULL) { return (BADARG); } This seems to make sense in practice, as getopt(3) takes the first two arguments of argc and argv that are "as passed to the main() function on program invocation", and both of C and C++ spec say "the value of argv[argc] shall be 0". Prior to the CL, we may run into undefined behavior on malformed input command line (e.g. missing arg for an option that requires one). This CL fixes the issue by always appending a nullptr to the argument list (but without counting that into argc). Test: Build and boot into recovery with commands. Change-Id: Ic6c37548f4db2f30aeabd40f387ca916eeca5392
* | | Merge "applypatch: Consolidate CacheSizeCheck() and MakeFreeSpaceOnCache()." am: 624b6b6cd5Tao Bao2018-07-135-25/+16
|\| | | | | | | | | | | | | | | | | am: 603b7ed470 Change-Id: I437b19505ba82d5c4cc3cc9849bd2514ad6d846d
| * | Merge "applypatch: Consolidate CacheSizeCheck() and MakeFreeSpaceOnCache()."Tao Bao2018-07-135-25/+16
| |\| | | | | | | | | | | | | | | | am: 624b6b6cd5 Change-Id: I16278b00abcdcc532928b534462ff0762c64c1a2
| | * Merge "applypatch: Consolidate CacheSizeCheck() and MakeFreeSpaceOnCache()."Tao Bao2018-07-135-25/+16
| | |\
| | | * applypatch: Consolidate CacheSizeCheck() and MakeFreeSpaceOnCache().Tao Bao2018-07-135-25/+16
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They are doing exactly the same thing, except for the slightly different error return value (1 vs -1). int CacheSizeCheck(size_t bytes); int MakeFreeSpaceOnCache(size_t bytes_needed); This CL consolidates the two functions and uses bool as its return type. // Checks whether /cache partition has at least 'bytes'-byte free space. Returns true immediately // if so. Otherwise, it will try to free some space by removing older logs, checks again and // returns the checking result. bool CheckAndFreeSpaceOnCache(size_t bytes); Test: Run recovery_unit_test and recovery_component_test on marlin. Change-Id: I94a96934d2b18713f8f39ad5aa96a02c98d87963
* | | Merge "tests: Clean up the temporary dirs post-run." am: b46e565fd8Tao Bao2018-07-132-21/+22
|\| | | | | | | | | | | | | | | | | am: d8e96f4b4d Change-Id: I2ea09f37b88a9eb9740b0185c54f841b6fd0e8fe
| * | Merge "tests: Clean up the temporary dirs post-run."Tao Bao2018-07-132-21/+22
| |\| | | | | | | | | | | | | | | | am: b46e565fd8 Change-Id: I949ea123cd789f68411de97a9b73581dc916b409
| | * Merge "tests: Clean up the temporary dirs post-run."Tao Bao2018-07-132-21/+22
| | |\
| | | * tests: Clean up the temporary dirs post-run.Tao Bao2018-07-122-21/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TemporaryDir only deletes empty dirs (not done by its dtor because it tries to keep the temporary files available on error exit). Also change FreeCacheTest::MockFreeSpaceChecker to be static. Test: Run recovery_unit_test on marlin. Check /data/local/tmp post-run. Change-Id: I1bd54eb840e3094b4f22ee84c059eec2998773bf
* | | | Merge "applypatch: Fix the return type of FreeSpaceForFile()." am: 90c9e4f55cTao Bao2018-07-134-25/+51
|\| | | | | | | | | | | | | | | | | | | | | | | am: c9f676bc64 Change-Id: I669d213a9c2351183ebf28e2d7861d8e85daf649
| * | | Merge "applypatch: Fix the return type of FreeSpaceForFile()."Tao Bao2018-07-134-25/+51
| |\| | | | | | | | | | | | | | | | | | | | | | am: 90c9e4f55c Change-Id: Ia14468f77220b5e98a0d228b097bbf61401fbe30
| | * | Merge "applypatch: Fix the return type of FreeSpaceForFile()."Tao Bao2018-07-134-25/+51
| | |\|
| | | * applypatch: Fix the return type of FreeSpaceForFile().Tao Bao2018-07-124-25/+51
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this CL, FreeSpaceForFile() was returning `size_t`, which may overflow on ILP32 when called on a partition with 4GiB+ free space. Additionally, it was returning static_cast<size_t>(-1) on error, but the caller in freecache.cpp didn't check for that. This CL changes its return type to `int64_t`, and moves the function into freecache.cpp since there's no external caller. Test: Run recovery_unit_test on marlin. Test: Code search shows no external user of FreeSpaceForFile(). Change-Id: I00f501a057726e1f1ab69f367c46c77b30f2d774
* | | Merge "applypatch: Switch freecache.cpp to libbase logging." am: a0b2aad0f8Tao Bao2018-07-121-21/+17
|\| | | | | | | | | | | | | | | | | am: cea180895c Change-Id: I3043937d6688ec6c178a8f10166bb5994048ca1f
| * | Merge "applypatch: Switch freecache.cpp to libbase logging."Tao Bao2018-07-121-21/+17
| |\| | | | | | | | | | | | | | | | am: a0b2aad0f8 Change-Id: If1944fc2488864e77025551ed6c9d29d9e33a425
| | * Merge "applypatch: Switch freecache.cpp to libbase logging."Tao Bao2018-07-121-21/+17
| | |\
| | | * applypatch: Switch freecache.cpp to libbase logging.Tao Bao2018-07-121-21/+17
| | |/ | | | | | | | | | | | | | | | Test: mmma -j bootable/recovery Test: Run recovery_unit_test on marlin. Change-Id: Iaa326cd26211d527071cc64a928e59a96271b111
* | | Merge "Remove the debug code for bspatch flakiness" am: a9f9acca91Tao Bao2018-07-123-98/+4
|\| | | | | | | | | | | | | | | | | am: 04a6af06fb Change-Id: Ia350bfeca1b8d32a4d30efcae78eaac5ea8c93a1
| * | Merge "Remove the debug code for bspatch flakiness"Tao Bao2018-07-123-98/+4
| |\| | | | | | | | | | | | | | | | am: a9f9acca91 Change-Id: Ie87a889077d7ce7ec43b45422617f8f8bab6c367
| | * Merge "Remove the debug code for bspatch flakiness"Tao Bao2018-07-123-98/+4
| | |\
| | | * Remove the debug code for bspatch flakinessTianjie Xu2018-07-113-98/+4
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | We already know the flakiness happens in bspatch, and the issue is tracked in b/80193170. Bug: 67849209 Test: unit tests pass Change-Id: Ib4772b8f2f0225125096fe7407d083b5bb542cfb
* | | Merge "updater: Let read_file() return Value::Type::STRING." am: ac234b4493Tao Bao2018-07-102-5/+28
|\| | | | | | | | | | | | | | | | | am: e089c1a149 Change-Id: I88b14c9abc0e9fdcd357811261156b97fb09890b
| * | Merge "updater: Let read_file() return Value::Type::STRING."Tao Bao2018-07-102-5/+28
| |\| | | | | | | | | | | | | | | | am: ac234b4493 Change-Id: Ia5cc991c7b1d8800aa211349eeb3f8676a056191
| | * Merge "updater: Let read_file() return Value::Type::STRING."Tao Bao2018-07-102-5/+28
| | |\
| | | * updater: Let read_file() return Value::Type::STRING.Tao Bao2018-07-102-5/+28
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | It used to return a Value blob to be consumed by sha1_check() (which has been deprecated). Currently there's no other generic updater function that works with BLOB Values. This CL changes read_file() to return a string Value to make it more useful (e.g. allowing equality check). Test: Run recovery_component_test and recovery_unit_test on marlin. Change-Id: Iba986ba649030112babefe898f26aa9ffe69eeb7
* | | Merge "edify: Rename parse_string to ParseString and let it take std::string." am: 6b18eb706eTao Bao2018-07-105-74/+71
|\| | | | | | | | | | | | | | | | | am: 17cda674f3 Change-Id: Ifc341348415c461cdb76e67900bb097520158551
| * | Merge "edify: Rename parse_string to ParseString and let it take std::string."Tao Bao2018-07-105-74/+71
| |\| | | | | | | | | | | | | | | | am: 6b18eb706e Change-Id: I39aad0a1b39cb89adc405bcd8abd9ccc305ee855
| | * Merge "edify: Rename parse_string to ParseString and let it take std::string."Tao Bao2018-07-105-74/+71
| | |\
| | | * edify: Rename parse_string to ParseString and let it take std::string.Tao Bao2018-07-105-74/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also simplify the helper function expect() in {edify,updater}_test.cpp. Test: Run recovery_component_test on marlin. Change-Id: If54febba4b5013f6d71546318a1ca6b635204ac8
* | | | Merge "edify: Remove VAL_INVALID and move ValueType into Value class." am: 503ff38043Tao Bao2018-07-108-85/+82
|\| | | | | | | | | | | | | | | | | | | | | | | am: d8a2c2682a Change-Id: I4501ecddfad05ac9ab06c3c6d3bf0fe3c230f7f2
| * | | Merge "edify: Remove VAL_INVALID and move ValueType into Value class."Tao Bao2018-07-108-85/+82
| |\| | | | | | | | | | | | | | | | | | | | | | am: 503ff38043 Change-Id: I0a99b445b643892f147cde48ae312e87674ba96d
| | * | Merge "edify: Remove VAL_INVALID and move ValueType into Value class."Tao Bao2018-07-108-85/+82
| | |\ \ | | | |/ | | |/|
| | | * edify: Remove VAL_INVALID and move ValueType into Value class.Tao Bao2018-07-108-85/+82
| | |/ | | | | | | | | | | | | | | | Test: mmma -j bootable/recovery Test: Run recovery_component_test and recovery_unit_test on marlin. Change-Id: I4b240e3e771c387b9694be9c0f2f74e0265ab4cb
* | | Merge "applypatch: Restrict applypatch_check to eMMC targets." am: e02cbaaa62Tao Bao2018-07-104-99/+66
|\| | | | | | | | | | | | | | | | | am: 254d43a3b9 Change-Id: Ic036ffe5fafa8ed07db6d0ce5cb56a40eb6e7f51
| * | Merge "applypatch: Restrict applypatch_check to eMMC targets."Tao Bao2018-07-104-99/+66
| |\| | | | | | | | | | | | | | | | am: e02cbaaa62 Change-Id: I931bee4ccdf675cc5c7ead82cae011e0c53555de
| | * Merge "applypatch: Restrict applypatch_check to eMMC targets."Tao Bao2018-07-104-99/+66
| | |\
| | | * applypatch: Restrict applypatch_check to eMMC targets.Tao Bao2018-07-104-99/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix an error-pone behavior in previous code when verifying an eMMC target. As long as it loads the partition content successfully according to the SHAs embedded in the filename, it shouldn't further check against the SHAs given in the second argument. Because the loaded contents relate to a specific partition size. For example: apply_patch_check( "EMMC:/boot.img:src_size:src_hash:tgt_size:tgt_hash", "src_hash"); Assume "/boot.img" already has the desired hash of "tgt_hash", the previous code would give wrong verification result. The issue can be addressed by additionally listing "tgt_hash" as one of the desired SHAs (or by applying this CL). Bug: 110106408 Test: Run recovery_unit_test and recovery_component_test on marlin. Change-Id: I8daafdbecd083f687e24d563ab089caa25667633
* | | | Merge "applypatch: Fix a potential nullptr dereferencing." am: b9b50cd58cTao Bao2018-07-101-4/+7
|\| | | | | | | | | | | | | | | | | | | | | | | am: 471053ba87 Change-Id: I5a0558926bdfae52bb867e3b6d3321fbc4e3b61b
| * | | Merge "applypatch: Fix a potential nullptr dereferencing."Tao Bao2018-07-101-4/+7
| |\| | | | | | | | | | | | | | | | | | | | | | am: b9b50cd58c Change-Id: I69b6aedc536ec5391ba3e175b312b8c04453993e
| | * | Merge "applypatch: Fix a potential nullptr dereferencing."Tao Bao2018-07-101-4/+7
| | |\ \ | | | |/ | | |/|
| | | * applypatch: Fix a potential nullptr dereferencing.Tao Bao2018-07-101-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that the code exists in debugging path only, and won't be hit unless device has flaky flash. Test: Run recovery_unit_test and recovery_component_test on marlin. Change-Id: I0c71adc271f08f00e3eabd9d14cd8af3186c5bae
* | | | Merge "updater: Remove the support for sha1_check()." am: fbc0f6062cTao Bao2018-07-102-82/+29
|\| | | | | | | | | | | | | | | | | | | | | | | am: e2136c46cb Change-Id: Ic5e41781e6c584b9b23ea22c91914e4747751b94
| * | | Merge "updater: Remove the support for sha1_check()."Tao Bao2018-07-102-82/+29
| |\| | | | | | | | | | | | | | | | | | | | | | am: fbc0f6062c Change-Id: I487b1f9bd35335f39c1dd3ab7a4e5dfe722b1863
| | * | Merge "updater: Remove the support for sha1_check()."Tao Bao2018-07-102-82/+29
| | |\ \ | | | |/ | | |/|
| | | * updater: Remove the support for sha1_check().Tao Bao2018-07-092-82/+29
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The matching edify function has been removed from EdifyGenerator [1]. In theory device-specific releasetools script may still use this function, but it no longer looks useful. Because a) we should use range_sha1() when asserting the SHA-1 hash of a block device; b) we should look into the contents when asserting a text file. [1] https://android-review.googlesource.com/c/platform/build/+/714104 Test: Run recovery_component_test on marlin. Test: Code search shows no active user. Change-Id: Id39439101534fb89cf8c5cea80a4b758c8a1a60d
* | | Merge "updater: Add ABORT command." am: c059b6c1c6Tao Bao2018-07-095-4/+69
|\| | | | | | | | | | | | | | | | | am: b450952d6a Change-Id: I908878675f1a3d3f70f20c8b0d7ef1e7c3b52c5e
| * | Merge "updater: Add ABORT command."Tao Bao2018-07-095-4/+69
| |\| | | | | | | | | | | | | | | | am: c059b6c1c6 Change-Id: Ib469e055e7a02fb870158a2ae38a83ea6c80ad7d
| | * Merge "updater: Add ABORT command."Tao Bao2018-07-095-4/+69
| | |\
| | | * updater: Add ABORT command.Tao Bao2018-07-075-4/+69
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will be used for testing purpose only, replacing the previously used "fail", to intentionally abort an update. As we're separating the logic between commands parsing and execution, "abort" needs to be considered as a valid command during the parsing. Test: recovery_unit_test and recovery_component_test on marlin. Change-Id: I47c41c423e62c41cc8515fd92f3c5959be08da02
* | | Merge "tests: Split unit tests out of component/applypatch_test.cpp." am: cf1f9bdb12Tao Bao2018-07-063-289/+331
|\| | | | | | | | | | | | | | | | | am: cac6932cf4 Change-Id: Ifc97a0a4eec9d5c34823704975600df9cb3b38b3
| * | Merge "tests: Split unit tests out of component/applypatch_test.cpp."Tao Bao2018-07-063-289/+331
| |\| | | | | | | | | | | | | | | | am: cf1f9bdb12 Change-Id: I757522af647cef17e7e240fc0b22258788e4c634
| | * Merge "tests: Split unit tests out of component/applypatch_test.cpp."Tao Bao2018-07-063-289/+331
| | |\
| | | * tests: Split unit tests out of component/applypatch_test.cpp.Tao Bao2018-07-063-289/+331
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | ... into unit/applypatch_test.cpp. And rename the file to component/applypatch_modes_test.cpp. Bug: 110106408 Test: Run recovery_unit_test and recovery_component_test on marlin. Change-Id: Ic23c4f054baa2fa0d5e8ea2fcffd22572f1f112e
* | | Merge "minui/drm: wait for page flip completion" am: d419966730Jeremy Compostella2018-07-041-1/+38
|\| | | | | | | | | | | | | | | | | am: d3e023c265 Change-Id: I8e67ffc5dca20bf238d79cd66fc2a0eac144baf3
| * | Merge "minui/drm: wait for page flip completion"Jeremy Compostella2018-07-041-1/+38
| |\| | | | | | | | | | | | | | | | am: d419966730 Change-Id: Ibbf3dbbcf89a1757ac305b31cbf29667d8cd26e0
| | * Merge "minui/drm: wait for page flip completion"Treehugger Robot2018-07-041-1/+38
| | |\
| | | * minui/drm: wait for page flip completionJeremy Compostella2018-07-031-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If two consecutive call are made to drmModePageFlip, the second call may fail with -EBUSY because the first flip is not completed yet. This patch adds a wait for completion mechanism based on drmHandleEvent. Change-Id: Ied13ebefc7523003431b1b307bae70d1a70cb24b Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com> Signed-off-by: Benoit Fradin <benoit.fradin@intel.com>
* | | | Merge "No longer print hash for stashed blocks during verification of retry" am: 0a84d7260bTianjie Xu2018-07-031-1/+3
|\| | | | | | | | | | | | | | | | | | | | | | | am: 65419746cb Change-Id: I179a877d89ffff210a87df26a589dd403d77ad4f
| * | | Merge "No longer print hash for stashed blocks during verification of retry"Tianjie Xu2018-07-031-1/+3
| |\| | | | | | | | | | | | | | | | | | | | | | am: 0a84d7260b Change-Id: I567bb581faa27a6ba1a4834a8cbe82f8c4052a31
| | * | Merge "No longer print hash for stashed blocks during verification of retry"Tianjie Xu2018-07-031-1/+3
| | |\ \ | | | |/ | | |/|
| | | * No longer print hash for stashed blocks during verification of retryTianjie Xu2018-07-031-1/+3
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During block verification, load stash reads from the source blocks on the device instead of the stashed files. And for interrupted update, it's pretty common that the source blocks has already been overwritten by subsequent commands. In that case the hash printing is mostly useless. Moreover we should have already printed the hash when the first update failed. Bug: 80241799 Test: Unit tests pass. No longer prints mismatching stashed source blocks on retry. Change-Id: I4effe684280b0325199f6cc4b2cc26e91295c2d7
* | | Merge "updater: Check the number of args in Command::Parse." am: 95b8d2b064Tao Bao2018-06-262-9/+41
|\| | | | | | | | | | | | | | | | | am: 42f96e5516 Change-Id: I112be68943872b9398e49367b350112e4eebcdfd
| * | Merge "updater: Check the number of args in Command::Parse."Tao Bao2018-06-262-9/+41
| |\| | | | | | | | | | | | | | | | am: 95b8d2b064 Change-Id: Ic78e44cdca8a1c394f63b99efdcfecea8a3fdd71
| | * Merge "updater: Check the number of args in Command::Parse."Tao Bao2018-06-262-9/+41
| | |\
| | | * updater: Check the number of args in Command::Parse.Tao Bao2018-06-252-9/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Additionally checks for excess args when parsing ERASE, FREE, NEW, STASH and ZERO. Note that the check for MOVE, BSDIFF, IMGDIFF has been covered in Command::ParseTargetInfoAndSourceInfo. Test: Run recovery_unit_test on marlin. Change-Id: Ic8bc9b7a8dcf98f1f8db2e259607564508726857
* | | | Merge "updater: Add Command parsing codes." am: afc2962e60Tao Bao2018-06-265-17/+798
|\| | | | | | | | | | | | | | | | | | | | | | | am: e6604307f6 Change-Id: I5d741703be298395a5dcc9c5ca646f063f740c42
| * | | Merge "updater: Add Command parsing codes."Tao Bao2018-06-265-17/+798
| |\| | | | | | | | | | | | | | | | | | | | | | am: afc2962e60 Change-Id: I24cc3beca7c75786cbfad37ab273139fd2d1ca2f
| | * | Merge "updater: Add Command parsing codes."Tao Bao2018-06-265-17/+798
| | |\|
| | | * updater: Add Command parsing codes.Tao Bao2018-06-255-17/+798
| | |/ | | | | | | | | | | | | | | | | | | | | | The added codes are not used in the updater yet. The switch will happen in subsequent CLs. Test: Run recovery_unit_test and recovery_component_test on marlin. Change-Id: I1ae8a233280f02c2171b43ef028bdccdacb39c59
* | | Merge "applypatch: {Load,Save}FileContents and ParseSha1 take std::string." am: b4181566f9Tao Bao2018-06-254-18/+19
|\| | | | | | | | | | | | | | | | | am: 839c40513a Change-Id: Ib729d49068b0ce6ff80941102023b3e2688abe59
| * | Merge "applypatch: {Load,Save}FileContents and ParseSha1 take std::string."Tao Bao2018-06-254-18/+19
| |\| | | | | | | | | | | | | | | | am: b4181566f9 Change-Id: I9fb25b58eaa23443d24c3d6ed75d52ac96c7788f
| | * Merge "applypatch: {Load,Save}FileContents and ParseSha1 take std::string."Tao Bao2018-06-254-18/+19
| | |\
| | | * applypatch: {Load,Save}FileContents and ParseSha1 take std::string.Tao Bao2018-06-204-18/+19
| | | | | | | | | | | | | | | | | | | | | | | | Test: mmma -j bootable/recovery Test: Run recovery_component_test on marlin. Change-Id: Ifcf244346a88dac833d91b169a4c2aee1fe677f1
* | | | Merge "applypatch: Move to libbase logging." am: bd76709827Tao Bao2018-06-242-113/+118
|\| | | | | | | | | | | | | | | | | | | | | | | am: 513c7fb9e0 Change-Id: I61d0940efcc1e3fffb1d2c9dc6d6c484a4eb545e
| * | | Merge "applypatch: Move to libbase logging."Tao Bao2018-06-242-113/+118
| |\| | | | | | | | | | | | | | | | | | | | | | am: bd76709827 Change-Id: I64fb20c45acf418040d65176c7c3c478e6c716f1
| | * | Merge "applypatch: Move to libbase logging."Treehugger Robot2018-06-242-113/+118
| | |\|
| | | * applypatch: Move to libbase logging.Tao Bao2018-06-202-113/+118
| | | | | | | | | | | | | | | | | | | | | | | | Test: mmma -j bootable/recovery Test: Run recovery_component_test on marlin. Change-Id: I3a4e32eb2c1e231c6690a50571edc66341b8d50a
* | | | Merge "e2fsdroid and mke2fs are dynamic executable in recovery partition" am: 9b5d4ea20fJiyong Park2018-06-213-14/+8
|\| | | | | | | | | | | | | | | | | | | | | | | am: 681ae40d41 Change-Id: Idecfbea8725d9a0145d9acc17959a59d730ccc3c
| * | | Merge "e2fsdroid and mke2fs are dynamic executable in recovery partition"Jiyong Park2018-06-213-14/+8
| |\| | | | | | | | | | | | | | | | | | | | | | am: 9b5d4ea20f Change-Id: I017a76c320f29baff3183b0156c1fdf2deed66bf
| | * | Merge "e2fsdroid and mke2fs are dynamic executable in recovery partition"Treehugger Robot2018-06-213-14/+8
| | |\ \ | | | |/ | | |/|
| | | * e2fsdroid and mke2fs are dynamic executable in recovery partitionJiyong Park2018-06-203-14/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The two utilities are now converted to dynamic executables as shared libraries are supported in recovery mode. As part of the conversion, their location has moved from /sbin to /system/bin. Reflect the change in the program 'recovery' Bug: 79146551 Test: adb reboot recovery, and select 'Wipe data/factory reset'. The data partition is formatted and there is no selinux denial. Change-Id: Ie7cfc4c50ab1e6767e4a5170533ccf826ec7d7f3
* | | | Merge "applypatch: Clean up the function comments." am: 24e1321bc3Tao Bao2018-06-202-116/+105
|\| | | | | | | | | | | | | | | | | | | | | | | am: d4c1045d4e Change-Id: Ib4cd5fca20313f7cf70c209119e5f8f4fdba19ef
| * | | Merge "applypatch: Clean up the function comments."Tao Bao2018-06-202-116/+105
| |\| | | | | | | | | | | | | | | | | | | | | | am: 24e1321bc3 Change-Id: I5115b9450bc7c40009c3bbf2dd6fbffc9cbfd82c
| | * | Merge "applypatch: Clean up the function comments."Tao Bao2018-06-202-116/+105
| | |\ \
| | | * | applypatch: Clean up the function comments.Tao Bao2018-06-202-116/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also two minor changes (other than renaming some parameters): - Added constness to the first parameter of FindMatchingPatch(); - Declared WriteToPartition() as static. Bug: 110106408 Test: mmma -j bootable/recovery Change-Id: I388958c944a23ce4a38a757ce2249f6a89dd4f03
* | | | | Merge "updater: Defer the creation of the new data writer." am: ddc81680e6Tao Bao2018-06-201-24/+24
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ae3e472a43 Change-Id: Ic1e698621b8f32e78bc24c00d85e4bb760f1d782
| * | | | Merge "updater: Defer the creation of the new data writer."Tao Bao2018-06-201-24/+24
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ddc81680e6 Change-Id: Ibfcc5b765103b41316549ee45636ebf4c377cf84
| | * | | Merge "updater: Defer the creation of the new data writer."Tao Bao2018-06-201-24/+24
| | |\ \ \ | | | |_|/ | | |/| |
| | | * | updater: Defer the creation of the new data writer.Tao Bao2018-06-181-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids leaving the created new data writer thread unjoined, in the presence of transfer list parsing errors, or the early exit case on `total_blocks == 0`. Also fix a minor issue when dumping the errno on pthread_create error (pthread_create returns the error number, as opposed to setting errno). Test: Run recovery_component_test on marlin. Change-Id: Icfac27fef0c64736eb8c76264da73c223b4960cb
* | | | | Merge "updater_sample: add privileged system app docs" am: 4a2c2d8102Zhomart Mukhamejanov2018-06-203-29/+57
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9b4d364409 Change-Id: I70fa5842b37337b0461626395769ab0d0664510b
| * | | | Merge "updater_sample: add privileged system app docs"Zhomart Mukhamejanov2018-06-203-29/+57
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4a2c2d8102 Change-Id: If55faff049dccc585b0dc1db6c4b795d7b93ea9e
| | * | | Merge "updater_sample: add privileged system app docs"Zhomart Mukhamejanov2018-06-203-29/+57
| | |\ \ \ | | | |_|/ | | |/| |
| | | * | updater_sample: add privileged system app docsZhomart Mukhamejanov2018-06-183-29/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | README.md: add instructions Test: on device Bug: 80250430 Change-Id: I2e04fdefda2b73d01dfa0a8e684542feb2ed6c61 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | | Merge "Drop the dependency on AB_OTA_UPDATER flag." am: 9fb0d89583Tao Bao2018-06-197-127/+126
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a855c33880 Change-Id: Iff00ea3ff120b4261406aa956e982d76f1be0f78
| * | | | Merge "Drop the dependency on AB_OTA_UPDATER flag."Tao Bao2018-06-197-127/+126
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9fb0d89583 Change-Id: Id57bbf9ba9d8e4fe905dc183f0655f1b24db89fd
| | * | | Merge "Drop the dependency on AB_OTA_UPDATER flag."Tao Bao2018-06-197-127/+126
| | |\ \ \
| | | * | | Drop the dependency on AB_OTA_UPDATER flag.Tao Bao2018-06-197-127/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This shortens the gap between A/B and non-A/B builds, by replacing the dependency on build-time flag with runtime detection instead. It also allows building and testing both paths regardless of the target OTA type. The size increase to /sbin/recovery looks negligible (< 0.01%). - marlin: increased from 2084928 to 2085024; - angler: increased from 2084776 to 2084896. Test: Run recovery_component_test on angler and marlin. Test: Sideload an A/B OTA package on marlin. Test: Sideload a non-A/B OTA package on angler. Change-Id: I1d927d1ede9713fb42f73b4fe324aa5705ee6f99
* | | | | | Merge "updater_sample: run as a systemp app" am: 6b788b1848Zhomart Mukhamejanov2018-06-192-1/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bb1c6bf7cc Change-Id: I1a93d69597e255a0b290ac76f197f569fee1f2c8
| * | | | | Merge "updater_sample: run as a systemp app"Zhomart Mukhamejanov2018-06-192-1/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6b788b1848 Change-Id: Iddfce3b5302faa4489ee6c0ca9518f4acf39c75b
| | * | | | Merge "updater_sample: run as a systemp app"Zhomart Mukhamejanov2018-06-192-1/+3
| | |\ \ \ \ | | | |/ / / | | |/| / / | | | |/ /
| | | * | updater_sample: run as a systemp appZhomart Mukhamejanov2018-06-182-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android.mk: remove local tags, make privileged module AndroidManifest.xml: add access cache filesystem Test: on device Test: junit4 Change-Id: I611970747b7b630520249dd53105b9a2f7f76355 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | | Merge "updater_sample: add proguard.flags" am: 5af63a45d9Zhomart Mukhamejanov2018-06-193-5/+28
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 468ad1d965 Change-Id: Ib819331248fd0e799f3679f9663500cf897ca3b4
| * | | | Merge "updater_sample: add proguard.flags"Zhomart Mukhamejanov2018-06-193-5/+28
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5af63a45d9 Change-Id: I6221824507bf889f11ebab5aea10aaf2f9205a4a
| | * | | Merge "updater_sample: add proguard.flags"Zhomart Mukhamejanov2018-06-193-5/+28
| | |\| | | | | |/ | | |/|
| | | * updater_sample: add proguard.flagsZhomart Mukhamejanov2018-06-183-5/+28
| | |/ | | | | | | | | | | | | | | | Test: on device Change-Id: Ia8582053b7330d06e618f2555332cfb2a89b3df8 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | Merge "updater_sample: add metadata mismatch error code" am: 9ed4b41478Zhomart Mukhamejanov2018-06-141-0/+1
|\| | | | | | | | | | | | | | | | | am: c48f0b6923 Change-Id: I8ddbff9a22fc79707a09658e3e9049c367871ea9
| * | Merge "updater_sample: add metadata mismatch error code"Zhomart Mukhamejanov2018-06-141-0/+1
| |\| | | | | | | | | | | | | | | | am: 9ed4b41478 Change-Id: I8873a4bff0dcfaa17acce762df5687c5ebe4aa96
| | * Merge "updater_sample: add metadata mismatch error code"Zhomart Mukhamejanov2018-06-141-0/+1
| | |\
| | | * updater_sample: add metadata mismatch error codeZhomart Mukhamejanov2018-06-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update util/UpdateEngineErrorCodes.java Test: n/a Change-Id: I7250b1198b1d5ff0e38b7d4effe61eebd114a44f Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | Merge "tests: Skip ScreenRecoveryUITest on gr_init failure." am: c53639d5e3Tao Bao2018-06-141-1/+38
|\| | | | | | | | | | | | | | | | | | | | | | | am: c7b4418a80 Change-Id: I537e815e7b3ead2f31e8031642f6e8583028b0e0
| * | | Merge "tests: Skip ScreenRecoveryUITest on gr_init failure."Tao Bao2018-06-141-1/+38
| |\| | | | | | | | | | | | | | | | | | | | | | am: c53639d5e3 Change-Id: Ia0c825cc4a74c8f6d06f09eb3ac8cdade60fc427
| | * | Merge "tests: Skip ScreenRecoveryUITest on gr_init failure."Tao Bao2018-06-141-1/+38
| | |\ \
| | | * | tests: Skip ScreenRecoveryUITest on gr_init failure.Tao Bao2018-06-141-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It addresses the ScreenRecoveryUITest failures on gce targets which don't have any graphics backend. Probing for all backend devices in tests could work, but would duplicate codes. This CL relies on the result of gr_init(). As a side effect, it may give false negatives if gr_init() is supposed to work but silently broken. But such issues are beyond ScreenRecoveryUITest's concern, which should be captured by the tests for minui or graphics backends instead. Fixes: 79616356 Test: Run recovery_unit_test on marlin. Test: Run recovery_unit_test on gce. Change-Id: I121aacc61c8a614447509506057ecfd8d86163e4
* | | | | Merge "Revert "updater_sample: add proguard.flags"" am: ac752b3ed8Ian Pedowitz2018-06-143-28/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 888dae6c13 Change-Id: I0ce9c1daf2761d72b99a7f996b661f0646308efc
| * | | | Merge "Revert "updater_sample: add proguard.flags""Ian Pedowitz2018-06-143-28/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ac752b3ed8 Change-Id: I3a309959425ca71c22643229a6e32151408e8cb5
| | * | | Merge "Revert "updater_sample: add proguard.flags""Ian Pedowitz2018-06-143-28/+6
| | |\ \ \ | | | |/ / | | |/| |
| | | * | Revert "updater_sample: add proguard.flags"Ian Pedowitz2018-06-143-28/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 8c3af4aa8c35b9fdeb5c2b350098c20202fd3830. Reason for revert: Broke Master Change-Id: I37bceeea630fb7db39efa25d03ababe3d84cdfbf
* | | | | Merge "screen_ui: Move the call to gr_init() into Init()." am: 4264ee890eTao Bao2018-06-141-2/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2a3c46a068 Change-Id: I862f4d9f90154ac626125ceae49c6bb233b0af03
| * | | | Merge "screen_ui: Move the call to gr_init() into Init()."Tao Bao2018-06-141-2/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4264ee890e Change-Id: Ibc9c227d25a0b67ccfc97cf075de9314a2732c71
| | * | | Merge "screen_ui: Move the call to gr_init() into Init()."Tao Bao2018-06-141-2/+6
| | |\ \ \
| | | * | | screen_ui: Move the call to gr_init() into Init().Tao Bao2018-06-141-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gr_init() does general initialization works, in addition to loading font file. InitTextParams() handles text related works. Also check the font initialization result before using, as gr_init() would ignore font initialization failures. Test: recovery_unit_test on marlin. Test: Boot into recovery. Run graphics test. Change-Id: I12da22dfe8d13448cfbc83dbc51cd96f23c2deee
* | | | | | Merge "screen_ui: Call gr_exit() from dtor." am: 4cd2cf96a0Tao Bao2018-06-141-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 52a702181e Change-Id: I217c53f19e894b9d0cde6b20a7345c779002a578
| * | | | | Merge "screen_ui: Call gr_exit() from dtor."Tao Bao2018-06-141-0/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4cd2cf96a0 Change-Id: Ib3fba135cfcb1345d17a22b6ba12d03728ebd4c8
| | * | | | Merge "screen_ui: Call gr_exit() from dtor."Treehugger Robot2018-06-141-0/+2
| | |\| | |
| | | * | | screen_ui: Call gr_exit() from dtor.Tao Bao2018-06-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ScreenRecoveryUI calls gr_init() during Init(), and should release any allocated resource upon destructing. It's a no-op to call gr_exit() if gr_init() was not called or didn't finish successfully. Test: recovery_unit_test on marlin. Test: Boot into recovery. Run graphics test. Change-Id: Ib9632170174cdacd51d382f23c8daf6a9bc59f7a
* | | | | | Merge "Recovery image is self-contained" am: 397e8f2279Jiyong Park2018-06-143-17/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 93ea306913 Change-Id: Idf0067a0b9de29a47859bd1fa722830592ba7d0e
| * | | | | Merge "Recovery image is self-contained"Jiyong Park2018-06-143-17/+8
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 397e8f2279 Change-Id: Ieb43e946cb694635b3b4aad91e7874f87ae39b47
| | * | | | Merge "Recovery image is self-contained"Treehugger Robot2018-06-143-17/+8
| | |\ \ \ \ | | | |_|_|/ | | |/| | |
| | | * | | Recovery image is self-containedJiyong Park2018-06-073-17/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now recovery mode is self-contained, which means we don't need to mount system.img to run shell, etc. What is needed in recovery mode is all in the recovery ramdisk image. Since we no longer use /system as the mount point for the system.img, this allows us to have identical filesystem layout as the system.img. Executables and libs are installed to /system/bin and /system/lib. Right now, we only have adbd, sh, toybox in /system/bin but will move static executables from /sbin to /system/bin as soon as they are converted to dynamic executables. system.img is mounted to /mnt/system instead. Bug: 63673171 Test: `adb reboot recovery; adb devices` shows the device ID Test: `adb root && adb shell` and then $ lsof -p `pidof adbd` shows that libm.so, libc.so, etc. are loaded from the /lib directory. Change-Id: I801ebd18f3e0a112db3d9a11e4fbb4e49181652a
* | | | | | Merge "updater_sample: add proguard.flags" am: 5ced47d120Zhomart Mukhamejanov2018-06-143-6/+28
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9b6a9aceae Change-Id: I91bef0b518749bf0f0f6cfb30bc9287d3876bef0
| * | | | | Merge "updater_sample: add proguard.flags"Zhomart Mukhamejanov2018-06-143-6/+28
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5ced47d120 Change-Id: Ib5d900fa689fe391148b6da6dc6c0e14d94f6119
| | * | | | Merge "updater_sample: add proguard.flags"Zhomart Mukhamejanov2018-06-143-6/+28
| | |\ \ \ \ | | | |_|/ / | | |/| | / | | | | |/ | | | |/|
| | | * | updater_sample: add proguard.flagsZhomart Mukhamejanov2018-06-133-6/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: junit Change-Id: I0175271935fdd87dd49ad9936d0e1b550d164e05 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | | Merge "minui: Add constness to GRSurface* in gr_get_{width,height}." am: 6dbdbbc8feTao Bao2018-06-142-20/+31
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cc08655e65 Change-Id: I69c2e87bc26206cce717dc8e0e8f7661f4ca71a1
| * | | | Merge "minui: Add constness to GRSurface* in gr_get_{width,height}."Tao Bao2018-06-142-20/+31
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6dbdbbc8fe Change-Id: I21e6912c33464647b490b6baeea7bf52f2f457af
| | * | | Merge "minui: Add constness to GRSurface* in gr_get_{width,height}."Tao Bao2018-06-142-20/+31
| | |\ \ \ | | | |/ / | | |/| |
| | | * | minui: Add constness to GRSurface* in gr_get_{width,height}.Tao Bao2018-06-132-20/+31
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also free gr_font in gr_exit(), as it's owned by minui. Test: mmma -j bootable/recovery system/core/healthd Test: recovery_unit_test on marlin Test: Boot into recovery. Run graphics test. Change-Id: I00457bb97ed3dc95ef5aad493827fb5a62a258dc
* | | | Merge "updater: Drop the 'overlap' parameter in LoadSrcTgtVersion3()." am: 0eb10b382aTao Bao2018-06-091-12/+10
|\| | | | | | | | | | | | | | | | | | | | | | | am: 941d3ab754 Change-Id: I2f6b30d6a7698dbde35cbaec6be835cd493c1b29
| * | | Merge "updater: Drop the 'overlap' parameter in LoadSrcTgtVersion3()."Tao Bao2018-06-091-12/+10
| |\| | | | | | | | | | | | | | | | | | | | | | am: 0eb10b382a Change-Id: I0bba5a09ac62b7c152d22d72f0432868008592cc
| | * | Merge "updater: Drop the 'overlap' parameter in LoadSrcTgtVersion3()."Tao Bao2018-06-091-12/+10
| | |\ \
| | | * | updater: Drop the 'overlap' parameter in LoadSrcTgtVersion3().Tao Bao2018-06-081-12/+10
| | |/ / | | | | | | | | | | | | | | | | Test: Run recovery_component_test on marlin. Change-Id: I93afca891c5c9c1a351c907b023cd20c4704a66a
* | | | Merge "Merge pi-dev-plus-aosp-without-vendor into stage-aosp-master" into stage-aosp-masterXin Li2018-06-090-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | am: d8a411c90a Change-Id: Ifc15b0365a972264e00e49325106ddca7072c1c9
| * | | Merge "Merge pi-dev-plus-aosp-without-vendor into stage-aosp-master" into stage-aosp-masterXin Li2018-06-099-25/+105
| |\ \ \
| | * \ \ Merge pi-dev-plus-aosp-without-vendor into stage-aosp-masterXin Li2018-06-089-25/+105
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Bug: 79597307 Change-Id: Iaf450edb8262cef5465f06309556ab24a08222b4
* | | | | | Merge "updater: Remove the redundant check on line count." am: 4a8f5ec06dTao Bao2018-06-082-11/+24
|\| | | | | | |_|/ / / |/| | | | | | | | | | | | | | | | | | | am: 165a197cdf Change-Id: Ifd6cda9da86575fd8036a0322fa3456c8d4d5147
| * | | | Merge "updater: Remove the redundant check on line count."Tao Bao2018-06-082-11/+24
| |\ \ \ \ | | |/ / / | |/| / / | | |/ / | | | | | | | | am: 4a8f5ec06d Change-Id: Iabb63de552d823305fd6330d9819d5ec32718ebc
| | * | Merge "updater: Remove the redundant check on line count."Tao Bao2018-06-082-11/+24
| | |\ \
| | | * | updater: Remove the redundant check on line count.Tao Bao2018-06-072-11/+24
| | | | | | | | | | | | | | | | | | | | | | | | | Test: recovery_component_test on marlin. Change-Id: I2ac2bd47469d1aec8a97a8c4ed0fe80ffd65c95b
* | | | | Merge "updater_sample: update README.md" am: 1cb7222784Zhomart Mukhamejanov2018-06-081-3/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fc824cb998 Change-Id: If5ec06c7974cf6c174ce812e49b20d6dc67c1181
| * | | | Merge "updater_sample: update README.md"Zhomart Mukhamejanov2018-06-081-3/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1cb7222784 Change-Id: I4347b45f3d0abc9fa93bc70b42ec6df94be595e4
| | * | | Merge "updater_sample: update README.md"Zhomart Mukhamejanov2018-06-081-3/+5
| | |\ \ \
| | | * | | updater_sample: update README.mdZhomart Mukhamejanov2018-06-081-3/+5
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | Test: n/a Change-Id: I0b488ca9fe628c3614c203ab9264175f291f49db Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | | Merge "updater_sample: fix payload spec tests" am: 684d7216e6Zhomart Mukhamejanov2018-06-081-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7c8e5b6ee8 Change-Id: I2a413794f315f53000f937760595d5ba99c1755f
| * | | | Merge "updater_sample: fix payload spec tests"Zhomart Mukhamejanov2018-06-081-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 684d7216e6 Change-Id: I2aac8aa24dd5d4287010ea2b8e70828671858864
| | * | | Merge "updater_sample: fix payload spec tests"Zhomart Mukhamejanov2018-06-081-1/+1
| | |\ \ \
| | | * | | updater_sample: fix payload spec testsZhomart Mukhamejanov2018-06-071-1/+1
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | Test: junit4 Change-Id: Ia2f7475cfba01a65486bb0e5d0f3976304ca0969 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | | Merge "updater_sample: change gen_update_config args" am: eeabbecb64Zhomart Mukhamejanov2018-06-071-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 493e6cb9e0 Change-Id: I12371f4985c5d39eb3b7361cf5ef9e167eddc8a3
| * | | | Merge "updater_sample: change gen_update_config args"Zhomart Mukhamejanov2018-06-071-3/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: eeabbecb64 Change-Id: I5d8a229fce5599762f290a583d779808dc836b23
| | * | | Merge "updater_sample: change gen_update_config args"Zhomart Mukhamejanov2018-06-071-3/+3
| | |\ \ \ | | | |_|/ | | |/| |
| | | * | updater_sample: change gen_update_config argsZhomart Mukhamejanov2018-06-071-3/+3
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change gen_update_config arg '--ab_force_switch_slot' from 'bool' to 'store_action'. Test: manually Change-Id: Ic65ac9ca3feb99b3a1751a44dec038d49c2b446a Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | Merge "updater_sample: Add suspend/resume update" am: 382691fbb0Zhomart Mukhamejanov2018-06-074-13/+80
|\| | | | | | | | | | | | | | | | | | | | | | | am: f4c1420742 Change-Id: Idbdb61d87c1ce5ddde1de04b00909675dfe467e5
| * | | Merge "updater_sample: Add suspend/resume update"Zhomart Mukhamejanov2018-06-074-13/+80
| |\| | | | | | | | | | | | | | | | | | | | | | am: 382691fbb0 Change-Id: Ibd18c8751b2a157aaaf9139bbb01ba0ec84101b7
| | * | Merge "updater_sample: Add suspend/resume update"Zhomart Mukhamejanov2018-06-074-13/+80
| | |\ \ | | | |/ | | |/|
| | | * updater_sample: Add suspend/resume updateZhomart Mukhamejanov2018-06-054-13/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add suspend/resume buttons. - UpdateManager: add suspend/resume control methods. - UpdaterState: fix transitions. Test: on the device Bug: 77150010 Change-Id: I174edd32401f8232b5071eb1a2758a4704779801 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | Merge "updater: Replace the reference arguments with pointers." am: cef8431fedTao Bao2018-06-071-102/+101
|\| | | | | | | | | | | | | | | | | | | | | | | am: 9c22d924e8 Change-Id: Ibb4ee1d240768e2cb941d1c4c89e5584c126290b
| * | | Merge "updater: Replace the reference arguments with pointers."Tao Bao2018-06-071-102/+101
| |\| | | | | | | | | | | | | | | | | | | | | | am: cef8431fed Change-Id: Iae45ce2282661f97f5726b1ee1e4db6a6e6af503
| | * | Merge "updater: Replace the reference arguments with pointers."Tao Bao2018-06-071-102/+101
| | |\ \
| | | * | updater: Replace the reference arguments with pointers.Tao Bao2018-06-051-102/+101
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As suggested by the style guide (https://google.github.io/styleguide/cppguide.html#Reference_Arguments), all parameters passed by reference must be labeled const. This CL moves most of the non-const references in blockimg.cpp to pointers, except for the CommandParameters& parameter in PerformCommand* functions, which will be handled in separate CLs. Test: mmma -j bootable/recovery Test: Run recovery_component_test on marlin. Change-Id: I84299208e9a1699f5381fb2228d4120f0c8dacb3
* | | | Merge "minui: Handle the failures from the drm backend in gr_init" am: 0e2d900739Tianjie Xu2018-06-073-7/+16
|\| | | | | | | | | | | | | | | | | | | | | | | am: c8d9d6ca17 Change-Id: I57b6c5a91a08b4d52bd11ff37b29c43e28d7837d
| * | | Merge "minui: Handle the failures from the drm backend in gr_init"Tianjie Xu2018-06-063-7/+16
| |\| | | | | | | | | | | | | | | | | | | | | | am: 0e2d900739 Change-Id: I690e4ea0a8750dbabfbea8d4401df641d991bfd1
| | * | Merge "minui: Handle the failures from the drm backend in gr_init"Tianjie Xu2018-06-063-7/+16
| | |\ \
| | | * | minui: Handle the failures from the drm backend in gr_initTianjie Xu2018-06-063-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a charger mode manual test, we encounter failures from the MinuiBackendDrm when calling DrmEnableCrtc and Flip. To make the minui more robust, we should fall back to another backend if drm's SetCrtc fails. And check the value of gr_draw before dereferencing. Bug: 80249440 Test: boot to recovery Change-Id: Ibd1ca1fb1115fe1132684586c54eccd8fb4c3ad9
* | | | | Merge "ui: join only if joinable." am: 2454b2493aTao Bao2018-06-063-2/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ccff03d196 Change-Id: I6752eaf96637a9263eb49caa5322a815a6208ef5
| * | | | Merge "ui: join only if joinable."Tao Bao2018-06-063-2/+11
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2454b2493a Change-Id: I84d7bb6be8dbf35d0161237902a7b7e076200e10
| | * | | Merge "ui: join only if joinable."Tao Bao2018-06-063-2/+11
| | |\ \ \
| | | * | | ui: join only if joinable.Tao Bao2018-06-063-2/+11
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The threads in RecoveryUI only get initialized if their Init()s finish successfully. Test: recovery_unit_test on marlin. Change-Id: Ic4b62300a3cbd47887d9f4a90dc26f8a7deab616
* | | | | Merge "tests: Specify the death test style to avoid flakiness." am: 878d5a77f0Tao Bao2018-06-062-0/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d770790a8f Change-Id: Ia87e290bacfbad079e4aedf30a6f2c2c2ab13e9b
| * | | | Merge "tests: Specify the death test style to avoid flakiness."Tao Bao2018-06-062-0/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 878d5a77f0 Change-Id: Ia1cb4cea72323c80d605fdd9cedfa80d5e3145fb
| | * | | Merge "tests: Specify the death test style to avoid flakiness."Tao Bao2018-06-062-0/+5
| | |\ \ \ | | | |_|/ | | |/| |
| | | * | tests: Specify the death test style to avoid flakiness.Tao Bao2018-06-052-0/+5
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As warned below (while running the test), the default death test style (i.e. "fast") doesn't work well in a threaded context, which causes test flakiness (timeout or early exit). [WARNING] external/googletest/googletest/src/gtest-death-test.cc:836:: Death tests use fork(), which is unsafe particularly in a threaded context. For this test, Google Test detected 3 threads. This CL specifies the death test styles to be "threadsafe" for the following death tests. - RangeSetTest.GetBlockNumber - RangeSetTest.file_range - ScreenRecoveryUITest.LoadAnimation_MissingAnimation Test: mmma -j bootable/recovery Test: Run recovery_unit_test on marlin. Test passes and the above warning is gone. Change-Id: I245bbc09286702d5cb326f878c4391e842b66cc5
* | | | Merge "updater_sample: Add UI docs to README" am: e36b6ec97cZhomart Mukhamejanov2018-06-051-0/+25
|\| | | | | | | | | | | | | | | | | | | | | | | am: 321a7134e9 Change-Id: Ie80f7d87be9cbff62784cdcac6241f0352e3bbc1
| * | | Merge "updater_sample: Add UI docs to README"Zhomart Mukhamejanov2018-06-051-0/+25
| |\| | | | | | | | | | | | | | | | | | | | | | am: e36b6ec97c Change-Id: I6953b9a20563f91901f776e737e151f061ff2575
| | * | Merge "updater_sample: Add UI docs to README"Zhomart Mukhamejanov2018-06-051-0/+25
| | |\ \
| | | * | updater_sample: Add UI docs to READMEZhomart Mukhamejanov2018-06-051-0/+25
| | |/ / | | | | | | | | | | | | | | | | | | | | Test: N/A Change-Id: Idc0a4fa778c23c503162337a682c872644e5419c Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | Merge "updater_sample: improve updater state handling" am: 269be9f22dZhomart Mukhamejanov2018-06-058-167/+307
|\| | | | | | | | | | | | | | | | | | | | | | | am: 188190cc8c Change-Id: I01dd12acc6a53844d9f0285e8ce091ee8eca3564
| * | | Merge "updater_sample: improve updater state handling"Zhomart Mukhamejanov2018-06-058-167/+307
| |\| | | | | | | | | | | | | | | | | | | | | | am: 269be9f22d Change-Id: I803895e6d67e11e8e58873af89fd6710cab5334f
| | * | Merge "updater_sample: improve updater state handling"Zhomart Mukhamejanov2018-06-058-167/+307
| | |\ \
| | | * | updater_sample: improve updater state handlingZhomart Mukhamejanov2018-06-048-167/+307
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Enable more UpdaterState transitions. - MainActivity: Improve UI states. - UpdateManager: fix status handling errors, add suspend/resume methods. Add "synchronize this" to public control (suspend, cancel, ..) methods. - Add several UpdateManager tests. Test: on device Test: JUnit4 Change-Id: Id7f85dfaa466fa0d6136eee39e9fd7658278c616 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | Merge "tests: Add ResumableUpdaterTest." am: a21a63bf56Tao Bao2018-06-052-0/+228
|\| | | | | | | | | | | | | | | | | | | | | | | am: 1d33962b86 Change-Id: I558dc711f65a970195daa60d741fa83d375c7cb0
| * | | Merge "tests: Add ResumableUpdaterTest."Tao Bao2018-06-042-0/+228
| |\| | | | | | | | | | | | | | | | | | | | | | am: a21a63bf56 Change-Id: I63bcdd7c86765f9671531d703fdafcae381a4c48
| | * | Merge "tests: Add ResumableUpdaterTest."Tao Bao2018-06-042-0/+228
| | |\ \ | | | |/ | | |/|
| | | * tests: Add ResumableUpdaterTest.Tao Bao2018-06-042-0/+228
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a stress test that instantiates multiple testcases that interrupt a BBOTA update at every transfer command. Each testcase asserts the last_command_file after the interruption, verifies the update resumability, then resumes the update and asserts the updated image. The transfer list in the testcase covers most of the transfer commands (stash/free/move/bsdiff/zero/new), as well as some special pattern like having duplicate stash ids. This CL also addresses one issue in the updater code, by resetting the stash_map before each run. The stash map should be valid only per block_image_verify/block_image_update run. Having leftover may cause issue in subsequent runs, in particular when calling block_image_verify after a previous run of block_image_{update,verify}. Test: Run recovery_component_test on marlin. Change-Id: I6f9a0368d194a754ce41a9c9819c6d5be2657248
* | | Merge "updater_sample: validate state only once" am: 02ee7bf29dZhomart Mukhamejanov2018-06-011-1/+8
|\| | | | | | | | | | | | | | | | | am: 8bb3085865 Change-Id: I9921a274b17ce7ef2d64cb1f36337dc3f02aebf4
| * | Merge "updater_sample: validate state only once"Zhomart Mukhamejanov2018-06-011-1/+8
| |\| | | | | | | | | | | | | | | | am: 02ee7bf29d Change-Id: I2752740e1c101203e34ca6bbb20664a728b99908
| | * Merge "updater_sample: validate state only once"Zhomart Mukhamejanov2018-06-011-1/+8
| | |\
| | | * updater_sample: validate state only onceZhomart Mukhamejanov2018-06-011-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | Test: on device Change-Id: I0a8a87d7b69f0efdcbd17facbf42cb94fb96fe51 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | Merge "Let gr_init proceed even if we failed to load a font file" am: 2d85a0f6f7Tianjie Xu2018-06-012-4/+15
|\| | | | | | | | | | | | | | | | | | | | | | | am: 80918c9773 Change-Id: Iedd79892a6ce7a079f82e1d84117a865ae4c7d5a
| * | | Merge "Let gr_init proceed even if we failed to load a font file"Tianjie Xu2018-06-012-4/+15
| |\| | | | | | | | | | | | | | | | | | | | | | am: 2d85a0f6f7 Change-Id: I2c830126f9d6a060d321ce48e7602fc808836e11
| | * | Merge "Let gr_init proceed even if we failed to load a font file"Treehugger Robot2018-06-012-4/+15
| | |\ \
| | | * | Let gr_init proceed even if we failed to load a font fileTianjie Xu2018-06-012-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some users of minui don't need to draw texts; and we should let them still be able to use the library without providing a font file. Also add check for null pointers in gr_measure() and gr_font_size(). Bug: 80535212 Test: boot into recovery without a font file, and the buttons still work Change-Id: I848e4410f2ce09ea0ab433573e6827b7e9b2c575
* | | | | Merge "recovery: add --fsck_unshare_blocks option for adb remount" am: bda4495176David Anderson2018-06-014-1/+203
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b0d9b3594b Change-Id: I86d3af476e87184e653de38cdb4faa1c9975ccba
| * | | | Merge "recovery: add --fsck_unshare_blocks option for adb remount"David Anderson2018-06-014-1/+203
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bda4495176 Change-Id: I7ca5126573f977d8e6204420d66617a7dc207688
| | * | | Merge "recovery: add --fsck_unshare_blocks option for adb remount"Treehugger Robot2018-06-014-1/+203
| | |\ \ \ | | | |_|/ | | |/| |
| | | * | recovery: add --fsck_unshare_blocks option for adb remountDavid Anderson2018-05-304-1/+203
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow "adb remount" on deduplicated filesystems to reboot into recovery and run e2fsck to undo deduplication. The e2fsck binary is copied from the system partition into tmpfs, and the system partition is unmounted so e2fsck can run safely. Bug: 64109868 Test: recovery with --fsck_unshare_blocks; adb remount Change-Id: I7558749b018b58f3c4339e51a95831dbd5be1ae3
* | | | | Merge "updater_sample: Add @GuardedBy" am: 2759733136Zhomart Mukhamejanov2018-06-012-1/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a37a085a11 Change-Id: I14c6cf3602233e29a8da9790cb4d0f37f10a59ca
| * | | | Merge "updater_sample: Add @GuardedBy"Zhomart Mukhamejanov2018-06-012-1/+8
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2759733136 Change-Id: I7c0811201ec55e64aba60f6582ee2c0c1ddca870
| | * | | Merge "updater_sample: Add @GuardedBy"Zhomart Mukhamejanov2018-06-012-1/+8
| | |\ \ \
| | | * | | updater_sample: Add @GuardedByZhomart Mukhamejanov2018-06-012-1/+8
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | Test: on the device Change-Id: I15762dafec1814980e1c2529f5fc2048853c8ff2 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | | Merge "updater_sample: Improve update completion handling" am: 9455173f87Zhomart Mukhamejanov2018-06-013-1/+147
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 86f05074d2 Change-Id: Iaefa58f57d11bf8b7091506326b721fe47f00058
| * | | | Merge "updater_sample: Improve update completion handling"Zhomart Mukhamejanov2018-06-013-1/+147
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9455173f87 Change-Id: Id4b1ff4cc2afe36a0acffe3bc0a323cc06416c6c
| | * | | Merge "updater_sample: Improve update completion handling"Zhomart Mukhamejanov2018-06-013-1/+147
| | |\ \ \ | | | |_|/ | | |/| |
| | | * | updater_sample: Improve update completion handlingZhomart Mukhamejanov2018-05-313-1/+147
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently sample app relies on onPayloadApplicationComplete callback. It might not get invoked when app is unbound and update is complete. On the other hand, onStatusUpdate gets invoked always (except when update_engine fails to init). It's good to rely on onStatusUpdate callback to reapply the update if it's IDLE but sample app state is RUNNING. - Add methods to ensure correct updater state. - Update README.md. BUG: 80205922 Test: on the device Change-Id: Ic2f390e85af43556e227362321ab69f0ff146188 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | Merge "updater: Drop the 'blocks' parameter in LoadStash()." am: 0b80ba14d7Tao Bao2018-06-011-15/+8
|\| | | | | | | | | | | | | | | | | | | | | | | am: 838f30a8f7 Change-Id: I7eac9d3a708fc70c5dc8c73c4b7a05c861c37cc2
| * | | Merge "updater: Drop the 'blocks' parameter in LoadStash()."Tao Bao2018-06-011-15/+8
| |\| | | | | | | | | | | | | | | | | | | | | | am: 0b80ba14d7 Change-Id: I24ed7f67fb2a8c4eaccaa075a73dbfc006d16f93
| | * | Merge "updater: Drop the 'blocks' parameter in LoadStash()."Tao Bao2018-05-311-15/+8
| | |\ \ | | | |/ | | |/|
| | | * updater: Drop the 'blocks' parameter in LoadStash().Tao Bao2018-05-311-15/+8
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | None of the callers actually uses the value. (Even in the earlier versions, e.g. the one in M, the value wasn't used either.) Test: Run recovery_component_test on marlin. Change-Id: I53e61a1afa211f71a200889ed3aa4046763b46ea
* | | Merge "updater_sample: add UpdaterState" am: 721f6d851fZhomart Mukhamejanov2018-05-304-68/+128
|\| | | | | | | | | | | | | | | | | am: b2a0611ea7 Change-Id: Ie85e6ccc229abf22d79359a4c13523ab1fa857ca
| * | Merge "updater_sample: add UpdaterState"Zhomart Mukhamejanov2018-05-304-68/+128
| |\| | | | | | | | | | | | | | | | am: 721f6d851f Change-Id: Ic5f9ecadcb2af07048dd60660c1fbb64591aa547
| | * Merge "updater_sample: add UpdaterState"Zhomart Mukhamejanov2018-05-304-68/+128
| | |\
| | | * updater_sample: add UpdaterStateZhomart Mukhamejanov2018-05-264-68/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add UpdaterState - atomic class, handles proper state changes. - Remove util.UpdaterStates. Test: compiled and ran on the device Change-Id: I7fa87bbf09f8289632e8de1f26654365f4891700 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | Merge "updater_sample: add UpdateData" am: 8f15a82229Zhomart Mukhamejanov2018-05-301-29/+121
|\| | | | | | | | | | | | | | | | | | | | | | | am: 8dd98e8c45 Change-Id: I125afc8a6812b023d8bc91402832a1355fa66d2f
| * | | Merge "updater_sample: add UpdateData"Zhomart Mukhamejanov2018-05-301-29/+121
| |\| | | | | | | | | | | | | | | | | | | | | | am: 8f15a82229 Change-Id: I0b155b9b49e7686170cc51adf6bd84d54e0bc0f1
| | * | Merge "updater_sample: add UpdateData"Zhomart Mukhamejanov2018-05-301-29/+121
| | |\|
| | | * updater_sample: add UpdateDataZhomart Mukhamejanov2018-05-261-29/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This class allows easily passing update data to apply payload, re-applying the updata data, and in the future persisting. Test: on the device Change-Id: Ie01c5f3384c421bf1180122f27811c644179e3f5 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | Merge "recovery: c++ify pthread use in UI" am: 85a007c47cJerry Zhang2018-05-305-127/+87
|\| | | | | | | | | | | | | | | | | | | | | | | am: 956580b139 Change-Id: Ia3f1bad7a6c0e13a5d6920a4f43224e75b954800
| * | | Merge "recovery: c++ify pthread use in UI"Jerry Zhang2018-05-305-127/+87
| |\| | | | | | | | | | | | | | | | | | | | | | am: 85a007c47c Change-Id: Ib060a22927dd7299d567d3961064119cac69bfef
| | * | Merge "recovery: c++ify pthread use in UI"Jerry Zhang2018-05-305-127/+87
| | |\ \
| | | * | recovery: c++ify pthread use in UIJerry Zhang2018-05-305-127/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change pthread usage to std::mutex, lock_guard, unique_lock, thread, or condition_variable as appropriate. Test: Recovery works, recovery_component_test pass Bug: 78793464 Change-Id: Ibf0b1bbedcf0b6e32fc4ee6aaadd17f21b4d7077
* | | | | Merge "ui: Use std::thread to create input/progress threads." am: b8634ca793Tao Bao2018-05-295-66/+64
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4fcc200272 Change-Id: I9efb46bb955ee8494575c7e7d9c34c63d5a418e6
| * | | | Merge "ui: Use std::thread to create input/progress threads."Tao Bao2018-05-295-66/+64
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b8634ca793 Change-Id: I18e13b53ad6a828f41fb7afc116178e2ae4a44f2
| | * | | Merge "ui: Use std::thread to create input/progress threads."Tao Bao2018-05-295-66/+64
| | |\| |
| | | * | ui: Use std::thread to create input/progress threads.Tao Bao2018-05-225-66/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: Build and boot into recovery on walleye. Check the long press detection; `Run graphics test`. Change-Id: Ic3e9b0652fc3ff6fb3ad118df5ebb9bb4abda2cd
* | | | | Merge "updater: Add Commmand class to manage BBOTA commands." am: a488bd992fTao Bao2018-05-296-63/+171
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 89d65805c6 Change-Id: Ief7bf42681ebffe92ac78d523b9f796fbca56c17
| * | | | Merge "updater: Add Commmand class to manage BBOTA commands."Tao Bao2018-05-296-63/+171
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a488bd992f Change-Id: I43b6fc941dc412478fff937f08306990ff74d9e2
| | * | | Merge "updater: Add Commmand class to manage BBOTA commands."Tao Bao2018-05-296-63/+171
| | |\ \ \
| | | * | | updater: Add Commmand class to manage BBOTA commands.Tao Bao2018-05-266-63/+171
| | | | |/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the commands map parsing out of PerformBlockImageUpdate(), as this can be done more easily by the caller. The goal (not done in this CL) is to decouple command parsing logic from the performers. This allows (a) focusing on the command logic in the performer; and (b) extending BBOTA commands syntax separately. Test: Run recovery_unit_test and recovery_component_test. Change-Id: Ife202398a7660b152d84a3ba17b90f93d19c55f2
* | | | | Merge "tools: Move to Soong." am: 6b16093b29Tao Bao2018-05-296-37/+50
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9016deefe4 Change-Id: I1c8b1dd470279e3e5b8ca15c76dfe09691257bd6
| * | | | Merge "tools: Move to Soong."Tao Bao2018-05-296-37/+50
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6b16093b29 Change-Id: I08afe905ab4ece8e90ac5685f8fa7e48c597b7a0
| | * | | Merge "tools: Move to Soong."Tao Bao2018-05-296-37/+50
| | |\ \ \ | | | |/ / | | |/| |
| | | * | tools: Move to Soong.Tao Bao2018-05-176-37/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: `mmma -j bootable/recovery/` Test: Build and run RecoveryLocalizer on device. Change-Id: I3359223c82bd670c94ad51296cb8b357b04f5349
* | | | | Merge "updater_sample: Add OWNERS." am: 44e857390aTao Bao2018-05-251-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 101af85e34 Change-Id: I39b232ba0b3c1bf0cad47a48f48b0f4e498fb4e7
| * | | | Merge "updater_sample: Add OWNERS."Tao Bao2018-05-251-0/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 44e857390a Change-Id: Ie7934d1a0b87741d21ad83ed2822af0602b507b6
| | * | | Merge "updater_sample: Add OWNERS."Treehugger Robot2018-05-251-0/+2
| | |\ \ \
| | | * | | updater_sample: Add OWNERS.Tao Bao2018-05-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: N/A Change-Id: I519a0fa38b87c7d826ed07414d14a4f7a858aeb4
* | | | | | Merge "updater_sample: add updater state" am: c290e088edZhomart Mukhamejanov2018-05-255-43/+186
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4e17087235 Change-Id: I698a9821d0e452e47a379051d68142f633ddb20a
| * | | | | Merge "updater_sample: add updater state"Zhomart Mukhamejanov2018-05-255-43/+186
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c290e088ed Change-Id: I714b69a34be85fa46df2f533328a20efe45c5f83
| | * | | | Merge "updater_sample: add updater state"Zhomart Mukhamejanov2018-05-255-43/+186
| | |\ \ \ \ | | | |/ / / | | |/| | |
| | | * | | updater_sample: add updater stateZhomart Mukhamejanov2018-05-255-43/+186
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add util.UpdaterStates - the state of SystemUpdaterSample. It's different from status of UpdateEngine; when UpdateEngine#cancel is used to suspend the update, UpdateEngine sets status to IDLE, which cannot be used to track the suspended state. - UI: Change 'Update status' to 'Engine status'. - UI: Change 'Update completion' to 'Engine error code'. - UI: Add 'Updater state'. Test: manually on the device Test: using JUnit4 Change-Id: I9c58b5ed0eae3be7ab8b217fc01a621e8fb2f4bf Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | | Merge "tests: Setup last_command_file for UpdaterTest." am: d1e0cda4d6Tao Bao2018-05-251-13/+15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 17d46f2551 Change-Id: Id67f00ecda761245c7a4ea7862542a2fd3f306d1
| * | | | Merge "tests: Setup last_command_file for UpdaterTest."Tao Bao2018-05-251-13/+15
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d1e0cda4d6 Change-Id: I8c1ea753886f284d1e8462e16b06968ebdffc874
| | * | | Merge "tests: Setup last_command_file for UpdaterTest."Tao Bao2018-05-251-13/+15
| | |\ \ \
| | | * | | tests: Setup last_command_file for UpdaterTest.Tao Bao2018-05-251-13/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise tests may interfere with each other by using the same / default location. Test: Run recovery_component_test on marlin. Change-Id: I6b0455489f2fdce819009964dd92bfd9bfeb06ef
* | | | | | Merge "Mark as recovery_available:true" am: ddf2947359Jiyong Park2018-05-251-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6d81f8732c Change-Id: I9b646784d89ccaf09074ae921d8bc0741479b3aa
| * | | | | Merge "Mark as recovery_available:true"Jiyong Park2018-05-251-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ddf2947359 Change-Id: I1fbe5d274f1f1b5a00675a80fa9ad76cd603b042
| | * | | | Merge "Mark as recovery_available:true"Treehugger Robot2018-05-251-0/+1
| | |\ \ \ \ | | | |/ / / | | |/| | |
| | | * | | Mark as recovery_available:trueJiyong Park2018-05-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Libraries that are direct or indirect dependencies of modules installed to recovery partition (e.g. adbd) are marked as recovery_available: true. This allows a recovery variant of the lib is created when it is depended by other recovery or recovery_available modules. Bug: 79146551 Test: m -j Change-Id: I9ca07ef53fbd89e7c86c0ba269fa52bb48d6deb4
* | | | | | Merge "tests: Refactor the common lines in UpdaterTest." am: faa47854f4Tao Bao2018-05-251-286/+182
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 83e341e754 Change-Id: I14a0f04552fdbe0f61e374438107ed845331f5a1
| * | | | | Merge "tests: Refactor the common lines in UpdaterTest."Tao Bao2018-05-251-286/+182
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: faa47854f4 Change-Id: Ib674f713c68985ddc826fba83c6bdaaa3c06d623
| | * | | | Merge "tests: Refactor the common lines in UpdaterTest."Tao Bao2018-05-251-286/+182
| | |\ \ \ \
| | | * | | | tests: Refactor the common lines in UpdaterTest.Tao Bao2018-05-241-286/+182
| | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the common codes into RunBlockImageUpdate(). Also clean up the partition updated marker after running each test. Test: Run recovery_component_test on marlin. Change-Id: Id4302e4da4c664231b737a1e83d2e164ef58ed97
* | | | | | Merge "Convert deflate image chunks to raw if the raw data is smaller" am: fc0f04cba7Tianjie Xu2018-05-256-35/+80
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8e72eb7077 Change-Id: Ie2b2b87adcb4f80d2e895e7de4f1b200f721394c
| * | | | | Merge "Convert deflate image chunks to raw if the raw data is smaller"Tianjie Xu2018-05-256-35/+80
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fc0f04cba7 Change-Id: I9873d3ef545bb3880a863e76a3782ff119f6c29c
| | * | | | Merge "Convert deflate image chunks to raw if the raw data is smaller"Tianjie Xu2018-05-256-35/+80
| | |\ \ \ \
| | | * | | | Convert deflate image chunks to raw if the raw data is smallerTianjie Xu2018-05-246-35/+80
| | | | |/ / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The imgpatch will fail on empty deflates because the bspatch won't call the sink function if the target length is zero. Instead of compressing an empty string, it's cleaner to not generate such empty deflate chunks in the patch. Therefore, we can just convert the chunk type to raw if the target length is smaller than the patch data. Also adjust some unit tests and add the testdata gzipped_source & gzipped_target. These two files are ~1K each and are generated by gzipping two slightly different regular files. Bug: 79265132 Test: unit tests pass, imgpatch applys successfully on the given src/tgt Change-Id: I6bfff3251918137f6762a6f9e9551642371a1124
* | | | | | Merge "updater_sample: create UpdateManager" am: 2a0b23bdf6Zhomart Mukhamejanov2018-05-249-243/+492
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dd885ab568 Change-Id: I7a93e763640a3e318348e388cc9adb0dcaf1513e
| * | | | | Merge "updater_sample: create UpdateManager"Zhomart Mukhamejanov2018-05-249-243/+492
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2a0b23bdf6 Change-Id: I2d01925d91b028ff9a86aadf2cc8a478c3e42c78
| | * | | | Merge "updater_sample: create UpdateManager"Zhomart Mukhamejanov2018-05-249-243/+492
| | |\ \ \ \ | | | |_|/ / | | |/| | |
| | | * | | updater_sample: create UpdateManagerZhomart Mukhamejanov2018-05-249-243/+492
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add UpdateManager - responsible for the update logic. Now ui.MainActivity is responsible for only UI. - Create sample test for UpdateManager - Remove MainActivityTest - now MainActivity is really simple. - Add separate callback for progress update. - MainActivity: UpdateEngine#bind/unbind on pause/resume. Test: manually on the device Test: using JUnit4 Change-Id: I1dba7c4ec74b1afb520be762413cfc261ccfbc08 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | | Merge "updater: Use a bool to indicate if allowed to skip a command." am: 3a8b348936Tao Bao2018-05-221-22/+17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 082733b555 Change-Id: Ia8bd235b2cc4a2a53339e848c34cb89c4af0621f
| * | | | Merge "updater: Use a bool to indicate if allowed to skip a command."Tao Bao2018-05-221-22/+17
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3a8b348936 Change-Id: I3b7fe231de183723be3f5dd158e3d130e3e797f2
| | * | | Merge "updater: Use a bool to indicate if allowed to skip a command."Tao Bao2018-05-221-22/+17
| | |\ \ \
| | | * | | updater: Use a bool to indicate if allowed to skip a command.Tao Bao2018-05-221-22/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids the signedness issue, and makes the code more readable. Test: mmma bootable/recovery Test: Run recovery_component_test. Change-Id: I01c3a0357887cfd7c9d4aba4239ef650cfa18388
* | | | | | Merge "recovery: Add ability to set title lines" am: cba047f944Jerry Zhang2018-05-225-5/+19
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6283f64568 Change-Id: I9c40c26a28de5d45b4651bd5cd5d36d57ff9d9fb
| * | | | | Merge "recovery: Add ability to set title lines"Jerry Zhang2018-05-225-5/+19
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cba047f944 Change-Id: I6795eba1ab0cbc56e04fbed4d0ae3b8fe4925920
| | * | | | Merge "recovery: Add ability to set title lines"Jerry Zhang2018-05-225-5/+19
| | |\ \ \ \ | | | | |_|/ | | | |/| |
| | | * | | recovery: Add ability to set title linesJerry Zhang2018-05-225-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the ability to change the contents of the title lines, displayed at the top of the screen. Once set, the same lines are displayed for all menus until changed again. Test: Recovery works Bug: 78793464 Change-Id: I7ef5594b0d76dbbd2e01ad7508863af1270b2a2a
* | | | | | Merge "updater: Clean up the header lines computation." am: a5735e9b5fTao Bao2018-05-221-6/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1e29bb6717 Change-Id: I48a43bb615d9850375774b6827bc34352b0b7c76
| * | | | | Merge "updater: Clean up the header lines computation."Tao Bao2018-05-221-6/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a5735e9b5f Change-Id: Id8270c2dce8ac907ea443f667ede40f3eba8fa2d
| | * | | | Merge "updater: Clean up the header lines computation."Tao Bao2018-05-221-6/+4
| | |\ \ \ \ | | | |/ / / | | |/| / / | | | |/ /
| | | * | updater: Clean up the header lines computation.Tao Bao2018-05-211-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It no longer needs to be conditional, as we've removed the support for BBOTA v1/v2. Test: mmma bootable/recovery Change-Id: I881de8afa38cc5b41b48e6d48d85170699ea5eb4
* | | | | [automerger skipped] Merge "Move stuff from recovery into librecovery." am: 901f0c3516Tao Bao2018-05-220-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dd88112054 -s ours Change-Id: I59e680bbc6dd9a0895b594cd5a4a5f32719ec4b3
| * | | | Merge "Move stuff from recovery into librecovery."Tao Bao2018-05-222-43/+40
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 901f0c3516 Change-Id: Ief503e9d2be627474df385790e5ac55399f08744
| | * | | Merge "Move stuff from recovery into librecovery."Tao Bao2018-05-222-43/+40
| | |\ \ \
| | | * | | Move stuff from recovery into librecovery.Tao Bao2018-05-172-43/+40
| | | | |/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move most source files into librecovery so they become testable. Only recovery_main.cpp and logging.cpp are built into recovery module, as they perform one-time setup (e.g. setting up logger). Test: `mmma -j bootable/recovery` with aosp_{angler,bullhead,fugu,dragon,marlin}-userdebug Test: recovery_host_test; recovery_unit_test; recovery_component_test; recovery_manual_test Test: Build and boot into recovery image on angler. Change-Id: Ic4444f87a2f123557c71085f81dc2b2764c05ed8 Merged-In: Ic4444f87a2f123557c71085f81dc2b2764c05ed8
* | | | | Merge "Move stuff from recovery into librecovery." into pi-dev-plus-aospTao Bao2018-05-222-57/+66
|\ \ \ \ \
| * | | | | Move stuff from recovery into librecovery.Tao Bao2018-05-172-57/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move most source files into librecovery so they become testable. Only recovery_main.cpp and logging.cpp are built into recovery module, as they perform one-time setup (e.g. setting up logger). Test: `mmma -j bootable/recovery` with aosp_{angler,bullhead,fugu,dragon,marlin}-userdebug Test: recovery_host_test; recovery_unit_test; recovery_component_test; recovery_manual_test Test: Build and boot into recovery image on angler. Change-Id: Ic4444f87a2f123557c71085f81dc2b2764c05ed8 (cherry picked from commit bf4c006d7bc8a4517c82399bbffd9cb09971c0b4)
* | | | | | Merge "updater_config: make utils/PayloadSpecs non-static" am: 928f2cbf9bZhomart Mukhamejanov2018-05-214-13/+17
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | am: 3714929c32 Change-Id: I970eb576513cbc8f088e9edbdb4a229820b58cbf
| * | | | | Merge "updater_config: make utils/PayloadSpecs non-static"Zhomart Mukhamejanov2018-05-214-13/+17
| |\ \ \ \ \ | | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | am: 928f2cbf9b Change-Id: Iec6299559d502989fadd08f6622aef9c320af478
| | * | | | Merge "updater_config: make utils/PayloadSpecs non-static"Zhomart Mukhamejanov2018-05-214-13/+17
| | |\ \ \ \ | | | |_|_|/ | | |/| | |
| | | * | | updater_config: make utils/PayloadSpecs non-staticZhomart Mukhamejanov2018-05-184-13/+17
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PayloadSpecs has complicated methods, which makes hard to test other dependent classes. Making it non-static allows mocking it, which makes testing other classes easier. Test: manually Test: using JUnit4 Change-Id: I818dc59c6bb0e7d131439d0d41f88d5cd9a451b4 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | | Merge "recovery: Reset optind to 1 after getopt" am: 38d90316b2Jerry Zhang2018-05-172-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 25d31c9f9c Change-Id: Id2d80584075c3482748e5946d39fe8ef572aea45
| * | | | Merge "recovery: Reset optind to 1 after getopt"Jerry Zhang2018-05-172-0/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 38d90316b2 Change-Id: I06fecd4bc886741901715201b14ff31b6932d05d
| | * | | Merge "recovery: Reset optind to 1 after getopt"Treehugger Robot2018-05-172-0/+2
| | |\ \ \
| | | * | | recovery: Reset optind to 1 after getoptJerry Zhang2018-05-172-0/+2
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The getopt library exposes optind which is the next index to be processed. When scanning is restarted, optind has to be reset to 1. Test: Recovery works Bug: 78793464 Change-Id: I1efca3fb985ffbdfe91e43767469733cda6e7d5b
* | | / / Merge "updater_sample: add switch slot demo" am: 2ddc54f5fdTao Bao2018-05-1711-16/+210
|\| | | | | |_|/ / |/| | | | | | | | | | | | | | | am: 4f26e44969 Change-Id: If5faa3401c43c321c5566ee049113d8dd152ed74
| * | | Merge "updater_sample: add switch slot demo"Tao Bao2018-05-1711-16/+210
| |\| | | | | | | | | | | | | | | | | | | | | | am: 2ddc54f5fd Change-Id: Ie29bdc24f011744e8d13ea0b5c5608d4d3851792
| | * | Merge "updater_sample: add switch slot demo"Tao Bao2018-05-1711-16/+210
| | |\ \ | | | |/ | | |/|
| | | * updater_sample: add switch slot demoZhomart Mukhamejanov2018-05-1711-16/+210
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add util/UpdateEngineProperties.java - Set SWITCH_SLOT_ON_REBOOT=0 when update is applied - Allow user to switch slot to the updated partition manually - Add config "ab_config.force_switch_slot" - Add ab_force_switch_slot to tools/gen_update_config.py Test: manually on the marlin device Bug: 79492522 Change-Id: I52f818b576d52a052b5427ba3f732cb2371ddb06 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | [automerger skipped] Merge "recovery: Refactor common setup into main()" am: 5b3d6cf58bTao Bao2018-05-170-0/+0
|\| | | | | | | | | | | | | | | | | am: 0abc18d520 -s ours Change-Id: I6e90e6810feefaa7b6b028259591e5cced2b5c3f
| * | Merge "recovery: Refactor common setup into main()"Tao Bao2018-05-174-171/+235
| |\| | | | | | | | | | | | | | | | am: 5b3d6cf58b Change-Id: I33558285e87b03af06d02f735e7e06e89404f9ad
| | * Merge "recovery: Refactor common setup into main()"Tao Bao2018-05-174-171/+235
| | |\
| | | * recovery: Refactor common setup into main()Jerry Zhang2018-05-164-171/+235
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move more common setup into the main function. Main() handles all 1 time setup, such as ui, logging, and secontext. Recovery_main() takes in command line arguments, does any necessary recovery work, and can be called multiple times from main(). Test: Recovery works Bug: 78793464 Change-Id: I2d2595fc342b4ddfa80f4e06b30e44263132acd9 Merged-In: I2d2595fc342b4ddfa80f4e06b30e44263132acd9
* | | | Merge "Last command file should be updated after a command finishes" am: 6dfc54cae1Tianjie Xu2018-05-171-11/+7
|\| | | | | | | | | | | | | | | | | | | | | | | am: 45b7dbea74 Change-Id: Ic9da282f5b09e36b0b64c56f595b25ebc6cf60c6
| * | | Merge "Last command file should be updated after a command finishes"Tianjie Xu2018-05-171-11/+7
| |\| | | | | | | | | | | | | | | | | | | | | | am: 6dfc54cae1 Change-Id: I0a99acaf18a1b3f386aa79bea210eb3a04929e54
| | * | Merge "Last command file should be updated after a command finishes"Tianjie Xu2018-05-171-11/+7
| | |\ \
| | | * | Last command file should be updated after a command finishesTianjie Xu2018-05-161-11/+7
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The last command file has the last executed stash command by convention. So we should update the file after we actually finishes executing the command; instead of after loading src/tgt. Bug: 79756267 Test: unit tests pass Change-Id: I4535b5836e7eb13b3abe3d02f9f362ec5e9ec969
* | | | Merge "recovery: Refactor common setup into main()" into pi-dev-plus-aospJerry Zhang2018-05-164-171/+235
|\ \ \ \
| * | | | recovery: Refactor common setup into main()Jerry Zhang2018-05-164-171/+235
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move more common setup into the main function. Main() handles all 1 time setup, such as ui, logging, and secontext. Recovery_main() takes in command line arguments, does any necessary recovery work, and can be called multiple times from main(). Test: Recovery works Bug: 78793464 Change-Id: I2d2595fc342b4ddfa80f4e06b30e44263132acd9
* | | | | Merge "wear_ui: Address a TODO regarding {intro,loop}_frames." am: 0f3aa6ec38Tao Bao2018-05-162-8/+53
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / | | | | | | | | am: b730743b40 Change-Id: I0a8ba6bf7836bde00e93f2ce9a011ace9acbac5d
| * | | Merge "wear_ui: Address a TODO regarding {intro,loop}_frames."Tao Bao2018-05-162-8/+53
| |\| | | | | | | | | | | | | | | | | | | | | | am: 0f3aa6ec38 Change-Id: Ia9bc12ff45cf42124601cffb33da960bd9e377c1
| | * | Merge "wear_ui: Address a TODO regarding {intro,loop}_frames."Tao Bao2018-05-162-8/+53
| | |\ \ | | | |/ | | |/|
| | | * wear_ui: Address a TODO regarding {intro,loop}_frames.Tao Bao2018-05-142-8/+53
| | |/ | | | | | | | | | | | | | | | | | | Also add tests for LoadAnimation that cover the change. Test: Run `recovery_unit_test` on marlin. Change-Id: I0380a5cdd0d85d55baecf7759eb647b6a9f3a085
* | | Merge "Clean up the Makefile for recovery and tests." am: 1f0b9962b0Tao Bao2018-05-122-72/+122
|\| | | | | | | | | | | | | | | | | am: 0c2998ffe3 Change-Id: I5d4765279fa10317e7f8d61cc4f0972baf10040e
| * | Merge "Clean up the Makefile for recovery and tests."Tao Bao2018-05-122-72/+122
| |\| | | | | | | | | | | | | | | | am: 1f0b9962b0 Change-Id: I79b21e9b93f8876a00176751a4664f6175a384be
| | * Merge "Clean up the Makefile for recovery and tests."Tao Bao2018-05-122-72/+122
| | |\
| | | * Clean up the Makefile for recovery and tests.Tao Bao2018-05-122-72/+122
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reorder librecovery and librecovery_ui, so that librecovery stays closer to recovery (in preparation for later changes that move more files between the two). For the libraries in LOCAL_STATIC_LIBRARIES, reorder them based on the dependency - local modules coming first, with external libraries near the end. Sort the local / external modules, unless a specific order is needed. In tests/Android.mk, split the monolithic list of LOCAL_STATIC_LIBRARIES based on modules. This makes adding / finding libraries easier. There's no functionality in this CL. Test: mmma -j bootable/recovery Change-Id: I6836be574df565001ae9cd3d466a2b6460d90d08
* | | Merge "screen_ui: Fix an issue in RTL locale detection." am: 13d56e9bedTao Bao2018-05-112-4/+4
|\| | | | | | | | | | | | | | | | | am: 0e42c5680c Change-Id: Id4819920e9fca4223cd7e3b80a7b909f392ab008
| * | Merge "screen_ui: Fix an issue in RTL locale detection."Tao Bao2018-05-112-4/+4
| |\| | | | | | | | | | | | | | | | am: 13d56e9bed Change-Id: Icd9b2db1895f3329f34ca959d072abc5226d7cdd
| | * Merge "screen_ui: Fix an issue in RTL locale detection."Treehugger Robot2018-05-112-4/+4
| | |\
| | | * screen_ui: Fix an issue in RTL locale detection.Tao Bao2018-05-092-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CL in [1] moved android.os.RecoverySystem to send the locale argument in well-formed BCP 47 language tags (e.g. "en-US" instead of "en_US"), with the matching changes to recovery code in [2]. However, the one in ScreenRecoveryUI::SetLocale() was missed, which broke RTL locale detection when using new format. [1] commit 38715228 in platform/frameworks/base [2] commit 2078b22e in platform/bootable/recovery Test: Set the locale to "ar-EG". `Run graphics test` under recovery. Check the progress bar. Test: Run recovery_unit_test on marlin. Change-Id: I7c7f5e0725bfb096109c7192c19f3f008e8e47e3
* | | | Merge "Move device.cpp into librecovery_ui." am: db6dc14bffTao Bao2018-05-111-7/+10
|\| | | | | | | | | | | | | | | | | | | | | | | am: fb8636f48f Change-Id: I18cad42da6f9f560c3ed1568a20889419520cd21
| * | | Merge "Move device.cpp into librecovery_ui."Tao Bao2018-05-111-7/+10
| |\| | | | | | | | | | | | | | | | | | | | | | am: db6dc14bff Change-Id: I2ebd04cded12b61173d9334ddd241511efc6e406
| | * | Merge "Move device.cpp into librecovery_ui."Tao Bao2018-05-111-7/+10
| | |\ \
| | | * | Move device.cpp into librecovery_ui.Tao Bao2018-05-111-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | librecovery_ui will be exposed for device-specific RecoveryUI. With the current code structure, 'device.h' and 'ui.h' will always be needed in order to implement device-specific RecoveryUI. Bug: 76436783 Test: lunch aosp_{angler,marlin,dragon,walleye}-userdebug; `mmma -j bootable/recovery` respectively. Change-Id: I15e8851b230a65526ac9310e0ee6621b7daea589
* | | | | Merge "tests: Add tests for ScreenRecoveryUI." am: 8c6f699b36Tao Bao2018-05-1110-11/+202
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ca88c67135 Change-Id: I238b8b412046c883863828d2b7578d51dadef9e0
| * | | | Merge "tests: Add tests for ScreenRecoveryUI."Tao Bao2018-05-1110-12/+202
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8c6f699b36 Change-Id: I1fc42208d91ed211ac4b45c2d392a251c3d5ae53
| | * | | Merge "tests: Add tests for ScreenRecoveryUI."Tao Bao2018-05-1110-12/+202
| | |\ \ \ | | | |/ / | | |/| / | | | |/
| | | * tests: Add tests for ScreenRecoveryUI.Tao Bao2018-05-0910-12/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to support that, this CL adds Paths::set_resource_dir() to override the default resource dir ("/res/images/") that's only available under recovery. Note that since there're external modules depending on libminui, it adds a separate function of res_set_resource_dir(), instead of requiring the dependency on libotautil for everyone. Test: mmma -j bootable/recovery Test: Run recovery_unit_test on marlin. Change-Id: I0a7dcf4476808bea9e634eaffc9676f6cbaf92b7
* | | | Merge "recovery: Configure device menu based on runtime info." am: e498ef2f03Tao Bao2018-05-114-46/+48
|\| | | | | | | | | | | | | | | | | | | | | | | am: bd32e1b50b Change-Id: Id611c10a6f84afdec38ca01d6932f4c964f9c2ac
| * | | Merge "recovery: Configure device menu based on runtime info."Tao Bao2018-05-114-46/+48
| |\| | | | | | | | | | | | | | | | | | | | | | am: e498ef2f03 Change-Id: Ib513582394b796ca64c5e3ce46fc2bd535c621de
| | * | Merge "recovery: Configure device menu based on runtime info."Tao Bao2018-05-114-46/+48
| | |\ \
| | | * | recovery: Configure device menu based on runtime info.Tao Bao2018-05-114-46/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop the dependency on build time flag of AB_OTA_UPDATER when compiling device.cpp. Note that AB_OTA_UPDATER still guards the package install behavior (install.cpp). This can be extended to cover the entry of "Apply update from SD card". Test: Build and boot into recovery on angler and walleye respectively. Check the recovery menu. Change-Id: I36a6a6b4101ba61d4d374e32353c36cc5716f9ce
* | | | | Merge "updater_sample: add HAL compatibility check" am: 563d34f712Zhomart Mukhamejanov2018-05-112-27/+60
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0045e76c7c Change-Id: I433e03d9f9fad55b2b8b0b5a4b3eb492af34e8a5
| * | | | Merge "updater_sample: add HAL compatibility check"Zhomart Mukhamejanov2018-05-112-27/+60
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 563d34f712 Change-Id: If8e53285455f6b140ea2f0ebda06c35d6a94462f
| | * | | Merge "updater_sample: add HAL compatibility check"Zhomart Mukhamejanov2018-05-112-27/+60
| | |\ \ \ | | | |/ / | | |/| |
| | | * | updater_sample: add HAL compatibility checkZhomart Mukhamejanov2018-05-102-27/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Refactor PrepareStreamingService#onHandleIntent - Add PrepareStreamingService#verifyPackageCompatibility Test: on the device Bug: 79471299 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com> Change-Id: I1b18502f0638d66810a3f7ada582e4c7cea20cdb
* | | | | Merge "Document the clang-format usage." am: 797550fb8bTao Bao2018-05-111-0/+30
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cc71d271c1 Change-Id: Ib48d6d84bb691a9fb5ef38233f44abe0d289a46b
| * | | | Merge "Document the clang-format usage."Tao Bao2018-05-111-0/+30
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 797550fb8b Change-Id: I810e2e89e3437c98a519c60c3582c4dcb1678d36
| | * | | Merge "Document the clang-format usage."Tao Bao2018-05-111-0/+30
| | |\ \ \
| | | * | | Document the clang-format usage.Tao Bao2018-05-101-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `repo upload` and `git clang-format` may give slightly different results, because they may trigger different `clang-format` binaries. Document the setup to get consistent formatting results. Test: N/A Change-Id: I927dd25c7a6dd51be4812d5b3857a4b08c5a3f81
* | | | | | Merge "Device owns the RecoveryUI instance." am: 6df846e337Tao Bao2018-05-116-29/+26
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8d593973d6 Change-Id: I006ae17453913b7e9cd23bafc30862f1532e1f60
| * | | | | Merge "Device owns the RecoveryUI instance."Tao Bao2018-05-116-29/+26
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6df846e337 Change-Id: I39b0576e0ff11f3c5d62b1611f47f44b8f18c382
| | * | | | Merge "Device owns the RecoveryUI instance."Tao Bao2018-05-116-29/+26
| | |\ \ \ \ | | | |_|/ / | | |/| | |
| | | * | | Device owns the RecoveryUI instance.Tao Bao2018-05-106-29/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma -j bootable/recovery Test: Build and boot into recovery, w/ and w/o enabling quiescent mode respectively. Change-Id: I5d9bb945a6c3c9a3b96199fa0c8071a2f91339a0
* | | | | | Merge "updater_sample: fix UpdateConfig" am: 7217e7045dZhomart Mukhamejanov2018-05-113-4/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 48294e3d86 Change-Id: I62b089575d1cf2e576404f4df2fe9cb25ba685cb
| * | | | | Merge "updater_sample: fix UpdateConfig"Zhomart Mukhamejanov2018-05-103-4/+8
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7217e7045d Change-Id: I63af09b000961e79613798c818eeea626eb221b6
| | * | | | Merge "updater_sample: fix UpdateConfig"Zhomart Mukhamejanov2018-05-103-4/+8
| | |\ \ \ \ | | | |_|/ / | | |/| | |
| | | * | | updater_sample: fix UpdateConfigZhomart Mukhamejanov2018-05-103-4/+8
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fix UpdateConfig - fix smaple.json - fix FileDownloaderTest Test: manually Change-Id: I09d272f77c89a02f54a24cf753fdfda4ce243927 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | | Merge "updater_sample: add http header demo" am: fe5b3e2b2dZhomart Mukhamejanov2018-05-104-13/+51
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 319e191238 Change-Id: Icc1d5a3f2b627e4d63c98688dd6eb42200ad7c09
| * | | | Merge "updater_sample: add http header demo"Zhomart Mukhamejanov2018-05-104-13/+51
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fe5b3e2b2d Change-Id: I5f76d9f27d69fcdbe4f95194b34bad548f7e28e2
| | * | | Merge "updater_sample: add http header demo"Zhomart Mukhamejanov2018-05-104-13/+51
| | |\ \ \ | | | |/ / | | |/| |
| | | * | updater_sample: add http header demoZhomart Mukhamejanov2018-05-104-13/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added demo passing http headers to UpdateEngine#applyPayload. Bug: 79483768 Test: manually Change-Id: I3e9c812dba2066acadbcea8d07c933368806e20c Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | | Merge "screen_ui: Fix an issue when displaying wrapped text." am: 1d4ef4ba4bTao Bao2018-05-092-7/+10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ae4b00c427 Change-Id: I86f3679c38b45c198daf57793a13f800574e1740
| * | | | Merge "screen_ui: Fix an issue when displaying wrapped text."Tao Bao2018-05-092-7/+10
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1d4ef4ba4b Change-Id: I747fa14c2efaf81dd94cd81171424bff845a43b0
| | * | | Merge "screen_ui: Fix an issue when displaying wrapped text."Tao Bao2018-05-092-7/+10
| | |\ \ \ | | | |/ / | | |/| |
| | | * | screen_ui: Fix an issue when displaying wrapped text.Tao Bao2018-05-092-7/+10
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The last character at EOL is cut when showing the prompt-for-data-wipe message on angler. Address the issue by keeping symmetrical margins based on the given offset. Test: Trigger prompt-and-wipe-data menu. No cutout character at EOL. Change-Id: Id6e8dc7815bf681435bcaf13e7bdd09cf870d95f
* | | | Merge "updater_sample: update tools" am: daa86e9024Zhomart Mukhamejanov2018-05-097-93/+74
|\| | | | | | | | | | | | | | | | | | | | | | | am: 9fdeb57ab0 Change-Id: I1e517b533628e4ae8d27b00cc9a3852fa961f267
| * | | Merge "updater_sample: update tools"Zhomart Mukhamejanov2018-05-097-93/+74
| |\| | | | | | | | | | | | | | | | | | | | | | am: daa86e9024 Change-Id: I8d2d6173e307a6c409742439c4707d522bcd7be1
| | * | Merge "updater_sample: update tools"Zhomart Mukhamejanov2018-05-097-93/+74
| | |\ \
| | | * | updater_sample: update toolsZhomart Mukhamejanov2018-05-087-93/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Allow gen_update_config.py to use ota_from_target_files from $ANDROID_BUILD_TOP/build/make/tools/releasetools/ - tests/res/raw/ota_002_package.zip re-generated using functions from $ANDROID_BUILD_TOP/build/make/tools/releasetools/test_ota_from_target_files.py - sample app tests updated Test: ./tools/gen_update_config_test.py Change-Id: I5c492ec22782ba54fe481f592a44e797c695684e Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | | Merge "updater_sample: add streaming support" am: c23a53c272Zhomart Mukhamejanov2018-05-096-20/+266
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e88d4682ea Change-Id: Iba9d5541b0a853e1eb91794dc01994c4454486a7
| * | | | Merge "updater_sample: add streaming support"Zhomart Mukhamejanov2018-05-096-20/+266
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c23a53c272 Change-Id: I4aa8a41a4dd3afd4b1c5fb3d6955abea45c16fc4
| | * | | Merge "updater_sample: add streaming support"Zhomart Mukhamejanov2018-05-096-20/+266
| | |\ \ \ | | | |/ / | | |/| |
| | | * | updater_sample: add streaming supportZhomart Mukhamejanov2018-05-086-20/+266
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - UpdateConfigs: add helper methods for streaming - add PrepareStreamingService intent service Test: manually and junit4 Bug: 77148143 Change-Id: I61711eb9abe051987e725fbd94f8cd029ff21dd3
* | | | Merge "recovery: Remove unneeded include of minui.h." am: 0a2c4e260fTao Bao2018-05-081-1/+0
|\| | | | | | | | | | | | | | | | | | | | | | | am: 5004300d6f Change-Id: I46cabe2bf6289a222b8a554f74cee565b7e7e03b
| * | | Merge "recovery: Remove unneeded include of minui.h."Tao Bao2018-05-081-1/+0
| |\| | | | | | | | | | | | | | | | | | | | | | am: 0a2c4e260f Change-Id: I6b072fba4b509ce801663e28e4fc53f180a776f2
| | * | Merge "recovery: Remove unneeded include of minui.h."Tao Bao2018-05-081-1/+0
| | |\ \ | | | |/ | | |/|
| | | * recovery: Remove unneeded include of minui.h.Tao Bao2018-05-081-1/+0
| | | | | | | | | | | | | | | | | | | | Test: mmma -j bootable/recovery Change-Id: I1a79fa6386d56bf5e20ee074352d287403d2d745
* | | | Merge "screen_ui: Drop the parameter in CheckBackgroundTextImages." am: 1f3a9c0a43android-build-prod (mdb)2018-05-083-6/+7
|\| | | | | | | | | | | | | | | | | | | | | | | am: 730d541588 Change-Id: I6b5f29414be17ec8814c8729add689f0672270f0
| * | | Merge "screen_ui: Drop the parameter in CheckBackgroundTextImages."android-build-prod (mdb)2018-05-083-6/+7
| |\| | | | | | | | | | | | | | | | | | | | | | am: 1f3a9c0a43 Change-Id: Ibbb3e5673670ce112e1d15f961ad7ce5ea2d5c60
| | * | Merge "screen_ui: Drop the parameter in CheckBackgroundTextImages."android-build-prod (mdb)2018-05-083-6/+7
| | |\ \
| | | * | screen_ui: Drop the parameter in CheckBackgroundTextImages.Tao Bao2018-05-083-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ScreenRecoveryUI already has the info in locale_. Also when showing "Current locale: X/Y" on screen, use 1-based index for X, so that we have 1 <= X <= Y. Test: Build anf flash recovery image on aosp_bullhead-userdebug. Choose `Run locale test` from UI. Change-Id: I5dd4de82e63890ddf755f4e23cd2290ad5d50ece
* | | | | Merge "recovery: Get UI and locale from device." am: d8abd2bd70Tao Bao2018-05-086-5/+23
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 07bf50a51d Change-Id: Ia362ec6f81d04502be6cb0212b655577bbd33bb8
| * | | | Merge "recovery: Get UI and locale from device."Tao Bao2018-05-086-5/+23
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d8abd2bd70 Change-Id: I15d5c733081a453224868a6dea9274456e7f7b89
| | * | | Merge "recovery: Get UI and locale from device."Tao Bao2018-05-086-5/+23
| | |\| | | | | |/ | | |/|
| | | * recovery: Get UI and locale from device.Jerry Zhang2018-05-086-5/+23
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | This removes some reliance on the global locale and ui variables. Test: Recovery works Bug: 78793464 Change-Id: I78f1a2b321f5d50aa58b10735a73ae137283353a
* | | [automerger skipped] Merge "recovery: Refactor logging code into logging.cpp" am: 5285c27bf4Tao Bao2018-05-080-0/+0
|\| | | | | | | | | | | | | | | | | am: 260d4ba55f -s ours Change-Id: I5cb92b10097463148a9b2cfe694de470d3dbec90
| * | Merge "recovery: Refactor logging code into logging.cpp"Tao Bao2018-05-0810-251/+280
| |\| | | | | | | | | | | | | | | | am: 5285c27bf4 Change-Id: I661d2250aeefb56a77ad686b726fc825f1d5a56f
| | * Merge "recovery: Refactor logging code into logging.cpp"Tao Bao2018-05-0810-251/+280
| | |\
| | | * recovery: Refactor logging code into logging.cppJerry Zhang2018-05-0710-251/+280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move common logging related functions to rotate_logs.cpp, and rename that to logging.cpp. Test: Recovery works Bug: 78793464 Merged-In: I00f20a79a296680122b8437d54a87897c5cb2fc7 Change-Id: I00f20a79a296680122b8437d54a87897c5cb2fc7
* | | | Merge "updater: Skip an updated partition on retry." am: 0ffe13b56fTao Bao2018-05-081-39/+77
|\| | | | | | | | | | | | | | | | | | | | | | | am: 83906f75bb Change-Id: I7b7b4d974bb639be0bc97ef03a63f81ceaaae76d
| * | | Merge "updater: Skip an updated partition on retry."Tao Bao2018-05-081-39/+77
| |\| | | | | | | | | | | | | | | | | | | | | | am: 0ffe13b56f Change-Id: I50582c6c397194713bb52cf1d04e541236e9d5c0
| | * | Merge "updater: Skip an updated partition on retry."Tao Bao2018-05-081-39/+77
| | |\ \
| | | * | updater: Skip an updated partition on retry.Tao Bao2018-05-081-39/+77
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to the change, the BBOTA updater would try to re-run all the commands for a given partition on retry, including creating stashes according to the list of commands. This could fail a retry when the previous update had moved on to next stage, with leftovers in /cache. This CL creates a marker on /cache upon successfully updating a partition. The update commands will be skipped when trying to apply updates on an updated partition. Note that the marker is expected to be removed while doing a normal boot (in particular, handled by RecoverySystem#handleAftermath). If that didn't happen, the updater would also remove the marker before starting next fresh update. Alternatively, we can achieve the same goal by changing the OTA script, which needs to additionally compare the checksum against the target build. For example, range_sha1("/system", "ranges") == SHA1_of_updated_system || block_image_update("/system"); The downside is that we need to pay that cost on each install, as the edify script doesn't support caching the result in a variable. Bug: 79165963 Test: Simulate the process on device (by triggering a reboot while updating /vendor). Check the update log and result. Change-Id: I731031fa336133e1221b33edfc469969706e8091
* | | | Merge "updater: Fix an issue when resuming an update." am: 1dc9e2ddefTao Bao2018-05-081-3/+6
|\| | | | | | | | | | | | | | | | | | | | | | | am: 47bf5e68e6 Change-Id: I2e555a2534bb0e14b520aa4c9036aaa7d73407c4
| * | | Merge "updater: Fix an issue when resuming an update."Tao Bao2018-05-081-3/+6
| |\| | | | | | | | | | | | | | | | | | | | | | am: 1dc9e2ddef Change-Id: Iee6d93057ee1c63a35fda2603a5fd5836db83179
| | * | Merge "updater: Fix an issue when resuming an update."Tao Bao2018-05-081-3/+6
| | |\ \ | | | |/ | | |/|
| | | * updater: Fix an issue when resuming an update.Tao Bao2018-05-081-3/+6
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | We cannot skip "new" commands while resuming an update with last_command_file, because they read in the data sequentially from the package. Bug: 69858743 Test: Interrupt an update that has new commands. Check the update log. Change-Id: I05fb67246f5ea3ba2a0f78f10255c0d9b0bc2f5a
* | | recovery: Refactor logging code into logging.cppJerry Zhang2018-05-0710-251/+280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move common logging related functions to rotate_logs.cpp, and rename that to logging.cpp. Test: Recovery works Bug: 78793464 Change-Id: I00f20a79a296680122b8437d54a87897c5cb2fc7 (cherry picked from commit 3c3f211d1e5698da6eea9e83584acb2dee4ca46e)
* | | Merge changes I1cc5d702,I32ab9854 am: 420f7f8df4android-build-prod (mdb)2018-05-0419-40/+41
|\| | | | | | | | | | | | | | | | | am: c4ba6b738f Change-Id: I7696fb68e13e214ee830b9de1bf66dc6f1cac691
| * | Merge changes I1cc5d702,I32ab9854android-build-prod (mdb)2018-05-0419-40/+41
| |\| | | | | | | | | | | | | | | | am: 420f7f8df4 Change-Id: I4efb48a107303b58c2b40a7a9d8e663c537e5a84
| | * Merge changes I1cc5d702,I32ab9854android-build-prod (mdb)2018-05-0419-40/+41
| | |\ | | | | | | | | | | | | | | | | | | | | * changes: Move reboot() from common.h into otautil/sysutil.h. otautil: Rename dir/sys/thermal utils.
| | | * Move reboot() from common.h into otautil/sysutil.h.Tao Bao2018-05-048-20/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This breaks the dependency on common.h (which belongs to recovery/librecovery) from librecovery_ui. reboot() is now owned by libotautil, which is expected to be a leaf node to be depended on. With the change, recovery and updater also share the same reboot() code now. Test: mmma -j bootable/recovery Change-Id: I1cc5d702cfe49302048db33d31c9c87ddc97ac71
| | | * otautil: Rename dir/sys/thermal utils.Tao Bao2018-05-0416-20/+20
| | | | | | | | | | | | | | | | | | | | Test: mmma -j bootable/recovery Change-Id: I32ab98549e91f993364306e4a88dc654221b3869
* | | | Merge "otautil: Only build the needed files for host build." am: 5818e894dfTao Bao2018-05-041-7/+10
|\| | | | | | | | | | | | | | | | | | | | | | | am: d7d087f31c Change-Id: I2fe3c3b0a718482114bcb744211ed6b9fa1d0904
| * | | Merge "otautil: Only build the needed files for host build."Tao Bao2018-05-041-7/+10
| |\| | | | | | | | | | | | | | | | | | | | | | am: 5818e894df Change-Id: I2c9bf65f56c0bf9fe1d912717ef7952768d9a664
| | * | Merge "otautil: Only build the needed files for host build."Tao Bao2018-05-041-7/+10
| | |\|
| | | * otautil: Only build the needed files for host build.Tao Bao2018-05-041-7/+10
| | |/ | | | | | | | | | | | | | | | | | | This avoids unnecessarily breaking mac build. Test: `mmma -j bootable/recovery` on Linux and macOS. Change-Id: I1dc00364c895866a4757c2a43beb3432ae1e4113
* | | Merge "Move menu headers/items to std::vector<std::string>." am: fb86bb2a07Tao Bao2018-05-0410-141/+147
|\| | | | | | | | | | | | | | | | | am: 0d9ed29541 Change-Id: I7428f86e9bc3e46c5bcf0afeb3cf5608be31e470
| * | Merge "Move menu headers/items to std::vector<std::string>."Tao Bao2018-05-0410-141/+147
| |\| | | | | | | | | | | | | | | | am: fb86bb2a07 Change-Id: I1bbef54e7117e8967a63290beaed70521d4de374
| | * Merge "Move menu headers/items to std::vector<std::string>."Tao Bao2018-05-0410-141/+147
| | |\
| | | * Move menu headers/items to std::vector<std::string>.Tao Bao2018-05-0310-141/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma -j bootable/recovery Test: Run recovery_unit_test on marlin. Test: Build and boot into recovery image on angler. Check the UI that shows menu ('View recovery log', 'Wipe data', 'Run locale test'). Test: Start recovery with '--prompt_and_wipe_data'. Check the UI. Change-Id: If8a4209e0bb4ca64f719f9f9465d3b3589a69cdc
* | | | Merge "updater_sample: update tests" am: 219445a320Zhomart Mukhamejanov2018-05-043-15/+29
|\| | | | | | | | | | | | | | | | | | | | | | | am: f3d1e58163 Change-Id: I8140162dd8dd4536b690e24b561a51e749bb9708
| * | | Merge "updater_sample: update tests"Zhomart Mukhamejanov2018-05-043-15/+29
| |\| | | | | | | | | | | | | | | | | | | | | | am: 219445a320 Change-Id: I0f900f7612721b550826f0daffb030377468292b
| | * | Merge "updater_sample: update tests"Zhomart Mukhamejanov2018-05-043-15/+29
| | |\ \ | | | |/ | | |/|
| | | * updater_sample: update testsZhomart Mukhamejanov2018-05-033-15/+29
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | - fix tools/gen_update_config.py - add tests for PayloadSpecs#forStreaming Test: junit4 Change-Id: Ife1980c5f72944ed35500aa820b30031fc99e820 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | Merge "updater_sample: update ui and README, clean-up" am: 9c544a2bc6Zhomart Mukhamejanov2018-05-037-98/+151
|\| | | | | | | | | | | | | | | | | am: c36f5ff1c7 Change-Id: I20dda655819ad895a9a004c012d37243d8053d5f
| * | Merge "updater_sample: update ui and README, clean-up"Zhomart Mukhamejanov2018-05-037-98/+151
| |\| | | | | | | | | | | | | | | | am: 9c544a2bc6 Change-Id: I01da369a194bdb0b4d6d698dd835ce3bf9904756
| | * Merge "updater_sample: update ui and README, clean-up"Zhomart Mukhamejanov2018-05-037-98/+151
| | |\
| | | * updater_sample: update ui and README, clean-upZhomart Mukhamejanov2018-05-037-98/+151
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - ui: add text view for latest completion (error) code - update README.md - update MainActivity.java - remove AbNonStreamingUpdate Test: mmma bootable/recovery/updater_sample Change-Id: Ie9bb64211c57d536036b04f13896e4937c392b6e Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | Merge "screen_ui: Merge Menu::Start() into its ctor." am: 0cabcd0126android-build-prod (mdb)2018-05-034-48/+29
|\| | | | | | | | | | | | | | | | | am: bcf8beaeed Change-Id: I3fdc5fb0f72c36e225cb26fc643e39b254bc492e
| * | Merge "screen_ui: Merge Menu::Start() into its ctor."android-build-prod (mdb)2018-05-034-48/+29
| |\| | | | | | | | | | | | | | | | am: 0cabcd0126 Change-Id: I739ab9b6d3aa2a52f2fd51adbf84664301f22ca6
| | * Merge "screen_ui: Merge Menu::Start() into its ctor."android-build-prod (mdb)2018-05-034-48/+29
| | |\
| | | * screen_ui: Merge Menu::Start() into its ctor.Tao Bao2018-05-034-48/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we instantiate a Menu object each time for a given set of header/items, we don't have a use case of re-populating an existing Menu with different data (which is what Menu::Start() does). Test: mmma -j bootable/recovery Test: Run recovery_unit_test on marlin. Test: Build and boot into recovery image on angler. Check the UI. Change-Id: Iaa2ba9d406ebd74c015e43198c17c5335b38df53
* | | | Merge "updater_sample: Add streaming to PayloadSpec" am: 3a79b36377Zhomart Mukhamejanov2018-05-039-26/+56
|\| | | | | | | | | | | | | | | | | | | | | | | am: 98837bdcd1 Change-Id: I46ccdf6e51ed48cf5eec21b21d8b70ed5b376df9
| * | | Merge "updater_sample: Add streaming to PayloadSpec"Zhomart Mukhamejanov2018-05-039-26/+56
| |\| | | | | | | | | | | | | | | | | | | | | | am: 3a79b36377 Change-Id: I576233f982e2dea6abeb9267ffddc2760dad4d4e
| | * | Merge "updater_sample: Add streaming to PayloadSpec"Zhomart Mukhamejanov2018-05-039-26/+56
| | |\ \ | | | |/ | | |/|
| | | * updater_sample: Add streaming to PayloadSpecZhomart Mukhamejanov2018-05-029-26/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PayloadSpec - add streaming generator and tests - fix sample.json - fix tests - rename PackagePropertyFiles to PackageFiles, it has info not only about property files, and new name is shorter Bug: 77148467 Test: `mmma -j bootable/recovery/updater_sample` Change-Id: I9c1206c07c37183f13d3c25940f12981ca85b1b4 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | Merge "screen_ui: Use std::string in DrawTextLine() and siblings." am: b4ded4a6ceandroid-build-prod (mdb)2018-05-035-49/+62
|\| | | | | | | | | | | | | | | | | | | | | | | am: a9d78d45d6 Change-Id: I6b4ea6332a9416ac8036cd9c2d1d23695a7c5914
| * | | Merge "screen_ui: Use std::string in DrawTextLine() and siblings."android-build-prod (mdb)2018-05-035-49/+62
| |\| | | | | | | | | | | | | | | | | | | | | | am: b4ded4a6ce Change-Id: I02fad9395511c716d790f1a1e3f5065532a8433b
| | * | Merge "screen_ui: Use std::string in DrawTextLine() and siblings."android-build-prod (mdb)2018-05-035-49/+62
| | |\ \
| | | * | screen_ui: Use std::string in DrawTextLine() and siblings.Tao Bao2018-05-035-49/+62
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma -j bootable/recovery Test: Build and boot into recovery image on angler. Check the UI. Test: Repeat the same test on devices using wearable UI. Change-Id: I1a67ff4ae8de4d7a8dc66326cf07f95c89e95152
* | | | Merge "screen_ui: Drop the dependency on common.h." am: 738a4258d8Tao Bao2018-05-025-11/+14
|\| | | | | | | | | | | | | | | | | | | | | | | am: 30f2775b37 Change-Id: Id553c1f1de86fa292c0327f6fcc00fb8cd17bec3
| * | | Merge "screen_ui: Drop the dependency on common.h."Tao Bao2018-05-025-11/+14
| |\| | | | | | | | | | | | | | | | | | | | | | am: 738a4258d8 Change-Id: I337db6f14a9a7dd6394040026e004eec717cf487
| | * | Merge "screen_ui: Drop the dependency on common.h."Tao Bao2018-05-025-11/+14
| | |\ \ | | | |/ | | |/|
| | | * screen_ui: Drop the dependency on common.h.Tao Bao2018-05-025-11/+14
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the use of fopen_path() in screen_ui.cpp, as this is the only place that requires the dependency on common.h. The mounting work should be done by the caller. Also change the parameter in RecoveryUI::ShowFile() from const char* to const std::string&. Test: mmma -j bootable/recovery Test: Build and boot into recovery image on angler. Choose 'View recovery logs'. Change-Id: I8e63f14a8e2b12b856e5a92476e4226cd6ea39fb
* | | Merge "Add ScreenRecoveryUI::ShowMenu()." am: cac3ec3513Tao Bao2018-05-016-83/+102
|\| | | | | | | | | | | | | | | | | am: a2f44ebd09 Change-Id: Ifd9b438412fa2c2ca6d3bfcbfe3d620b15663070
| * | Merge "Add ScreenRecoveryUI::ShowMenu()."Tao Bao2018-05-016-83/+102
| |\| | | | | | | | | | | | | | | | am: cac3ec3513 Change-Id: Iaad9bc980d8db3a02dbae77af234cf1aefccdbd1
| | * Merge "Add ScreenRecoveryUI::ShowMenu()."Tao Bao2018-05-016-83/+102
| | |\
| | | * Add ScreenRecoveryUI::ShowMenu().Tao Bao2018-05-016-83/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From caller's PoV, RecoveryUI::{Start,Select,End}Menu should always be used together, i.e. to show a menu and get user's selection. This CL provides ShowMenu() as one-stop service (which is based on get_menu_selection() from recovery.cpp). Also move RecoveryUI::{Start,Select,End}Menu into ScreenRecoveryUI, with a dropped access level from public to protected. Due to the dependency on recovery / librecovery refactoring, will add testcases in follow-up CLs. Test: Build and boot into recovery image. Check the menus (main menu, 'View recovery logs', 'Wipe data/factory reset'). Change-Id: Ie17aa78144871a12affd6f9075e045f76608a0ba
* | | | Merge "updater_sample: add FileDownloader" am: 5c119482b3Zhomart Mukhamejanov2018-05-012-0/+173
|\| | | | | | | | | | | | | | | | | | | | | | | am: 013098f6d2 Change-Id: Id8ef6d4f0bd64d03b0da21bb9ec0e732066e749d
| * | | Merge "updater_sample: add FileDownloader"Zhomart Mukhamejanov2018-05-012-0/+173
| |\| | | | | | | | | | | | | | | | | | | | | | am: 5c119482b3 Change-Id: I4e2da88f762df0c3fa63a1b5c6c2389c7683291d
| | * | Merge "updater_sample: add FileDownloader"Zhomart Mukhamejanov2018-05-012-0/+173
| | |\ \
| | | * | updater_sample: add FileDownloaderZhomart Mukhamejanov2018-05-012-0/+173
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | Test: unit tests Change-Id: I10933e7172d7ebc34c7cf5e4274625d7b8399246 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | Merge "updater_sample: Improve UpdateConfig" am: af5958818aZhomart Mukhamejanov2018-05-019-47/+140
|\| | | | | | | | | | | | | | | | | | | | | | | am: 0b54d77832 Change-Id: I056e1f96f6c444dc0ecfd5f3d7a2f34a0f04f50d
| * | | Merge "updater_sample: Improve UpdateConfig"Zhomart Mukhamejanov2018-05-019-47/+140
| |\| | | | | | | | | | | | | | | | | | | | | | am: af5958818a Change-Id: Ia8fd285ece0dec638273abf3c531fbd1c052becb
| | * | Merge "updater_sample: Improve UpdateConfig"Zhomart Mukhamejanov2018-05-019-47/+140
| | |\ \
| | | * | updater_sample: Improve UpdateConfigZhomart Mukhamejanov2018-05-019-47/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UpdateConfig: - constant names changed - added parsing streaming metadata - added InnerFile to describe a file in zip Android.mk - added guava tests fixed Test: using junit4 Change-Id: Ibe3c8a3bde20259b0eea9a79aca4b22ed7b048f4 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | | [automerger skipped] Merge "recovery: Split main() into recovery_main.cpp." am: 0204e88073Tao Bao2018-05-010-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 17f6c1b041 -s ours Change-Id: I86f2a84affaf0d03be0431d35d265767b1ba68c1
| * | | | Merge "recovery: Split main() into recovery_main.cpp."Tao Bao2018-05-015-135/+192
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0204e88073 Change-Id: I474502fc51b28b3e69e9638c82534bfea62903a7
| | * | | Merge "recovery: Split main() into recovery_main.cpp."Tao Bao2018-05-015-135/+192
| | |\ \ \ | | | |/ / | | |/| / | | | |/
| | | * recovery: Split main() into recovery_main.cpp.Tao Bao2018-05-015-135/+192
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This prepares for moving more codes from recovery into librecovery, so that they will become more easily testable. recovery_main.cpp will be the source code for recovery module, with the rest moved into librecovery. recovery_main.cpp mainly does the initializations, such as setting up the logger. Test: mmma -j bootable/recovery Test: recovery_component_test Test: Build and boot into recovery image on marlin. Change-Id: I8e846524546b6f3f0e32ed869e851f62261eef23 Merged-In: I8e846524546b6f3f0e32ed869e851f62261eef23
* | | recovery: Split main() into recovery_main.cpp.Tao Bao2018-05-015-134/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This prepares for moving more codes from recovery into librecovery, so that they will become more easily testable. recovery_main.cpp will be the source code for recovery module, with the rest moved into librecovery. recovery_main.cpp mainly does the initializations, such as setting up the logger. Test: mmma -j bootable/recovery Test: recovery_component_test Test: Build and boot into recovery image on marlin. Change-Id: I8e846524546b6f3f0e32ed869e851f62261eef23 (cherry picked from commit c241cb662440551eb0d2f42345f7ee08cf60a7dd)
* | | Merge "Drop '#include "ui.h"' from device.h." am: 2de12da142Tao Bao2018-05-012-1/+4
|\| | | | | | | | | | | | | | | | | am: 7e61191258 Change-Id: I1db9c680ccbaa877a2c730541133436c16f7d467
| * | Merge "Drop '#include "ui.h"' from device.h."Tao Bao2018-05-012-1/+4
| |\| | | | | | | | | | | | | | | | am: 2de12da142 Change-Id: I339621dbc9c8cebe78fa7bcf30e9c7e070e649af
| | * Merge "Drop '#include "ui.h"' from device.h."Tao Bao2018-05-012-1/+4
| | |\
| | | * Drop '#include "ui.h"' from device.h.Tao Bao2018-05-012-1/+4
| | |/ | | | | | | | | | | | | | | | | | | We don't need the dependency in the header. Test: mmma -j bootable/recovery Change-Id: I03741ae7911a7e8bf1284b2821cf986ca0ab434e
* | | Merge changes I78839ed4,I75ac0e26 am: e4d65b681aTao Bao2018-04-301-61/+56
|\| | | | | | | | | | | | | | | | | am: 040674586b Change-Id: I27548f7aa4871b50584a0c88d33e6383755f648e
| * | Merge changes I78839ed4,I75ac0e26Tao Bao2018-04-301-61/+56
| |\| | | | | | | | | | | | | | | | am: e4d65b681a Change-Id: I303e20e6d7f36a355f6cca9798c3c598fe10777b
| | * Merge changes I78839ed4,I75ac0e26Tao Bao2018-04-301-61/+56
| | |\ | | | | | | | | | | | | | | | | | | | | * changes: recovery: Move a few constants closer to their uses. recovery: Fix the return value when failing to convert to FBE.
| | | * recovery: Move a few constants closer to their uses.Tao Bao2018-04-301-53/+48
| | | | | | | | | | | | | | | | | | | | Test: mmma -j bootable/recovery Change-Id: I78839ed487ef41b4eaa3787cb7b4bf33fb0d164a
| | | * recovery: Fix the return value when failing to convert to FBE.Tao Bao2018-04-301-8/+8
| | |/ | | | | | | | | | | | | | | | Test: Build and flash aosp_angler-userdebug. Choose 'Convert to file encryption' from Developer Options. Converting to FBE still works. Change-Id: I75ac0e266af2d00bfaff0664f8bcee74a5f16b41
* | | Merge "Merge libmounts into libotautil." am: 686353215fandroid-build-prod (mdb)2018-04-289-61/+46
|\| | | | | | | | | | | | | | | | | am: cddf5dbf67 Change-Id: I57bcd1195084d2e60861aa5b410e2eb50c41c3c3
| * | Merge "Merge libmounts into libotautil."android-build-prod (mdb)2018-04-289-61/+46
| |\| | | | | | | | | | | | | | | | am: 686353215f Change-Id: Id8592b7ac8fe83406928c92f24dbcc88fdaf8ca9
| | * Merge "Merge libmounts into libotautil."android-build-prod (mdb)2018-04-289-61/+46
| | |\
| | | * Merge libmounts into libotautil.Tao Bao2018-04-289-61/+46
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | Export its header (mounts.h) from there, and drop the dot dot dependency from libupdater / updater. Test: mmma bootable/recovery Test: recovery_component_test Change-Id: Ic26a6b9b78a34dbe1f178b138f3abaafffbec44c
* | | Merge "recovery: Revoke (most of) short options." am: 3de3756081Tao Bao2018-04-281-55/+46
|\| | | | | | | | | | | | | | | | | am: 29c9690864 Change-Id: I25522cc339a561129e3a933c1c1c8a13e2caf44a
| * | Merge "recovery: Revoke (most of) short options."Tao Bao2018-04-281-55/+46
| |\| | | | | | | | | | | | | | | | am: 3de3756081 Change-Id: I5be31e78b5531412405a457ed6bd042160f7e014
| | * Merge "recovery: Revoke (most of) short options."Tao Bao2018-04-281-55/+46
| | |\
| | | * recovery: Revoke (most of) short options.Tao Bao2018-04-271-55/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `recovery` is not a command line tool, and these short options don't have the common meanings that are used elsewhere. In the platform code, we're not actively using the short forms. - bootable/recovery/uncrypt/uncrypt.cpp - bootable/recovery/updater/install.cpp - frameworks/base/core/java/android/os/RecoverySystem.java - system/core/adb/services.cpp - system/core/init/builtins.cpp - system/update_engine/hardware_android.cc - system/vold/cryptfs.cpp (Callers must have used libbootloader_message.) '--show_text' and '--just_exit' are not that obvious from the initial commit messages. They appear to be used by vendor code (e.g. '--show_text' is optionally used by bootloader, as in the noted bug). So this CL keeps them as is for now. Test: `mmma -j bootable/recovery` Test: Check the code search for possible callers to recovery. Change-Id: I8a87f5fb50131d647dfc8290381ca47a60f543fa
* | | | Merge "Save the target file when applypatch tests fail" am: 957c1abfbaTianjie Xu2018-04-272-14/+18
|\| | | | | | | | | | | | | | | | | | | | | | | am: 7ad3e673ba Change-Id: Ic3786f79e280ada93c19201f19e55aa2b67c14ad
| * | | Merge "Save the target file when applypatch tests fail"Tianjie Xu2018-04-272-14/+18
| |\| | | | | | | | | | | | | | | | | | | | | | am: 957c1abfba Change-Id: I100dd5ba4fb2c3bd4a29bd8759dcd65f03afbe50
| | * | Merge "Save the target file when applypatch tests fail"Tianjie Xu2018-04-272-14/+18
| | |\ \ | | | |/ | | |/|
| | | * Save the target file when applypatch tests failTianjie Xu2018-04-272-14/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Save the target file to tempfile upon unittest failures so that we can try to decompress the deflate chunks in the flaky unittests. And print the zlib version in case that gets changed. Also the SHA1 of the uncompressed data seems correct; so only keep the final SHA1 to double confirm. Bug: 67849209 Test: recovery_component_test Change-Id: Ic6447c2b75c29379d6844cd23a0ff1c4305694a0
* | | | Merge "updater_sample: fix gen_update_config.py" am: 2573b6fa1cZhomart Mukhamejanov2018-04-274-27/+89
|\| | | | | | | | | | | | | | | | | | | | | | | am: 811baa37d3 Change-Id: Ib27fa8dbb7679ee0762923d1449ddded88403333
| * | | Merge "updater_sample: fix gen_update_config.py"Zhomart Mukhamejanov2018-04-274-27/+89
| |\| | | | | | | | | | | | | | | | | | | | | | am: 2573b6fa1c Change-Id: I4e21d34a1cfe6181e0db3d49296db54e21b70805
| | * | Merge "updater_sample: fix gen_update_config.py"Zhomart Mukhamejanov2018-04-274-27/+89
| | |\ \
| | | * | updater_sample: fix gen_update_config.pyZhomart Mukhamejanov2018-04-274-27/+89
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix gen_update_config.py. And add tests for gen_update_config.py. Test: python3 updater_sample/tools/gen_update_config_test.py Change-Id: I0d270f1d5d7635855ee9acb0dd094e083cd33e3a Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | [automerger skipped] Merge "recovery: Print the actually required battery level." am: ca456f3964android-build-prod (mdb)2018-04-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | am: b73e921a27 -s ours Change-Id: I2f2b7830adb57bb638bd6058177132f2d860889a
| * | | Merge "recovery: Print the actually required battery level."android-build-prod (mdb)2018-04-271-60/+62
| |\| | | | | | | | | | | | | | | | | | | | | | am: ca456f3964 Change-Id: I2d417474c3e37add42cd7a9f1055402f5c1b8a26
| | * | Merge "recovery: Print the actually required battery level."android-build-prod (mdb)2018-04-271-60/+62
| | |\ \ | | | |/ | | |/|
| | | * recovery: Print the actually required battery level.Tao Bao2018-04-271-60/+62
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It should be one of BATTERY_OK_PERCENTAGE (20) and BATTERY_WITH_CHARGER_OK_PERCENTAGE (15), depending on the charger state. Also move the battery level related constants next to their users. Test: mmma -j bootable/recovery Test: Build and boot into recovery with a pending OTA. Check the log. Change-Id: I7513f59c4718ec8e2db16c5266928470c2308648 Merged-In: I7513f59c4718ec8e2db16c5266928470c2308648
* | | Merge "recovery: Print the actually required battery level." into pi-dev-plus-aospTao Bao2018-04-271-15/+17
|\ \ \
| * | | recovery: Print the actually required battery level.Tao Bao2018-04-271-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It should be one of BATTERY_OK_PERCENTAGE (20) and BATTERY_WITH_CHARGER_OK_PERCENTAGE (15), depending on the charger state. Also move the battery level related constants next to their users. Test: mmma -j bootable/recovery Test: Build and boot into recovery with a pending OTA. Check the log. Change-Id: I7513f59c4718ec8e2db16c5266928470c2308648 (cherry picked from commit f2ea6d79992c4004e693c942e5aa0eb32eb5387d)
* | | | [automerger skipped] Merge "Mark ui_print with __printflike." am: 220b531e3dTao Bao2018-04-270-0/+0
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | am: a742fb0994 -s ours Change-Id: I3f1a53e1c20e2a43fa42a104263bd528219a69b7
| * | | Merge "Mark ui_print with __printflike."Tao Bao2018-04-272-2/+2
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | am: 220b531e3d Change-Id: Ia13734618844f2ca82f83da897823183d8c9e443
| | * | Merge "Mark ui_print with __printflike."Tao Bao2018-04-272-2/+2
| | |\ \
| | | * | Mark ui_print with __printflike.Tao Bao2018-04-262-2/+2
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | And fix an issue as a result of the change. Test: mmma -j bootable/recovery Change-Id: I94e6384a1f39e9c37a8ed029d235142738d6e5d3 Merged-In: I94e6384a1f39e9c37a8ed029d235142738d6e5d3
* | | | Merge "Mark ui_print with __printflike." into pi-dev-plus-aospTao Bao2018-04-271-1/+1
|\ \ \ \ | |_|_|/ |/| | |
| * | | Mark ui_print with __printflike.Tao Bao2018-04-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And fix an issue as a result of the change. Test: mmma -j bootable/recovery Change-Id: I94e6384a1f39e9c37a8ed029d235142738d6e5d3 (cherry picked from commit 8af89c3a02c1bf358fc3c3b4e0a7cedc8f48631e)
* | | | Merge "sample_updater: create tools/gen_update_config.py" am: 6bd1d9b8d9Zhomart Mukhamejanov2018-04-263-8/+189
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | am: 9882160d8d Change-Id: I79b31a904c2c60e33272e532d061da896c769e96
| * | | Merge "sample_updater: create tools/gen_update_config.py"Zhomart Mukhamejanov2018-04-263-8/+189
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | am: 6bd1d9b8d9 Change-Id: I40f5c3650517bcdc20194fbc7abf0cadaccd9d4f
| | * | Merge "sample_updater: create tools/gen_update_config.py"Zhomart Mukhamejanov2018-04-263-8/+189
| | |\ \
| | | * | sample_updater: create tools/gen_update_config.pyZhomart Mukhamejanov2018-04-263-8/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gen_update_config.py generates JSON config files from given OTA image zip files. README.md is updated. Test: manually Change-Id: Ifd09b49a73983a42752ee3842a566cecedb9cae0 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | | Merge "sample_updater: add tests resources" am: 7d064166ceZhomart Mukhamejanov2018-04-263-0/+49
|\| | | | | |_|_|/ |/| | | | | | | | | | | | | | | am: 6131d00348 Change-Id: Ice6103cd297e321a4d3d51b7c6c091aa1906b005
| * | | Merge "sample_updater: add tests resources"Zhomart Mukhamejanov2018-04-263-0/+49
| |\| | | | | | | | | | | | | | | | | | | | | | am: 7d064166ce Change-Id: I96ecdfef2f05798c4f072ee21718dbb4c0c640f2
| | * | Merge "sample_updater: add tests resources"Zhomart Mukhamejanov2018-04-263-0/+49
| | |\ \
| | | * | sample_updater: add tests resourcesZhomart Mukhamejanov2018-04-263-0/+49
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This resource files are used in tests. ota package zip file contains only text files. Config files are generated using tools/gen_update_config.py Test: N/A Change-Id: I9d3d0f81472dc20db18b32f4a9445a998b68b0e3 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | | Merge "Dump the uncompressed data's SHA1 to debug flaky tests" am: cc8587b508Tianjie Xu2018-04-262-3/+75
|\| | | | | | | | | | | | | | | | | | | | | | | am: 247821648f Change-Id: Id7b098becfc35b4c94213582f274e3c08c19583b
| * | | Merge "Dump the uncompressed data's SHA1 to debug flaky tests"Tianjie Xu2018-04-262-3/+75
| |\| | | | | | | | | | | | | | | | | | | | | | am: cc8587b508 Change-Id: Iaca05198698844f1058e625647e545e55ae47ab8
| | * | Merge "Dump the uncompressed data's SHA1 to debug flaky tests"Tianjie Xu2018-04-262-3/+75
| | |\ \
| | | * | Dump the uncompressed data's SHA1 to debug flaky testsTianjie Xu2018-04-262-3/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dump the SHA1 of the uncompressed data in applypatch to confirm if we are at least doing the bspatch part correctly. (I expect so since the actual length of the uncompressed data matches the expected length). Also try to decompress the deflate chunk inside the recovery image for these two flacky tests. In theory, there shouldn't be randomness in zlib; so we would know if we process the data wrongly if the deflate fails to decompress. Bug: 67849209 Test: recovery_component_test Change-Id: Id947522153b1eeb0d10d161298a96fb045f92018
* | | | | Merge "Rename CacheLocation to Paths." am: 49c7f1cec3android-build-prod (mdb)2018-04-2616-213/+230
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ce562bacfd Change-Id: I5b084052f3f84a6e58e1267e58a125a7ed47080e
| * | | | Merge "Rename CacheLocation to Paths."android-build-prod (mdb)2018-04-2616-213/+230
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 49c7f1cec3 Change-Id: I335f1df6699d8316d41959c21a09cbf944d7554b
| | * | | Merge "Rename CacheLocation to Paths."android-build-prod (mdb)2018-04-2616-213/+230
| | |\ \ \ | | | |_|/ | | |/| |
| | | * | Rename CacheLocation to Paths.Tao Bao2018-04-2616-213/+230
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have a general need for overriding more paths (e.g. "/tmp"), mostly for testing purpose. Rename CacheLocation to Paths, and use that to manage TEMPORARY_{INSTALL,LOG}_FILE. Test: mmma -j bootable/recovery Test: recovery_component_test Change-Id: Ia8ce8e5695df37ca434f13ac4d3206de1e8e9396
* | | | Merge "updater_sample: Use stubs libs for android.test.base / runner." am: d97b643de4Zhomart Mukhamejanov2018-04-261-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | am: 23d17302b1 Change-Id: Ic155ecfd3dab5ba2738b87a68be06a19c9abda26
| * | | Merge "updater_sample: Use stubs libs for android.test.base / runner."Zhomart Mukhamejanov2018-04-261-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | am: d97b643de4 Change-Id: I65d85eea826232633919a2c91a66b80a1c37e6c6
| | * | Merge "updater_sample: Use stubs libs for android.test.base / runner."Zhomart Mukhamejanov2018-04-261-2/+2
| | |\ \
| | | * | updater_sample: Use stubs libs for android.test.base / runner.Tao Bao2018-04-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To address the warning below (which will be disallowed): bootable/recovery/updater_sample/tests/Android.mk: warning: SystemUpdaterSampleTests (java:system) should not link to android.test.runner (java:platform) (See b/69899800 or the commit message in [1] for detailed discussions.) [1]: https://android-review.googlesource.com/c/platform/frameworks/ml/+/666428 Test: `mmma -j bootable/recovery` gives no warning. Test: Install and run SystemUpdaterSampleTests on device. Change-Id: I12a1556d572d9f332fcf43dc84cbe8fd1b6df89b
* | | | | Merge "Rename the dir for SystemUpdaterSample." am: a544bfab2bandroid-build-prod (mdb)2018-04-2627-5/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4b52553cbb Change-Id: If4113d931c95cb0e076035a384a9a5193e4a8369
| * | | | Merge "Rename the dir for SystemUpdaterSample."android-build-prod (mdb)2018-04-2627-5/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a544bfab2b Change-Id: If6329a0f9a7732b99d11f6233ed56f72db31ac96
| | * | | Merge "Rename the dir for SystemUpdaterSample."android-build-prod (mdb)2018-04-2627-5/+5
| | |\| | | | | |/ | | |/|
| | | * Rename the dir for SystemUpdaterSample.Tao Bao2018-04-2627-5/+5
| | |/ | | | | | | | | | | | | | | | | | | Also replace the occurrence in README.md and PREUPLOAD.cfg. Test: mmma -j bootable/recovery Change-Id: I04c0ef00dd64f49e008ad2a4a2c1e8eaed76bf8d
* | | Merge "sample_updater: add non-streaming demo" am: 4816fc1c46Zhomart Mukhamejanov2018-04-2526-97/+1723
|\| | | | | | | | | | | | | | | | | am: a399c289bb Change-Id: Ieb347d361af77e916b0948bbd0d8d2277fe67150
| * | Merge "sample_updater: add non-streaming demo"Zhomart Mukhamejanov2018-04-2526-97/+1723
| |\| | | | | | | | | | | | | | | | am: 4816fc1c46 Change-Id: Ide07a80e18a3935c07e020b51d730aa6f557077c
| | * Merge "sample_updater: add non-streaming demo"Zhomart Mukhamejanov2018-04-2526-97/+1723
| | |\
| | | * sample_updater: add non-streaming demoZhomart Mukhamejanov2018-04-2526-97/+1723
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SampleUpdater app was tested manually on a device. There are unit tests for utility classes. SampleUpdater app demonstrates how to use Android Update Engine to apply A/B (seamless) update. This CL contains demo of non-stream update using async update_engine, which is accessed directly from an activity. This app also shows logs from update_engine on the UI. Instructions can be found in `README.md`. - Create a UI with list of configs, current version, control buttons and a progress bar - Add PayloadSpec and PayloadSpecs for working with update zip file - Add UpdateConfig for working with json config files - Add applying non-streaming update Test: tested manually and unit tests for utilities Change-Id: I05d4a46ad9cf8b334c9c60c7dd4da486dac0400a Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
* | | [automerger skipped] Wipe the metadata partition when we wipe data.Paul Crowley2018-04-250-0/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | am: 723056a83f -s ours Change-Id: I1f4aedc483aa2a0d1813f62870b9462dd58095ca
| * | | Wipe the metadata partition when we wipe data.Paul Crowley2018-04-251-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 78469201 Test: Wipe from recovery menu, check that wipe is logged correctly and boot works as expected. Merged-In: I5bc8ef1b83d78de8b5edba6cc17882edcc744356 Change-Id: I5bc8ef1b83d78de8b5edba6cc17882edcc744356
* | | | Merge "updater: Remove an unneeded strdup()." am: ab3c24bd51android-build-prod (mdb)2018-04-251-1/+1
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | am: 76f0edc05e Change-Id: I0836af0b9ba9485c1908303b496fb86899aa4f43
| * | | Merge "updater: Remove an unneeded strdup()."android-build-prod (mdb)2018-04-251-1/+1
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | am: ab3c24bd51 Change-Id: I9a5b88f8091a208bc62678711f4ca0564d49538d
| | * | Merge "updater: Remove an unneeded strdup()."android-build-prod (mdb)2018-04-251-1/+1
| | |\ \
| | | * | updater: Remove an unneeded strdup().Tao Bao2018-04-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | StringValue() makes a copy of the arg. Test: mmma bootable/recovery Change-Id: I1002994e7496c840aa05c785019bdeca281f467e
* | | | | Merge "Wipe the metadata partition when we wipe data." am: 897385bfe2Paul Crowley2018-04-251-5/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 62fd21b9bb Change-Id: I338d7882e63abe9e78c2566b32c0fe28e2272614
| * | | | Merge "Wipe the metadata partition when we wipe data."Paul Crowley2018-04-251-5/+14
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 897385bfe2 Change-Id: I29a83ac2792e5564f83ea7dac13740f5a6052bd0
| | * | | Merge "Wipe the metadata partition when we wipe data."Treehugger Robot2018-04-251-5/+14
| | |\ \ \ | | | |/ / | | |/| |
| | | * | Wipe the metadata partition when we wipe data.Paul Crowley2018-04-251-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 78469201 Test: Wipe from recovery menu, check that wipe is logged correctly and boot works as expected. Change-Id: I5bc8ef1b83d78de8b5edba6cc17882edcc744356
* | | | | Merge "Dump debug information for apply_patch unit tests" am: fe527cced4Tianjie Xu2018-04-243-1/+22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 943c2057ad Change-Id: If76814a3e45b6f199f2cfe5d8da7a176d37a573f
| * | | | Merge "Dump debug information for apply_patch unit tests"Tianjie Xu2018-04-243-1/+22
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fe527cced4 Change-Id: Ife392c1a6a99e8ae0b8d4a46330596f5c742f099
| | * | | Merge "Dump debug information for apply_patch unit tests"Tianjie Xu2018-04-243-1/+22
| | |\ \ \
| | | * | | Dump debug information for apply_patch unit testsTianjie Xu2018-04-243-1/+22
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The apply patch test should have a deterministic way to append patch data. Add debug logs to dump the length and SHA1 of each step to further track down the flakiness. Also redirect the debug logging to stdout in case the logcat becomes too chatty. Bug: 67849209 Test: Run recovery_component_test Change-Id: I42bafef2d9dee599719ae57840b3d8c00d243ebd
* | | | | Merge "update_verifier: Move to Soong." am: ed022fccdfTao Bao2018-04-243-70/+83
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9bc286dd71 Change-Id: I17da945eaa609f40d9601109c435110599ed88f6
| * | | | Merge "update_verifier: Move to Soong."Tao Bao2018-04-243-70/+83
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ed022fccdf Change-Id: Icfbef50b7fbfb2acfc0ba3ff47953b39c778356a
| | * | | Merge "update_verifier: Move to Soong."Tao Bao2018-04-243-70/+83
| | |\ \ \
| | | * | | update_verifier: Move to Soong.Tao Bao2018-04-203-70/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma -j bootable/recovery Change-Id: I3a3574c89318304231c01f7633d32ece31df098c
* | | | | | Merge "Make update_verifier generic across verified boot versions." am: ea63f59469Tao Bao2018-04-244-48/+22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: abcac8e1e7 Change-Id: I22eb8e48264862f763c31813697af46a55d1eba7
| * | | | | Merge "Make update_verifier generic across verified boot versions."Tao Bao2018-04-244-48/+22
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ea63f59469 Change-Id: Ieaad12e638eee94323703d0808b961a1e2efa5ab
| | * | | | Merge "Make update_verifier generic across verified boot versions."Tao Bao2018-04-244-48/+22
| | |\| | | | | | |/ / | | |/| |
| | | * | Make update_verifier generic across verified boot versions.Tao Bao2018-04-204-48/+22
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows the update_verifier in a general system image to work across devices that have different verified boot versions (i.e. not supported / verified boot 1.0 / verified boot 2.0 / disabled). Bug: 78283982 Test: Run recovery_component_test on both of marlin and walleye. Test: Generate an OTA that has this CL. Install this OTA and check the update_verifier log during the post-reboot verification, on both of marlin (VB 1.0) and walleye (VB 2.0). Test: Build and flash walleye image with verified boot disabled. Check that update_verifier marks the slot as successfully booted. Change-Id: I828d87d59f911786531f774ffcf9b2ad7c2ca007
* | | | Merge "applypatch: Drop the SHA_CTX parameter in Apply{BSDiff,Image}Patch." am: bcb015239cTao Bao2018-04-205-37/+24
|\| | | | | | | | | | | | | | | | | | | | | | | am: 4cf3bc1875 Change-Id: I211d0252ae33cc8fc203360de8d982c2a3b597ae
| * | | Merge "applypatch: Drop the SHA_CTX parameter in Apply{BSDiff,Image}Patch."Tao Bao2018-04-205-37/+24
| |\| | | | | | | | | | | | | | | | | | | | | | am: bcb015239c Change-Id: I63246ae23e5c57d9723d616c5db28e8265fa7c52
| | * | Merge "applypatch: Drop the SHA_CTX parameter in Apply{BSDiff,Image}Patch."Treehugger Robot2018-04-205-37/+24
| | |\ \
| | | * | applypatch: Drop the SHA_CTX parameter in Apply{BSDiff,Image}Patch.Tao Bao2018-04-205-37/+24
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As they're accepting the SinkFn callback, it makes more sense to leave the work to their callers. Test: mmma -j bootable/recovery Test: Run recovery_component_test on marlin. Test: No other active user of the two functions. Change-Id: I8d67b38ce037925442296f136b483e0c71983777
* | | | Merge "applypatch: Dump patch info on mismatching patching result." am: d2c32b281bTao Bao2018-04-192-1/+21
|\| | | | | | | | | | | | | | | | | | | | | | | am: ea70fd7d1d Change-Id: Ie9c674215caac891702d09d30f6858226ffe807c
| * | | Merge "applypatch: Dump patch info on mismatching patching result."Tao Bao2018-04-192-1/+21
| |\| | | | | | | | | | | | | | | | | | | | | | am: d2c32b281b Change-Id: Ib43606f5fcd9e238b16b70b6dd519bb38a780dd3
| | * | Merge "applypatch: Dump patch info on mismatching patching result."Tao Bao2018-04-192-1/+21
| | |\ \
| | | * | applypatch: Dump patch info on mismatching patching result.Tao Bao2018-04-192-1/+21
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After splitting the previously flaky ApplyPatchModesTest#PatchModeEmmcTarget tests, PatchModeEmmcTargetWithMultiplePatches now becomes the sole victim. This CL dumps additional info to narrow down the cause. Bug: 67849209 Test: `recovery_component_test` on marlin. Test: It dumps additional info after using corrupt bonus.file. Change-Id: Ic5436de457cc882a51d03f49d5cee70077f7d3df
* | | | Merge "Add sample_updater style check to PREUPLOAD.cfg" am: 73e6644777Zhomart Mukhamejanov2018-04-181-0/+5
|\| | | | | | | | | | | | | | | | | | | | | | | am: 11e31203a6 Change-Id: Idcc2df9a84b6734c875da1f102eb7ba4ca6f9e62
| * | | Merge "Add sample_updater style check to PREUPLOAD.cfg"Zhomart Mukhamejanov2018-04-181-0/+5
| |\| | | | | | | | | | | | | | | | | | | | | | am: 73e6644777 Change-Id: I5acb461de5e0af89ffc903363711d9bb0dc05bc1
| | * | Merge "Add sample_updater style check to PREUPLOAD.cfg"Zhomart Mukhamejanov2018-04-181-0/+5
| | |\ \
| | | * | Add sample_updater style check to PREUPLOAD.cfgZhomart Mukhamejanov2018-04-181-0/+5
| | |/ / | | | | | | | | | | | | | | | | Test: N/A Change-Id: I13f4295a85d50c0a63cac5680e7a3200b0e6c909
* | | | Merge "tests: Move ResourcesTest into component test." am: 07d0032defTao Bao2018-04-173-101/+126
|\| | | | | | | | | | | | | | | | | | | | | | | am: 9adbc572a3 Change-Id: Ia03cd4b6e5267cfd015190a840d3630648c832c1
| * | | Merge "tests: Move ResourcesTest into component test."Tao Bao2018-04-173-101/+126
| |\| | | | | | | | | | | | | | | | | | | | | | am: 07d0032def Change-Id: I1e6576ab1ae5eacc70b2cabba8d11b78fbdd88d5
| | * | Merge "tests: Move ResourcesTest into component test."Treehugger Robot2018-04-173-101/+126
| | |\ \
| | | * | tests: Move ResourcesTest into component test.Tao Bao2018-04-163-101/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Although the tests were initially written for checking the validity of the text images, it doesn't hurt to run them continuously as part of the component test (recovery_manual_test requires reboots during the run, due to the nature of the tests of recovery-{refresh,persist}). This also allows detecting breaking changes to libminui or libpng. There's a catch that the ResourcesTest won't be triggered via `atest`, as the res-* testdata won't be picked up via AndroidTest.xml. Explored a few options but not addressing that in this CL: - `atest` is not fully working in AOSP yet (missing support in tools/tradefederation/core/atest/atest.py). - `atest` doesn't allow specifying the testdata with path in the 'push' option. - It won't fail the test run though, as ResourcesTest will skip the tests automatically when it finds no text image file. - APCT and manual `adb sync data` are not affected, and I don't see an active user of `atest` other than a tool for manual test invocation. - Unrelated to this CL, `atest` doesn't seem to work well with recovery_component_test or recovery_unit_test while we have both of them in one AndroidTest.xml. It randomly triggers only one of them, despite of the given test name. When splitting AndroidTest.xml into two, it tends to pick up the wrong testdata subdir and gives wrong results. Test: Run recovery_manual_test and recovery_component_test on marlin. Change-Id: I3a237499a7770356e14085674bc8b9cb4551db85
* | | | | Merge "Disable lld where it fails." am: 0c8eea86f9Chih-Hung Hsieh2018-04-161-0/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dd2277a9bd Change-Id: Ic245166068d1c87a1fbcb2fa36a0141914e9cd34
| * | | | Merge "Disable lld where it fails."Chih-Hung Hsieh2018-04-161-0/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0c8eea86f9 Change-Id: I28871cb18da2825e4e6f951fc95debd6dc7225ae
| | * | | Merge "Disable lld where it fails."Treehugger Robot2018-04-161-0/+4
| | |\ \ \ | | | |/ / | | |/| |
| | | * | Disable lld where it fails.Chih-Hung Hsieh2018-04-161-0/+4
| | |/ / | | | | | | | | | | | | | | | | | | | | Bug: 77543887 Test: make checkbuild and boot Change-Id: I4134a8eec592dac347c84cc7dc3f9f99f27bc50c
* | | | Merge "Expose PngHandler via resources.h." am: 3c8fdf3274Tao Bao2018-04-153-153/+152
|\| | | | | | | | | | | | | | | | | | | | | | | am: c41aba80b7 Change-Id: Iabf5238f7f150ab721d402b7c4ab6efd77430a11
| * | | Merge "Expose PngHandler via resources.h."Tao Bao2018-04-153-153/+152
| |\| | | | | | | | | | | | | | | | | | | | | | am: 3c8fdf3274 Change-Id: I2a120d4250bfb0c32129fd3409c7f1c13f28c20a
| | * | Merge "Expose PngHandler via resources.h."Treehugger Robot2018-04-143-153/+152
| | |\ \
| | | * | Expose PngHandler via resources.h.Tao Bao2018-04-143-153/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As a private header for testing purpose. PngHandler additionally loads a given filename if the one with '/res/images' prefix is not available. It also provides color_type/bit_depth that are parsed from the PNG file. This allows reusing the same code for the ResourcesTest (renamed from ResourceTest). Test: Run recovery_manual_test on marlin. Change-Id: I3f939d79a1cb1b83a899847dbe2d51bde15d16d8
* | | | | Merge "minadbd: track signature change of service_to_fd." am: 5ac8cfe1edJosh Gao2018-04-150-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 959f010f7b Change-Id: If8f891253b4bef9e7264f28cdd79108c3e4d8d42
| * | | | Merge "minadbd: track signature change of service_to_fd."Josh Gao2018-04-151-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5ac8cfe1ed Change-Id: I6e308545ecfcf992f649cf24a8967acf58cea432
| | * | | Merge "minadbd: track signature change of service_to_fd."Treehugger Robot2018-04-141-1/+1
| | |\ \ \ | | | |/ / | | |/| |
| | | * | minadbd: track signature change of service_to_fd.Josh Gao2018-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/37066218 Bug: http://b/71898863 Test: treehugger Change-Id: I5f2b14c65cff8d41dd3230d78b87e3e27e489bf6
* | | | | Merge "minadbd: track signature change of service_to_fd." into pi-devJosh Gao2018-04-151-1/+1
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | am: eacb9c0697 Change-Id: I863f450cffc2c86b0f2c4a5bdf3b9958355a5dea
| * | | | Merge "minadbd: track signature change of service_to_fd." into pi-devTreeHugger Robot2018-04-141-1/+1
| |\ \ \ \
| | * | | | minadbd: track signature change of service_to_fd.Josh Gao2018-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/37066218 Bug: http://b/71898863 Test: treehugger Change-Id: I5f2b14c65cff8d41dd3230d78b87e3e27e489bf6 (cherry picked from commit 570b08b7904901162ae2d4c847b19c1aa9738aaf)
* | | | | | Merge "Remove the old log files if cache space is insufficient for OTA" am: 0b3e25719dTianjie Xu2018-04-136-60/+271
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | am: 8982db6ae1 Change-Id: I2d4aa22d3d77add42a99cfdf8610e172640d40a9
| * | | | | Merge "Remove the old log files if cache space is insufficient for OTA"Tianjie Xu2018-04-136-60/+271
| |\ \ \ \ \ | | | |_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | am: 0b3e25719d Change-Id: I345fe6a906c71776de63a7c782e4ed4b1050c8c0
| | * | | | Merge "Remove the old log files if cache space is insufficient for OTA"Tianjie Xu2018-04-136-60/+271
| | |\ \ \ \
| | | * | | | Remove the old log files if cache space is insufficient for OTATianjie Xu2018-04-136-60/+271
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We set the limit of the max stash size to 80% of cache size. But the cache space can still be insufficient for the update if the log files occupy a large chunk of /cache. So remove the old logs for now to make room for the update. Bug: 77528881 Test: unit tests pass Change-Id: Ia8bcb0ace11f8164ad9290bfb360e08e31d282cb
* | | | | | Merge "recovery: enable fsverity feature bit" into pi-devJaegeuk Kim2018-04-112-6/+5
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | am: 257dd337da Change-Id: I1a7ebb46cdcb32952d4033916b19f41ba91a4689
| * | | | | Merge "recovery: enable fsverity feature bit" into pi-devTreeHugger Robot2018-04-112-6/+5
| |\ \ \ \ \
| | * | | | | recovery: enable fsverity feature bitJaegeuk Kim2018-04-062-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 74604441 Bug 67380979 Change-Id: Iab1cc9aef356f0ddf6e2491578a2bd53009182ce Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
* | | | | | | Use the non-LTO, non-PGO version of libhwbinderPirama Arumuga Nainar2018-04-101-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2ca4a403e7 Change-Id: Ic2cf355dd9faa2ed1c04f2673a41974df2c9f4a9
| * | | | | | Use the non-LTO, non-PGO version of libhwbinderPirama Arumuga Nainar2018-04-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/77320844 Android.mk doesn't have support for PGO either. This causes linker error (about missing __llvm_profile symbols) in the PGO-instrumentation enabled builds in the release branch. Test: m ANDROID_PGO_INSTRUMENT=ALL Change-Id: Ib5dfdea88073bd95da2cd02e92c85bfffcca80d6
* | | | | | | Merge "Use non-LTO variant of libhwbinder" into pi-devYi Kong2018-04-061-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7fdb6355e4 Change-Id: Ib78dee41815c782e0377d2e1fcb3754010ec8bb2
| * | | | | | Merge "Use non-LTO variant of libhwbinder" into pi-devTreeHugger Robot2018-04-061-1/+1
| |\ \ \ \ \ \ | | |/ / / / / | |/| | | | |
| | * | | | | Use non-LTO variant of libhwbinderYi Kong2018-04-031-1/+1
| | | |_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... as a workaround for build system does not currently infer non-LTO usage from Android.mk. Test: m Bug: 77320844 Change-Id: I6e9954b895051cc20408a30d0761e164e4c5bfd9
* | | | | | install: mkfs.f2fs: specify sector size for target image sizeJaegeuk Kim2018-04-050-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1224544806 Change-Id: If7019ce86b3936534bb9db6d33135c3c9d3028fd
| * | | | | install: mkfs.f2fs: specify sector size for target image sizeJaegeuk Kim2018-04-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The total sectors that we want to format is used in different meanings from various users. This notifies its size based on 512 bytes explicitly. Bug: 76407663 Change-Id: I20687b40a1733d3b459a45f8b64a338c37a7bc95 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
* | | | | | Merge "install: mkfs.f2fs: specify sector size for target image size" am: ea8a6a9af2Jaegeuk Kim2018-04-051-0/+2
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | am: 70ac7ea78f Change-Id: Iac2bc863bbca439de0df116c6b4a026744ca228b
| * | | | | Merge "install: mkfs.f2fs: specify sector size for target image size"Jaegeuk Kim2018-04-051-0/+2
| |\ \ \ \ \ | | | |_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | am: ea8a6a9af2 Change-Id: I0effdb5d30cc496d55e2bb722404e07bcd2561e3
| | * | | | Merge "install: mkfs.f2fs: specify sector size for target image size"Treehugger Robot2018-04-051-0/+2
| | |\ \ \ \
| | | * | | | install: mkfs.f2fs: specify sector size for target image sizeJaegeuk Kim2018-04-051-0/+2
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The total sectors that we want to format is used in different meanings from various users. This notifies its size based on 512 bytes explicitly. Bug: 76407663 Change-Id: I20687b40a1733d3b459a45f8b64a338c37a7bc95 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
* | | | | | [automerger skipped] f2fs: support f2fs by setting unmovable bit for package fileJaegeuk Kim2018-04-050-0/+0
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | am: 848f227eea -s ours Change-Id: Id41502973521789f22aff6fe7a63602a67c75833
| * | | | | f2fs: support f2fs by setting unmovable bit for package fileJaegeuk Kim2018-04-051-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables to use uncrypt for f2fs update-on-reboot. It requires kernel patch named: "f2fs: add an ioctl to disable GC for specific file" If any operation fails during uncrypt, please delete package file as soon as possible, and create the file again to move forward. IOWs, don't leave the package file for a long time. Bug: 70309376 Bug: 30170612 Change-Id: I3b4233e7da756f107be35364521699deaf2e7139 Merged-In: I3b4233e7da756f107be35364521699deaf2e7139 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
* | | | | | [automerger skipped] mkfs.f2fs: specify sector size for target image sizeJaegeuk Kim2018-04-050-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4358262b75 -s ours Change-Id: I5671b3decf3d6d712b46ca6b7c1ea432edb147a0
| * | | | | mkfs.f2fs: specify sector size for target image sizeJaegeuk Kim2018-04-041-5/+20
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The total sectors that we want to format is used in different meanings from various users. This notifies its size based on 4096 bytes explicitly. Bug: 76407663 Change-Id: I3392646648264ad1ca78e4b87240edc9385a0cc4 Merged-In: I3392646648264ad1ca78e4b87240edc9385a0cc4 Reported-by: katao@xiaomi.com Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
* | | | | Merge "mkfs.f2fs: specify sector size for target image size" am: 81c3c4a319Jaegeuk Kim2018-04-041-5/+20
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | am: fc0f970c93 Change-Id: I6c7065aeb42a4a9b4593e75ecfdb723c9971d37d
| * | | | Merge "mkfs.f2fs: specify sector size for target image size"Jaegeuk Kim2018-04-041-5/+20
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | am: 81c3c4a319 Change-Id: Iad81bcd6bb6c078d85cd22dc04bafdf0330fc505
| | * | | Merge "mkfs.f2fs: specify sector size for target image size"Treehugger Robot2018-04-041-5/+20
| | |\ \ \ | | | |_|/ | | |/| |
| | | * | mkfs.f2fs: specify sector size for target image sizeJaegeuk Kim2018-04-041-5/+20
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The total sectors that we want to format is used in different meanings from various users. This notifies its size based on 4096 bytes explicitly. Bug: 76407663 Change-Id: I3392646648264ad1ca78e4b87240edc9385a0cc4 Reported-by: katao@xiaomi.com Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
* | | | Merge "tests: Pick up testdata with LOCAL_TEST_DATA." am: 6b6c21af28Tao Bao2018-04-034-62/+25
|\| | | | | | | | | | | | | | | | | | | | | | | am: 8028dc1ce4 Change-Id: I9d6258917eb02d8d6ba8215489cef87e5974efc0
| * | | Merge "tests: Pick up testdata with LOCAL_TEST_DATA."Tao Bao2018-04-034-62/+25
| |\| | | | | | | | | | | | | | | | | | | | | | am: 6b6c21af28 Change-Id: Ic66820300efe764cbdeb78daa77ddf7c01c8460f
| | * | Merge "tests: Pick up testdata with LOCAL_TEST_DATA."Treehugger Robot2018-04-034-62/+25
| | |\ \
| | | * | tests: Pick up testdata with LOCAL_TEST_DATA.Tao Bao2018-04-024-62/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also push the testdata in AndroidTest.xml for `atest`. LOCAL_TEST_DATA was added in commit [1], which ships testdata next to native tests. With this CL, 1) manually sync-ing via `adb sync` and running tests with `adb shell` keep working. 2) both of 32- and 64-bit recovery_{unit,component}_test now work in APCT continuous tests. Note that 64-bit tests were failing previously in APCT, due to missing testdata. 3) `atest recovery_unit_test` works, as the testdata gets pushed to /data/local/tmp. [1] commit d07ba4e2a625a8f000d042c1953adb612bccbbe2 in https://android-review.googlesource.com/c/platform/build/+/312567. Bug: 77320514 Test: Build recovery_{unit,component,manual}_test. Setup the test via `adb sync data`. Run both of 32- and 64-bit versions on device. Test: Build and run recovery_host_test on host, for both of 32- and 64-bit versions. Test: `atest recovery_component_test` Change-Id: Ie54037726043a3a659a80030b83db1f8c1de318d
* | | | | Merge "Do not skip the update installation if it's a retry" am: e566168c94Tianjie Xu2018-04-031-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2e0ac38d40 Change-Id: I6d9407a9a445643086caf2fd56cfbf7518524c0f
| * | | | Merge "Do not skip the update installation if it's a retry"Tianjie Xu2018-04-031-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e566168c94 Change-Id: I4dde882ce9a1013c0cc371a56981cef5c7f28a29
| | * | | Merge "Do not skip the update installation if it's a retry"Tianjie Xu2018-04-031-2/+2
| | |\ \ \
| | | * | | Do not skip the update installation if it's a retryTianjie Xu2018-04-021-2/+2
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used to skip the update installation if the battery doesn't reach the threshold or the boot reason is in blacklist. Afterwards, we just cleared the BCB and reboot/shutdown the device. However, this leaves the device in a brick state if the update is a retry; because a subsequent reboot won't resume the update after the BCB gets cleared. This CL skips the battery and bootreason check on retries. An alternative solution is to conduct the check and shutdown the device without clearing the BCB on INSTALL_SKIPPED; but users who don't have context may reboot the device manually anyway. Bug: 65288661 Test: Trigger the INSTALL_SKIPPED with insufficient battery, and check the behavior with retry_count. Change-Id: I0bd8ae9cee0e35aeeec3df469a78cec9ee1b8db8
* | | | | Merge "Create the SystemUpdate activity class." am: c506482abcJiachen Zhao2018-04-024-4/+104
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c974a1f404 Change-Id: I81d10926a3aab3a5b25c64ac7975f46fc1615ec3
| * | | | Merge "Create the SystemUpdate activity class."Jiachen Zhao2018-04-024-4/+104
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c506482abc Change-Id: I805982a1600f12f0b6e23f9c5a1bafc620ac0e2d
| | * | | Merge "Create the SystemUpdate activity class."Jiachen Zhao2018-04-024-4/+104
| | |\ \ \ | | | |/ / | | |/| |
| | | * | Create the SystemUpdate activity class.Jiachen Zhao2018-04-014-4/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: tested sample app with sideloading. Change-Id: I0d1661cea57c706b4981a4cda9f9b69fdeb69292
* | | | | Merge "Move a few modules to Soong." am: d408a865afTao Bao2018-04-022-83/+145
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 47be7bcdba Change-Id: Iba006e5a0df67382f258d1ba60728f4c54003360
| * | | | Merge "Move a few modules to Soong."Tao Bao2018-04-022-83/+145
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d408a865af Change-Id: I2f02b1ae3c4f3a2895fe49261072f2fd987cc370
| | * | | Merge "Move a few modules to Soong."Treehugger Robot2018-04-022-83/+145
| | |\ \ \ | | | |/ / | | |/| |
| | | * | Move a few modules to Soong.Tao Bao2018-03-272-83/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libmounts librecovery_ui_default librecovery_ui_wear librecovery_ui_vr libverifier recovery-persist recovery-refresh They are all trivially converted. Test: mmma -j bootable/recovery Change-Id: Id783b3eec32bd15e74f42df17053732db5666675
* | | | | Merge "Create folder for SystemUpdate sample app." am: f0e2811092Jiachen Zhao2018-03-314-0/+48
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c6152041fd Change-Id: I48ec477c7e4bc0dea32bfe89032fefee75d30c16
| * | | | Merge "Create folder for SystemUpdate sample app."Jiachen Zhao2018-03-314-0/+48
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f0e2811092 Change-Id: Ia3b487a5e373cb4f92d07013a2bf161d4cdab5d0
| | * | | Merge "Create folder for SystemUpdate sample app."Jiachen Zhao2018-03-314-0/+48
| | |\ \ \
| | | * | | Create folder for SystemUpdate sample app.Jiachen Zhao2018-03-314-0/+48
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | Test: no functional changes. Change-Id: I2e8c654086ca49063c59ae0529e190323c84d6ad
* | | | | Merge "Remove the obsolete mkfont.c and font_10x18.h" am: 8b9faa0008Tianjie Xu2018-03-303-300/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dea56f6531 Change-Id: Ib41259ebcdb59e9ceb58cc641b6ecb1a137fdc63
| * | | | Merge "Remove the obsolete mkfont.c and font_10x18.h"Tianjie Xu2018-03-303-300/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8b9faa0008 Change-Id: I4a12317a654effad6e9525982644ef84156bff28
| | * | | Merge "Remove the obsolete mkfont.c and font_10x18.h"Tianjie Xu2018-03-303-300/+5
| | |\ \ \ | | | |/ / | | |/| |
| | | * | Remove the obsolete mkfont.c and font_10x18.hTianjie Xu2018-03-303-300/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The font_10x18.h is used as a fall back for fonts if the $(recovery_font) under bootable/recovery/fonts failed to reload. This font looks very small on the screen and we haven't used it in a while. Plus, fonts in header doesn't have many benefits if we support only ascii characters. So we decide to remove this header along with the mkfont.c that generates the header. For reference, here's the steps to use mkfont: 1. Generate a picture of fonts with apps on host 2. Open the pic with GIMP 3. Export the pic as '.c' file, and rename it into '.h' file 4. Compile the generated '.h' file with mkfont.c Bug: 76420958 Test: build and check the recovery menu on angler Change-Id: I6c108aa43a07bf4994115ef764275bd84df725e1
* | | | | [automerger skipped] Merge "Specify a default module for TARGET_RECOVERY_UI_LIB." am: 9010493189Tao Bao2018-03-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1da2937623 -s ours Change-Id: I1bebe4afbcc4e47860f13c82cea5bfc18e90ca7a
| * | | | Merge "Specify a default module for TARGET_RECOVERY_UI_LIB."Tao Bao2018-03-271-12/+20
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9010493189 Change-Id: Id44f823329e40a58416c2f02cc029295e66a2898
| | * | | Merge "Specify a default module for TARGET_RECOVERY_UI_LIB."Treehugger Robot2018-03-271-12/+20
| | |\ \ \ | | | |/ / | | |/| |
| | | * | Specify a default module for TARGET_RECOVERY_UI_LIB.Tao Bao2018-03-271-12/+20
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This aligns the logic between {default,wear,vr}_device.cpp. They all implement their default make_device() functions, but using different RecoveryUI variants. This CL creates a new module librecovery_ui_default that uses ScreenRecoveryUI, which serves as the default value for TARGET_RECOVERY_UI_LIB. Test: lunch aosp_{angler,marlin,dragon,walleye}-userdebug; `mmma -j bootable/recovery` respectively. Change-Id: I6755b09d96e4809bb1c17142895fe1cad95e5a02 Merged-In: I6755b09d96e4809bb1c17142895fe1cad95e5a02
* | | | Specify a default module for TARGET_RECOVERY_UI_LIB.Tao Bao2018-03-271-11/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This aligns the logic between {default,wear,vr}_device.cpp. They all implement their default make_device() functions, but using different RecoveryUI variants. This CL creates a new module librecovery_ui_default that uses ScreenRecoveryUI, which serves as the default value for TARGET_RECOVERY_UI_LIB. Test: lunch aosp_{angler,marlin,dragon,walleye}-userdebug; `mmma -j bootable/recovery` respectively. Change-Id: I6755b09d96e4809bb1c17142895fe1cad95e5a02 (cherry picked from commit 73fd036be8c7563423be0c3adbd4205c4f1bc2f5)
* | | | [automerger skipped]Merge "Factor out a menu class for screen ui" am: 549695ae65Tianjie Xu2018-03-240-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | am: baf619c21c -s ours Change-Id: Ifad3c7245cbf8770825f1ca3919ccd9169bf5f18
| * | | Merge "Factor out a menu class for screen ui"Tianjie Xu2018-03-247-185/+472
| |\| | | | | | | | | | | | | | | | | | | | | | am: 549695ae65 Change-Id: I926b85b2fecec7e7d21e30b5f21aa7996b641c7f
| | * | Merge "Factor out a menu class for screen ui"Tianjie Xu2018-03-247-185/+472
| | |\ \
| | | * | Factor out a menu class for screen uiTianjie Xu2018-03-247-185/+472
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also consolidate the duplicate codes to draw the menu in ScreenRecoveryUI and WearRecoveryUI. This helps us to support text icons as menu in the future. Bug: 74397117 Test: Check the menu under recovery on bullhead and a wear device. Change-Id: Iba9b646c3828670f0e78a7e07d1a94a44e96bb0b Merged-In: Iba9b646c3828670f0e78a7e07d1a94a44e96bb0b
* | | | Factor out a menu class for screen uiTianjie Xu2018-03-247-184/+471
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also consolidate the duplicate codes to draw the menu in ScreenRecoveryUI and WearRecoveryUI. This helps us to support text icons as menu in the future. Bug: 74397117 Test: Check the menu under recovery on bullhead and a wear device. Change-Id: Iba9b646c3828670f0e78a7e07d1a94a44e96bb0b (cherry picked from commit 2b3f80068ece1040ba7c923afe1e70b705535ad5)
* | | | Merge "update_verifier: Support verifying product partition." am: ab8d782bd4Tao Bao2018-03-240-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | am: 7ce215d3b9 Change-Id: Iee7aef0972893e6921842a1adebb5ab69411279f
| * | | Merge "update_verifier: Support verifying product partition."Tao Bao2018-03-242-14/+11
| |\| | | | | | | | | | | | | | | | | | | | | | am: ab8d782bd4 Change-Id: Ic82da883b35d70cdd3f28e299fd2bc6fa4a4108a
| | * | Merge "update_verifier: Support verifying product partition."Treehugger Robot2018-03-232-14/+11
| | |\ \
| | | * | update_verifier: Support verifying product partition.Tao Bao2018-03-232-14/+11
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have added the support for building /product partition in build system (the CL in [1]), where /product is an optional partition that contains system files. This CL adds the matching support if /product needs to be verified during A/B OTA (i.e. listed in care_map file). [1]: commit b7735d81054002961b681f4bdf296d4de2701135, https://android-review.googlesource.com/c/platform/build/+/598454 Bug: 63974895 Test: Run update_verifier test on walleye. Change-Id: Ia1c35e9583b8e66c98a4495b1f81a5ea7e65036f
* | | | update_verifier: Support verifying product partition.Tao Bao2018-03-242-14/+11
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | am: 454d8cb805 Change-Id: If2bed415b3e0683355656956c7d64633402faafa
| * | | update_verifier: Support verifying product partition.Tao Bao2018-03-232-14/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have added the support for building /product partition in build system (the CL in [1]), where /product is an optional partition that contains system files. This CL adds the matching support if /product needs to be verified during A/B OTA (i.e. listed in care_map file). [1]: commit b7735d81054002961b681f4bdf296d4de2701135, https://android-review.googlesource.com/c/platform/build/+/598454 Bug: 63974895 Test: Run update_verifier test on walleye. Change-Id: Ia1c35e9583b8e66c98a4495b1f81a5ea7e65036f (cherry picked from commit ec2e8c6c1ef3cbafa129ade95abca3203e062b5f)
* | | | Merge "f2fs: support f2fs by setting unmovable bit for package file" am: 28dcad554cJaegeuk Kim2018-03-221-4/+38
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | am: a0e2a1aa8b Change-Id: I970e5c063b180dd2fe263768da7835c2a6be5986
| * | | Merge "f2fs: support f2fs by setting unmovable bit for package file"Jaegeuk Kim2018-03-221-4/+38
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | am: 28dcad554c Change-Id: I384f340e4828489861f1c71d5a78501088e83794
| | * | Merge "f2fs: support f2fs by setting unmovable bit for package file"Jaegeuk Kim2018-03-221-4/+38
| | |\ \
| | | * | f2fs: support f2fs by setting unmovable bit for package fileJaegeuk Kim2018-03-221-4/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables to use uncrypt for f2fs update-on-reboot. It requires kernel patch named: "f2fs: add an ioctl to disable GC for specific file" If any operation fails during uncrypt, please delete package file as soon as possible, and create the file again to move forward. IOWs, don't leave the package file for a long time. Bug: 70309376 Bug: 30170612 Change-Id: I3b4233e7da756f107be35364521699deaf2e7139 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
* | | | | tests: Add ApplyPatchModesTest.PatchModeEmmcTargetWithBsdiffPatch test.Tao Bao2018-03-210-0/+0
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | am: d26f95287a -s ours Change-Id: Id1f3d58c9c042b7e553f9b6a6d3fc9b534ed699c
| * | | | tests: Add ApplyPatchModesTest.PatchModeEmmcTargetWithBsdiffPatch test.Tao Bao2018-03-201-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /system/bin/applypatch on device is expected to work with bsdiff based recovery-from-boot patch automatically. Adding a test to ensure that's always the case. Bug: 72731506 Test: Run recovery_component_test on marlin. Change-Id: I56283cd3ce7cf0215cc3bb3619b206fa01d552c4 Merged-In: I56283cd3ce7cf0215cc3bb3619b206fa01d552c4 (cherry picked from commit d612b23dfd58dbe5059ba53d8fd13cbb343b177c)
* | | | | Merge "tests: Split ApplyPatchModesTest.PatchModeEmmcTarget." am: e0b05ba553Tao Bao2018-03-201-45/+74
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | am: 40bfff9159 Change-Id: Ib00d162d764fbeb8df6839d560f40ff940522a65
| * | | | Merge "tests: Split ApplyPatchModesTest.PatchModeEmmcTarget."Tao Bao2018-03-201-45/+74
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | am: e0b05ba553 Change-Id: I364efba52bcd866f0ab1970a67df6c828c01e0f6
| | * | | Merge "tests: Split ApplyPatchModesTest.PatchModeEmmcTarget."Treehugger Robot2018-03-201-45/+74
| | |\ \ \ | | | |_|/ | | |/| |
| | | * | tests: Split ApplyPatchModesTest.PatchModeEmmcTarget.Tao Bao2018-03-201-45/+74
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have been seeing flakiness in continuous test, but unable to reproduce locally. Break it down into smaller units to narrow down the cause. Bug: 67849209 Test: Run recovery_component_test on marlin. Change-Id: Ia24b0c5d137bad27d502575fcd18d3ca9c9828b6
* | | | recovery: add libhidl-gen-utils depedencyYifan Hong2018-03-130-0/+0
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | am: 91b48f9161 -s ours Change-Id: I9382220ddfd68b9a43c8150eff1ebe18eee63267
| * | | recovery: add libhidl-gen-utils depedencyYifan Hong2018-03-132-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | introduced as a depedency to libvintf. Test: builds Bug: 73556059 Change-Id: Ia51ba81ef462879481dcacb80d9ea9ea35e8b0bb Merged-In: Ia51ba81ef462879481dcacb80d9ea9ea35e8b0bb
* | | | Merge "tests: Add ApplyPatchModesTest.PatchModeEmmcTargetWithBsdiffPatch test." am: 3537a2659eTao Bao2018-03-131-0/+51
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | am: 20d9c8ea5a Change-Id: I06046d1c6b4c85ba4040692759a39951c01fd557
| * | | Merge "tests: Add ApplyPatchModesTest.PatchModeEmmcTargetWithBsdiffPatch test."Tao Bao2018-03-131-0/+51
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | am: 3537a2659e Change-Id: I34a71d1a294bad5dd110be63a9d5a0cf746c8491
| | * | Merge "tests: Add ApplyPatchModesTest.PatchModeEmmcTargetWithBsdiffPatch test."Treehugger Robot2018-03-131-0/+51
| | |\ \
| | | * | tests: Add ApplyPatchModesTest.PatchModeEmmcTargetWithBsdiffPatch test.Tao Bao2018-03-131-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /system/bin/applypatch on device is expected to work with bsdiff based recovery-from-boot patch automatically. Adding a test to ensure that's always the case. Bug: 72731506 Test: Run recovery_component_test on marlin. Change-Id: I56283cd3ce7cf0215cc3bb3619b206fa01d552c4
* | | | | Merge "recovery: add libhidl-gen-utils depedency" am: fc39f3ffd7Yifan Hong2018-03-122-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: da5bb13507 Change-Id: I9811a65335a51006593a332f276deddf1bbf1864
| * | | | Merge "recovery: add libhidl-gen-utils depedency"Yifan Hong2018-03-122-0/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fc39f3ffd7 Change-Id: I059487aa0a6e1d569bb59f088670082987dc1fb6
| | * | | Merge "recovery: add libhidl-gen-utils depedency"Yifan Hong2018-03-122-0/+2
| | |\ \ \ | | | |/ / | | |/| |
| | | * | recovery: add libhidl-gen-utils depedencyYifan Hong2018-03-082-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | introduced as a depedency to libvintf. Test: builds Bug: 73556059 Change-Id: Ia51ba81ef462879481dcacb80d9ea9ea35e8b0bb
* | | | | Merge "Set the update locations to default in CacheLocation's constructor" am: 0acbdac82bTianjie Xu2018-03-090-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7120c687a5 Change-Id: Ibcc650288dbb1e55858147e3b30f7e924a2838e4
| * | | | Merge "Set the update locations to default in CacheLocation's constructor"Tianjie Xu2018-03-093-13/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0acbdac82b Change-Id: I2303237cc57446624b265f8fedad285105292a64
| | * | | Merge "Set the update locations to default in CacheLocation's constructor"Tianjie Xu2018-03-093-13/+5
| | |\ \ \
| | | * | | Set the update locations to default in CacheLocation's constructorTianjie Xu2018-03-083-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise the applypatch executable will fail to back up the source file to /cache when patching the recovery image. Bug: 74198354 Test: run applypatch from boot to recovery Change-Id: I6e5b9cd06d6ed0b26066b779a348437ecf984b92
* | | | | | Set the update locations to default in CacheLocation's constructorTianjie Xu2018-03-093-13/+5
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | am: 01daebbe68 Change-Id: Ie2a4ef490b2a51a038061ab1b3e9ee0302a45a82
| * | | | | Set the update locations to default in CacheLocation's constructorTianjie Xu2018-03-083-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise the applypatch executable will fail to back up the source file to /cache when patching the recovery image. Bug: 74198354 Test: run applypatch from boot to recovery (cherry picked from commit b4e3a370bf6fe2bbb6ad8e33d16ce3210595aaef) Change-Id: I37b7fd88d66ab49ef953d4b7dca22577bd1472e1
* | | | | | Merge "Export fuse_sideload.h for libfusesideload." am: ddf93c0055Tao Bao2018-03-075-13/+38
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | am: 9b0c133ff5 Change-Id: I9576800cae927de195baddef2141f7e1ef01082b
| * | | | | Merge "Export fuse_sideload.h for libfusesideload."Tao Bao2018-03-075-13/+38
| |\ \ \ \ \ | | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | am: ddf93c0055 Change-Id: Iab8ed18018028ea936d48096751b007816fca08f
| | * | | | Merge "Export fuse_sideload.h for libfusesideload."Treehugger Robot2018-03-075-13/+38
| | |\ \ \ \ | | | |_|_|/ | | |/| | |
| | | * | | Export fuse_sideload.h for libfusesideload.Tao Bao2018-03-075-13/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the module into a separate directory so that we can export only the expected header. With this change, minadbd no longer needs to include bootable/recovery. Test: mmma -j bootable/recovery Change-Id: I69b888ceb160a33a67d79c5bda208dc17ad6ed86
* | | | | | Merge "Drop the no-op Android.bp." am: 242d41b808Tao Bao2018-03-071-8/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2d62142fff Change-Id: I9b480f80355188f4904f5a907090e64d7cfa4a7d
| * | | | | Merge "Drop the no-op Android.bp."Tao Bao2018-03-071-8/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 242d41b808 Change-Id: Id6c89984548aa261c4063f2cd1e90c2bc66f2074
| | * | | | Merge "Drop the no-op Android.bp."Treehugger Robot2018-03-071-8/+0
| | |\ \ \ \ | | | |_|_|/ | | |/| | |
| | | * | | Drop the no-op Android.bp.Tao Bao2018-03-071-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "subdirs=" statement no longer has any effect (with the CL in [1] that's merged last November). All the Android.bp's will be picked up automatically. [1] commit 4f21237342e715cbbac6e409cd67e86a304483c4 in https://android-review.googlesource.com/c/platform/build/blueprint/+/530115. Test: mmma -j bootable/recovery Change-Id: Idd39af1fff907e8c1886f91eea0dd4a9e38a4079
* | | | | | Merge "minadbd: Move to Soong." am: 56160b2b03Tao Bao2018-03-073-56/+78
|\| | | | | | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | am: 734f76fc38 Change-Id: Ic7c86ba406ab051ddb0da32544290196e1d4d779
| * | | | Merge "minadbd: Move to Soong."Tao Bao2018-03-073-56/+78
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 56160b2b03 Change-Id: I805ccc2c72bb1c391b4a72498283b911e826a547
| | * | | Merge "minadbd: Move to Soong."Treehugger Robot2018-03-073-56/+78
| | |\ \ \ | | | |/ / | | |/| / | | | |/
| | | * minadbd: Move to Soong.Tao Bao2018-03-073-56/+78
| | |/ | | | | | | | | | | | | Test: mmma -j bootable/recovery Change-Id: Ic4cd676a842f0e8c4735cc6731fcbf13b844510c
* | | Merge "Add a singleton CacheLocation to replace the hard coded locations" am: 47cd789eed am: a72f93d6daTianjie Xu2018-03-0111-27/+139
|\ \ \ | | | | | | | | | | | | | | | | | | | | am: 6c87845cfb Change-Id: If8cf8b4f86ceae41d19ecbcf8e8fc62ef17eb2ac
| * | | Merge "Add a singleton CacheLocation to replace the hard coded locations" am: 47cd789eedTianjie Xu2018-03-0111-27/+139
| |\| | | | | | | | | | | | | | | | | | | | | | am: a72f93d6da Change-Id: Ie505267652e83735f60e8acc93da22e2ac1abe69
| | * | Merge "Add a singleton CacheLocation to replace the hard coded locations"Tianjie Xu2018-03-0111-27/+139
| | |\| | | | | | | | | | | | | | | | | | | | | am: 47cd789eed Change-Id: I11c265d3adebc338e0603ed00c7d1aaaffae0253
| | | * Merge "Add a singleton CacheLocation to replace the hard coded locations"Tianjie Xu2018-03-0111-27/+139
| | | |\
| | | | * Add a singleton CacheLocation to replace the hard coded locationsTianjie Xu2018-02-2811-27/+139
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This class allows us to set the following locations dynamically: cache_temp_source, last_command_file, stash_directory_base. In the updater's main function, we reset the values of these variables to their default locations in /cache; while we can set them to temp files in unit tests or host simulation. Test: unit tests pass Change-Id: I528652650caa41373617ab055d41b1f1a4ec0f87
* | | | Merge "Fix the behavior of undefined commands in BlockImageVerify" am: ac4818d6af am: 7b9a92c1e2Tianjie Xu2018-02-281-2/+4
|\| | | | | | | | | | | | | | | | | | | | | | | am: e0f7c39c4f Change-Id: I33b49c01cfaa0e1ec8bfc7f92ffe5c7d034c3bf4
| * | | Merge "Fix the behavior of undefined commands in BlockImageVerify" am: ac4818d6afTianjie Xu2018-02-281-2/+4
| |\| | | | | | | | | | | | | | | | | | | | | | am: 7b9a92c1e2 Change-Id: I7891f4e907cc73618b99e2102eb8844771554b1f
| | * | Merge "Fix the behavior of undefined commands in BlockImageVerify"Tianjie Xu2018-02-281-2/+4
| | |\| | | | | | | | | | | | | | | | | | | | | am: ac4818d6af Change-Id: I5e42bcafca4c42e6c30cef082c03ad2b8d18ac6c
| | | * Merge "Fix the behavior of undefined commands in BlockImageVerify"Tianjie Xu2018-02-281-2/+4
| | | |\
| | | | * Fix the behavior of undefined commands in BlockImageVerifyTianjie Xu2018-02-281-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In BlockImageVerify some commands are undefined, e.g. "erase", "new", "zero". And we should not error out if the corresponding function pointer of these commands is null; otherwise we will fail the verification. The old code is: if (cmd->f != nullptr && cmd->f(params) == -1) return false; In the last_command_file change the logic was wrongly modified to if (cmd->f == nullptr) return false; ... if (cmd->f(params) == -1) return false; Test: sideload an incremental OTA twice on bullhead Change-Id: I2561c365badb850da0e416629ccd61f0df7da5d7
* | | | | Merge "Remove the assumption of target chunk size in imgdiff" am: cc3446a7f7 am: a306d7bc55Tianjie Xu2018-02-233-20/+131
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 98da1357b4 Change-Id: Ieb024183866d702c72a3c1d3a4636500ebfc0b0a
| * | | | Merge "Remove the assumption of target chunk size in imgdiff" am: cc3446a7f7Tianjie Xu2018-02-233-20/+131
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a306d7bc55 Change-Id: Ieb2fe6cf9f8bf71a5018809f16510c4ef05420d4
| | * | | Merge "Remove the assumption of target chunk size in imgdiff"Tianjie Xu2018-02-233-20/+131
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: cc3446a7f7 Change-Id: Ic5d50e6c54dfd352950925d01448020669735056
| | | * | Merge "Remove the assumption of target chunk size in imgdiff"Treehugger Robot2018-02-233-20/+131
| | | |\ \
| | | | * | Remove the assumption of target chunk size in imgdiffTianjie Xu2018-02-233-20/+131
| | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the split mode of imgdiff, we used to assume that the size of a split target chunk is always greater than the blocksize i.e. 4096. This may lead to the following assertion failure: I0221 04:57:33.451323 818464 common.py:205 imgdiff F 02-21 04:57:33 821203 821203 imgdiff.cpp:999] Check failed: tgt_size >= BLOCK_SIZE (tgt_size=476, BLOCK_SIZE=4096) This CL removes the assumption and handles the edge cases. Test: generate and verify the incremental update for TFs in the bug; unit test passes Bug: 73757557 Bug: 73711365 Change-Id: Iadbb4ee658995f5856cd488f3793980881a59620
* | | | | Merge "Replace vfork() with fork()." am: 21b381622d am: 44f2cb2d67George Burgess IV2018-02-231-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c298833b1c Change-Id: Ia72697181a9132713b216b6f7c0b7116e09d62fd
| * | | | Merge "Replace vfork() with fork()." am: 21b381622dGeorge Burgess IV2018-02-231-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 44f2cb2d67 Change-Id: Ie67e2e0a39c781e27916294f501fcc4ef8fbd38f
| | * | | Merge "Replace vfork() with fork()."George Burgess IV2018-02-231-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 21b381622d Change-Id: Ia06201cedfcca6358f6f65face5325a4cf528f72
| | | * | Merge "Replace vfork() with fork()."Treehugger Robot2018-02-231-1/+1
| | | |\ \ | | | | |/ | | | |/|
| | | | * Replace vfork() with fork().George Burgess IV2018-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The static analyzer complained about the function calls we were doing here to vector::data() and vector::operator[]: bootable/recovery/roots.cpp:193:11: warning: This function call is prohibited after a successful vfork Since it's not clear that vfork() is needed here, just use fork() instead. Bug: None Test: Reran the static analyzer with only this patch applied. Bug disappeared Change-Id: I580f8243a21899f1e1678c8aee6948dfa7f69a1d
* | | | | Import translations. DO NOT MERGEBill Yi2018-02-222-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I60c4e4ebce0bf3abcc2b0b5ab90b0fc5e9406c34 Auto-generated-cl: translation import
* | | | | Merge "Set LOCAL_SDK_VERSION where possible." am: bf52b7e00b am: cd06b1696dhansson2018-02-211-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b1ac1b8494 Change-Id: Id51803759530a630ecfb287126c5e366938ad09f
| * | | | Merge "Set LOCAL_SDK_VERSION where possible." am: bf52b7e00bhansson2018-02-211-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cd06b1696d Change-Id: I78bbe2e58b6d7d442984d3533dedbae705cb156f
| | * | | Merge "Set LOCAL_SDK_VERSION where possible."hansson2018-02-211-0/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: bf52b7e00b Change-Id: I91a73e01b2a9b13923a551957da98a2eb9363dc9
| | | * | Merge "Set LOCAL_SDK_VERSION where possible."hansson2018-02-211-0/+1
| | | |\ \
| | | | * | Set LOCAL_SDK_VERSION where possible.Anton Hansson2018-02-211-0/+1
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change sets LOCAL_SDK_VERSION for all packages where this is possible without breaking the build, and LOCAL_PRIVATE_PLATFORM_APIS := true otherwise. Setting one of these two will be made required soon, and this is a change in preparation for that. Not setting LOCAL_SDK_VERSION makes the app implicitly depend on the bootclasspath, which is often not required. This change effectively makes depending on private apis opt-in rather than opt-out. Test: make relevant packages Bug: 73535841 Change-Id: I82fee834c5d92e699e9571933faded11c6d4596e
* | | | | Merge "Disable building libapplypatch on mac" am: c1e1d7e711 am: 2754916f01Tianjie Xu2018-02-182-0/+12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bda2f67775 Change-Id: I378aa4bb2a7d5cd7765feb0fc99f92f1b51a377b
| * | | | Merge "Disable building libapplypatch on mac" am: c1e1d7e711Tianjie Xu2018-02-182-0/+12
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2754916f01 Change-Id: Ibfb57ca66bb826b2710db4572a2d3d730a7db0e5
| | * | | Merge "Disable building libapplypatch on mac"Tianjie Xu2018-02-182-0/+12
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: c1e1d7e711 Change-Id: I333af93c0dc7cf8b2a175f6c42c5321f442bd115
| | | * | Merge "Disable building libapplypatch on mac"Treehugger Robot2018-02-182-0/+12
| | | |\ \ | | | | |/ | | | |/|
| | | | * Disable building libapplypatch on macTianjie Xu2018-02-182-0/+12
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sdk_mac on build server fails with the error: bootable/recovery/applypatch/freecache.cpp:23:10: fatal error: 'sys/statfs.h' file not found So we will disable libapplypatch on mac. Test: the library still builds on linux; and check the other host targets in the same cl. Change-Id: Ie4a30708726e51c810f7ad7f1085d38154076cca
* | | | Merge "Skip the cache size check on host" am: 31bcd7c002 am: fb8496e3aaTianjie Xu2018-02-174-3/+12
|\| | | | | | | | | | | | | | | | | | | | | | | am: 021d8fe0a3 Change-Id: I6414283e319e124595ef2b8be1428f7952c8fdeb
| * | | Merge "Skip the cache size check on host" am: 31bcd7c002Tianjie Xu2018-02-174-3/+12
| |\| | | | | | | | | | | | | | | | | | | | | | am: fb8496e3aa Change-Id: If57297252bfe3ccf9c45028747a8fa8760052c48
| | * | Merge "Skip the cache size check on host"Tianjie Xu2018-02-174-3/+12
| | |\| | | | | | | | | | | | | | | | | | | | | am: 31bcd7c002 Change-Id: If265166022cc36142e4cc6061f1165e9814e9482
| | | * Merge "Skip the cache size check on host"Tianjie Xu2018-02-174-3/+12
| | | |\
| | | | * Skip the cache size check on hostTianjie Xu2018-02-134-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When running the update simulation, we choose to skip the cache size check for now due to the lack of "/cache" on host. And in later cls we can implement a cache size estimator to make the check more constrained. Also build the host version of support libraries. Test: unit test pass Change-Id: I3ed93c857fd02f7b62f5baba9130f75c3236e717
* | | | | Merge "recovery: Porting screensave mode for new platform." am: 15e376d792 am: 470b4fef7fTao Bao2018-02-162-6/+19
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 78997a2af5 Change-Id: Ife60145d34a88c8e474931966f456804e39a317c
| * | | | Merge "recovery: Porting screensave mode for new platform." am: 15e376d792Tao Bao2018-02-162-6/+19
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 470b4fef7f Change-Id: I30b84b2cd5071842493f5900a3485cd4f5bc9769
| | * | | Merge "recovery: Porting screensave mode for new platform."Tao Bao2018-02-162-6/+19
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 15e376d792 Change-Id: I2537ea9b3b4a5560c79226450fcf236ec0935e9e
| | | * | Merge "recovery: Porting screensave mode for new platform."Tao Bao2018-02-162-6/+19
| | | |\ \
| | | | * | recovery: Porting screensave mode for new platform.katao2017-12-142-6/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On new board platform the brightness path of sys/class/leds/lcd-backlight is deprecated,instead of /sys/class/backlight/panel0-backlight/. Test: reboot into recovery on sdm845. Change-Id: Idf0027ab888f9f982a8eef7de230ce3635e7c300 Signed-off-by: katao <katao@xiaomi.com>
* | | | | | Merge "Reorder the functions in updater/install.cpp" am: 9818283da7 am: 576d2754eeTianjie Xu2018-02-131-239/+244
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f6cd6b9e85 Change-Id: If9af6bf5fd3cd21e8efcf02fbf6c036ece882713
| * | | | | Merge "Reorder the functions in updater/install.cpp" am: 9818283da7Tianjie Xu2018-02-131-239/+244
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 576d2754ee Change-Id: Iafbe590ed553d3be8b3875b797aeffc88ae67605
| | * | | | Merge "Reorder the functions in updater/install.cpp"Tianjie Xu2018-02-131-239/+244
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9818283da7 Change-Id: I3451ff1641495a7a676d5ea3bea81ce38815fc2f
| | | * | | Merge "Reorder the functions in updater/install.cpp"Tianjie Xu2018-02-131-239/+244
| | | |\ \ \ | | | | | |/ | | | | |/|
| | | | * | Reorder the functions in updater/install.cppTianjie Xu2018-02-121-239/+244
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no logical change to the file; merely the function definition reorder and some comestic change to make the future review easier. Test: mma Change-Id: I7ffe952f8c78e840f10aa6bfad0c4b5a58e29896
* | | | | Merge "Log the last command to cache" am: 6a3646fc03 am: 6d78bb5236Tianjie Xu2018-02-083-9/+392
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c052f787a9 Change-Id: If58f18891d42d54d4a0def9b2b640b76bddd0bef
| * | | | Merge "Log the last command to cache" am: 6a3646fc03Tianjie Xu2018-02-083-9/+392
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6d78bb5236 Change-Id: Ifd886d148fec5d5b17bb29d65a8c83f4cfbc8c32
| | * | | Merge "Log the last command to cache"Tianjie Xu2018-02-083-9/+392
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6a3646fc03 Change-Id: I4e0e399b6140084cd681c5aba746d7b9dbe069d8
| | | * | Merge "Log the last command to cache"Tianjie Xu2018-02-083-9/+392
| | | |\ \
| | | | * | Log the last command to cacheTianjie Xu2018-02-073-9/+392
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When performing an update, save the index and cmdline of the current command into the last command file if this command writes to the stash either explicitly of implicitly. This mitigates the overhead to update the last command file for every command. I ran a simple test on angler and the time to update 1000 times is ~2.3 seconds. Upon resuming an update, read the saved index first; then 1. In verification mode, check if all commands before the saved index have already produced the expected target blocks. If not, delete the last command file so that we will later resume the update from the start of the transfer list. 2. In update mode, skip all commands before the saved index. Therefore, we can avoid deleting stashes with duplicate id unintentionally; and also speed up the update. If an update succeeds or is unresumable, delete the last command file. Bug: 69858743 Test: Unittest passed, apply a failed update with invalid cmd on angler and check the last_command content, apply a failed update with invalid source hash and last_command is deleted. Change-Id: Ib60ba1e3c6d111d9f33097759b17dbcef97a37bf
* | | | | | Merge "Document instructions for using adb under recovery." am: 7ee7e27400 am: 41186e13b7Tao Bao2018-02-081-0/+91
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1e7d0922c7 Change-Id: I3ee3fceb49b63b68d9aca1581c9e5fdd9233f532
| * | | | | Merge "Document instructions for using adb under recovery." am: 7ee7e27400Tao Bao2018-02-081-0/+91
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 41186e13b7 Change-Id: I400e8c56060cf52718603fff80423ec5f1780088
| | * | | | Merge "Document instructions for using adb under recovery."Tao Bao2018-02-081-0/+91
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7ee7e27400 Change-Id: Ia63a213baf4c1886379003220580e42cdc0f19c2
| | | * | | Merge "Document instructions for using adb under recovery."Treehugger Robot2018-02-081-0/+91
| | | |\ \ \ | | | | |/ / | | | |/| |
| | | | * | Document instructions for using adb under recovery.Tao Bao2018-02-081-0/+91
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: 72740736 Test: N/A Change-Id: Ifc96ed785fd80501bc6c276cb649c8cc1f05be0e
* | | | | Merge "Avoid overwrite of the error message in AbortFn" am: bded087f7d am: 20af3722d8Tianjie Xu2018-01-303-23/+26
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 39b6c7fcfe Change-Id: I9545b574641fb0a9eef83142cb99a71c3ddd8902
| * | | | Merge "Avoid overwrite of the error message in AbortFn" am: bded087f7dTianjie Xu2018-01-303-23/+26
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 20af3722d8 Change-Id: I61b6206e807d4a10091e05e8c4b4de0c525b7d42
| | * | | Merge "Avoid overwrite of the error message in AbortFn"Tianjie Xu2018-01-303-23/+26
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: bded087f7d Change-Id: I0b000ba5d8855c38e4f4b301c68c4134c0f2287d
| | | * | Merge "Avoid overwrite of the error message in AbortFn"Tianjie Xu2018-01-303-23/+26
| | | |\ \
| | | | * | Avoid overwrite of the error message in AbortFnTianjie Xu2018-01-293-23/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The AbortFn() used to overwrite the error message, hiding the real failure reported in ErrorAbort(). And we will miss the failure in the script patterns like 'blockimageupdate() || abort()' We will ensure there's one line break at the end of ErrorAbort's error message; and append to the existing error message when calling abort(). Test: Message from ErrorAbort shows up in the log Change-Id: I3aebd06629c5129330250c7fe5e8cdead2ae85bc
* | | | | | Merge "Add update_channel field to bootloader_message_ab." am: 63eb1a4444 am: 7441ee7affSen Jiang2018-01-261-1/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cbbf671919 Change-Id: Ibd6e89736a84777088a7df4a548e11a46b3cd586
| * | | | | Merge "Add update_channel field to bootloader_message_ab." am: 63eb1a4444Sen Jiang2018-01-261-1/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7441ee7aff Change-Id: I390bba7bd9a76e732873f6abc03a419ec8b2f2d6
| | * | | | Merge "Add update_channel field to bootloader_message_ab."Sen Jiang2018-01-261-1/+5
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 63eb1a4444 Change-Id: Ie12275c2694cabcf5b934f0673ecb228d6c8c3e6
| | | * | | Merge "Add update_channel field to bootloader_message_ab."Sen Jiang2018-01-261-1/+5
| | | |\ \ \ | | | | |/ / | | | |/| |
| | | | * | Add update_channel field to bootloader_message_ab.Sen Jiang2018-01-231-1/+5
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The update_channel field is used to store the Omaha update channel if update_engine is compiled with Omaha support. We need it to be in misc to persist through factory reset. Bug: 72332119 Test: mma Change-Id: Ied4fecc6e78cc69d33a36ba4d101d675100f9d82
* | | | | Statically link with libhealthstoragedefaultHridya Valsaraju2018-01-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is to add empty implementations of Health HAL methods to report storage info. Bug: 68388678 Test: vts-tradefed run vts -m VtsHalHealthV2_0 Change-Id: I4f093903f485519e16f39384f5c96fcd031438ba
* | | | | Merge "StartsWith allows a std::string prefix now." am: 80ccac2fff am: bd870377b4Elliott Hughes2017-12-212-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 92be1378f9 Change-Id: Idc53c3825af7ad5193f496576d289877a51edd29
| * | | | Merge "StartsWith allows a std::string prefix now." am: 80ccac2fffElliott Hughes2017-12-212-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bd870377b4 Change-Id: I720e3ba91146cbbf783eb3ef4b8347f16c52ec05
| | * | | Merge "StartsWith allows a std::string prefix now."Elliott Hughes2017-12-212-2/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 80ccac2fff Change-Id: Ife18e431247a479cb038f21f92ad0b687a9509b8
| | | * | Merge "StartsWith allows a std::string prefix now."Treehugger Robot2017-12-212-2/+2
| | | |\ \ | | | | |/ | | | |/|
| | | | * StartsWith allows a std::string prefix now.Elliott Hughes2017-12-202-2/+2
| | | |/ | | | | | | | | | | | | | | | | | | | | Bug: N/A Test: builds Change-Id: I5183ec8133f5dc9a81a438223c6d3d2ea11ef0ec
* | | | Merge "Let update_verifier work on non-AB update devices" am: 3fe230a1e4 am: 4b7ed5a71bIsaac Chen2017-12-141-0/+9
|\| | | | | | | | | | | | | | | | | | | | | | | am: 50a4171030 Change-Id: If392f57e2c2e11294e6589c00a535c49a35bb534
| * | | Merge "Let update_verifier work on non-AB update devices" am: 3fe230a1e4Isaac Chen2017-12-141-0/+9
| |\| | | | | | | | | | | | | | | | | | | | | | am: 4b7ed5a71b Change-Id: I3d1b5749f361ab3ae422830e2c90532cfea8ec17
| | * | Merge "Let update_verifier work on non-AB update devices"Isaac Chen2017-12-141-0/+9
| | |\| | | | | | | | | | | | | | | | | | | | | am: 3fe230a1e4 Change-Id: Ie50a5e8e195f545470ffa107c61dd7d3da60c971
| | | * Merge "Let update_verifier work on non-AB update devices"Isaac Chen2017-12-141-0/+9
| | | |\
| | | | * Let update_verifier work on non-AB update devicesIsaac Chen2017-12-141-0/+9
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make update_verifier check if it runs on A/B update devices at the beginning, and quit immediately if it doesn't, instead of re-boot. Bug: 70541023 Test: On aosp/master: $ lunch aosp_x86_64-userdebug; m -j # boot to home screen # On goog/master: $ lunch aosp_walleye-userdebug; m -j # boot to home screen Change-Id: Ib71a3a3b272cfa5dd0b479eaa067eedaec8fde7d
* | | | Merge "applypatch: Remove the 'st' field from FileContents." am: 9203e77e7d am: 710712f235Tao Bao2017-12-092-17/+3
|\| | | | | | | | | | | | | | | | | | | | | | | am: a002abfacf Change-Id: I3ee175ff08cdcfbb1930039a14bad8d13c336410
| * | | Merge "applypatch: Remove the 'st' field from FileContents." am: 9203e77e7dTao Bao2017-12-092-17/+3
| |\| | | | | | | | | | | | | | | | | | | | | | am: 710712f235 Change-Id: I7c51478f551994a5f8914757890a216b663901da
| | * | Merge "applypatch: Remove the 'st' field from FileContents."Tao Bao2017-12-092-17/+3
| | |\| | | | | | | | | | | | | | | | | | | | | am: 9203e77e7d Change-Id: I76e706188be845bb3b58e78501aa0d9cfd748e5a
| | | * Merge "applypatch: Remove the 'st' field from FileContents."Tao Bao2017-12-092-17/+3
| | | |\
| | | | * applypatch: Remove the 'st' field from FileContents.Tao Bao2017-12-072-17/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It used to keep track of the stat(2) info (e.g. st_mode/st_gid/st_uid) while patching a file in file-based OTA. Test: Build and use the new updater to apply an update on bullhead. Change-Id: Ibf8f0f4b14298a9489bf24a2678bb279c5d9c8f3
* | | | | Merge "add sload.f2fs for recovery format" am: 4eaf7a157d am: 3d4359d3aeJaegeuk Kim2017-12-083-7/+23
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: adb8f660a2 Change-Id: I551f6fe2e040720ea02cbdacfc73bc3aaa5b2e3d
| * | | | Merge "add sload.f2fs for recovery format" am: 4eaf7a157dJaegeuk Kim2017-12-083-7/+23
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3d4359d3ae Change-Id: I4098c81a3c5cef921463c6b7512113961034f81b
| | * | | Merge "add sload.f2fs for recovery format"Jaegeuk Kim2017-12-083-7/+23
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4eaf7a157d Change-Id: I44f158c95501e37088dbd05d006614bb2799d491
| | | * | Merge "add sload.f2fs for recovery format"Jaegeuk Kim2017-12-083-7/+23
| | | |\ \ | | | | |/ | | | |/|
| | | | * add sload.f2fs for recovery formatJaegeuk Kim2017-12-053-7/+23
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iddfe54b2b36f2d531925cbe61c98dbfb4903c0d1 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
* | | | | Merge "Add a /bin symlink for consistency." am: ed369101ba am: 13b751ed84Elliott Hughes2017-12-081-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 669f9b0cbf Change-Id: I5587974efae8d33067896becf687f59468a570df
| * | | | Merge "Add a /bin symlink for consistency." am: ed369101baElliott Hughes2017-12-071-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 13b751ed84 Change-Id: I144d599f1ba418079675f9a8d5a0812912228819
| | * | | Merge "Add a /bin symlink for consistency."Elliott Hughes2017-12-071-0/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: ed369101ba Change-Id: Iac7a3234333f46aaba83b47f66ba73074be86fe6
| | | * | Merge "Add a /bin symlink for consistency."Elliott Hughes2017-12-071-0/+1
| | |/| |
| | | * | Add a /bin symlink for consistency.Elliott Hughes2017-12-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/63142920 Test: builds Change-Id: I1f96935daca4d79f753e172067e07f8e27ea819e
* | | | | Merge "Detect interrupted update due to power off" am: d8fadfb606 am: d9caba2bbeTianjie Xu2017-12-012-269/+302
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: db20e41b0c Change-Id: Ibd568f8881e3c9dd16c1567857d49badf9d4cdc2
| * | | | Merge "Detect interrupted update due to power off" am: d8fadfb606Tianjie Xu2017-12-012-269/+302
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d9caba2bbe Change-Id: I1f15871dde9525441f292bd1f546aaad0de158e5
| | * | | Merge "Detect interrupted update due to power off"Tianjie Xu2017-12-012-269/+302
| | |\ \ \ | | | | |/ | | | |/| | | | | | | | | | | | | | | | am: d8fadfb606 Change-Id: I2295430f7153711fb4e23d3e6f7af7c65efb7c54
| | | * | Merge "Detect interrupted update due to power off"Treehugger Robot2017-12-012-269/+302
| | | |\ \ | | | | |/ | | | |/|
| | | | * Detect interrupted update due to power offTianjie Xu2017-12-012-269/+302
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An interrupted update may stash extra blocks in /cache, leading to a failure when checking the cache size. We can save the incremented retry_count in the BCB before installing the update; and distinguish a fresh update from an interrupted one this way. Bug: 68679601 Test: An interrupted update reapplies successfully. Change-Id: Ic1403e1fd25a937c91ef34c14b92a0f6c8f1c0f4
* | | | Merge "is_battery_ok use health 2.0 HAL"Yifan Hong2017-11-202-53/+84
|\ \ \ \
| * | | | is_battery_ok use health 2.0 HALYifan Hong2017-11-142-53/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: call is_battery_ok in graphics test, and test manually Bug: 69268160 Bug: 63702641 Change-Id: Ifcf4d2e2cb459689c11fc5d1b880bb053aaae8ae
* | | | | Merge "root: Fix an issue when volume length from fs_mgr is negative." am: 5ce9fe355c am: 25e27f48dbJin Qian2017-11-201-4/+7
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | am: 7a1abb9279 Change-Id: I6836e9294639fd99f65541960f33234e30262e2e
| * | | | Merge "root: Fix an issue when volume length from fs_mgr is negative." am: 5ce9fe355cJin Qian2017-11-201-4/+7
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | am: 25e27f48db Change-Id: I1a9171a1f31384915c7a3b72785265b85a697979
| | * | | Merge "root: Fix an issue when volume length from fs_mgr is negative."Jin Qian2017-11-201-4/+7
| | |\ \ \ | | | | |/ | | | |/| | | | | | | | | | | | | | | | am: 5ce9fe355c Change-Id: I4ff7bccb0dd2fecf309f3a3d23379d2467d64aea
| | | * | Merge "root: Fix an issue when volume length from fs_mgr is negative."Treehugger Robot2017-11-201-4/+7
| | | |\ \
| | | | * | root: Fix an issue when volume length from fs_mgr is negative.Jin Qian2017-11-191-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fs_mgr passes negative length as offset for crypt_footer. We need to compute the actual device size for this case in addition to when length is zero. Bug: 68949069 Change-Id: I803955dd9591ad7752cee0dea9b683be8f4fd4ba
* | | | | | Merge "Add libbrotli as a dependency when building applypatch binary" am: c7069cc922 am: 086202e30dTianjie Xu2017-11-171-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2a8e4095cb Change-Id: I40e952051126d2df4530a11c4aee434142a55736
| * | | | | Merge "Add libbrotli as a dependency when building applypatch binary" am: c7069cc922Tianjie Xu2017-11-171-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 086202e30d Change-Id: I7d6725aec1f22e006b1945c0068c61352785c509
| | * | | | Merge "Add libbrotli as a dependency when building applypatch binary"Tianjie Xu2017-11-171-0/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c7069cc922 Change-Id: I3379f84048c1b4c4858da537d045a1012c358b8b
| | | * | | Merge "Add libbrotli as a dependency when building applypatch binary"Tianjie Xu2017-11-171-0/+1
| | | |\ \ \
| | | | * | | Add libbrotli as a dependency when building applypatch binaryTianjie Xu2017-11-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libbrotli is now used in libbspatch. Bug: 34220646 Test: mma Change-Id: I8d3527141539ffdae112d9042355fd705caeb250
* | | | | | | Merge "Switch imgdiff to libbase logging" am: fd9c25e636 am: 47c8c290ecTianjie Xu2017-11-172-97/+109
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 365c98fd1d Change-Id: I88eca49e6004615f9398c42b6dfc79f8dc53085c
| * | | | | | Merge "Switch imgdiff to libbase logging" am: fd9c25e636Tianjie Xu2017-11-172-97/+109
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 47c8c290ec Change-Id: I8712d65b019e294104bcbc8497a05fa6cc49024a
| | * | | | | Merge "Switch imgdiff to libbase logging"Tianjie Xu2017-11-172-97/+109
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fd9c25e636 Change-Id: Iaf36238df9567f9e0e08abec2581e55d4692068b
| | | * | | | Merge "Switch imgdiff to libbase logging"Tianjie Xu2017-11-172-97/+109
| | | |\ \ \ \
| | | | * | | | Switch imgdiff to libbase loggingTianjie Xu2017-11-162-97/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add a verbose option. And we won't print messages of 'info' severity unless '-v' is present. Test: run imgdiff and check the logs. Change-Id: I1b90874baea8e72e2a2323a0b63bc5d35e653e6b
* | | | | | | | Merge "minadbd: Remove two warning options." am: 7bd61f0cc0 am: 345f350540Tao Bao2017-11-161-3/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 97a4750098 Change-Id: I5b8199d02212b0b2283e647effa3b1829704e27c
| * | | | | | | Merge "minadbd: Remove two warning options." am: 7bd61f0cc0Tao Bao2017-11-161-3/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 345f350540 Change-Id: I95cf7f4af44c8abc2ced807e0a3a2fb063448fc1
| | * | | | | | Merge "minadbd: Remove two warning options."Tao Bao2017-11-161-3/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7bd61f0cc0 Change-Id: Id5e986ecd00cb2b953d761957a987a1b0c5ebf20
| | | * | | | | Merge "minadbd: Remove two warning options."Tao Bao2017-11-151-3/+1
| | | |\ \ \ \ \ | | | | |/ / / / | | | |/| | | |
| | | | * | | | minadbd: Remove two warning options.Tao Bao2017-11-151-3/+1
| | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '-Wimplicit-function-declaration' is not needed (it's for C89) and already enabled by -Wall. For '-Wno-missing-field-initializers', don't see any existing case that requires the flag. Test: `mmma -j bootable/recovery` on aosp_{bullhead,marlin}-userdebug. Change-Id: I46604723087ed9a7747f6cae31a95fc0074c6758
* | | | | | / Merge "recovery: format f2fs with encrypt/quota" am: d4b6e25fdd am: c418bfeae2Jaegeuk Kim2017-11-142-5/+13
|\| | | | | | | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | am: e9e7fcf327 Change-Id: I8d2d42d66f4b96ea281b5ca7a3092273a12f7b7b
| * | | | | Merge "recovery: format f2fs with encrypt/quota" am: d4b6e25fddJaegeuk Kim2017-11-142-5/+13
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c418bfeae2 Change-Id: I2a040a11a71868915658958dbecf4bdd23c25e0c
| | * | | | Merge "recovery: format f2fs with encrypt/quota"Jaegeuk Kim2017-11-142-5/+13
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d4b6e25fdd Change-Id: I1d17a488d2eea4d858fa31e7a00d694e20b011b3
| | | * | | Merge "recovery: format f2fs with encrypt/quota"Treehugger Robot2017-11-142-5/+13
| | | |\ \ \
| | | | * | | recovery: format f2fs with encrypt/quotaJaegeuk Kim2017-11-132-5/+13
| | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ia393b7b78b45f09964449ec0e255aa26bb3b8ddf Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
* | | | | | Merge "applypatch: Change the patch parameter to const Value& in Apply{BSDiff,Image}Patch." am: de07371b03 am: e2296b7a25Tao Bao2017-11-115-47/+49
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: efcd98da32 Change-Id: I47c49255a65452c4842d5cffd382689a52129dcb
| * | | | | Merge "applypatch: Change the patch parameter to const Value& in Apply{BSDiff,Image}Patch." am: de07371b03Tao Bao2017-11-115-47/+49
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e2296b7a25 Change-Id: I7e1a7bd12c1cc3a03b7947b22a947eee16dacbff
| | * | | | Merge "applypatch: Change the patch parameter to const Value& in Apply{BSDiff,Image}Patch."Tao Bao2017-11-115-47/+49
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: de07371b03 Change-Id: I2261486420f8e55cfbdd61f130be24f6e4deebf4
| | | * | | Merge "applypatch: Change the patch parameter to const Value& in Apply{BSDiff,Image}Patch."Tao Bao2017-11-115-47/+49
| | | |\ \ \
| | | | * | | applypatch: Change the patch parameter to const Value& in Apply{BSDiff,Image}Patch.Tao Bao2017-11-105-47/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It used to be "const Value*", but nullptr won't be a valid input. Test: recovery_host_test; recovery_component_test Change-Id: I904b5689ac3e64504088bf0544c9fb5d45a52243
* | | | | | | Merge "Include bspatch.h from bsdiff/" am: 29cd3215ec am: e73bca40dcAlex Deymo2017-11-101-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0347049768 Change-Id: I67d921d4067ae55eed562e5364a5ad80594a6a21
| * | | | | | Merge "Include bspatch.h from bsdiff/" am: 29cd3215ecAlex Deymo2017-11-101-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e73bca40dc Change-Id: I22144a647f408bcf8a403db07937ce0793e531a4
| | * | | | | Merge "Include bspatch.h from bsdiff/"Alex Deymo2017-11-101-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 29cd3215ec Change-Id: Ib53e96bee59300c4f94bf5de1801d4482a5abe3c
| | | * | | | Merge "Include bspatch.h from bsdiff/"Alex Deymo2017-11-101-1/+1
| | | |\ \ \ \ | | | | |/ / / | | | |/| | |
| | | | * | | Include bspatch.h from bsdiff/Alex Deymo2017-11-081-1/+1
| | | | | |/ | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function ApplyBSDiffPatch() defined in bspatch.cpp is declared in applypatch.h, but it includes "bspatch.h" from the bsdiff/ project, which is at least confusing. There is no "bspatch.h" in this repo, so the include actually reffers to the one in bsdiff. This patch uses the "bsdiff/bspatch.h" form instead to avoid confusion. Bug: None Test: It builds. Change-Id: I6b6ffd6725b2b34ff644aed93683f69779103661
* | | | | | Merge "uncrypt: Move to Soong." am: 992bccfef4 am: e6250057b8Tao Bao2017-11-104-32/+40
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ff0143d09e Change-Id: I1692679a02c12b81533598a44d87bdcaabdd24ae
| * | | | | Merge "uncrypt: Move to Soong." am: 992bccfef4Tao Bao2017-11-104-32/+40
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e6250057b8 Change-Id: I360688f91c83bf2db3634ebc0f20ea2876980c03
| | * | | | Merge "uncrypt: Move to Soong."Tao Bao2017-11-104-32/+40
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 992bccfef4 Change-Id: If87cf6f7e32eb8089ec72207222eb5ec0b22adac
| | | * | | Merge "uncrypt: Move to Soong."Tao Bao2017-11-104-32/+40
| | | |\ \ \
| | | | * | | uncrypt: Move to Soong.Tao Bao2017-11-094-32/+40
| | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma -j bootable/recovery Change-Id: I405f2a70f51904c02c49a287c23cbc115a4c5132
* | | | | | Merge "Load-balancing update_verifier worker threads." am: f1e70b93f1 am: 1d8cb3659aTao Bao2017-11-095-27/+154
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c5df267599 Change-Id: Ide0e35396eca221bc28b3a95ad35f9f3a380c9ce
| * | | | | Merge "Load-balancing update_verifier worker threads." am: f1e70b93f1Tao Bao2017-11-095-27/+154
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1d8cb3659a Change-Id: I7e8ae9f60ef37d6948fa4d048b7a4317adc5e20c
| | * | | | Merge "Load-balancing update_verifier worker threads."Tao Bao2017-11-095-27/+154
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f1e70b93f1 Change-Id: Ia1224ef69a80ebd247943c2f010bc7cee00e3f69
| | | * | | Merge "Load-balancing update_verifier worker threads."Treehugger Robot2017-11-095-27/+154
| | | |\ \ \ | | | | |/ / | | | |/| |
| | | | * | Load-balancing update_verifier worker threads.Tao Bao2017-11-095-27/+154
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this CL, the block verification works were assigned based on the pattern of the ranges, which could lead to unbalanced workloads. This CL adds RangeSet::Split() and moves update_verifier over. a) For the following care_map.txt on walleye: system 20,0,347,348,540,556,32770,33084,98306,98620,163842,164156,229378,229692,294914,295228,524289,524291,524292,524348,529059 vendor 8,0,120,135,32770,32831,94564,98304,98306 Measured the time costs prior to and with this CL with the following script. $ cat test_update_verifier.sh #!/bin/sh adb shell stop adb shell "cp /data/local/tmp/care_map.txt /data/ota_package/" for i in $(seq 1 50) do echo "Iteration: $i" adb shell "bootctl set-active-boot-slot 0" adb shell "echo 3 > /proc/sys/vm/drop_caches" adb shell "time /data/local/tmp/update_verifier" sleep 3 done Without this CL, the average time cost is 5.66s, while with the CL it's reduced to 3.2s. b) For the following care_map.txt, measured the performance on marlin: system 18,0,271,286,457,8350,32770,33022,98306,98558,163842,164094,196609,204800,229378,229630,294914,295166,501547 vendor 10,0,42,44,85,2408,32770,32806,32807,36902,74242 It takes 12.9s and 5.6s without and with the CL respectively. Fixes: 68553827 Test: recovery_unit_test Test: Flash new build and trigger update_verifier. Check the balanced block verification. Change-Id: I5fa4bf09a84e6b9b0975ee5f522724464181333f
* | | | | Merge "otautil: Remove the aborts in RangeSet::Parse()." am: 16b8b8fd1c am: 236a7261cbTao Bao2017-11-084-55/+170
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 485d3da2d0 Change-Id: Ia25eb785a2737a9bc53c384789828b5fd2df0935
| * | | | Merge "otautil: Remove the aborts in RangeSet::Parse()." am: 16b8b8fd1cTao Bao2017-11-084-55/+170
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 236a7261cb Change-Id: I5b3dec8110e644b9483ae59d47d09fcad21cd717
| | * | | Merge "otautil: Remove the aborts in RangeSet::Parse()."Tao Bao2017-11-084-55/+170
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 16b8b8fd1c Change-Id: Ib3b934d2ef5db25786016896868e021d7e087d4d
| | | * | Merge "otautil: Remove the aborts in RangeSet::Parse()."Tao Bao2017-11-084-55/+170
| | | |\ \
| | | | * | otautil: Remove the aborts in RangeSet::Parse().Tao Bao2017-11-074-55/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used to CHECK and abort on parsing errors. While it works fine for the updater use case (because recovery starts updater in a forked process and collects the process exit code), it's difficult for other clients to use RangeSet as a library (e.g. update_verifier). This CL switches the aborts to returning empty RangeSet instead. Callers need to check the parsing results explicitly. The CL also separates RangeSet::PushBack() into a function, and moves SortedRangeSet::Clear() into RangeSet. Test: recovery_unit_test Test: Sideload an OTA package with the new updater on angler. Test: Sideload an OTA package with injected range string errors. The updater aborts from the explicit checks. Change-Id: If2b7f6f41dc93af917a21c7877a83e98dc3fd016
* | | | | | Merge "Switch to bionic gtest in bootable/recovery" am: bf41f2aa23 am: c1ab2bb535Tianjie Xu2017-11-0610-275/+188
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 16a4cbe79b Change-Id: I14a680c82316c97818d6fdea1b5ec96ad79bcdf3
| * | | | | Merge "Switch to bionic gtest in bootable/recovery" am: bf41f2aa23Tianjie Xu2017-11-0610-275/+188
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c1ab2bb535 Change-Id: Ia85a412604b4af35d001236d5cef74acb9bc2229
| | * | | | Merge "Switch to bionic gtest in bootable/recovery"Tianjie Xu2017-11-0610-275/+188
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bf41f2aa23 Change-Id: I90238f94c3f3eeafe3f24d417f7f6c66ac3cf5fd
| | | * | | Merge "Switch to bionic gtest in bootable/recovery"Tianjie Xu2017-11-0610-275/+188
| | | |\ \ \ | | | | |/ / | | | |/| |
| | | | * | Switch to bionic gtest in bootable/recoveryTianjie Xu2017-11-0310-275/+188
| | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We encountered segfaults in Imgdiff host tests due to the failure to reset states of getopt. The problem can be solved by switching to use bionic's gtest where a new process is forked for each test. Also modify the recovery_component_test to make sure it runs in parallel. Changes include: 1. Merge the writes to misc partition into one single test. 2. Change the hard coded location "/cache/saved.file" into a configurable variable. Bug: 67849209 Test: recovery tests pass Change-Id: I165d313f32b83393fb7922c5078636ac40b50bc2
* | | | | Merge "Clean up fuse_sideload and add a testcase." am: 73dca3e983 am: 6d61e2123bTao Bao2017-11-047-387/+409
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: da62ff4218 Change-Id: Ib6a2e9645811cec484a55b8c28350f680c65a539
| * | | | Merge "Clean up fuse_sideload and add a testcase." am: 73dca3e983Tao Bao2017-11-047-387/+409
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6d61e2123b Change-Id: Id26c2ef6015f46553d3f87b6d839d9a48192f648
| | * | | Merge "Clean up fuse_sideload and add a testcase."Tao Bao2017-11-047-387/+409
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 73dca3e983 Change-Id: I1d895338f32c5814c22f7134aee579c2a252e8bb
| | | * | Merge "Clean up fuse_sideload and add a testcase."Tao Bao2017-11-047-387/+409
| | | |\ \
| | | | * | Clean up fuse_sideload and add a testcase.Tao Bao2017-11-047-387/+409
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL mainly changes: a) moving the interface in struct provider_vtab to std::function; b) code cleanup, such as moving the declaration closer to the uses, using explicit type conversion. Test: recovery_component_test Test: minadbd_test Test: Sideload a package on marlin. Change-Id: Id0e3c70f1ada54a4cd985b54c84438c23ed4687e
* | | | | | Merge "recovery: remove make_ext4fs from updater" am: 3f06512714 am: 59b20d6565Jin Qian2017-11-040-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9a631d2764 Change-Id: I1d17606c7008673221ac9d4be26ad582dae481db
| * | | | | Merge "recovery: remove make_ext4fs from updater" am: 3f06512714Jin Qian2017-11-041-9/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 59b20d6565 Change-Id: I62615596c4ff07a597c234ca620bee19b2660fa2
| | * | | | Merge "recovery: remove make_ext4fs from updater"Jin Qian2017-11-041-9/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3f06512714 Change-Id: Iaccf79dfa4fc7b85071567cd0d58d294478ea0f3
| | | * | | Merge "recovery: remove make_ext4fs from updater"Treehugger Robot2017-11-041-9/+2
| | | |\ \ \ | | | | |/ / | | | |/| |
| | | | * | recovery: remove make_ext4fs from updaterJin Qian2017-11-031-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 64395169 Change-Id: I6f6a4f82b225435c6ad5c828e110fa135e6f7579
* | | | | | Merge "recovery: fix library dependency" am: 0da645fefa am: 4d079261e5Jin Qian2017-11-031-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 87c005bff7 Change-Id: Ie0ddca2e095c5305c0b3041a2f8dfc5cb0646e47
| * | | | | Merge "recovery: fix library dependency" am: 0da645fefaJin Qian2017-11-031-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4d079261e5 Change-Id: I7adec4c4bff3d17782b6ef0f58984e36e2c717a5
| | * | | | Merge "recovery: fix library dependency"Jin Qian2017-11-031-2/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0da645fefa Change-Id: If42448e311abde44b730f31e8ec779e4fe660ca3
| | | * | | Merge "recovery: fix library dependency"Treehugger Robot2017-11-031-2/+2
| | | |\| |
| | | | * | recovery: fix library dependencyJin Qian2017-11-031-2/+2
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After removing some deadcode from libext4_utils, libz is optimized out by linker. However, it's still required by libvintf. Moving libz down the list fixed the build. Bug: 64395169 Change-Id: I23ecd70c83af83a219faced59d8227dc3c4e43d5
* | | | | Merge "tests: Clean up the files in TemporaryDir." am: 2cf44d08cf am: fc8066feedTao Bao2017-11-031-5/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c08ec028f2 Change-Id: I186036832eda5bb732942f9c7ccabd849eb40535
| * | | | Merge "tests: Clean up the files in TemporaryDir." am: 2cf44d08cfTao Bao2017-11-031-5/+9
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fc8066feed Change-Id: I7f4c8648a856bc8f61971080a2f75c81e2c2bbc7
| | * | | Merge "tests: Clean up the files in TemporaryDir."Tao Bao2017-11-031-5/+9
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2cf44d08cf Change-Id: I37a43d8454caebc18e2916afffbe8b894cd5374e
| | | * | Merge "tests: Clean up the files in TemporaryDir."Treehugger Robot2017-11-031-5/+9
| | | |\ \
| | | | * | tests: Clean up the files in TemporaryDir.Tao Bao2017-11-021-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ~TemporaryDir() calls rmdir(2) directly, which works with empty directories only. Test: Run recovery_host_test; No leftover on host. Test; Run recovery_component_test on marlin; No leftover on device. Change-Id: Ib510efb16eeda61b34161e2b386499e6cb79a4ca
* | | | | | Merge "Add a repohook to clang-format changes." am: 439263cb83 am: f3e2017309Tao Bao2017-11-031-0/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e8d7946827 Change-Id: Idf408e7ef9a3c805e2bc183a58cfce735f0cd1c7
| * | | | | Merge "Add a repohook to clang-format changes." am: 439263cb83Tao Bao2017-11-031-0/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f3e2017309 Change-Id: Ib1c719f796c47e8413b0c6da4df0dbe779eab10e
| | * | | | Merge "Add a repohook to clang-format changes."Tao Bao2017-11-031-0/+6
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 439263cb83 Change-Id: I954d3514875799af055eedd6fe5b536827f2ef12
| | | * | | Merge "Add a repohook to clang-format changes."Tao Bao2017-11-031-0/+6
| | | |\ \ \ | | | | |_|/ | | | |/| |
| | | | * | Add a repohook to clang-format changes.Tao Bao2017-11-031-0/+6
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It would clang-format according to the local style file in .clang-format, unless explicitly skipped with --no-verify. An example output is as follows: [COMMIT dda6b1ee4247] test [FAILED] clang_format The following files have formatting errors: screen_ui.cpp You can run `/mnt/aosp/aosp-master/tools/repohooks/tools/clang-format.py --fix --clang-format /mnt/aosp/aosp-master/prebuilts/clang/host/linux-x86/clang-stable/bin/clang-format --git-clang-format /mnt/aosp/aosp-master/prebuilts/clang/host/linux-x86/clang-stable/bin/git-clang-format --style file --commit dda6b1ee424710760bbab4421e95239fa6a2b40d` to fix this [COMMIT be69a2c4ba16] Add a repohook to clang-format the change. [RUNNING 2/2] clang_format An automatic fix can be attempted for the "clang_format" hook. Do you want to run it? (Yes/no)? Fix successfully applied. Amend the current commit before attempting to upload again. More details about repohooks can be found at: https://android.googlesource.com/platform/tools/repohooks/ Test: `repo upload` a CL. Change-Id: Ie8203a317eb3be7acd5592e03374873997647aa0
* | | | | Merge commit '04bcf3ee761d8648d0247dd8322e3542c0319464' from oc-mr1-dev-plus-aosp into stage-aosp-master am: 04a8b2b532Xin Li2017-11-030-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b127b6c4a8 Change-Id: I6e8101e4dc98a6fc080f50ed7f4e96ee2e9e2bf9
| * | | | Merge commit '04bcf3ee761d8648d0247dd8322e3542c0319464' from oc-mr1-dev-plus-aosp into stage-aosp-masterXin Li2017-11-030-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 04a8b2b532 Change-Id: Ib5b0e4e8e215229f7427f358dfa69e06ba466e58
| | * | | Merge commit '04bcf3ee761d8648d0247dd8322e3542c0319464' fromXin Li2017-11-020-0/+0
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | oc-mr1-dev-plus-aosp into stage-aosp-master Change-Id: Ie321cc4ce4a2324ca7bf0f3493f23ea7999765b8
* | | \ \ \ Merge "recovery: remove make_ext4fs from updater"TreeHugger Robot2017-11-021-9/+2
|\ \ \ \ \ \
| * | | | | | recovery: remove make_ext4fs from updaterJin Qian2017-11-021-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 64395169 Change-Id: I6f6a4f82b225435c6ad5c828e110fa135e6f7579
* | | | | | | Merge "Add libbrotli as a dependency for libbsdiff" am: 43f194c8bc am: 57e16e4f77Tianjie Xu2017-11-022-0/+2
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | am: 1d71857179 Change-Id: Ie04f28b69373285cc25d15fcb33cbc880e3667fe
| * | | | | | Merge "Add libbrotli as a dependency for libbsdiff" am: 43f194c8bcTianjie Xu2017-11-022-0/+2
| |\ \ \ \ \ \ | | | |/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | am: 57e16e4f77 Change-Id: I66dad0ca574489bb07f1a4f4726ec9d022b082ce
| | * | | | | Merge "Add libbrotli as a dependency for libbsdiff"Tianjie Xu2017-11-022-0/+2
| | |\ \ \ \ \ | | | | |_|/ / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | am: 43f194c8bc Change-Id: Ia4dbce188995448384a94be87a3020f5ca033365
| | | * | | | Merge "Add libbrotli as a dependency for libbsdiff"Tianjie Xu2017-11-022-0/+2
| | | |\ \ \ \ | | | | |_|_|/ | | | |/| | |
| | | | * | | Add libbrotli as a dependency for libbsdiffTianjie Xu2017-11-012-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 34220646 Test: mma Change-Id: If00285943fff8226f1bc7239db5570a277739904
* | | | | | | update_verifier: Fix the wrong computation with group_range_count. am: 559a6d1d2aTao Bao2017-11-020-0/+0
|\| | | | | | | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | am: ba1217ee00 Change-Id: Ica5851c3376936b2e157a0f68f39dd64956bd744
| * | | | | update_verifier: Fix the wrong computation with group_range_count.Tao Bao2017-11-020-0/+0
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 559a6d1d2a Change-Id: Ie6a4969bf7ebd471b881d5ea93ed4bc55611b99f
| | * | | | | update_verifier: Fix the wrong computation with group_range_count.Tao Bao2017-10-301-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'group_range_count' doesn't properly consider the pair-wise range structure. It may split the ranges into wrong pairs if it evaluates to an odd number. For example, for an input range string of "6,0,2,10,12,20,22" with 4 threads, group_range_count becomes 1. It would then try to verify (0,2), (2,10), (10,12) and (12,20). Note that (2,10) and (12,20) are not valid ranges to be verified, and with (20,22) uncovered. Bug: 68343761 Test: Trigger update_verifier verification. Check the number of verified blocks against the one in care_map.txt. Change-Id: I7c5769325d9866be06c45e7dbcc0c8ea266de714 (cherry picked from commit 62caeb5f48c9d7b1a8ed97c4a021195b8499b804)
* | | | | | | Merge "Fix the size mismatch in imgdiff" am: dec77a454e am: ff7c186f66Tianjie Xu2017-11-014-53/+36
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 92fcada348 Change-Id: I75e1e900ccbc6cd6f4d8303f9c1f6962d7d411f0
| * | | | | | Merge "Fix the size mismatch in imgdiff" am: dec77a454eTianjie Xu2017-11-014-53/+36
| |\ \ \ \ \ \ | | | |/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | am: ff7c186f66 Change-Id: I9caac127b119b829add9be83c374d8ce81aea943
| | * | | | | Merge "Fix the size mismatch in imgdiff"Tianjie Xu2017-11-014-53/+36
| | |\ \ \ \ \ | | | | |/ / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | am: dec77a454e Change-Id: Ibd75a70220a20d38eb561c4ed84ac42225f1add9
| | | * | | | Merge "Fix the size mismatch in imgdiff"Tianjie Xu2017-11-014-53/+36
| | | |\ \ \ \
| | | | * | | | Fix the size mismatch in imgdiffTianjie Xu2017-11-014-53/+36
| | | | | |/ / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As we construct the deflate entries of the target zip file with random data, the total size of the zip file may vary from case to case. This leads to occasional failures in the split test for deflate large apk files. This CL fixes the issue by adding two static zip files in the testdata instead of generating them dynamically. Bug: 67849209 Test: run the deflate_large_test repeatedly Change-Id: Iaeffad9205adefa10c9f62f9f088c33c4360a650
* | | | | | | Merge "update_verifier: Fix the wrong computation with group_range_count." am: 011af6e1a9 am: 78fa902920Tao Bao2017-10-301-3/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 80945895bb Change-Id: I1813a2ba7e7e3afb6b24f628c2fe3e9ba4519c98
| * | | | | | Merge "update_verifier: Fix the wrong computation with group_range_count." am: 011af6e1a9Tao Bao2017-10-301-3/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 78fa902920 Change-Id: Iec6bd92202807ae0a6dbea0c9f4041b539b76687
| | * | | | | Merge "update_verifier: Fix the wrong computation with group_range_count."Tao Bao2017-10-301-3/+5
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 011af6e1a9 Change-Id: Id9829bc924741a57fc4e175677f235d2221482f2
| | | * | | | Merge "update_verifier: Fix the wrong computation with group_range_count."Treehugger Robot2017-10-301-3/+5
| | | |\ \ \ \ | | | | |/ / / | | | |/| | |
| | | | * | | update_verifier: Fix the wrong computation with group_range_count.Tao Bao2017-10-291-3/+5
| | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'group_range_count' doesn't properly consider the pair-wise range structure. It may split the ranges into wrong pairs if it evaluates to an odd number. For example, for an input range string of "6,0,2,10,12,20,22" with 4 threads, group_range_count becomes 1. It would then try to verify (0,2), (2,10), (10,12) and (12,20). Note that (2,10) and (12,20) are not valid ranges to be verified, and with (20,22) uncovered. Bug: 68343761 Test: Trigger update_verifier verification. Check the number of verified blocks against the one in care_map.txt. Change-Id: I7c5769325d9866be06c45e7dbcc0c8ea266de714
* | | | | | Merge "tests: Take the ownership of the FD when calling fdopen." am: 166479b259 am: 450918158dTao Bao2017-10-272-29/+29
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e4ca124c7c Change-Id: I8f5e990c3b845122ca2ea99d552942c7aa996294
| * | | | | Merge "tests: Take the ownership of the FD when calling fdopen." am: 166479b259Tao Bao2017-10-272-29/+29
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 450918158d Change-Id: I2a5b9c162d1c704added2edca3bbd62a15c0acc1
| | * | | | Merge "tests: Take the ownership of the FD when calling fdopen."Tao Bao2017-10-272-29/+29
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 166479b259 Change-Id: I1d92a0da6048893c034d1d419b1729abc1968511
| | | * | | Merge "tests: Take the ownership of the FD when calling fdopen."Treehugger Robot2017-10-262-29/+29
| | | |\ \ \
| | | | * | | tests: Take the ownership of the FD when calling fdopen.Tao Bao2017-10-262-29/+29
| | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To avoid closing the same FD twice. Test: recovery_component_test && recovery_host_test Change-Id: I95195be8109101081410e9224efda535b2560e72
* | | | | | Merge "applypatch: Fix a memory leak in ApplyImagePatch()." am: 1bc0117755 am: dcc1fa1ce8Tao Bao2017-10-251-17/+22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 47433f0293 Change-Id: I1c1dcdd595e95de50a30d87fbe0623796d9c70f6
| * | | | | Merge "applypatch: Fix a memory leak in ApplyImagePatch()." am: 1bc0117755Tao Bao2017-10-251-17/+22
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dcc1fa1ce8 Change-Id: I183a39998dedb826db0c87bce6febf5a03261d7f
| | * | | | Merge "applypatch: Fix a memory leak in ApplyImagePatch()."Tao Bao2017-10-251-17/+22
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1bc0117755 Change-Id: Ifb081da2cbc7175454bb4059e41bb9c94d9b6512
| | | * | | Merge "applypatch: Fix a memory leak in ApplyImagePatch()."Treehugger Robot2017-10-241-17/+22
| | |/| | |
| | | * | | applypatch: Fix a memory leak in ApplyImagePatch().Tao Bao2017-10-241-17/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ valgrind --leak-check=full out/host/linux-x86/nativetest64/recovery_host_test/recovery_host_test ==36755== 112 bytes in 1 blocks are definitely lost in loss record 4 of 16 ==36755== at 0x40307C4: malloc (valgrind/coregrind/m_replacemalloc/vg_replace_malloc.c:270) ==36755== by 0x40C1669: operator new(unsigned long) (external/libcxxabi/src/cxa_new_delete.cpp:46) ==36755== by 0x18D6A8: ApplyImagePatch(unsigned char const*, unsigned long, Value const*, std::__1::function<unsigned long (unsigned char const*, unsigned long)>, sha_state_st*, Value const*) (bootable/recovery/applypatch/imgpatch.cpp:62) ==36755== by 0x18D02B: ApplyImagePatch(unsigned char const*, unsigned long, unsigned char const*, unsigned long, std::__1::function<unsigned long (unsigned char const*, unsigned long)>) (bootable/recovery/applypatch/imgpatch.cpp:134) ==36755== by 0x160D15: GenerateTarget(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) (bootable/recovery/tests/component/imgdiff_test.cpp:85) ==36755== by 0x11FA7D: verify_patched_image(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (bootable/recovery/tests/component/imgdiff_test.cpp:96) ==36755== by 0x12966C: ImgdiffTest_zip_mode_smoke_trailer_zeros_Test::TestBody() (bootable/recovery/tests/component/imgdiff_test.cpp:295) ==36755== by 0x235EF9: testing::Test::Run() (external/googletest/googletest/src/gtest.cc:2455) ==36755== by 0x236CBF: testing::TestInfo::Run() (external/googletest/googletest/src/gtest.cc:2653) ==36755== by 0x2372D6: testing::TestCase::Run() (external/googletest/googletest/src/gtest.cc:2771) ==36755== by 0x23EEE6: testing::internal::UnitTestImpl::RunAllTests() (external/googletest/googletest/src/gtest.cc:4648) ==36755== by 0x23EB45: testing::UnitTest::Run() (external/googletest/googletest/src/gtest.cc:2455) std::unique_ptr<z_stream, decltype(&deflateEnd)> strm(new z_stream(), deflateEnd); Only the internally allocated buffers inside 'strm' would be free'd by deflateEnd(), but not 'strm' itself. This CL fixes the issue by moving 'strm' to stack variable. Note that we only need to call deflateEnd() on successful return of deflateInit2(). Test: recovery_host_test && recovery_component_test Change-Id: I39b9bdf62376b8029f95cab82c8542bfcb874009
* | | | | | Merge "Use SuffixArrayIndexInterface opaque type instead of the underlying data pointer." am: 3d24b7bca6 am: d8ecad7896Alex Deymo2017-10-243-8/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9d079c1254 Change-Id: I046628fef4ad251516848c4d85aecdd51edf8eff
| * | | | | Merge "Use SuffixArrayIndexInterface opaque type instead of the underlying data pointer." am: 3d24b7bca6Alex Deymo2017-10-243-8/+11
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d8ecad7896 Change-Id: Ic6065205cca6bff453de6a6683ce82c2d314c7ac
| | * | | | Merge "Use SuffixArrayIndexInterface opaque type instead of the underlying data pointer."Alex Deymo2017-10-243-8/+11
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3d24b7bca6 Change-Id: I18b7e9ca9ae299b8a028da63fc7d3e9e9eaef221
| | | * \ \ \ Merge "Use SuffixArrayIndexInterface opaque type instead of the underlying data pointer."Treehugger Robot2017-10-243-8/+11
| | | |\ \ \ \ | | | | |/ / / | | | |/| | |
| | | | * | | Use SuffixArrayIndexInterface opaque type instead of the underlying data pointer.Alex Deymo2017-10-243-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bsdiff interface is changing such that it hides the suffix array pointer from the public interface. This allows to use a different suffix array data size depending on the input size, running much faster in the normal case. Bug: 34220646 Test: `make checkbuild`; Ran an incremental update generation on a non-A/B device. Change-Id: I78e766da56cf28bc7774b8c8e58527bc11d919fb
* | | | | | | Merge "libdrm_platform is now libdrm" am: d830858952 am: 3b4e2ebf2cDan Willemsen2017-10-231-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 404051ef0e Change-Id: If77faf0558bde6ad80070acd776e1b16709bee2b
| * | | | | | Merge "libdrm_platform is now libdrm" am: d830858952Dan Willemsen2017-10-231-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3b4e2ebf2c Change-Id: I4199c9f74bec5783c54a9d387e7d376595fb0d72
| | * | | | | Merge "libdrm_platform is now libdrm"Dan Willemsen2017-10-231-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d830858952 Change-Id: I9614430880626ca25b9eced39ed83eb69073b3b5
| | | * | | | Merge "libdrm_platform is now libdrm"Treehugger Robot2017-10-231-1/+1
| | | |\ \ \ \
| | | | * | | | libdrm_platform is now libdrmDan Willemsen2017-10-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since it's converted to Soong and is using vendor_available. Test: mmma bootable/recovery Change-Id: I57b40c26abc2f6031241de893b3184ed1283e1fe
* | | | | | | | Merge "Build libminui with BOARD_VNDK_VERSION" am: ec9ac55949 am: 0bda7a02c2 am: 988b21ec05 -s oursDan Willemsen2017-10-210-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7570e73a92 -s ours Change-Id: I60e5b1dfbd23cd749a22ef8dc3e0b5a4f39db1f9
| * | | | | | | Merge "Build libminui with BOARD_VNDK_VERSION" am: ec9ac55949 am: 0bda7a02c2Dan Willemsen2017-10-210-0/+0
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 988b21ec05 -s ours Change-Id: I720bebaf6712d7e3666fbedfb6be28848bdb3a45
| | * | | | | | | Merge "Build libminui with BOARD_VNDK_VERSION" am: ec9ac55949Dan Willemsen2017-10-211-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0bda7a02c2 Change-Id: Id9b132f4bfb3011823b86f9f5bb0c4b654f8c87c
| | | * | | | | | Merge "Build libminui with BOARD_VNDK_VERSION"Dan Willemsen2017-10-211-1/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ec9ac55949 Change-Id: I18d3e50975bbff077cb435b798a71cf2384d5ba6
| | | | * | | | | Merge "Build libminui with BOARD_VNDK_VERSION"Dan Willemsen2017-10-211-1/+1
| | | | |\| | | |
| | | | | * | | | Build libminui with BOARD_VNDK_VERSIONJiyong Park2017-10-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use libdrm_platform which is a platform variant of libdrm. Bug: 63741047 Bug: 37342627 Test: BOARD_VNDK_VERSION=current m -j libminui Test: ryu recovery graphics test shows various graphics Change-Id: Ifd2c1432781a96538585cdf818aa728d628a2f5a Merged-In: Ifd2c1432781a96538585cdf818aa728d628a2f5a
* | | | | | | | | Merge "Finish the new data receiver when update fails" am: 9831ef389b am: 85fca1fc57 am: 4609778204Tianjie Xu2017-10-212-103/+174
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f12aebda91 Change-Id: Iff9efe919a6657d1c7eed083c8708a958ab997b0
| * | | | | | | | Merge "Finish the new data receiver when update fails" am: 9831ef389b am: 85fca1fc57Tianjie Xu2017-10-212-103/+174
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4609778204 Change-Id: I2b82e90d2adc859fa6781c7ff82dcfed1bd15b91
| | * | | | | | | Merge "Finish the new data receiver when update fails" am: 9831ef389bTianjie Xu2017-10-202-103/+174
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 85fca1fc57 Change-Id: I0ff54e132aceb96305182daeaf77a79491ba412b
| | | * | | | | | Merge "Finish the new data receiver when update fails"Tianjie Xu2017-10-202-103/+174
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9831ef389b Change-Id: I62be2406eede1f9e02ee4ca45ffca6fd2283ef0a
| | | | * | | | | Merge "Finish the new data receiver when update fails"Tianjie Xu2017-10-202-103/+174
| | | | |\ \ \ \ \ | | | | | |/ / / / | | | | |/| | | |
| | | | | * | | | Finish the new data receiver when update failsTianjie Xu2017-10-202-103/+174
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The thread to receive new data may still be alive after we exit PerformBlockImageUpdate() upon failures. This caused memory corruption when we run the unittest repeatedly. Set the receiver_available flag to false and make sure the receiver exits when the update fails. Bug: 65430057 Test: unittests passed with tsan Change-Id: Icb232d13fb96c78262249ffbd29cdbe5b77f1fce
* | | | | | | | Import translations. DO NOT MERGE am: 9bc56553dd -s ours am: 63405d5d1c -s oursBill Yi2017-10-200-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 684d255b11 -s ours Change-Id: Ib46540b810ba2337106b5548337ce7cb6fe77a82
| * | | | | | | Import translations. DO NOT MERGE am: 9bc56553dd -s oursBill Yi2017-10-200-0/+0
| |\| | | | | | | | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | am: 63405d5d1c -s ours Change-Id: I9a11da2bbf5de6f7601d74cbde3bc67b81399452
| | * | | | | Import translations. DO NOT MERGEBill Yi2017-10-200-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9bc56553dd -s ours Change-Id: Icbd59fbdd4a239a57bedbf6e36fea4eb30364622
| | | * | | | Import translations. DO NOT MERGEBill Yi2017-10-204-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import Bug: 68003463 Change-Id: Iae8fc3afc1453b6b609dae2bbff08231d00735e7
* | | | | | | Merge "rotate_logs: Clean up the header includes." am: 30ec005104 am: c8eba4a036 am: 41763a5dbbTao Bao2017-10-182-78/+64
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 04bcf3ee76 Change-Id: I3c97a13dd949fe425e83dbf3f39306ba35d0b1d1
| * | | | | | Merge "rotate_logs: Clean up the header includes." am: 30ec005104 am: c8eba4a036Tao Bao2017-10-182-78/+64
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 41763a5dbb Change-Id: I257ece1d0df06c45faac1501c8cc3c13da43a3db
| | * | | | | Merge "rotate_logs: Clean up the header includes." am: 30ec005104Tao Bao2017-10-182-78/+64
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c8eba4a036 Change-Id: Ibac286ecec3c31a8aa6d1fb4cf47428c39549632
| | | * | | | Merge "rotate_logs: Clean up the header includes."Tao Bao2017-10-182-78/+64
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 30ec005104 Change-Id: Icc10e4b6715a78deb6aab73829efa336821f849d
| | | | * | | Merge "rotate_logs: Clean up the header includes."Tao Bao2017-10-182-78/+64
| | | | |\ \ \
| | | | | * | | rotate_logs: Clean up the header includes.Tao Bao2017-10-182-78/+64
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also clang-format rotate_logs.cpp to get consistent style. Test: mmma bootable/recovery Test: recovery_manual_test works on marlin. Change-Id: I1210a346b97bbf0e1a8c3f8e3e73a7c114858ca8
* | | | | | | Merge "otautil: Move RangeSet implementation into rangeset.cpp." am: bab1e8efc8 am: f63dbde3ef am: 6f4f528419Tao Bao2017-10-176-151/+220
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2a9dbb4063 Change-Id: I41d48f22966f1596acc5baa283b79d20cdb78151
| * | | | | | Merge "otautil: Move RangeSet implementation into rangeset.cpp." am: bab1e8efc8 am: f63dbde3efTao Bao2017-10-176-151/+220
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6f4f528419 Change-Id: Id88582449fe3f1cf49931b6ea3d640c3308d92cb
| | * | | | | Merge "otautil: Move RangeSet implementation into rangeset.cpp." am: bab1e8efc8Tao Bao2017-10-176-151/+220
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f63dbde3ef Change-Id: Ie550fbbdf20a3f0e7d23038b5841f842812ade7a
| | | * | | | Merge "otautil: Move RangeSet implementation into rangeset.cpp."Tao Bao2017-10-176-151/+220
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bab1e8efc8 Change-Id: I5d41bdfe514e09c49bf2279ee6ca1b56ff5aab1f
| | | | * | | Merge "otautil: Move RangeSet implementation into rangeset.cpp."Tao Bao2017-10-176-151/+220
| | | | |\ \ \
| | | | | * | | otautil: Move RangeSet implementation into rangeset.cpp.Tao Bao2017-10-166-151/+220
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since it has grown much larger, users of the header shouldn't compile and carry their full copies. Also add missing header includes in imgdiff.cpp and imgdiff_test.cpp. Test: mmma bootable/recovery Test: recovery_unit_test; recovery_component_test; recovery_host_test Change-Id: I88ca54171765e5606ab0d61580fbc1ada578fd7d
* | | | | | | Merge "Fix owner email address." am: b4a8c6abd9 am: 97d9ae086a am: bb971cce89Chih-hung Hsieh2017-10-121-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 111469726c Change-Id: I02b09b0bb3d161aa3c18eba73d95d6c33c17b4d4
| * | | | | | Merge "Fix owner email address." am: b4a8c6abd9 am: 97d9ae086aChih-hung Hsieh2017-10-121-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bb971cce89 Change-Id: I8afed0f0c58cacf92ee2acaf0a6d177061f9e323
| | * | | | | Merge "Fix owner email address." am: b4a8c6abd9Chih-hung Hsieh2017-10-121-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 97d9ae086a Change-Id: Id31b7ab0a26130ce495aa061a109aa9280a771f2
| | | * | | | Merge "Fix owner email address."Chih-hung Hsieh2017-10-121-1/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b4a8c6abd9 Change-Id: Ia637ddf881edb5db4b172d1ab2f75f321aee4c2a
| | | | * | | Merge "Fix owner email address."Chih-hung Hsieh2017-10-121-1/+1
| | | | |\ \ \
| | | | | * | | Fix owner email address.Chih-Hung Hsieh2017-10-121-1/+1
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: normal build. Bug: 67718313 Change-Id: Ia3144c634647f7a457810370a9f7275c19a8aa76
* | | | | | | Merge "applypatch: Move to Soong." am: b058c5c481 am: 7722d8255c am: cc11f66cfdTao Bao2017-10-124-197/+196
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 309031e02d Change-Id: Id7b4659a9d82cf58118915f678e9e0dd6ab8eea4
| * | | | | | Merge "applypatch: Move to Soong." am: b058c5c481 am: 7722d8255cTao Bao2017-10-124-197/+196
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cc11f66cfd Change-Id: I5530a2adf2526cb689e91539579717568783243e
| | * | | | | Merge "applypatch: Move to Soong." am: b058c5c481Tao Bao2017-10-124-197/+196
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7722d8255c Change-Id: Ie98b90295ccf607c8e5b71401dce190fdfa05ce0
| | | * | | | Merge "applypatch: Move to Soong."Tao Bao2017-10-124-197/+196
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b058c5c481 Change-Id: Ibdee21116b15742ff8688352c6d49195a516132d
| | | | * | | Merge "applypatch: Move to Soong."Tao Bao2017-10-124-197/+196
| | | | |\ \ \
| | | | | * | | applypatch: Move to Soong.Tao Bao2017-10-124-197/+196
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma bootable/recovery Change-Id: Ie163aff1c4c2b3b15bb705825779ada6bc38ad67
* | | | | | | | Merge "applypatch: Remove the Makefile for building imgdiff in Chrome OS." am: 2ebc7dabff am: 92964b3b94 am: a7b8be564aTao Bao2017-10-122-39/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4ffbf43de3 Change-Id: Ib67360b5516e2f7cf25b4e4dda36acd11f27a26c
| * | | | | | | Merge "applypatch: Remove the Makefile for building imgdiff in Chrome OS." am: 2ebc7dabff am: 92964b3b94Tao Bao2017-10-122-39/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a7b8be564a Change-Id: I2d43ffe9e69b75907c8b3846f1d56cf1bf6cc0a6
| | * | | | | | Merge "applypatch: Remove the Makefile for building imgdiff in Chrome OS." am: 2ebc7dabffTao Bao2017-10-122-39/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 92964b3b94 Change-Id: I21dcd0e8dc0020a7b45a85b53072284fe97c3f55
| | | * | | | | Merge "applypatch: Remove the Makefile for building imgdiff in Chrome OS."Tao Bao2017-10-122-39/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2ebc7dabff Change-Id: I215fe78600a7799ca8be5ac479e50d1f00d70238
| | | | * | | | Merge "applypatch: Remove the Makefile for building imgdiff in Chrome OS."Tao Bao2017-10-122-39/+0
| | | | |\ \ \ \
| | | | | * | | | applypatch: Remove the Makefile for building imgdiff in Chrome OS.Tao Bao2017-10-122-39/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The former user system/update_engine has dropped the support for imgdiff (https://android-review.googlesource.com/c/platform/system/update_engine/+/400427/). Test: N/A Change-Id: Ia8f770dc51800b45064c4affc3514cf513877edc
* | | | | | | | | Merge "Drop -Wno-unused-parameter." am: a0e9742796 am: 6cadc73dea am: 44ddef71dcTao Bao2017-10-1210-49/+62
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1431cbec0b Change-Id: I56b3780eec24417b68207ee584aa45562021b9af
| * | | | | | | | Merge "Drop -Wno-unused-parameter." am: a0e9742796 am: 6cadc73deaTao Bao2017-10-1210-49/+62
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 44ddef71dc Change-Id: If29463d5b5b15405dbcb90554b756e4633f7f6eb
| | * | | | | | | Merge "Drop -Wno-unused-parameter." am: a0e9742796Tao Bao2017-10-1210-49/+62
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6cadc73dea Change-Id: Ib9bb6362481315466c12575b62900bf61747eafc
| | | * | | | | | Merge "Drop -Wno-unused-parameter."Tao Bao2017-10-1210-49/+62
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a0e9742796 Change-Id: Iabe3bf5471a02d3d3af64f6d249fd761bc7ac512
| | | | * | | | | Merge "Drop -Wno-unused-parameter."Tao Bao2017-10-1210-49/+62
| | | | |\ \ \ \ \
| | | | | * | | | | Drop -Wno-unused-parameter.Tao Bao2017-10-1210-49/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only one left is libedify. Will handle that in a separate CL. Test: mmma bootable/recovery Change-Id: I732a5f85229da90fd767bee2e46c5c95f529c396
* | | | | | | | | | Merge "Add missing includes." am: 3c4e270123 am: b23cfd43da am: 57caa90f74Dan Albert2017-10-121-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 304fe6c927 Change-Id: I2f7064f278cd60826bfd304def70aa547a929c80
| * | | | | | | | | Merge "Add missing includes." am: 3c4e270123 am: b23cfd43daDan Albert2017-10-121-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 57caa90f74 Change-Id: I87c9b84c63806449f3614b95402d62bc617e1c09
| | * | | | | | | | Merge "Add missing includes." am: 3c4e270123Dan Albert2017-10-121-0/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b23cfd43da Change-Id: I4c50eea579d610c5590ecfaace70f2761038204a
| | | * | | | | | | Merge "Add missing includes."Dan Albert2017-10-121-0/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3c4e270123 Change-Id: I137b0abf7f9b72e458ff62b203dfb92bca58c97e
| | | | * | | | | | Merge "Add missing includes."Treehugger Robot2017-10-121-0/+1
| | | | |\ \ \ \ \ \ | | | | | |_|/ / / / | | | | |/| | | | |
| | | | | * | | | | Add missing includes.Dan Albert2017-10-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mma Bug: None Change-Id: I8b588dfbc00ef67557622d44700b331c7a31bde3
* | | | | | | | | | Merge "otafault: Add the missing #include <string>." am: 489155c44b am: 9e232f9f2a am: a27f973999Tao Bao2017-10-121-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3787b72249 Change-Id: I12d4ae254e42b11a45472b6addff98a1128c87d8
| * | | | | | | | | Merge "otafault: Add the missing #include <string>." am: 489155c44b am: 9e232f9f2aTao Bao2017-10-111-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a27f973999 Change-Id: I621bde6eec31ba01d0680cda2184334773323a11
| | * | | | | | | | Merge "otafault: Add the missing #include <string>." am: 489155c44bTao Bao2017-10-111-0/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9e232f9f2a Change-Id: I94a7fe22907dc59b653ca2f0cc01b9deef2fc8e4
| | | * | | | | | | Merge "otafault: Add the missing #include <string>."Tao Bao2017-10-111-0/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 489155c44b Change-Id: Ieee8b0305e2f42146cb11977dfde01658bd0d16f
| | | | * | | | | | Merge "otafault: Add the missing #include <string>."Tao Bao2017-10-111-0/+1
| | | | |\ \ \ \ \ \
| | | | | * | | | | | otafault: Add the missing #include <string>.Tao Bao2017-10-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma bootable/recovery Change-Id: If7610ba55a2d2dd4257ff38c44d252c9c6bbfe40
* | | | | | | | | | | Merge "otautil: #include <errno.h> for TEMP_FAILURE_RETRY." am: 1bf842471c am: 7861ec16a0 am: a2fb941a32Tao Bao2017-10-121-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f7772bafa9 Change-Id: I1de91c7fd50684d1ac286a526e07fc681440ab00
| * | | | | | | | | | Merge "otautil: #include <errno.h> for TEMP_FAILURE_RETRY." am: 1bf842471c am: 7861ec16a0Tao Bao2017-10-111-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a2fb941a32 Change-Id: I43050a07769f1b2b0f82ec00b056509fd2fd53f4
| | * | | | | | | | | Merge "otautil: #include <errno.h> for TEMP_FAILURE_RETRY." am: 1bf842471cTao Bao2017-10-111-0/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7861ec16a0 Change-Id: Ia53a4fb2ca871cb688ca52902b4790e28531dc05
| | | * | | | | | | | Merge "otautil: #include <errno.h> for TEMP_FAILURE_RETRY."Tao Bao2017-10-111-0/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1bf842471c Change-Id: I9a05bd96e5d213e97f0c9aed3bd6aa973bc51327
| | | | * | | | | | | Merge "otautil: #include <errno.h> for TEMP_FAILURE_RETRY."Tao Bao2017-10-111-0/+1
| | | | |\ \ \ \ \ \ \ | | | | | |_|_|_|/ / / | | | | |/| | | | | |
| | | | | * | | | | | otautil: #include <errno.h> for TEMP_FAILURE_RETRY.Tao Bao2017-10-111-0/+1
| | | | | | |_|/ / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma bootable/recovery Change-Id: I5959303528c6f704f10ce153f6fcb2054ce35b1e
* | | | | | | | | | Merge "applypatch: Use shared lib for libbz." am: 6d7e4acf7e am: 491880ed2f am: e353274491Tao Bao2017-10-121-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2e5047f477 Change-Id: I12273416f0c7a6cdcc671e4b0ec9d12ae01cea08
| * | | | | | | | | Merge "applypatch: Use shared lib for libbz." am: 6d7e4acf7e am: 491880ed2fTao Bao2017-10-111-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e353274491 Change-Id: Ie0f1ddd42b0e5559b34c1bd2db1cbd7d5964cc27
| | * | | | | | | | Merge "applypatch: Use shared lib for libbz." am: 6d7e4acf7eTao Bao2017-10-111-2/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 491880ed2f Change-Id: I435d214295a39351fb447dabdcbe07ca51705b67
| | | * | | | | | | Merge "applypatch: Use shared lib for libbz."Tao Bao2017-10-111-2/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6d7e4acf7e Change-Id: I9a2303ae5c9ae0002954bcaae399986f7dd20d6b
| | | | * | | | | | Merge "applypatch: Use shared lib for libbz."Tao Bao2017-10-111-2/+2
| | | | |\ \ \ \ \ \ | | | | | |/ / / / / | | | | |/| | | | |
| | | | | * | | | | applypatch: Use shared lib for libbz.Tao Bao2017-10-111-2/+2
| | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have shared lib target for libbz now (and libbz.so is already on device because of /system/bin/bzip2). Test: m applypatch Change-Id: I5fe2468a8d535840245f081a92d436240dddbf6b
* | | | | | | | | Merge "applypatch: Use shared libs for libbase/libcrypto/liblog/libziparchive." am: 46d8a3b604 am: a3e032c549 am: 9bfdc55472Tao Bao2017-10-111-5/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: de0118f803 Change-Id: I5ea20d6306731e2e34153dd7ba5d220674788c21
| * | | | | | | | Merge "applypatch: Use shared libs for libbase/libcrypto/liblog/libziparchive." am: 46d8a3b604 am: a3e032c549Tao Bao2017-10-111-5/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9bfdc55472 Change-Id: I2d4e65e2784f645c7c248cc01c3b60f21402d447
| | * | | | | | | Merge "applypatch: Use shared libs for libbase/libcrypto/liblog/libziparchive." am: 46d8a3b604Tao Bao2017-10-111-5/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a3e032c549 Change-Id: Iac0050ea809d797915f619114b16c7bbcc06804a
| | | * | | | | | Merge "applypatch: Use shared libs for libbase/libcrypto/liblog/libziparchive."Tao Bao2017-10-111-5/+3
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 46d8a3b604 Change-Id: Ic214efeb5a1051109598f7011937a406da26da1b
| | | | * | | | | Merge "applypatch: Use shared libs for libbase/libcrypto/liblog/libziparchive."Tao Bao2017-10-111-5/+3
| | | | |\ \ \ \ \
| | | | | * | | | | applypatch: Use shared libs for libbase/libcrypto/liblog/libziparchive.Tao Bao2017-10-111-6/+3
| | | | | | |/ / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reduces the size of /system/bin/applypatch by ~69KB (aosp_bullhead-userdebug). Also remove the unneeded libcutils dependency. Test: mmma bootable/recovery Test: Check that /system/bin/install-recovery.sh successfully installs the recovery image. Change-Id: I5063be9a9b7b8029d45ab5c2a7c45ef2cda81d26
* | | | | | | | | Merge "Move rangeset.h and print_sha1.h into otautil." am: ff9b6f63a2 am: 28f6938862 am: 684f239b4bTao Bao2017-10-1115-40/+42
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 08912cede5 Change-Id: I547dbeeaf6c4f21fa49a808dc6a0755d7df830a0
| * | | | | | | | Merge "Move rangeset.h and print_sha1.h into otautil." am: ff9b6f63a2 am: 28f6938862Tao Bao2017-10-1115-40/+42
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 684f239b4b Change-Id: I981f541e444900baf1de89064d57752e1a85587d
| | * | | | | | | Merge "Move rangeset.h and print_sha1.h into otautil." am: ff9b6f63a2Tao Bao2017-10-1115-40/+42
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 28f6938862 Change-Id: I2742e3cdff2ebef012a6194030de8cb19dfd55e5
| | | * | | | | | Merge "Move rangeset.h and print_sha1.h into otautil."Tao Bao2017-10-1115-40/+42
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ff9b6f63a2 Change-Id: I4fea3584f64b273922ff20e9661c02a34ccca2f8
| | | | * | | | | Merge "Move rangeset.h and print_sha1.h into otautil."Tao Bao2017-10-1115-40/+42
| | | | |\ \ \ \ \ | | | | | |/ / / / | | | | |/| | | |
| | | | | * | | | Move rangeset.h and print_sha1.h into otautil.Tao Bao2017-10-1115-40/+42
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also drop the "bootable/recovery" path in LOCAL_C_INCLUDES from applypatch modules. Test: lunch aosp_{angler,bullhead,fugu,dragon,sailfish}-userdebug; mmma bootable/recovery Change-Id: Idd602a796894f971ee4f8fa3eafe36c42d9de986
* | | | | | | | Merge "otautil: Fix mac build." am: eb8a064066 am: bc131ef1bd am: 814f05d853Tao Bao2017-10-102-3/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 13752ae25c Change-Id: I87f095467a1a43bbbaf4b2b23762e3b801311d9c
| * | | | | | | Merge "otautil: Fix mac build." am: eb8a064066 am: bc131ef1bdTao Bao2017-10-102-3/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 814f05d853 Change-Id: I0fb78094a2ef258ef1d463c9784249fbdae7fff3
| | * | | | | | Merge "otautil: Fix mac build." am: eb8a064066Tao Bao2017-10-102-3/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bc131ef1bd Change-Id: I610fad4289df35d0327ecdd91c271a90f0dd45df
| | | * | | | | Merge "otautil: Fix mac build."Tao Bao2017-10-102-3/+4
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: eb8a064066 Change-Id: Ia757cdeb858e2d60fab17ecbf74eb6d39e650549
| | | | * | | | Merge "otautil: Fix mac build."Tao Bao2017-10-102-3/+4
| | | | |\ \ \ \
| | | | | * | | | otautil: Fix mac build.Tao Bao2017-10-102-3/+4
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bootable/recovery/otautil/SysUtil.cpp:103:19: error: use of undeclared identifier 'mmap64'; did you mean 'mmap'? void* reserve = mmap64(nullptr, blocks * blksize, PROT_NONE, MAP_PRIVATE | MAP_ANON, -1, 0); ^~~~~~ Test: mmma bootable/recovery Change-Id: I22d7dc4d994069201e5a633cec21421e2c4182fa
* | | | | | | | Merge changes from topic "libedify-header" am: abade5af15 am: 28e8a2c43a am: eaf3e895feTao Bao2017-10-1019-67/+64
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 43e4eddd66 Change-Id: Ibe24c579659220f3fb39ebeeecba361b110079ed
| * | | | | | | Merge changes from topic "libedify-header" am: abade5af15 am: 28e8a2c43aTao Bao2017-10-1019-67/+64
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: eaf3e895fe Change-Id: Ib25565ad20dd7ba2a22671b317a63ee68a38f404
| | * | | | | | Merge changes from topic "libedify-header" am: abade5af15Tao Bao2017-10-1019-67/+64
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 28e8a2c43a Change-Id: I0492beacef5c544beb2e3fa0ce0fe25070a0348a
| | | * | | | | Merge changes from topic "libedify-header"Tao Bao2017-10-1019-67/+64
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: abade5af15 Change-Id: I8a2c066f807b85139c24ec44f504d19549e1aa7d
| | | | * | | | Merge changes from topic "libedify-header"Tao Bao2017-10-1019-67/+64
| | | | |\ \ \ \ | | | | | |_|/ / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: edify: Export the header and move to Soong. Revert "Revert "Move error_code.h into otautil.""
| | | | | * | | edify: Export the header and move to Soong.Tao Bao2017-10-099-57/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also make matching changes to applypatch modules which include edify/expr.h. Test: mmma bootable/recovery Change-Id: Ia72be3caa010d7f56a70add2da345e631b306378
| | | | | * | | Revert "Revert "Move error_code.h into otautil.""Tao Bao2017-10-0914-13/+17
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 26436d6d6010d5323349af7e119ff8f34f85c40c to re-land "Move error_code.h into otautil.". This way it stops requiring relative path ".." in LOCAL_C_INCLUDES (uncrypt and edify). Soong doesn't accept non-local ".." in "local_include_dirs". This CL needs to land with device-specific module changes (e.g. adding the dependency on libotautil). Test: lunch aosp_{angler,bullhead,dragon,fugu,sailfish}-userdebug; mmma bootable/recovery Change-Id: If193241801af2dae73eccd31ce57cd2b81c9fd96
* | | | | | | Merge "applypatch: Forward declare struct Value." am: 7a3fc2de8e am: b7c0ce4201 am: b53d8c6062Tao Bao2017-10-105-2/+24
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 91a034974c Change-Id: Ibbe7d61a6cd96f9bd79dd8b5c1b4d0538e73b35e
| * | | | | | Merge "applypatch: Forward declare struct Value." am: 7a3fc2de8e am: b7c0ce4201Tao Bao2017-10-095-2/+24
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b53d8c6062 Change-Id: I4f0fb9418a41fe815f4cce89c3889ddd42bd35b1
| | * | | | | Merge "applypatch: Forward declare struct Value." am: 7a3fc2de8eTao Bao2017-10-095-2/+24
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b7c0ce4201 Change-Id: I9ada801445bf3db83a50c2ef33c37301ea4eae1b
| | | * | | | Merge "applypatch: Forward declare struct Value."Tao Bao2017-10-095-2/+24
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7a3fc2de8e Change-Id: I1ac5bb6eda60d9d9728ce149d2e9cbc37b82acac
| | | | * | | Merge "applypatch: Forward declare struct Value."Tao Bao2017-10-095-2/+24
| | | | |\ \ \
| | | | | * | | applypatch: Forward declare struct Value.Tao Bao2017-10-095-2/+24
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And move '#include "edify/expr.h"' into .cpp files. This breaks the transitive dependency on libedify. Modules that include "applypatch/applypatch.h" don't need to add libedify into their dependency list, unless they really need anything from libedify. Build libedify static library for host, which is needed by libimgpatch. Test: mmma bootable/recovery Change-Id: Ibb53d322579fcbf593438d058d9bcee240625941
* | | | | | | Merge "Don't include "error_code.h" in edify/expr.h." am: d999ced1d1 am: e196918f54 am: 3bc65953abTao Bao2017-10-064-26/+28
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 622253f29f Change-Id: I079982815ad460b9a6488349cbee19451a1a4389
| * | | | | | Merge "Don't include "error_code.h" in edify/expr.h." am: d999ced1d1 am: e196918f54Tao Bao2017-10-064-26/+28
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3bc65953ab Change-Id: I1ab6b785992cb5047f193762960d4f535d0bcee1
| | * | | | | Merge "Don't include "error_code.h" in edify/expr.h." am: d999ced1d1Tao Bao2017-10-064-26/+28
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e196918f54 Change-Id: Ic3d0ecb9377429eee45635847e564f347138398a
| | | * | | | Merge "Don't include "error_code.h" in edify/expr.h."Tao Bao2017-10-064-26/+28
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d999ced1d1 Change-Id: I47512a7c6c02bcc5c6558f74963e83648e03f5d4
| | | | * | | Merge "Don't include "error_code.h" in edify/expr.h."Tao Bao2017-10-064-26/+28
| | | | |\ \ \
| | | | | * | | Don't include "error_code.h" in edify/expr.h.Tao Bao2017-10-054-26/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use forward declartion to avoid pull in the module that contains error_code.h (trying to move it into libotautil). Otherwise all the modules that include "edify/expr.h" need to depend on the module that exports error_code.h. .cpp sources should include "error_code.h" explicitly to use the enums. Test: lunch aosp_{angler,bullhead,dragon,fugu,sailfish}-userdebug; mmma bootable/recovery Change-Id: Ic82db2746c7deb866e8cdfb3c57e0b1ecc71c4dc
* | | | | | | | Merge "vr_ui: drawing changes" am: 9a874a4e5f am: 3b3f2f5711 am: 0a5e39f180Tao Bao2017-10-064-30/+97
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: df6d1c0c51 Change-Id: Id1c352cc7b001f604270358fa535eb750e0c0646
| * | | | | | | Merge "vr_ui: drawing changes" am: 9a874a4e5f am: 3b3f2f5711Tao Bao2017-10-064-30/+97
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0a5e39f180 Change-Id: I40c01de24aef5f6f8d3def5fd06412263bab81eb
| | * | | | | | Merge "vr_ui: drawing changes" am: 9a874a4e5fTao Bao2017-10-064-30/+97
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3b3f2f5711 Change-Id: I50d1a13b65cf363e55ae62cc1594ffb8932b19ed
| | | * | | | | Merge "vr_ui: drawing changes"Tao Bao2017-10-064-30/+97
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9a874a4e5f Change-Id: Ib36e4a57998fe2de3599181bd48bf6887336edbe
| | | | * | | | Merge "vr_ui: drawing changes"Tao Bao2017-10-064-30/+97
| | | | |\ \ \ \ | | | | | |/ / / | | | | |/| | |
| | | | | * | | vr_ui: drawing changesLuke Song2017-10-054-30/+97
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change drawing of horizontal bars. Implement image and background drawing. Bug: 65556996 Test: Viewed graphics test Change-Id: I68ddd997123607dbebf972af5a455ce8ef0c7075
* | | | | | | Merge "graphics: add rotation logic" am: 9baa19012a am: 284df0abcd am: ab19506094Tao Bao2017-10-053-221/+280
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d83bd5acdf Change-Id: I52859719681aae6f228d5ae68e36603dacbf6fe6
| * | | | | | Merge "graphics: add rotation logic" am: 9baa19012a am: 284df0abcdTao Bao2017-10-053-221/+280
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ab19506094 Change-Id: I41c4fe5ac3ae5c7288818108060040122e52bcd2
| | * | | | | Merge "graphics: add rotation logic" am: 9baa19012aTao Bao2017-10-053-221/+280
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 284df0abcd Change-Id: If6fe816252edf235eb9773dad977ab7f44367448
| | | * | | | Merge "graphics: add rotation logic"Tao Bao2017-10-053-221/+280
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9baa19012a Change-Id: I69220812eb3661eaa5f54d111fb3d143787ebcdf
| | | | * | | Merge "graphics: add rotation logic"Tao Bao2017-10-053-221/+280
| | | | |\ \ \
| | | | | * | | graphics: add rotation logicLuke Song2017-09-283-221/+280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 65556996 Bug: 63541890 Test: Tried 4 rotations, viewed logs and graphics test Change-Id: I2a6c18c28df03f0461663f63bf16db32c45211ec
* | | | | | | | Merge "Revert "Move error_code.h into otautil."" am: b23d29642d am: b87edb00dc am: 4f63cc5e09Tao Bao2017-10-0512-19/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 874d9c0f73 Change-Id: I248a401c4629fe1460f17febd5d8ebd478308586
| * | | | | | | Merge "Revert "Move error_code.h into otautil."" am: b23d29642d am: b87edb00dcTao Bao2017-10-0512-19/+11
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4f63cc5e09 Change-Id: Ib425bc370d5083cc0273ead3dc2ae057467e2720
| | * | | | | | Merge "Revert "Move error_code.h into otautil."" am: b23d29642dTao Bao2017-10-0512-19/+11
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b87edb00dc Change-Id: I43d041f1f59766066240f6e535f1b9839e783c25
| | | * | | | | Merge "Revert "Move error_code.h into otautil.""Tao Bao2017-10-0512-19/+11
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b23d29642d Change-Id: Ib5b7fcf9c627bc1ee09b4abafc54e91c8e788edc
| | | | * | | | Merge "Revert "Move error_code.h into otautil.""Tao Bao2017-10-0512-19/+11
| | | | |\ \ \ \
| | | | | * | | | Revert "Move error_code.h into otautil."Tao Bao2017-10-0512-19/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 623fe7e701d5d0fb17082d1ced14498af1b44e5b. Reason for revert: Need to address device-specific modules. Change-Id: Ib7a4191e7f193dfff49b02d3de76dda856800251
* | | | | | | | | Merge "Move error_code.h into otautil." am: 916e155bab am: 73831e0636 am: 63876d765aTao Bao2017-10-0512-11/+19
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 16f2932619 Change-Id: I819c5c2345123128ba57c1a23607632b5893745c
| * | | | | | | | Merge "Move error_code.h into otautil." am: 916e155bab am: 73831e0636Tao Bao2017-10-0512-11/+19
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 63876d765a Change-Id: Ia97980295e62384f1244c2ad68a6f7335f82d9b5
| | * | | | | | | Merge "Move error_code.h into otautil." am: 916e155babTao Bao2017-10-0512-11/+19
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 73831e0636 Change-Id: Id03ad003349541d7d8db54b3d93da011ba9ee0cd
| | | * | | | | | Merge "Move error_code.h into otautil."Tao Bao2017-10-0512-11/+19
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 916e155bab Change-Id: I53265b03c12bfd022a634f8633f2d2e15a5e641b
| | | | * | | | | Merge "Move error_code.h into otautil."Tao Bao2017-10-0512-11/+19
| | | | |\| | | |
| | | | | * | | | Move error_code.h into otautil.Tao Bao2017-10-0412-11/+19
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This way it stops requiring relative path ".." in LOCAL_C_INCLUDES (uncrypt and edify). Soong doesn't accept non-local ".." in "local_include_dirs". Test: mmma bootable/recovery Change-Id: Ia4649789cef2aaeb2785483660e9ea5a8b389c62
* | | | | | | | Merge "edify: Remove edify_parser." am: 281d4eefb1 am: dfbe70b79d am: 159db1dd49Tao Bao2017-10-042-99/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 45de34c58c Change-Id: Ib7bc3e33b26f7bbda996ed500847e1cebbf592d7
| * | | | | | | Merge "edify: Remove edify_parser." am: 281d4eefb1 am: dfbe70b79dTao Bao2017-10-042-99/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 159db1dd49 Change-Id: Ie57c93107d0065f77970d30c36f69203d19c0017
| | * | | | | | Merge "edify: Remove edify_parser." am: 281d4eefb1Tao Bao2017-10-042-99/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dfbe70b79d Change-Id: I74e065a440dd3397e3a3b04b73c115ff1b33351a
| | | * | | | | Merge "edify: Remove edify_parser."Tao Bao2017-10-042-99/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 281d4eefb1 Change-Id: I821c8d191110be896b775a95a5d5ecb472c8cfe1
| | | | * | | | Merge "edify: Remove edify_parser."Tao Bao2017-10-042-99/+0
| | | | |\ \ \ \ | | | | | |_|/ / | | | | |/| | |
| | | | | * | | edify: Remove edify_parser.Tao Bao2017-10-032-99/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It used to be containing some unit tests for basic edify syntax, which has been moved into recovery_component_test (commit d770d2e7afd8a909156447c2b79d8739228279d7). The edify_parser host tool supports edify built-in functions only, but doesn't recognize the ones defined in updater. This makes it much less useful to do any real analyzing work. Test: mmma bootable/recovery Change-Id: I3c12f5402d2d6698e0ef5ac6c2e7804c0fbba78a
* | | | | | | | Merge "otautil: Export headers." am: 2cedab7af9 am: b50d7cf9c9 am: d284e36fc6Tao Bao2017-10-048-4/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 010c92d2d4 Change-Id: Ic655dfa03bc8a10965a9bb0f1ea063740bd491dd
| * | | | | | | Merge "otautil: Export headers." am: 2cedab7af9 am: b50d7cf9c9Tao Bao2017-10-048-4/+9
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d284e36fc6 Change-Id: I7b7f601bed669428fc8ded3fee9e15a732e90c3c
| | * | | | | | Merge "otautil: Export headers." am: 2cedab7af9Tao Bao2017-10-048-4/+9
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b50d7cf9c9 Change-Id: I0e0a7da7c834cdc686d86dcc3ccc033a2317a8e4
| | | * | | | | Merge "otautil: Export headers."Tao Bao2017-10-048-4/+9
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2cedab7af9 Change-Id: Ib1849336792d21b0c754b6ff9fb9dc67b69a3108
| | | | * | | | Merge "otautil: Export headers."Treehugger Robot2017-10-048-4/+9
| | | | |\ \ \ \
| | | | | * | | | otautil: Export headers.Tao Bao2017-10-038-4/+9
| | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma bootable/recovery Change-Id: Ic01b68e2a394d578fc9fc09da2dabe9061b98122
* | | | | | | | Merge "screen_ui: stage marker positioning" am: 16817312a6 am: c6e12b5f43 am: dca0a20063Luke Song2017-10-041-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d3f4501676 Change-Id: Ic27ce0eab3410e82878419a2c5e10fbb3ecd1510
| * | | | | | | Merge "screen_ui: stage marker positioning" am: 16817312a6 am: c6e12b5f43Luke Song2017-10-041-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dca0a20063 Change-Id: I0ec410171841a7346d155541384b7d4504ff1a24
| | * | | | | | Merge "screen_ui: stage marker positioning" am: 16817312a6Luke Song2017-10-041-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c6e12b5f43 Change-Id: Ife75bb7a33a1ebd7f32369fcd8b349876c8e2532
| | | * | | | | Merge "screen_ui: stage marker positioning"Luke Song2017-10-041-1/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 16817312a6 Change-Id: I4260be142441ea9473ecd121f7fd6b3090bb331c
| | | | * | | | Merge "screen_ui: stage marker positioning"Treehugger Robot2017-10-041-1/+1
| | | | |\ \ \ \ | | | | | |/ / / | | | | |/| | |
| | | | | * | | screen_ui: stage marker positioningLuke Song2017-09-291-1/+1
| | | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Small fix to position stage markers above screen margin. Bug: 65556996 Test: Viewed graphics test Change-Id: Idb4a56b06b8ec4e6653b3d3f3a446fa491f5ccb7
* | | | | | | Merge "roots: Fix an issue with volume_for_path()." am: dd7a4b5264 am: 8b8c7eb442 am: 24801a3438Tao Bao2017-10-024-5/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 42031be1ef Change-Id: I8f0fb4bd6000061bbf850081d16fe13dadad3f46
| * | | | | | Merge "roots: Fix an issue with volume_for_path()." am: dd7a4b5264 am: 8b8c7eb442Tao Bao2017-10-024-5/+11
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 24801a3438 Change-Id: If9ac0b97eee7a1df3e87c9d97f17d182021a0d9f
| | * | | | | Merge "roots: Fix an issue with volume_for_path()." am: dd7a4b5264Tao Bao2017-10-024-5/+11
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8b8c7eb442 Change-Id: Ia87f2388e47fa083a5e9e1e4d49d3021d808cb2b
| | | * | | | Merge "roots: Fix an issue with volume_for_path()."Tao Bao2017-10-024-5/+11
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dd7a4b5264 Change-Id: I60b868ec677a252faeed6821cfe28f093ccd754a
| | | | * | | Merge "roots: Fix an issue with volume_for_path()."Tao Bao2017-10-024-5/+11
| | | | |\ \ \
| | | | | * | | roots: Fix an issue with volume_for_path().Tao Bao2017-10-024-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The earlier commit in 2dfc1a38982c4052bb32bc7fc06edeadf3908fb9 unintentionally changed the behavior. It gives a different result when looking up non-existent mount points (e.g. /cache on marlin). The logic behind volume_for_path("/xyz") is unclear: - It's fine to return non-null value if it's called by ensure_path_mounted() before accessing that file "/xyz". (Just based on the function name, we're not actually having this case.) - It should return nullptr if the caller is interested in the existence of that particular mount point "/xyz". This CL renames the function to volume_for_mount_point(), which does an exact match by querying the given mount point from libfs_mgr. The former volume_for_path() has been moved down to function scope for serving ensure_path_mounted() only. Test: Build and boot into recovery on bullhead and marlin respectively. 'View recovery logs'. Test: 'Mount /system' Test: 'Apply update from ADB' Change-Id: I1a16390f57540cae08a2b8f3d439d17886975217
* | | | | | | | Merge "Use -Werror in bootable/recovery" am: 88aa128e22 am: b5437e3e1b am: e4be0899b2Chih-Hung Hsieh2017-10-021-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4cf96b1632 Change-Id: I2b0411c99620d2363b962515057c4e845fd149d7
| * | | | | | | Merge "Use -Werror in bootable/recovery" am: 88aa128e22 am: b5437e3e1bChih-Hung Hsieh2017-10-021-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e4be0899b2 Change-Id: Ib492fc1163288752d3ceb45569aa7a9f9c2aab6f
| | * | | | | | Merge "Use -Werror in bootable/recovery" am: 88aa128e22Chih-Hung Hsieh2017-10-021-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b5437e3e1b Change-Id: I4ce078f45cc91dc0e868611dd5913b375a029be7
| | | * | | | | Merge "Use -Werror in bootable/recovery"Chih-Hung Hsieh2017-10-021-1/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 88aa128e22 Change-Id: I2aa136c0137f621e12f6fc4062b804b6e1c788f9
| | | | * | | | Merge "Use -Werror in bootable/recovery"Treehugger Robot2017-10-021-1/+1
| | | | |\ \ \ \ | | | | | |/ / / | | | | |/| | |
| | | | | * | | Use -Werror in bootable/recoveryChih-Hung Hsieh2017-10-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move -Werror from cppflags to cflags. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I59147fe24d8b48a0403c67ba07d4d384b8e9c5a3
* | | | | | | | Merge "roots: Remove #include "common.h"." am: e8ee697364 am: 0fa08924c6 am: 61ec157f7dTao Bao2017-10-021-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 845d91ca1a Change-Id: I0a9886c13bd63f616f2d709c32f7f8404905aea3
| * | | | | | | Merge "roots: Remove #include "common.h"." am: e8ee697364 am: 0fa08924c6Tao Bao2017-10-021-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 61ec157f7d Change-Id: Ib5691e5f1fff2466f99bf949e23cfbc48ef79b98
| | * | | | | | Merge "roots: Remove #include "common.h"." am: e8ee697364Tao Bao2017-10-021-2/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0fa08924c6 Change-Id: Ifc86ba18e9cbc69937e17a5434b076a34db27093
| | | * | | | | Merge "roots: Remove #include "common.h"."Tao Bao2017-10-021-2/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e8ee697364 Change-Id: Ie2ef76fe06bfb181a0bc715762cb3f4a7912c376
| | | | * | | | Merge "roots: Remove #include "common.h"."Tao Bao2017-10-021-2/+2
| | | | |\ \ \ \
| | | | | * | | | roots: Remove #include "common.h".Tao Bao2017-09-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And add the missing include of <string.h> (e.g. for strcmp(3)). Minor update to the arg of fs_mgr_get_entry_for_mount_point(), which now accepts std::string. Test: mmma bootable/recovery Change-Id: I9cb8c31fe71b5a053f4d84bf1aba00e96c02ed03
* | | | | | | | | Merge "otafault: Move to soong." am: 475794a9af am: 2812e5d16b am: 3af1827bb5Tao Bao2017-09-304-54/+61
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a2ecd59978 Change-Id: I12943b9434fbc0918cae53bb73b1030393c0aa70
| * | | | | | | | Merge "otafault: Move to soong." am: 475794a9af am: 2812e5d16bTao Bao2017-09-304-54/+61
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3af1827bb5 Change-Id: I0a2eb534dafda090b2a98547e75030dcbfbc50e8
| | * | | | | | | Merge "otafault: Move to soong." am: 475794a9afTao Bao2017-09-294-54/+61
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2812e5d16b Change-Id: Ie5b169867b46fd269a3b2bb9e4a9f8f32aaea98a
| | | * | | | | | Merge "otafault: Move to soong."Tao Bao2017-09-294-54/+61
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 475794a9af Change-Id: Iee13c083650853205901c1a814903943356cc5e7
| | | | * | | | | Merge "otafault: Move to soong."Tao Bao2017-09-294-54/+61
| | | | |\ \ \ \ \
| | | | | * | | | | otafault: Move to soong.Tao Bao2017-09-294-54/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma bootable/recovery Change-Id: I5f2520ea457ba66743aa3aa1d5b3b488a93084a3
* | | | | | | | | | Merge "otafault: Move headers under otafault/." am: 4289deaf82 am: 0018b93b27 am: 540c16307aTao Bao2017-09-3010-14/+15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5ae5a477b3 Change-Id: Ied39bb4a4f43dbbd98dd7e13427a820c2b7b08d1
| * | | | | | | | | Merge "otafault: Move headers under otafault/." am: 4289deaf82 am: 0018b93b27Tao Bao2017-09-3010-14/+15
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 540c16307a Change-Id: I2cc0e38c036220452dbe92622f009bd7dbea406f
| | * | | | | | | | Merge "otafault: Move headers under otafault/." am: 4289deaf82Tao Bao2017-09-2910-14/+15
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0018b93b27 Change-Id: I4b0c15c957e324e290826167ee073d7a75f5476f
| | | * | | | | | | Merge "otafault: Move headers under otafault/."Tao Bao2017-09-2910-14/+15
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4289deaf82 Change-Id: Ia6d10a55a9a70205982c7ff442b24d07ed1697b6
| | | | * | | | | | Merge "otafault: Move headers under otafault/."Tao Bao2017-09-2910-14/+15
| | | | |\| | | | | | | | | | |/ / / / | | | | |/| | | |
| | | | | * | | | otafault: Move headers under otafault/.Tao Bao2017-09-2910-14/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma bootable/recovery Change-Id: I3ceb72f703c7c2857d656c137d71baa1fccd8238
* | | | | | | | | Merge "Move the png open and destroy functions into a class" am: e687c5a1e1 am: 297a994416 am: 408ee90b58Tianjie Xu2017-09-301-286/+279
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a9d8f3f0f4 Change-Id: I6e3bb6029eb6413edee9b853a38d194c68a0310e
| * | | | | | | | Merge "Move the png open and destroy functions into a class" am: e687c5a1e1 am: 297a994416Tianjie Xu2017-09-301-286/+279
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 408ee90b58 Change-Id: Ic12c64792fca35d0ddb017a4016e3a17fa90a09d
| | * | | | | | | Merge "Move the png open and destroy functions into a class" am: e687c5a1e1Tianjie Xu2017-09-291-286/+279
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 297a994416 Change-Id: Ic33be526b2bae0533d42477dfb618579f9e97035
| | | * | | | | | Merge "Move the png open and destroy functions into a class"Tianjie Xu2017-09-291-286/+279
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e687c5a1e1 Change-Id: I826603e04c08408210ebfd197bba8d955b073d65
| | | | * | | | | Merge "Move the png open and destroy functions into a class"Tianjie Xu2017-09-291-286/+279
| | | | |\ \ \ \ \ | | | | | |/ / / / | | | | |/| | | |
| | | | | * | | | Move the png open and destroy functions into a classTianjie Xu2017-09-291-286/+279
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The open_png() function used to open the png file but didn't close it; and this caused the leak of fd. However, we cannot close the file inside open_png() because the png file needs to remain open until the outer function finishes parsing the file and destroys the png struct. This CL addresses this issue by implementing a PngReader class to handle the creation/destruction of the png struct. Bug: 67010912 Test: Run graphic tests; also run locale tests and check fd. Change-Id: I9a803b3cd8c16f16a9ffe8f0acc7fe0f42e95eb0
* | | | | | | | | Merge "otafault: Remove the use of LOCAL_WHOLE_STATIC_LIBRARIES." am: 50f5a54a1e am: 8277230a98 am: d76a2e4c14Tao Bao2017-09-293-4/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7aa2fca9ef Change-Id: I39f1f38096f0adf18ac391a29929bf85f5245706
| * | | | | | | | Merge "otafault: Remove the use of LOCAL_WHOLE_STATIC_LIBRARIES." am: 50f5a54a1e am: 8277230a98Tao Bao2017-09-293-4/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d76a2e4c14 Change-Id: I7a97d1a8c4ace0d715381c4cedc03d53389198b6
| | * | | | | | | Merge "otafault: Remove the use of LOCAL_WHOLE_STATIC_LIBRARIES." am: 50f5a54a1eTao Bao2017-09-293-4/+6
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8277230a98 Change-Id: Iff51b6e020288a56a4e9705b9511a646a8eb999c
| | | * | | | | | Merge "otafault: Remove the use of LOCAL_WHOLE_STATIC_LIBRARIES."Tao Bao2017-09-293-4/+6
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 50f5a54a1e Change-Id: I4f2d63757bb122cd027627321c1ab66c5e9284b6
| | | | * | | | | Merge "otafault: Remove the use of LOCAL_WHOLE_STATIC_LIBRARIES."Tao Bao2017-09-293-4/+6
| | | | |\ \ \ \ \ | | | | | |_|/ / / | | | | |/| | | |
| | | | | * | | | otafault: Remove the use of LOCAL_WHOLE_STATIC_LIBRARIES.Tao Bao2017-09-293-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit d80a99883d5ae2b117c54f076fe1df7eae86d2f8 has explanation of potential issues. Test: mmma bootable/recovery Change-Id: I25ca9920952b7bbdd8a661d9dc90962431410bc4
* | | | | | | | | Merge "otafault: Clean up header inclusion." am: d9373cf621 am: ffc171c56d am: f541841037Tao Bao2017-09-296-20/+18
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b5dfc86eaf Change-Id: I71113ab38711362eef0187f567f213c4083588f2
| * | | | | | | | Merge "otafault: Clean up header inclusion." am: d9373cf621 am: ffc171c56dTao Bao2017-09-296-20/+18
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f541841037 Change-Id: I971fa3c8d5b7d3546df65c1dda98b90c5530f704
| | * | | | | | | Merge "otafault: Clean up header inclusion." am: d9373cf621Tao Bao2017-09-296-20/+18
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ffc171c56d Change-Id: Ib5d0676a143629c0151ad5e94052b67e2f626f49
| | | * | | | | | Merge "otafault: Clean up header inclusion."Tao Bao2017-09-296-20/+18
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d9373cf621 Change-Id: I1096e13532b7dbb6686479c8909a0252b31fc5f2
| | | | * | | | | Merge "otafault: Clean up header inclusion."Tao Bao2017-09-296-20/+18
| | | | |\| | | |
| | | | | * | | | otafault: Clean up header inclusion.Tao Bao2017-09-296-20/+18
| | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unneeded #includes. Also remove unneeded dependency on libz and libselinux. Test: mmma bootable/recovery Change-Id: Ic8f7f46f4b89762dee384921504489de75320ac0
* | | | | | | | Merge "Integer overflow observed while formatting volume" am: 846f307c6f am: 4a20e8b68f am: 5f9defe3f2Abhishek Arpure2017-09-291-5/+12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ae30a316a1 Change-Id: I2fd6b0e9e844ef4b42a4d12c545c3c1f7b82893f
| * | | | | | | Merge "Integer overflow observed while formatting volume" am: 846f307c6f am: 4a20e8b68fAbhishek Arpure2017-09-291-5/+12
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5f9defe3f2 Change-Id: I014df1d8e0a87ba4fab80b15d5602e3439372c55
| | * | | | | | Merge "Integer overflow observed while formatting volume" am: 846f307c6fAbhishek Arpure2017-09-291-5/+12
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4a20e8b68f Change-Id: Idbccd3323ddc9639094ed4c7f73ca6d4f917c9be
| | | * | | | | Merge "Integer overflow observed while formatting volume"Abhishek Arpure2017-09-291-5/+12
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 846f307c6f Change-Id: I078b9079eb8f120780df2d38dabb663cef7a306b
| | | | * | | | Merge "Integer overflow observed while formatting volume"Treehugger Robot2017-09-291-5/+12
| | | | |\ \ \ \ | | | | | |/ / / | | | | |/| | |
| | | | | * | | Integer overflow observed while formatting volumeAbhishek Arpure2017-09-121-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While calculating volume size, get_block_device_size() returns u64 value but the returned value is assigned in ssize_t variable. This may cause integer overflow if the volume size is beyond ssize_t limit. Use int64_t instead of ssize_t in get_file_size() and explicitly check for overflow to fix the issue. Bug: 65001754 Test: mmma bootable/recovery Change-Id: I91eb30bff0bf7dcc48678efc2f414d2b79af6d0d
* | | | | | | | Merge "roots: volume_for_path() parses and tries prefixes." am: 3a1587f655 am: fdbe272dc0 am: 3421fa1815Tao Bao2017-09-291-1/+20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5eb45473bd Change-Id: I4e9b5e8571d02cddb075138cae43532601bcbb10
| * | | | | | | Merge "roots: volume_for_path() parses and tries prefixes." am: 3a1587f655 am: fdbe272dc0Tao Bao2017-09-291-1/+20
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3421fa1815 Change-Id: I7d3db3624a3ed977d8c09f1090e1a26df066bf1b
| | * | | | | | Merge "roots: volume_for_path() parses and tries prefixes." am: 3a1587f655Tao Bao2017-09-291-1/+20
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fdbe272dc0 Change-Id: I344ef54db5949b853ad17a04ff88fd2254ac36bf
| | | * | | | | Merge "roots: volume_for_path() parses and tries prefixes."Tao Bao2017-09-291-1/+20
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3a1587f655 Change-Id: I8dbe9f7f1dca5e1f5d081854435f5ee069bab462
| | | | * | | | Merge "roots: volume_for_path() parses and tries prefixes."Tao Bao2017-09-281-1/+20
| | | | |\ \ \ \ | | | | | |_|/ / | | | | |/| | |
| | | | | * | | roots: volume_for_path() parses and tries prefixes.Tao Bao2017-09-271-1/+20
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit cc323958f99e40fea06c511656c69c0b2e2d47f7 in system/core has changed fs_mgr_get_entry_for_mount_point() to do an exact match only, which breaks the behavior in volume_for_path(). This CL changes the volume_for_path() implementation to parse and pass prefixes locally. For a given path like "/cache/recovery/last_log", it will in turn attempt the prefixes of "/cache/recovery/last_log", "/cache/recovery", "/cache", "/" and return the first hit. Bug: 63912287 Test: Build and boot into recovery image on bullhead. 'View recovery logs' works. Change-Id: Ic8635b0939649dd5cc9ca501ebc3a2d1fbf5849d
* | | | | | | Merge "Add a new option in recovery menu to test the background texts" am: 4c7608f3ca am: 8874d3c309 am: 5e969aa10dTianjie Xu2017-09-277-21/+153
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 168a8d35c5 Change-Id: I46db96d43814880dfae20b38379724f8dea51452
| * | | | | | Merge "Add a new option in recovery menu to test the background texts" am: 4c7608f3ca am: 8874d3c309Tianjie Xu2017-09-277-21/+153
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5e969aa10d Change-Id: I59c1cee7aa7a67bd01d5c31c2af6e5390463c88e
| | * | | | | Merge "Add a new option in recovery menu to test the background texts" am: 4c7608f3caTianjie Xu2017-09-277-21/+153
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8874d3c309 Change-Id: I678eb4f5e3ebee72f519bd0a9b3fd76cbcf18d7c
| | | * | | | Merge "Add a new option in recovery menu to test the background texts"Tianjie Xu2017-09-277-21/+153
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4c7608f3ca Change-Id: I58dde37fe5c07487956c255b2d588d8505820fe9
| | | | * | | Merge "Add a new option in recovery menu to test the background texts"Tianjie Xu2017-09-277-21/+153
| | | | |\ \ \
| | | | | * | | Add a new option in recovery menu to test the background textsTianjie Xu2017-09-277-21/+153
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new option "Run locale test" to check the background text images (i.e. texts for "erasing", "error", "no_command" and "installing" with different locales.) Use volume up/down button to cycle through all the locales embedded in the png file, and power button to go back to recovery main menu. Test: Run locale test with bullhead. Change-Id: Ib16e119f372110cdb5e611ef497b0f9b9b418f51
* | | | | | | Merge "clang-format: Remove the override of PenaltyExcessCharacter." am: 151f0820ac am: fccf3bc0cf am: 88fd6aff38Tao Bao2017-09-271-1/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4167aa25d6 Change-Id: If7c8e32c321fe0d20e063a0e4d93cb1b09226cef
| * | | | | | Merge "clang-format: Remove the override of PenaltyExcessCharacter." am: 151f0820ac am: fccf3bc0cfTao Bao2017-09-271-1/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 88fd6aff38 Change-Id: I268dbd09e13dce5920b5025a5cbf73b06b493668
| | * | | | | Merge "clang-format: Remove the override of PenaltyExcessCharacter." am: 151f0820acTao Bao2017-09-271-1/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fccf3bc0cf Change-Id: Ia081fa95df4fb5eebf17d984cd012f6bbde12e40
| | | * | | | Merge "clang-format: Remove the override of PenaltyExcessCharacter."Tao Bao2017-09-271-1/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 151f0820ac Change-Id: I6239cc5a76c39ae6f6e183000f4cab0573183be9
| | | | * | | Merge "clang-format: Remove the override of PenaltyExcessCharacter."Tao Bao2017-09-271-1/+0
| | | | |\ \ \
| | | | | * | | clang-format: Remove the override of PenaltyExcessCharacter.Tao Bao2017-09-271-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So it falls back (from 32) to the default value in Google style: PenaltyExcessCharacter: 1000000 This way it no longer allows lines exceeding the 100-char limit. const char* x[] = { "long enough so that the line has 101 chars", nullptr }; would become const char* x[] = { "long enough so that the line has 101 chars", nullptr }; Test: clang-format the line above. Change-Id: If578dbdae55d6d81f5e47889890e2afa12b4199a
* | | | | | | | Merge "Output split information for imgdiff when handling large apks" am: 7f54fe8841 am: eb5e194012 am: 448af2aa77Tianjie Xu2017-09-273-69/+174
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c7d2f69ba8 Change-Id: I4585ac319d12c5c99669c57cd71a0c1526496be4
| * | | | | | | Merge "Output split information for imgdiff when handling large apks" am: 7f54fe8841 am: eb5e194012Tianjie Xu2017-09-273-69/+174
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 448af2aa77 Change-Id: I93d6154520ed3d42e85450e007fbd00afb9f54e7
| | * | | | | | Merge "Output split information for imgdiff when handling large apks" am: 7f54fe8841Tianjie Xu2017-09-273-69/+174
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: eb5e194012 Change-Id: I6a9a4107fdc5a19941c4e506fd807a2b97bef3b0
| | | * | | | | Merge "Output split information for imgdiff when handling large apks"Tianjie Xu2017-09-273-69/+174
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7f54fe8841 Change-Id: I97ad82d84b16b46e9c0c0f8198d3ab73d43031b0
| | | | * | | | Merge "Output split information for imgdiff when handling large apks"Tianjie Xu2017-09-273-69/+174
| | | | |\ \ \ \
| | | | | * | | | Output split information for imgdiff when handling large apksTianjie Xu2017-09-213-69/+174
| | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a mandatory option in imgdiff to write the split info (i.e. patch_size, tgt_size, src_ranges) to file when handling large apks. Therefore, the caller of imgdiff can create split transfers based on the info. Bug: 63542719 Test: unit tests pass Change-Id: I853d55d1f999fd576474faa81077f7307f4d856d
* | | | | | | | Merge "update the recovery background image with new translation" am: c0123e0c3a am: 6a5204ac8d am: 9425dba5b3Tianjie Xu2017-09-2225-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d82af7d280 Change-Id: Ib7940fd0ab701235d178c2e6f11b34037db9b444
| * | | | | | | Merge "update the recovery background image with new translation" am: c0123e0c3a am: 6a5204ac8dTianjie Xu2017-09-2225-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9425dba5b3 Change-Id: I580b4c95e20493484cb039f9421abe8f22b4301f
| | * | | | | | Merge "update the recovery background image with new translation" am: c0123e0c3aTianjie Xu2017-09-2225-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6a5204ac8d Change-Id: I1ca72cab196f5c37f792d3728acfebdf4a781058
| | | * | | | | Merge "update the recovery background image with new translation"Tianjie Xu2017-09-2225-0/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c0123e0c3a Change-Id: I071133d52c92b7166df12313c7298621a6718eaa
| | | | * | | | Merge "update the recovery background image with new translation"Tianjie Xu2017-09-2225-0/+0
| | | | |\ \ \ \ | | | | | |/ / / | | | | |/| | |
| | | | | * | | update the recovery background image with new translationTianjie Xu2017-09-2025-0/+0
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: recovery manual test && run graphic test under recovery Change-Id: I2bc514a07a12276f42adb1eec5e208190b4602f2
* | | | | | | Merge "recovery: reduce overall boot time" am: a815d3fb59 am: 9da4179ee6 am: 4b8bbb95abMark Salyzyn2017-09-192-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ca93a1f529 Change-Id: I77778787a3907460bcda2b1b502a12e3ff258aff
| * | | | | | Merge "recovery: reduce overall boot time" am: a815d3fb59 am: 9da4179ee6Mark Salyzyn2017-09-192-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4b8bbb95ab Change-Id: I127bb24963d2500dbdfbca933c40001017b8b42a
| | * | | | | Merge "recovery: reduce overall boot time" am: a815d3fb59Mark Salyzyn2017-09-192-2/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9da4179ee6 Change-Id: I03c6ce2eabb113534a57ba777360eb8d16a7a47b
| | | * | | | Merge "recovery: reduce overall boot time"Mark Salyzyn2017-09-192-2/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a815d3fb59 Change-Id: I430edd95601b47d09861e289e0de51ff1bc32fdd
| | | | * | | Merge "recovery: reduce overall boot time"Treehugger Robot2017-09-192-2/+2
| | | | |\ \ \
| | | | | * | | recovery: reduce overall boot timeMark Salyzyn2017-09-182-2/+2
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move recovery-refresh and recovery-persist to onshot exec_background. synchronous exec commands impact boot time. Test: none Bug: 65736247 Change-Id: Ic065c27b21f9bacbadee1e8c07bb15e2c41e0082
* | | | | | | Merge "Fix the dangling pointer when setting up arguments of imgdiff" am: ca5a071307 am: 2cb1fb45c0 am: ed50c1817fTianjie Xu2017-09-171-6/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f358a7d12b Change-Id: I2338d792b7f2138ff7c84093c8b88415178f6809
| * | | | | | Merge "Fix the dangling pointer when setting up arguments of imgdiff" am: ca5a071307 am: 2cb1fb45c0Tianjie Xu2017-09-171-6/+9
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ed50c1817f Change-Id: Ia8012462d20f8b6ba15b12caf9b4e9be43bb2a47
| | * | | | | Merge "Fix the dangling pointer when setting up arguments of imgdiff" am: ca5a071307Tianjie Xu2017-09-171-6/+9
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2cb1fb45c0 Change-Id: Ia4d4dd1f1f0e2667d0b4bbe06c76d20663ce580f
| | | * | | | Merge "Fix the dangling pointer when setting up arguments of imgdiff"Tianjie Xu2017-09-171-6/+9
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ca5a071307 Change-Id: I9411f0bce8d96c598db365d0257d4c9893e24104
| | | | * | | Merge "Fix the dangling pointer when setting up arguments of imgdiff"Tianjie Xu2017-09-171-6/+9
| | | | |\ \ \
| | | | | * | | Fix the dangling pointer when setting up arguments of imgdiffTianjie Xu2017-09-131-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: unit tests pass Change-Id: If884e805ccd4df73671ab3436eb90860786ff6c9
* | | | | | | | Import translations. DO NOT MERGE am: c9b0416842 -s oursBill Yi2017-09-160-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 365e023539 -s ours Change-Id: If9b18bede5c5161a26fd96c841c137a9e5fa5d29
| * | | | | | | Import translations. DO NOT MERGEBill Yi2017-09-160-0/+0
| |\ \ \ \ \ \ \ | | | |_|_|_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c9b0416842 -s ours Change-Id: Iff8a53fb5034b4c1829ccfa045015f9f45241e2d
| | * | | | | | Import translations. DO NOT MERGEBill Yi2017-09-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import Bug: 64712476 Change-Id: Ia05d14ff5b7f6b283f46566c88a4edc4a89d5576
* | | | | | | | Merge "Remove EXPAND/STRINGIFY macros." am: 6e7df82c7b am: ad878d5494 am: 34e7d45fb3Tao Bao2017-09-143-4/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2010f84297 Change-Id: Id7ad2e1444d98ee79c53bc1625ea478721d24cf5
| * | | | | | | Merge "Remove EXPAND/STRINGIFY macros." am: 6e7df82c7b am: ad878d5494Tao Bao2017-09-143-4/+9
| |\ \ \ \ \ \ \ | | | |/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 34e7d45fb3 Change-Id: Ia987a7abbb9385cec1797718593b4e1c1c6be6a3
| | * | | | | | Merge "Remove EXPAND/STRINGIFY macros." am: 6e7df82c7bTao Bao2017-09-133-4/+9
| | |\ \ \ \ \ \ | | | | |/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ad878d5494 Change-Id: I26f95122637228debd396ad07928273e1f776da1
| | | * | | | | Merge "Remove EXPAND/STRINGIFY macros."Tao Bao2017-09-133-4/+9
| | | |\ \ \ \ \ | | | | | |/ / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6e7df82c7b Change-Id: Id3bf3e77e54c90739cf716029928197c3274632f
| | | | * | | | Merge "Remove EXPAND/STRINGIFY macros."Tao Bao2017-09-133-4/+9
| | | | |\ \ \ \ | | | | | |_|/ / | | | | |/| | |
| | | | | * | | Remove EXPAND/STRINGIFY macros.Tao Bao2017-09-133-4/+9
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 8be0f39fec7f26164fd0791ff6d15bde65fc849c to reland the change that removes EXPAND/STRINGIFY macros. It's error-prone by putting anything into a string (e.g. EXPAND(RECOVERY_API_VERSION) would become "RECOVER_API_VERSION" if we forgot to pass -DRECOVERY_API_VERSION=3). The initial attempt put RECOVERY_API_VERSION into common.h, which might be included by device-specific codes but without defining that when compiling the module. This CL avoids the issue by using a constant in the header, with a static_assert in recovery.cpp that guards the consistency. Test: recovery_component_test Test: Sideload OTAs on bullhead and sailfish respectively. Change-Id: I12af3f73392a85554ba703f04970ec9d984ccbaa
* | | | | | | Import translations. DO NOT MERGEBill Yi2017-09-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8de15b09695dea1a53a368c942cb8a7dd30ed87d Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import
* | | | | | | Merge "Close cmd_pipe properly after updater test finishes" am: 64307daf5b am: a11601da9b am: d83c0a8715Tianjie Xu2017-09-121-8/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: df4cc8316e Change-Id: I91f088e07e59bc555b750079a97ab46b1a274bfe
| * | | | | | Merge "Close cmd_pipe properly after updater test finishes" am: 64307daf5b am: a11601da9bTianjie Xu2017-09-121-8/+14
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d83c0a8715 Change-Id: I07ba7aeda4f0b19cedd6b184db7700ebe9ef57f9
| | * | | | | Merge "Close cmd_pipe properly after updater test finishes" am: 64307daf5bTianjie Xu2017-09-121-8/+14
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a11601da9b Change-Id: If8f66fdf17f4878c067e7d7e5505ea00c1418fb2
| | | * | | | Merge "Close cmd_pipe properly after updater test finishes"Tianjie Xu2017-09-121-8/+14
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 64307daf5b Change-Id: Ic384d9de3c559855cfe0bd122adb5e69fa996ad1
| | | | * | | Merge "Close cmd_pipe properly after updater test finishes"Tianjie Xu2017-09-121-8/+14
| | | | |\ \ \ | | | | | |_|/ | | | | |/| |
| | | | | * | Close cmd_pipe properly after updater test finishesTianjie Xu2017-09-111-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise the test may fail after a large number of iterations due to file open failure. Bug: 65430057 Test: run recovery_component_test on sailfish for 2000 iterations. Change-Id: I0d456284d6064467038911d63eade95740cbec2c
* | | | | | | Merge "ui: Move locale and friends into ScreenRecoveryUI class." am: fc570c317b am: 166188c2c6 am: 547d5fd559Tao Bao2017-09-124-35/+38
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3644617e3d Change-Id: I3aef0a888ebdd0ed38f910ab51848a8e54bb4355
| * | | | | | Merge "ui: Move locale and friends into ScreenRecoveryUI class." am: fc570c317b am: 166188c2c6Tao Bao2017-09-124-35/+38
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 547d5fd559 Change-Id: Ic6ef12b7e4a25fb7cfcd5e79c8784bf764fda6b4
| | * | | | | Merge "ui: Move locale and friends into ScreenRecoveryUI class." am: fc570c317bTao Bao2017-09-124-35/+38
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 166188c2c6 Change-Id: I8f5010df98eb10f117a4391a107f956e8bbb97f4
| | | * | | | Merge "ui: Move locale and friends into ScreenRecoveryUI class."Tao Bao2017-09-114-35/+38
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fc570c317b Change-Id: I4e4849c837f11340b3cafdd04e678fd3f7cb4c5d
| | | | * | | Merge "ui: Move locale and friends into ScreenRecoveryUI class."Tao Bao2017-09-114-35/+38
| | | | |\ \ \
| | | | | * | | ui: Move locale and friends into ScreenRecoveryUI class.Tao Bao2017-09-114-35/+38
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Localized texts only make sense on devices with screens. Test: Run fake OTA on angler; check the on-screen texts. Change-Id: I3a644294c8b1f2056cfb78b2d61a598b8ddf2acf
* | | | | | | Merge "ui: Remove text_top_." am: 568644197f am: d96ce15139 am: cce9b2c96aTao Bao2017-09-113-12/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 28459ffde3 Change-Id: I46b6b0c9211a862c88d950681ac3fc304f993f97
| * | | | | | Merge "ui: Remove text_top_." am: 568644197f am: d96ce15139Tao Bao2017-09-113-12/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cce9b2c96a Change-Id: Ic55e5c34c7f3af84c85d0a261af9c0fc2ec4e652
| | * | | | | Merge "ui: Remove text_top_." am: 568644197fTao Bao2017-09-113-12/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d96ce15139 Change-Id: I005f49442b63fafe5642a6e416c176361d0beff0
| | | * | | | Merge "ui: Remove text_top_."Tao Bao2017-09-113-12/+4
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 568644197f Change-Id: I83872bc318db77036f70bb07baaade12c1b34b6e
| | | | * | | Merge "ui: Remove text_top_."Tao Bao2017-09-113-12/+4
| | | | |\ \ \
| | | | | * | | ui: Remove text_top_.Tao Bao2017-09-093-12/+4
| | | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After the cleanup to WearRecoveryUI, text_top_ now always equals to ((text_row_ + 1) % text_rows_). Test: Check the recovery UI and 'View recovery logs'. Change-Id: I69a7f377bbd990db2194f9d3efae257c323c06a8
* | | | | | | Merge "ui: Refactor the declaration orders." am: 79a23b30d2 am: cb94b611cf am: bd9ef0ad1aTao Bao2017-09-113-76/+103
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3616adceea Change-Id: Ib61892e85e8f77e376c1780bd7efc115653c15a1
| * | | | | | Merge "ui: Refactor the declaration orders." am: 79a23b30d2 am: cb94b611cfTao Bao2017-09-113-76/+103
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bd9ef0ad1a Change-Id: Ib2cf6e1a218114663ebecb5f7ab2137938ea548b
| | * | | | | Merge "ui: Refactor the declaration orders." am: 79a23b30d2Tao Bao2017-09-113-76/+103
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cb94b611cf Change-Id: I70be41861c95d25849190062dd710097b7648375
| | | * | | | Merge "ui: Refactor the declaration orders."Tao Bao2017-09-113-76/+103
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 79a23b30d2 Change-Id: Icf22068baae034b480333ac358a50c9368ebdc98
| | | | * | | Merge "ui: Refactor the declaration orders."Tao Bao2017-09-113-76/+103
| | | | |\ \ \ | | | | | |/ / | | | | |/| |
| | | | | * | ui: Refactor the declaration orders.Tao Bao2017-09-103-76/+103
| | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By grouping similar kinds together, in an order of types, constants, ctor/dtor, all other methods and data members. Also rename ScreenRecoveryUI::density_ to ScreenRecoveryUI::kDensity to align with others. Test: mmma bootable/recovery Change-Id: I1ba2d15c05ba7be8c39762f3d9dadf1fb2130de4
* | | | | | ui: Manage menu_ with std::vector. am: 17fa5c7cabTao Bao2017-09-090-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dd7e23a069 Change-Id: I544f2311306b2dbb9ee76803250ebe6649296aa5
| * | | | | ui: Manage menu_ with std::vector.Tao Bao2017-09-090-0/+0
| |\ \ \ \ \ | | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | am: 17fa5c7cab Change-Id: Ifa4f8333a445bdf92a9cc19dacd2223260dcff45
| | * | | | ui: Manage menu_ with std::vector.Tao Bao2017-09-093-17/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this CL, menu_ is allocated with a fixed length of text_rows_. However, because we support scrollable menu in wear_ui, there might be more menu entries than text_rows_, which would lead to out-of-bounds array access. This CL addresses the issue by switching to std::vector. Bug: 65416558 Test: Run 'View recovery logs' on angler. Test: Set large margin height that leaves text_rows less than 21. Then run 'View recovery logs' with 21 menu entries. Change-Id: I5d4e3a0a097039e1104eda7d494c6269053dc894 (cherry picked from commit e15d7a5104978cd8399501636aec0df9c1a4823c)
* | | | | | Merge "wear_ui: Remove Print()/ShowFile()/PutChar()." am: fa4f014063 am: 5f5ccacef7 am: 53bb5ff137Tao Bao2017-09-092-122/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ce2e47729e Change-Id: I1b56b9e8112257da964657b60bd98e0816721481
| * | | | | Merge "wear_ui: Remove Print()/ShowFile()/PutChar()." am: fa4f014063 am: 5f5ccacef7Tao Bao2017-09-082-122/+1
| |\ \ \ \ \ | | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | am: 53bb5ff137 Change-Id: I63e10488999f16429c9ada2215de716bf4aceb2e
| | * | | | Merge "wear_ui: Remove Print()/ShowFile()/PutChar()." am: fa4f014063Tao Bao2017-09-082-122/+1
| | |\ \ \ \ | | | | |/ / | | | |/| | | | | | | | | | | | | | | | | | | | am: 5f5ccacef7 Change-Id: I287ef8936851abe69b50e1f3ca5f5dd0d752d9d6
| | | * | | Merge "wear_ui: Remove Print()/ShowFile()/PutChar()."Tao Bao2017-09-082-122/+1
| | | |\ \ \ | | | | | |/ | | | | |/| | | | | | | | | | | | | | | | | | | am: fa4f014063 Change-Id: If47ce2f16e839c10ac8447ef69eb40392abeaf00
| | | | * | Merge "wear_ui: Remove Print()/ShowFile()/PutChar()."Tao Bao2017-09-082-122/+1
| | | | |\ \
| | | | | * | wear_ui: Remove Print()/ShowFile()/PutChar().Tao Bao2017-09-082-122/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They're mostly identical to the ones in ScreenRecoveryUI, except for the (legacy) use of 'text_top_'. Because wear_ui.cpp misses the change in [1] that uses an alternate screen for viewing recovery logs. Also clean up the included headers. [1] commit c049163234003ef463bca018920622bc8269c69b ('Add an alternate screen for viewing recovery logs.'). Test: Build a wearable target recovery; `View recovery logs`. Change-Id: Ic9208c42a11c037469f5b073ef7d9b721c14d1f3
* | | | | | | Merge "ui: Manage menu_ with std::vector." am: f51bb0f2d6 am: 4e3e42bed8 am: 77425c5e15Tao Bao2017-09-093-17/+15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8ca81ce581 Change-Id: I146243036bd582425a558d2f3ae96fff4b404e76
| * | | | | | Merge "ui: Manage menu_ with std::vector." am: f51bb0f2d6 am: 4e3e42bed8Tao Bao2017-09-083-17/+15
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 77425c5e15 Change-Id: I6bf15912d53af213fde9225061367e1edfb4c2ec
| | * | | | | Merge "ui: Manage menu_ with std::vector." am: f51bb0f2d6Tao Bao2017-09-083-17/+15
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4e3e42bed8 Change-Id: I413c3d1734c51046784b9f2b94a2305023c2a890
| | | * | | | Merge "ui: Manage menu_ with std::vector."Tao Bao2017-09-083-17/+15
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f51bb0f2d6 Change-Id: I16dfb5ee848cf97ee98626183aef8fdc228c8dae
| | | | * | | Merge "ui: Manage menu_ with std::vector."Tao Bao2017-09-083-17/+15
| | | | |\ \ \
| | | | | * | | ui: Manage menu_ with std::vector.Tao Bao2017-09-083-17/+15
| | | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this CL, menu_ is allocated with a fixed length of text_rows_. However, because we support scrollable menu in wear_ui, there might be more menu entries than text_rows_, which would lead to out-of-bounds array access. This CL addresses the issue by switching to std::vector. Bug: 65416558 Test: Run 'View recovery logs' on angler. Test: Set large margin height that leaves text_rows less than 21. Then run 'View recovery logs' with 21 menu entries. Change-Id: I5d4e3a0a097039e1104eda7d494c6269053dc894
* | | | | | | Merge "Improve imgdiff for large zip files" am: 9f48641784 am: e24e90f403 am: b2dac70423Tianjie Xu2017-09-083-24/+814
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ff0bcf6bef Change-Id: I1cffba42a15f7206b534fdb1cba748e9980fe29b
| * | | | | | Merge "Improve imgdiff for large zip files" am: 9f48641784 am: e24e90f403Tianjie Xu2017-09-083-24/+814
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b2dac70423 Change-Id: If2923c5afd304893161e1b2949c7a6afa74306f3
| | * | | | | Merge "Improve imgdiff for large zip files" am: 9f48641784Tianjie Xu2017-09-083-24/+814
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e24e90f403 Change-Id: I2692f832b720bdf966263d35f8e0a0bab8fe0699
| | | * | | | Merge "Improve imgdiff for large zip files"Tianjie Xu2017-09-083-24/+814
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9f48641784 Change-Id: I999525af80c5423da275025d977de10399140479
| | | | * | | Merge "Improve imgdiff for large zip files"Tianjie Xu2017-09-083-24/+814
| | | | |\ \ \ | | | | | |/ / | | | | |/| |
| | | | | * | Improve imgdiff for large zip filesTianjie Xu2017-09-063-24/+814
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to the cache size limit for OTA generation, we used to split large zip files linearly into pieces and do bsdiff on them. As a result, i) we lose the advantage of imgdiff; ii) if there's an accidental order change of some huge files inside the zip, we'll create an insanely large patch. This patch splits the src&tgt more smartly based on the zip entry_name. If the entry_name is empty or no matching source is found for a target chunk, we'll skip adding its source and later do a bsdiff against the whole split source image (this rarely happens in our use cases except for the metadata inside a ziparchive). After the split, the target pieces are continuous and block aligned, while the sources pieces are mutually exclusive. (Some of the source blocks may not be used if there's no matching entry_name in the target.) Then we will generate patches accordingly between each split image pairs. Afterwards, if we apply imgpatch to each pair of split source/target images and add up the patched result, we can get back the original target image. For example: Input: [src_image, tgt_image] Split: [src-0,tgt-0; src-1,tgt-1, src-2,tgt-2] Diff: [ patch-0; patch-1; patch-2] Patch: [(src-0,patch-0)=tgt-0; (src-1,patch-1)=tgt-1; (src-2,patch-2)=tgt-2;] Append: [tgt-0 + tgt-1 + tgt-2 = tgt_image] Peformance: For the small package in b/34220646, we decrease the patch size of chrome.apk dramatically from 30M to 400K due to the order change of two big .so files. On two versions of angler, I also observe decent patch size decrease. For chrome.apk, we reduced the size from 5.9M to 3.2M; and for vevlet.apk from 8.0M to 6.5M. Bug: 34220646 Test: recovery component test && apply imgdiff & imgpatch on two chrome.apk Change-Id: I145d802984fa805efbbac9d01a2e64d82ef9728b
* | | | | | | Import translations. DO NOT MERGEBill Yi2017-09-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: If7aad0299a372403f2875fe3aeb60ad07acb7b47 Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import
* | | | | | | Merge "wear_ui: Remove PrintOnScreenOnly() and PrintV()." am: 8c753f6253 am: 0cada4da99 am: 0f7d56fe81Tao Bao2017-09-022-36/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 036dec3944 Change-Id: Ia20f772e64e00020e4fdf07405fcf9a80c878468
| * | | | | | Merge "wear_ui: Remove PrintOnScreenOnly() and PrintV()." am: 8c753f6253 am: 0cada4da99Tao Bao2017-09-022-36/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0f7d56fe81 Change-Id: I0d3fcb92109bc5fa8bd84736b6228be90f800de9
| | * | | | | Merge "wear_ui: Remove PrintOnScreenOnly() and PrintV()." am: 8c753f6253Tao Bao2017-09-022-36/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0cada4da99 Change-Id: I49803c522f3f40a0ac8d70b5bf1eaf83a2c7d2f8
| | | * | | | Merge "wear_ui: Remove PrintOnScreenOnly() and PrintV()."Tao Bao2017-09-022-36/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8c753f6253 Change-Id: Iefb74df704f4065ff2e87197cb1a505215c8f384
| | | | * | | Merge "wear_ui: Remove PrintOnScreenOnly() and PrintV()."Tao Bao2017-09-022-36/+1
| | | | |\ \ \
| | | | | * | | wear_ui: Remove PrintOnScreenOnly() and PrintV().Tao Bao2017-09-012-36/+1
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They're just copy/pastes from the base class (ScreenRecoveryUI). Test: mmma bootable/recovery Change-Id: I341416107a14d89d3366bba757da0b1abb988b15
* | | | | | | Merge "wear_ui: Remove backgroundIcon." am: 6e426f2b76 am: 3650e7c19b am: b457e24facTao Bao2017-09-012-40/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 27c4410a48 Change-Id: I1e13196dbc4a8e56c0777db9844f74bf65964f20
| * | | | | | Merge "wear_ui: Remove backgroundIcon." am: 6e426f2b76 am: 3650e7c19bTao Bao2017-09-012-40/+8
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b457e24fac Change-Id: Id46eadff2d1f005fe6b57691924a0525866b7360
| | * | | | | Merge "wear_ui: Remove backgroundIcon." am: 6e426f2b76Tao Bao2017-09-012-40/+8
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3650e7c19b Change-Id: Ibd04e9d48187a48389805eca796426df63aa31a4
| | | * | | | Merge "wear_ui: Remove backgroundIcon."Tao Bao2017-09-012-40/+8
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6e426f2b76 Change-Id: I08682bab314cdf925020d1104a9e1e79ddcee4b9
| | | | * | | Merge "wear_ui: Remove backgroundIcon."Tao Bao2017-09-012-40/+8
| | | | |\ \ \ | | | | | |/ / | | | | |/| |
| | | | | * | wear_ui: Remove backgroundIcon.Tao Bao2017-08-312-40/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's covered by the equivalent variable in ScreenRecoveryUI: GRSurface* error_icon; Also refactor WearRecoveryUI::draw_background_locked() to get it closer to ScreenRecoveryUI code. Test: Build a wearable target recovery; Run graphics test. Change-Id: I3a8d0e4dbf6fe170e4f3adde7eaf4a2043132a57
* | | | | | | Merge "Turn on -Wall for libedify" am: deb5de0bc1 am: 365059c61b am: 36983d8dd0Tianjie Xu2017-08-312-2/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a8c009106c Change-Id: Ib4787bb5c6ed3eae57e8c3123c726ac08fd6b62c
| * | | | | | Merge "Turn on -Wall for libedify" am: deb5de0bc1 am: 365059c61bTianjie Xu2017-08-312-2/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 36983d8dd0 Change-Id: I28fe4e12228bf6c75280c04f27407e2ee8588e67
| | * | | | | Merge "Turn on -Wall for libedify" am: deb5de0bc1Tianjie Xu2017-08-312-2/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 365059c61b Change-Id: Ib17d03c23bb3a94cbd886190ccfeb0a323d8143b
| | | * | | | Merge "Turn on -Wall for libedify"Tianjie Xu2017-08-312-2/+4
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: deb5de0bc1 Change-Id: Iace07e47ed07ce3e7336ab93a22cdfd53cfca778
| | | | * | | Merge "Turn on -Wall for libedify"Tianjie Xu2017-08-312-2/+4
| | | | |\ \ \ | | | | | |/ / | | | | |/| |
| | | | | * | Turn on -Wall for libedifyTianjie Xu2017-08-312-2/+4
| | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 64939312 Test: mma Change-Id: Ia4afc6241b1f11ce261be6840f21a793b23014a6
* | | | | | Import translations. DO NOT MERGE am: c16d222593 -s oursBill Yi2017-08-300-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5dac1e08ea -s ours Change-Id: Ic2750e22865b1f053548a66aad3ad7ca2cd58ea9
| * | | | | Import translations. DO NOT MERGEBill Yi2017-08-300-0/+0
| |\ \ \ \ \ | | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | am: c16d222593 -s ours Change-Id: Ie85856e9683cba8534abc07f4f7dbd0dee19ead9
| | * | | | Import translations. DO NOT MERGEBill Yi2017-08-293-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import Bug: 64712476 Change-Id: Ife1e0455a5433bc0cb0e15b0aabf2beef1ba8827
* | | | | | Merge "Import translations. DO NOT MERGE"TreeHugger Robot2017-08-292-2/+2
|\ \ \ \ \ \
| * | | | | | Import translations. DO NOT MERGEBill Yi2017-08-272-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I0b2ff87788553d2c49519d005f8876cd7318b8c6 Auto-generated-cl: translation import
* | | | | | | Merge "Turn on -Wall for recovery modules" am: 11f68b6b69 am: 44d0b008c6 am: 447da69c14Tianjie Xu2017-08-2912-35/+34
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | am: eb958f0d9e Change-Id: I5780d927417a22271ad2b5d15612e4299b7a161e
| * | | | | | Merge "Turn on -Wall for recovery modules" am: 11f68b6b69 am: 44d0b008c6Tianjie Xu2017-08-2912-35/+34
| |\ \ \ \ \ \ | | | |_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | am: 447da69c14 Change-Id: Ic2cba08a3e9f691f94e0adccc767ab0e7ea73d67
| | * | | | | Merge "Turn on -Wall for recovery modules" am: 11f68b6b69Tianjie Xu2017-08-2912-35/+34
| | |\ \ \ \ \ | | | | |_|/ / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | am: 44d0b008c6 Change-Id: I61ffc86b34762e90e8be8225cb8ab9cc428c3b61
| | | * | | | Merge "Turn on -Wall for recovery modules"Tianjie Xu2017-08-2912-35/+34
| | | |\ \ \ \ | | | | | |_|/ | | | | |/| | | | | | | | | | | | | | | | | | | | | | | am: 11f68b6b69 Change-Id: I5f0531de7880682c7dfe75a6274f41519e0c64d6
| | | | * | | Merge "Turn on -Wall for recovery modules"Tianjie Xu2017-08-2912-35/+34
| | | | |\ \ \
| | | | | * | | Turn on -Wall for recovery modulesTianjie Xu2017-08-2912-35/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Turn on -Wall for all modules. Also remove the obsolete file_cmp() in apply_patch test and now() in wear_ui. The only exception is lib_edify due to the unused functions in the intermediate cpp files generated from the lex files. It will be handled in a seperate CL. Bug: 64939312 Test: mma, unit tests pass Change-Id: Ic53f76b60b6401ab20db3d98130d674c08e3702f
* | | | | | | | Merge "Add libasyncio." am: d179c923d8 am: d21fb1ece0 am: 4dc141e6baJerry Zhang2017-08-291-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 94c7f017d6 Change-Id: I0f83ae516de9a0853c71f38594882ce2ab2af7bf
| * | | | | | | Merge "Add libasyncio." am: d179c923d8 am: d21fb1ece0Jerry Zhang2017-08-291-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4dc141e6ba Change-Id: Ia52bb1b556822cfa3adbe89ec0e414da851f1213
| | * | | | | | Merge "Add libasyncio." am: d179c923d8Jerry Zhang2017-08-291-0/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d21fb1ece0 Change-Id: I8b42f0c03f8a95d6ce10cf7ac229106059273610
| | | * | | | | Merge "Add libasyncio."Jerry Zhang2017-08-291-0/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d179c923d8 Change-Id: If89169d9c962fcbf2a347cd1cb781171421ea85b
| | | | * | | | Merge "Add libasyncio."Treehugger Robot2017-08-291-0/+1
| | | | |\ \ \ \ | | | | | |/ / / | | | | |/| | |
| | | | | * | | Add libasyncio.Jerry Zhang2017-07-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libadbd_usb depends on libasyncio. Bug: 37916658 Test: Use adb in recovery on bullhead/marlin Change-Id: I77ac3bb2a580d29551e7b5c471bc3cfbf1a3219d
* | | | | | | | Merge "wear_ui: Remove kMaxCols/kMaxRows/visible_text_rows/menu_headers_." am: e9605b8ca0 am: d92baf5988 am: 35d36d1fa6Tao Bao2017-08-282-24/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f0487569fa Change-Id: I86301fcd8ef26bd11288ef209df0a903e76eeff6
| * | | | | | | Merge "wear_ui: Remove kMaxCols/kMaxRows/visible_text_rows/menu_headers_." am: e9605b8ca0 am: d92baf5988Tao Bao2017-08-282-24/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 35d36d1fa6 Change-Id: I12f355cba92116ddb2616248d846067041af6ec9
| | * | | | | | Merge "wear_ui: Remove kMaxCols/kMaxRows/visible_text_rows/menu_headers_." am: e9605b8ca0Tao Bao2017-08-282-24/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d92baf5988 Change-Id: Id98f998569e0e07296d69030c3d555cd32203e70
| | | * | | | | Merge "wear_ui: Remove kMaxCols/kMaxRows/visible_text_rows/menu_headers_."Tao Bao2017-08-282-24/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e9605b8ca0 Change-Id: I4f2ee4b8f545151b76dc47791394e91959243bdf
| | | | * | | | Merge "wear_ui: Remove kMaxCols/kMaxRows/visible_text_rows/menu_headers_."Tao Bao2017-08-282-24/+1
| | | | |\ \ \ \
| | | | | * | | | wear_ui: Remove kMaxCols/kMaxRows/visible_text_rows/menu_headers_.Tao Bao2017-08-262-24/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We've deprecated kMaxCols/kMaxRows in ScreenRecoveryUI since commit aa0d6afb61f4cf928e87c7a21bcb59fc973f15a0. They unnecessarily limit the screen size to 96x96 characters. Also remove the recomputations of text_cols, visible_text_rows (which is the same as text_rows_). Remove the unintentional hiding of menu_headers_. Test: mmma bootable/recovery Change-Id: I7d1526b651943312d62d52cd200414b42bf9b12a
* | | | | | | | | Merge "wear_ui: Remove dead 'self' and 'progress_t'." am: 2e125bec2f am: f351a576ce am: 813120749dTao Bao2017-08-282-9/+1
|\| | | | | | | | | |_|_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 99c932716a Change-Id: Id6fb5f3a2ef9135e5cfb0caa147a0640505492fc
| * | | | | | | Merge "wear_ui: Remove dead 'self' and 'progress_t'." am: 2e125bec2f am: f351a576ceTao Bao2017-08-282-9/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 813120749d Change-Id: I8a52750375fd46b43b8135d75fe1dd3940c8a36c
| | * | | | | | Merge "wear_ui: Remove dead 'self' and 'progress_t'." am: 2e125bec2fTao Bao2017-08-282-9/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f351a576ce Change-Id: Ida6b81f4d87550503e6a77e7163c1c50ebe0e36a
| | | * | | | | Merge "wear_ui: Remove dead 'self' and 'progress_t'."Tao Bao2017-08-282-9/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2e125bec2f Change-Id: Ied701c23bacf63048adce28b18cd6847f8134097
| | | | * | | | Merge "wear_ui: Remove dead 'self' and 'progress_t'."Tao Bao2017-08-282-9/+1
| | | | |\ \ \ \ | | | | | |/ / / | | | | |/| | |
| | | | | * | | wear_ui: Remove dead 'self' and 'progress_t'.Tao Bao2017-08-262-9/+1
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They were once used for progress_thread() that's pthread_create'd by WearRecoveryUI::Init(). They have become dead since the removal of progress_thread() (commit ad8b5a6c1195b94d8d80671e1bf791c32008fbef). Also add the missing include of <pthread.h> for pthread_mutex_lock(). Test: lunch a watch target and `m recoveryimage`. Change-Id: I748cf4511434ac4ce97dddf89b0e42e68a5da04b
* | | | | | | Merge "Add missing report of error code under recovery" am: 571855b0e6 am: 736be2f93e am: f134f0e5c0Tianjie Xu2017-08-252-0/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 639fce1c4d Change-Id: I089173b6b1a71d72c20d2564a8982c9a7f8c37c3
| * | | | | | Merge "Add missing report of error code under recovery" am: 571855b0e6 am: 736be2f93eTianjie Xu2017-08-252-0/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f134f0e5c0 Change-Id: I4257c6bb5b2e98b3a50d6c824820ea2293a58d38
| | * | | | | Merge "Add missing report of error code under recovery" am: 571855b0e6Tianjie Xu2017-08-252-0/+6
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 736be2f93e Change-Id: Ia2be72d6efac6be06178640c3b6ab716e99c6edf
| | | * | | | Merge "Add missing report of error code under recovery"Tianjie Xu2017-08-252-0/+6
| | |/| | | | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | am: 571855b0e6 Change-Id: Ib425356561060c20e0f9643e2f5b302f5c9dd161
| | | * | | Merge "Add missing report of error code under recovery"Tianjie Xu2017-08-252-0/+6
| | | |\ \ \
| | | | * | | Add missing report of error code under recoveryTianjie Xu2017-08-232-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add report of kMapFileFailure, kForkUpdateBinaryFailure and kUpdateBinaryCommandFailure. Test: unit test pass; kMapFileFailure reports correctly. Change-Id: I858c81b6c750b5e300b1b12760b1f0fa8e23b47d
* | | | | | | Import translations. DO NOT MERGEBill Yi2017-08-242-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8fb3f973ecd0dfe54dea048ef445d45902eae028 Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import
* | | | | | | Merge "Allow comparison against multi serial nums for A/B package" am: 3810046a55 am: e8b02d68e5 am: 968ebdeefd am: 7379a5290dTianjie Xu2017-08-232-18/+73
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f715057fa3 Change-Id: I5cc38e615cb7b5ab504e73ecd69efcb65c9c40d6
| * | | | | | Merge "Allow comparison against multi serial nums for A/B package" am: 3810046a55 am: e8b02d68e5 am: 968ebdeefdTianjie Xu2017-08-232-18/+73
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7379a5290d Change-Id: I9addf18a86c95ab29be77b616d1688a3bb6abd05
| | * | | | | Merge "Allow comparison against multi serial nums for A/B package" am: 3810046a55 am: e8b02d68e5Tianjie Xu2017-08-232-18/+73
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 968ebdeefd Change-Id: I21de76c870001cb5faf145d5f39f8fb2cfa58a66
| | | * \ \ \ \ Merge "Allow comparison against multi serial nums for A/B package" am: 3810046a55Tianjie Xu2017-08-232-18/+73
| | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e8b02d68e5 Change-Id: Id75270416e1058776b7ed27a4a2d926895f9bf0e
| | | | * | | | | Merge "Allow comparison against multi serial nums for A/B package"Tianjie Xu2017-08-232-18/+73
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3810046a55 Change-Id: Ic9e431b0d31c61484b04ce4f491a584b3eeba09c
| | | | | * | | | Merge "Allow comparison against multi serial nums for A/B package"Tianjie Xu2017-08-232-18/+73
| | | | | |\ \ \ \
| | | | | | * | | | Allow comparison against multi serial nums for A/B packageTianjie Xu2017-08-222-18/+73
| | | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The metadata file now can have multiple serial numbers in the format: serialno=serialno1|serialno2|serialno3 ... Verifier will pass the check if the device serial number matches any of these numbers. Bug: 64802465 Test: Create a metadata file with 1000 numbers and sideload in sailfish. The checker detects both match and mismatch cases. Change-Id: I3f12b75e15f4179df260778e37f4563d65db0fa8
* | | | | | | | | Merge changes I5d7a6baa,Id0fb2d4e am: 89ad02206a am: cead180a2b am: cdc6fcaa47 am: 0d0b6a0d2aTao Bao2017-08-220-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a2551fbcd4 Change-Id: I9e4027f48ab3f7dba55ac6187bd7481d6268958d
| * | | | | | | | Merge changes I5d7a6baa,Id0fb2d4e am: 89ad02206a am: cead180a2b am: cdc6fcaa47Tao Bao2017-08-220-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0d0b6a0d2a Change-Id: I0b940413b5611f63337cccde22519f6bf913efb6
| | * | | | | | | Merge changes I5d7a6baa,Id0fb2d4e am: 89ad02206a am: cead180a2bTao Bao2017-08-228-255/+73
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cdc6fcaa47 Change-Id: I50f470bc0f772a372a7e36f8726aa5a91b653939
| | | * | | | | | Merge changes I5d7a6baa,Id0fb2d4e am: 89ad02206aTao Bao2017-08-228-255/+73
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cead180a2b Change-Id: Iebb98c53e659eae15a2092610ebcd1b57a939c96
| | | | * | | | | Merge changes I5d7a6baa,Id0fb2d4eTao Bao2017-08-228-255/+73
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 89ad02206a Change-Id: If9a85999d04902e68a3c807d05f3796ac273d3d1
| | | | | * | | | Merge changes I5d7a6baa,Id0fb2d4eTao Bao2017-08-228-255/+73
| | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: wear_ui: Expose menu_unusable_rows via Makefile var. Allow customizing WearRecoveryUI via Makefile variables.
| | | | | * | | | wear_ui: Expose menu_unusable_rows via Makefile var.Tao Bao2017-08-113-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This variable is useful on small screens (e.g. on watches) to handle long menus. We should have better way to handle this value smartly. Prior to that, expose the value to be overridable by using the generic wearable UI module (librecovery_ui_wear). Bug: 64307776 Test: Define the variable, build and boot into recovery image and check the UI menu. Change-Id: I5d7a6baa8bb4cc852bfcc2a7b3cc9686c1c8817e
| | | | | * | | | Allow customizing WearRecoveryUI via Makefile variables.Tao Bao2017-08-108-253/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the following Makefile variables, we can reduce the work of writing (copy/pasting) device-specific WearRecoveryUI classes. The list of Makefile variables (the ones useful for Wear devices): - TARGET_RECOVERY_UI_MARGIN_HEIGHT (default: 0) - TARGET_RECOVERY_UI_MARGIN_WIDTH (default: 0) Specify the margin space that we don't want to display texts. They replace the former outer_width and outer_height. - TARGET_RECOVERY_UI_TOUCH_LOW_THRESHOLD (default: 50) - TARGET_RECOVERY_UI_TOUCH_HIGH_THRESHOLD (default: 90) Specify the sensitivity of recognizing a swipe. Devices give absolute positions, so for some devices we need to adjust the thresholds. - TARGET_RECOVERY_UI_PROGRESS_BAR_BASELINE Specify the progress bar vertical position, which should be adjusted to the actual height of a device. It replaces the former progress_bar_y. - TARGET_RECOVERY_UI_ANIMATION_FPS (default: 30) Specify the animation FPS if using device-specific animation images. It replaces the former animation_fps. Devices can specify "TARGET_RECOVERY_UI_LIB := librecovery_ui_wear", with optionally defined Makefile vars above, in BoardConfig.mk to customize their WearRecoveryUI. Also remove the obsolete wear_touch.{cpp,h}, which has been merged into ui.cpp in commit 5f8dd9951d986b65d98d6a9ea38003427e9e46df. Bug: 64307776 Test: Change the device BoardConfig.mk and test recovery image. Change-Id: Id0fb2d4e3977ab5ddd31e71f9535470cab70e41b
* | | | | | | | | Merge changes from topic "bug-64307776" into oc-mr1-dev am: 2e1b3a418eTao Bao2017-08-228-255/+73
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9ad6dc6d6f Change-Id: I7e06b22c56a82ffdfab450509806cca23b049cd5
| * | | | | | | | Merge changes from topic "bug-64307776" into oc-mr1-devTao Bao2017-08-228-255/+73
| |\ \ \ \ \ \ \ \ | | | |_|_|_|_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2e1b3a418e Change-Id: I48546e13fdba9a33df76096e020c3e04d5e69ecd
| | * | | | | | | Merge changes from topic "bug-64307776" into oc-mr1-devTao Bao2017-08-228-255/+73
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: wear_ui: Expose menu_unusable_rows via Makefile var. Allow customizing WearRecoveryUI via Makefile variables.
| | | * | | | | | | wear_ui: Expose menu_unusable_rows via Makefile var.Tao Bao2017-08-133-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This variable is useful on small screens (e.g. on watches) to handle long menus. We should have better way to handle this value smartly. Prior to that, expose the value to be overridable by using the generic wearable UI module (librecovery_ui_wear). Bug: 64307776 Test: Define the variable, build and boot into recovery image and check the UI menu. Change-Id: I5d7a6baa8bb4cc852bfcc2a7b3cc9686c1c8817e (cherry picked from commit eea3af3f911d36ac1a82a9fb95d24912cc07e3b1)
| | | * | | | | | | Allow customizing WearRecoveryUI via Makefile variables.Tao Bao2017-08-138-253/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the following Makefile variables, we can reduce the work of writing (copy/pasting) device-specific WearRecoveryUI classes. The list of Makefile variables (the ones useful for Wear devices): - TARGET_RECOVERY_UI_MARGIN_HEIGHT (default: 0) - TARGET_RECOVERY_UI_MARGIN_WIDTH (default: 0) Specify the margin space that we don't want to display texts. They replace the former outer_width and outer_height. - TARGET_RECOVERY_UI_TOUCH_LOW_THRESHOLD (default: 50) - TARGET_RECOVERY_UI_TOUCH_HIGH_THRESHOLD (default: 90) Specify the sensitivity of recognizing a swipe. Devices give absolute positions, so for some devices we need to adjust the thresholds. - TARGET_RECOVERY_UI_PROGRESS_BAR_BASELINE Specify the progress bar vertical position, which should be adjusted to the actual height of a device. It replaces the former progress_bar_y. - TARGET_RECOVERY_UI_ANIMATION_FPS (default: 30) Specify the animation FPS if using device-specific animation images. It replaces the former animation_fps. Devices can specify "TARGET_RECOVERY_UI_LIB := librecovery_ui_wear", with optionally defined Makefile vars above, in BoardConfig.mk to customize their WearRecoveryUI. Also remove the obsolete wear_touch.{cpp,h}, which has been merged into ui.cpp in commit 5f8dd9951d986b65d98d6a9ea38003427e9e46df. Bug: 64307776 Test: Change the device BoardConfig.mk and test recovery image. Change-Id: Id0fb2d4e3977ab5ddd31e71f9535470cab70e41b (cherry picked from commit 0470ceea381775b09eee931858c3320be88cc637)
* | | | | | | | | | Merge "Move Image/ImageChunk/PatchChunk declaration into header files" am: b4bc57ed39 am: b127fddf09 am: f5e3cadeca am: fc569d1516Tianjie Xu2017-08-196-278/+325
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7d1d5b2f1c Change-Id: Ibd4887d4094150ddce6d57edd809c1efaef50762
| * | | | | | | | | Merge "Move Image/ImageChunk/PatchChunk declaration into header files" am: b4bc57ed39 am: b127fddf09 am: f5e3cadecaTianjie Xu2017-08-196-278/+325
| |\ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fc569d1516 Change-Id: I1d6e5f4aeaca59823fc05c3d655dfc8ca7f3e0ab
| | * | | | | | | | Merge "Move Image/ImageChunk/PatchChunk declaration into header files" am: b4bc57ed39 am: b127fddf09Tianjie Xu2017-08-196-278/+325
| | |\ \ \ \ \ \ \ \ | | | | |_|/ / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f5e3cadeca Change-Id: Ic9056467184e272eec5c0aead3d4a712033b0503
| | | * | | | | | | Merge "Move Image/ImageChunk/PatchChunk declaration into header files" am: b4bc57ed39Tianjie Xu2017-08-196-278/+325
| | | |\ \ \ \ \ \ \ | | | | | |_|/ / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b127fddf09 Change-Id: Ia1eb8977d076c5ee5557d850afaad5e4a689bc63
| | | | * | | | | | Merge "Move Image/ImageChunk/PatchChunk declaration into header files"Tianjie Xu2017-08-196-278/+325
| | | | |\ \ \ \ \ \ | | | | | | |_|_|/ / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b4bc57ed39 Change-Id: If254ed9e24bc0cafa19db9766ed36643ca0fed49
| | | | | * | | | | Merge "Move Image/ImageChunk/PatchChunk declaration into header files"Tianjie Xu2017-08-196-278/+325
| | | | | |\ \ \ \ \
| | | | | | * | | | | Move Image/ImageChunk/PatchChunk declaration into header filesTianjie Xu2017-08-196-278/+325
| | | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Move the declaration of the Image classes to the header file to make testing easier. 2. Also move rangeset.h to bootable/recovery to allow access in imgdiff. Test: recovery component test Change-Id: I68a863e60a3f2e7ae46ee48f48eb15391f5f4330
* | | | | | | | | | Merge "update_verifier now logs to kmesg" am: f7ad94313d am: 473606847a am: 8c9c22a3a9 am: 14b3f5e5ccTianjie Xu2017-08-171-0/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f579907b8a Change-Id: I4854759427257b18ecb13819c22d95ebfb93b5a8
| * | | | | | | | | Merge "update_verifier now logs to kmesg" am: f7ad94313d am: 473606847a am: 8c9c22a3a9Tianjie Xu2017-08-171-0/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 14b3f5e5cc Change-Id: Ie5ac1c1604669563e2bb7be550e5b0c5945f5d3a
| | * | | | | | | | Merge "update_verifier now logs to kmesg" am: f7ad94313d am: 473606847aTianjie Xu2017-08-171-0/+6
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8c9c22a3a9 Change-Id: I2e9d3883edb4de803924ff127cf876cc1f6dd485
| | | * | | | | | | Merge "update_verifier now logs to kmesg" am: f7ad94313dTianjie Xu2017-08-171-0/+6
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 473606847a Change-Id: I90f254955823bc815d96bf94ae1b2f37c2b0a44a
| | | | * | | | | | Merge "update_verifier now logs to kmesg"Tianjie Xu2017-08-171-0/+6
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f7ad94313d Change-Id: I24438ea3f7975608358cf676606dc54b98e7092a
| | | | | * | | | | Merge "update_verifier now logs to kmesg"Tianjie Xu2017-08-171-0/+6
| | | | | |\ \ \ \ \
| | | | | | * | | | | update_verifier now logs to kmesgTianjie Xu2017-08-151-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set up update_verifier logging to be written to kmsg; because we may not have Logd during boot time. Bug: 64713327 Test: logs show up in `adb shell dmesg` Change-Id: If02f460bda121cd3e9062bc0e08107c6da66492c
* | | | | | | | | | | Merge "Import translations. DO NOT MERGE"TreeHugger Robot2017-08-1716-0/+144
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2017-08-1716-0/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import Bug: 64680434 Change-Id: Ie356071f322238a5fb3a4610d2a79141c9aa9377
* | | | | | | | | | | | screen_ui: Fix a case that may truncate the last char. am: 2cf6fe2cedTao Bao2017-08-170-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 96210f88ce Change-Id: I8396ade4136e6554ced169ad503b11599a37c57c
| * | | | | | | | | | | screen_ui: Fix a case that may truncate the last char.Tao Bao2017-08-170-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2cf6fe2ced Change-Id: Icb478835c9ad403cee686176c24d74cad4c7a0c3
| | * | | | | | | | | | screen_ui: Fix a case that may truncate the last char.Tao Bao2017-08-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ScreenRecoveryUI::DrawWrappedTextLines() should be called with kMarginWidth only. Because it's using a line limit of text_cols_, which is unaware of kMenuIdent. Bug: 64293520 Test: No missing char with long header text. Change-Id: Ib4d08de2c56473a483ff9964eb6cec31f8a74c9a (cherry picked from commit 13aa4a902ba2fa304fc9fe826f797a4e0e2182b7)
* | | | | | | | | | | | screen_ui: Word-wrap menu headers. am: ee6fefd2f2 -s oursTao Bao2017-08-170-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0a7f4d4f71 Change-Id: I379cbd56489a7cba1279a88841f0c001cb37790c
| * | | | | | | | | | | screen_ui: Word-wrap menu headers.Tao Bao2017-08-170-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ee6fefd2f2 -s ours Change-Id: I92adb84d393433db89bb267c8b049fb1a191bfdb
| | * | | | | | | | | | screen_ui: Word-wrap menu headers.Tao Bao2017-08-163-5/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL adds ScreenRecoveryUI::DrawWrappedTextLines() to better handle long menu header texts. It does a word wrap at spaces, if available. This avoids fixed-length menu headers being truncated on small screens. Bug: 64293520 Test: On bullhead, boot into recovery with --prompt_and_wipe_data, and check the prompt texts. Change-Id: Ia22746583516dd230567a267584aca558429395e (cherry picked from commit 2bbc6d642d1fbfb007905d95b629fe5f833b2a1b)
* | | | | | | | | | | | Merge "screen_ui: Fix a case that may truncate the last char." am: 2e99c38cfd am: 151126360e am: 228a2f2a37 am: 7f7d9b2f37Tao Bao2017-08-171-1/+2
|\| | | | | | | | | | | | |_|/ / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fbd7429ca3 Change-Id: I3533d4e2c9c242577e8cb05a3590649c3d2697de
| * | | | | | | | | | Merge "screen_ui: Fix a case that may truncate the last char." am: 2e99c38cfd am: 151126360e am: 228a2f2a37Tao Bao2017-08-171-1/+2
| |\ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7f7d9b2f37 Change-Id: I460893bd4661d4338d482b3f66a2371458228acf
| | * | | | | | | | | Merge "screen_ui: Fix a case that may truncate the last char." am: 2e99c38cfd am: 151126360eTao Bao2017-08-171-1/+2
| | |\ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 228a2f2a37 Change-Id: I5c672cbf0171be019f7240135f9cf6d26e68de9f
| | | * | | | | | | | Merge "screen_ui: Fix a case that may truncate the last char." am: 2e99c38cfdTao Bao2017-08-171-1/+2
| | | |\ \ \ \ \ \ \ \ | | | | | |/ / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 151126360e Change-Id: Id7117e58e1353ce3e9929908a4de0e8f6f8fe1d2
| | | | * | | | | | | Merge "screen_ui: Fix a case that may truncate the last char."Tao Bao2017-08-171-1/+2
| | | | |\ \ \ \ \ \ \ | | | | | | |/ / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2e99c38cfd Change-Id: I948a78eb97fbc098610d3410f126843e360e5f65
| | | | | * | | | | | Merge "screen_ui: Fix a case that may truncate the last char."Tao Bao2017-08-171-1/+2
| | | | | |\ \ \ \ \ \
| | | | | | * | | | | | screen_ui: Fix a case that may truncate the last char.Tao Bao2017-08-161-1/+2
| | | | | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ScreenRecoveryUI::DrawWrappedTextLines() should be called with kMarginWidth only. Because it's using a line limit of text_cols_, which is unaware of kMenuIdent. Bug: 64293520 Test: No missing char with long header text. Change-Id: Ib4d08de2c56473a483ff9964eb6cec31f8a74c9a
* | | | | | | | | | | Import translations. DO NOT MERGE am: 20fa1a92cc -s oursBill Yi2017-08-160-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 91487964b0 -s ours Change-Id: Ic68759c25fba8d762db9b09e8cf2cb1a161dc43e
| * | | | | | | | | | Import translations. DO NOT MERGEBill Yi2017-08-160-0/+0
| |\ \ \ \ \ \ \ \ \ \ | | | |_|_|_|/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 20fa1a92cc -s ours Change-Id: I2849c371f53a02857ec9d14a7565def9130305ea
| | * | | | | | | | | Import translations. DO NOT MERGEBill Yi2017-08-162-2/+11
| | | |_|_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import Bug: 64712476 Change-Id: I7e9049129d9a886cac53a1f6438d9c733fb3d3d8
* | | | | | | | | | Merge "screen_ui: Word-wrap menu headers." am: 162b92323b am: 623bac4ed9 am: ae0af37111 am: f1397b597aTao Bao2017-08-163-5/+37
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5cfb65af51 Change-Id: I08997dedf6684cfe80f29e4f329aca226c00241e
| * | | | | | | | | Merge "screen_ui: Word-wrap menu headers." am: 162b92323b am: 623bac4ed9 am: ae0af37111Tao Bao2017-08-163-5/+37
| |\ \ \ \ \ \ \ \ \ | | | |/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f1397b597a Change-Id: Iaccb1c1f1b8eeb5c226f51daaca95403fd6aa21d
| | * | | | | | | | Merge "screen_ui: Word-wrap menu headers." am: 162b92323b am: 623bac4ed9Tao Bao2017-08-163-5/+37
| | |\ \ \ \ \ \ \ \ | | | | |/ / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ae0af37111 Change-Id: Ibb4a439d7a864e8fc44b06cad66a07f18f3376f7
| | | * | | | | | | Merge "screen_ui: Word-wrap menu headers." am: 162b92323bTao Bao2017-08-163-5/+37
| | | |\ \ \ \ \ \ \ | | | | | |/ / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 623bac4ed9 Change-Id: If8d200cd487aed9ee5eedbe831e1436e4c3551da
| | | | * | | | | | Merge "screen_ui: Word-wrap menu headers."Tao Bao2017-08-163-5/+37
| | | | |\ \ \ \ \ \ | | | | | | |/ / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 162b92323b Change-Id: I93c959422c5b56a15875580159ecfc1a1d44087d
| | | | | * | | | | Merge "screen_ui: Word-wrap menu headers."Tao Bao2017-08-163-5/+37
| | | | | |\ \ \ \ \ | | | | | | |_|/ / / | | | | | |/| | | |
| | | | | | * | | | screen_ui: Word-wrap menu headers.Tao Bao2017-08-163-5/+37
| | | | | | | |/ / | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL adds ScreenRecoveryUI::DrawWrappedTextLines() to better handle long menu header texts. It does a word wrap at spaces, if available. This avoids fixed-length menu headers being truncated on small screens. Bug: 64293520 Test: On bullhead, boot into recovery with --prompt_and_wipe_data, and check the prompt texts. Change-Id: Ia22746583516dd230567a267584aca558429395e
* | | | | | | | | Merge "Add a new PatchChunk class in imgdiff" am: 11214d9062 am: 5bde1d9ef8 am: 96b490acec am: bfd3123a6aTianjie Xu2017-08-141-236/+292
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cc41fc4384 Change-Id: I92156cbe77678253265feea4288ac96bfed486d9
| * | | | | | | | Merge "Add a new PatchChunk class in imgdiff" am: 11214d9062 am: 5bde1d9ef8 am: 96b490acecTianjie Xu2017-08-141-236/+292
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bfd3123a6a Change-Id: I63526e65325b53afd630343a6a55bbca39f1b74f
| | * | | | | | | Merge "Add a new PatchChunk class in imgdiff" am: 11214d9062 am: 5bde1d9ef8Tianjie Xu2017-08-141-236/+292
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 96b490acec Change-Id: I9656f313d5d3746ac9c9ecd98311b88d8754b3e1
| | | * | | | | | Merge "Add a new PatchChunk class in imgdiff" am: 11214d9062Tianjie Xu2017-08-141-236/+292
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5bde1d9ef8 Change-Id: Iccd45b9c2673237a0e8775d9527eb35f0aa2b869
| | | | * | | | | Merge "Add a new PatchChunk class in imgdiff"Tianjie Xu2017-08-141-236/+292
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 11214d9062 Change-Id: Ic2d4b218b36ace3dd1d49be1d17adeaf2d37b108
| | | | | * | | | Merge "Add a new PatchChunk class in imgdiff"Tianjie Xu2017-08-141-236/+292
| | | | | |\ \ \ \ | | | | | | |/ / / | | | | | |/| | |
| | | | | | * | | Add a new PatchChunk class in imgdiffTianjie Xu2017-08-131-236/+292
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This way we can keep the input images const when calling genetatepatches(). Test: recovery component test; diff and patch on chrome.apk; generate recovery-from-boot.p for angler. Change-Id: I65b5689b88f6719c6ede46bb82def0c4caeb8a61
* | | | | | | | | Import translations. DO NOT MERGEBill Yi2017-08-1215-128/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I99a2cf060c75a70b3baf3c22d538fbfa08828474 Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import
* | | | | | | | | update_verifier: Support androidboot.veritymode being empty or 'disabled'. am: 3222dc0d76 am: db9ec51c39David Zeuthen2017-08-100-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5cb56fbf76 Change-Id: I2cf483c1f99d042a34b477ecf949cff35f0450c4
| * | | | | | | | update_verifier: Support androidboot.veritymode being empty or 'disabled'. am: 3222dc0d76David Zeuthen2017-08-100-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: db9ec51c39 Change-Id: I74ed15e22a3f78d673e838515cf989863575044e
| | * | | | | | | update_verifier: Support androidboot.veritymode being empty or 'disabled'.David Zeuthen2017-08-100-0/+0
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3222dc0d76 Change-Id: I31ce6bf1e82269a45e3d49bda961359f7dd8bab9
* | | | | | | | | | update_verifier: Support androidboot.veritymode being empty or 'disabled'. am: 3222dc0d76 am: 9cf2e9798fDavid Zeuthen2017-08-100-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: da7c1e4492 Change-Id: If52ddeb0189abe8e83bfac418f1a6661c351df8f
| * | | | | | | | | update_verifier: Support androidboot.veritymode being empty or 'disabled'. am: 3222dc0d76David Zeuthen2017-08-100-0/+0
| |\ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9cf2e9798f Change-Id: I4af28a7b975393f9f789c200577d9bd83d1902c1
| | * | | | | | | | update_verifier: Support androidboot.veritymode being empty or 'disabled'.David Zeuthen2017-08-101-4/+17
| | |\ \ \ \ \ \ \ \ | | | | |/ / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3222dc0d76 Change-Id: I20dc5fce9e5adf002acf0e918d843c681286a8fc
| | | * | | | | | | update_verifier: Support androidboot.veritymode being empty or 'disabled'.David Zeuthen2017-08-091-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bootloaders using libavb will set androidboot.veritymode=disabled if the "disable dm-verity" flag has been set. Additionally if the "disable verification" flag is set androidboot.veritymode will not be set at all. Handle both cases. Without this fix we'll end up in a bootloop. Test: Manually tested on a device using AVB. (cherry-picked from commit 1a0929cc8aac532dba00b3c98cea22715719a421) Bug: 64404283 Change-Id: I3adf93f8dfd528fe9b869a63afa775f5730a3f69
* | | | | | | | | | Merge "update_verifier: verify blocks in parallel" am: 0459799ea8 am: 1fa82a2af4 am: 5156e24ccf am: 37b9d108a9Tao Bao2017-08-100-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0bbd31b865 Change-Id: Ib0248c92d2f0bf267134e1b0b1f8bce842e7f3f9
| * | | | | | | | | Merge "update_verifier: verify blocks in parallel" am: 0459799ea8 am: 1fa82a2af4 am: 5156e24ccfTao Bao2017-08-100-0/+0
| |\ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 37b9d108a9 Change-Id: I99ce9776fc0597d93315295a7a81600231efa3ed
| | * | | | | | | | Merge "update_verifier: verify blocks in parallel" am: 0459799ea8 am: 1fa82a2af4Tao Bao2017-08-101-31/+51
| | |\ \ \ \ \ \ \ \ | | | | |_|/ / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5156e24ccf Change-Id: I84945b9ef0d8ae985e5200c2e5dec95ce4da2b9d
| | | * | | | | | | Merge "update_verifier: verify blocks in parallel" am: 0459799ea8Tao Bao2017-08-101-31/+51
| | | |\ \ \ \ \ \ \ | | | | | |_|/ / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1fa82a2af4 Change-Id: Ieeabe5fc76d25a4c22164c0e61d3a93b046cd8c7
| | | | * | | | | | Merge "update_verifier: verify blocks in parallel"Tao Bao2017-08-101-31/+51
| | | | |\ \ \ \ \ \ | | | | | | |_|/ / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0459799ea8 Change-Id: Ic8ce7a45de3a7501f7e1f758c7ddf56ff5d919e3
| | | | | * | | | | Merge "update_verifier: verify blocks in parallel"Tao Bao2017-08-101-31/+51
| | | | | |\ \ \ \ \
| | | | | | * | | | | update_verifier: verify blocks in parallelWei Wang2017-08-101-31/+51
| | | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL is to change update_verifier to verify blocks in parallel to maximize storage bandwidth, it also preallocate the buffer to avoid vector allocation within reading loop. Test: care_map.txt: system 16,0,517,556,32770,33084,98306,98620,163842,164156,229378,229692,294914,295228,483544,524288,524296 vendor 8,0,119,135,32770,32831,96150,98304,98306 With CL: init: Service 'update_verifier_nonencrypted' (pid 711) exited with status 0 waiting took 2.978424 seconds Without CL: init: Service 'update_verifier_nonencrypted' (pid 695) exited with status 0 waiting took 4.466320 seconds Bug: 63686531 Test: reboot with manual insert care_map.txt Change-Id: Idf791865f15f6ff6cad89bf7ff230ee46c6adccc (cherry picked from commit bd9664b5a01c8941949212973ca12be4df1b5d54)
* | | | | | | | | | Merge "tests: Add the missing dependency on libhidlbase." am: 05b2e982ad am: 43df6cfeee am: 46c13f3f05 am: 6f1c38c9adTao Bao2017-08-100-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b5fa329795 Change-Id: Idd39efb798d72cb96235a1ba01e633dee7be1c92
| * | | | | | | | | Merge "tests: Add the missing dependency on libhidlbase." am: 05b2e982ad am: 43df6cfeee am: 46c13f3f05Tao Bao2017-08-100-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6f1c38c9ad Change-Id: I6e32f2653681816140d06cf3135d343937dd3bc4
| | * | | | | | | | Merge "tests: Add the missing dependency on libhidlbase." am: 05b2e982ad am: 43df6cfeeeTao Bao2017-08-101-1/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 46c13f3f05 Change-Id: Iaa1bd4f403664a87153b9f6b647e04bc7798a33d
| | | * | | | | | | Merge "tests: Add the missing dependency on libhidlbase." am: 05b2e982adTao Bao2017-08-101-1/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 43df6cfeee Change-Id: I1b6aec75eda5a289cc3cd6a72029d90d9ba4c433
| | | | * | | | | | Merge "tests: Add the missing dependency on libhidlbase."Tao Bao2017-08-101-1/+2
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 05b2e982ad Change-Id: Ie08dca777af1d12a304aebf11f4df25680ff939a
| | | | | * | | | | Merge "tests: Add the missing dependency on libhidlbase."Tao Bao2017-08-101-1/+2
| | | | | |\ \ \ \ \
| | | | | | * | | | | tests: Add the missing dependency on libhidlbase.Tao Bao2017-08-101-1/+2
| | | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It fails to build recovery_component_test with the following errors: out/soong/.intermediates/hardware/interfaces/boot/1.0/android.hardware.boot@1.0_genc++_headers/gen/android/hardware/boot/1.0/types.h:14: error: undefined reference to 'android::hardware::hidl_string::hidl_string(android::hardware::hidl_string const&)' out/soong/.intermediates/hardware/interfaces/boot/1.0/android.hardware.boot@1.0_genc++_headers/gen/android/hardware/boot/1.0/types.h:14: error: undefined reference to 'android::hardware::hidl_string::operator=(android::hardware::hidl_string const&)' out/soong/.intermediates/hardware/interfaces/boot/1.0/android.hardware.boot@1.0_genc++_headers/gen/android/hardware/boot/1.0/types.h:14: error: undefined reference to 'android::hardware::hidl_string::~hidl_string()' libupdate_verifier includes <android/hardware/boot/1.0/IBootControl.h>, which includes the 'types.h' above. In 'types.h', it defines struct CommandResult that's using android::hardware::hidl_string. Since libhidlbase doesn't have a static library target, remove 'LOCAL_FORCE_STATIC_EXECUTABLE := true', which isn't required for running tests. Test: mmma -j bootable/recovery Bug: 64538692 Change-Id: Iaa7c08adc241128d787274fcaea9b363e7ff93f4 (cherry picked from commit 102016ce1fe62190ace7016f2e7484b37f6391ea)
* | | | | | | | | | Merge "tests: Add the missing dependency on libhidlbase." into oc-mr1-dev am: 1f4229ff95Wei Wang2017-08-101-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 22cf0224fd Change-Id: I7dfc82b7b3286711e13a70a773b488139a210d16
| * | | | | | | | | Merge "tests: Add the missing dependency on libhidlbase." into oc-mr1-devWei Wang2017-08-101-1/+2
| |\ \ \ \ \ \ \ \ \ | | | |_|_|_|/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1f4229ff95 Change-Id: I80603def879d1837bdcd6ec48aeeef22b635fa00
| | * | | | | | | | Merge "tests: Add the missing dependency on libhidlbase." into oc-mr1-devWei Wang2017-08-101-1/+2
| | |\ \ \ \ \ \ \ \
| | | * | | | | | | | tests: Add the missing dependency on libhidlbase.Tao Bao2017-08-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It fails to build recovery_component_test with the following errors: out/soong/.intermediates/hardware/interfaces/boot/1.0/android.hardware.boot@1.0_genc++_headers/gen/android/hardware/boot/1.0/types.h:14: error: undefined reference to 'android::hardware::hidl_string::hidl_string(android::hardware::hidl_string const&)' out/soong/.intermediates/hardware/interfaces/boot/1.0/android.hardware.boot@1.0_genc++_headers/gen/android/hardware/boot/1.0/types.h:14: error: undefined reference to 'android::hardware::hidl_string::operator=(android::hardware::hidl_string const&)' out/soong/.intermediates/hardware/interfaces/boot/1.0/android.hardware.boot@1.0_genc++_headers/gen/android/hardware/boot/1.0/types.h:14: error: undefined reference to 'android::hardware::hidl_string::~hidl_string()' libupdate_verifier includes <android/hardware/boot/1.0/IBootControl.h>, which includes the 'types.h' above. In 'types.h', it defines struct CommandResult that's using android::hardware::hidl_string. Since libhidlbase doesn't have a static library target, remove 'LOCAL_FORCE_STATIC_EXECUTABLE := true', which isn't required for running tests. Test: mmma -j bootable/recovery Bug: 64538692 Change-Id: Iaa7c08adc241128d787274fcaea9b363e7ff93f4
* | | | | | | | | | | update_verifier: verify blocks in parallel am: bd9664b5a0Wei Wang2017-08-101-31/+51
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4bf7032066 Change-Id: Id1ed6e8d1903db2f879fc9c0bfa85caddcf8e248
| * | | | | | | | | | update_verifier: verify blocks in parallelWei Wang2017-08-101-31/+51
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bd9664b5a0 Change-Id: Iebaa6b6589ad9bee9eb8b89101f41bccf749212f
| | * | | | | | | | | update_verifier: verify blocks in parallelWei Wang2017-08-091-31/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL is to change update_verifier to verify blocks in parallel to maximize storage bandwidth, it also preallocate the buffer to avoid vector allocation within reading loop. Test: care_map.txt: system 16,0,517,556,32770,33084,98306,98620,163842,164156,229378,229692,294914,295228,483544,524288,524296 vendor 8,0,119,135,32770,32831,96150,98304,98306 With CL: init: Service 'update_verifier_nonencrypted' (pid 711) exited with status 0 waiting took 2.978424 seconds Without CL: init: Service 'update_verifier_nonencrypted' (pid 695) exited with status 0 waiting took 4.466320 seconds Bug: 63686531 Test: reboot with manual insert care_map.txt Change-Id: Idf791865f15f6ff6cad89bf7ff230ee46c6adccc
* | | | | | | | | | | Merge "update_verifier: Support androidboot.veritymode being empty or 'disabled'." am: 399ce66534 am: bb8d04cd3c am: f2a8eba23c am: ade231287bDavid Zeuthen2017-08-081-4/+17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b266fbab19 Change-Id: I76e3c13de59217baa9ef2eb4c3b37abf3f23196b
| * | | | | | | | | | Merge "update_verifier: Support androidboot.veritymode being empty or 'disabled'." am: 399ce66534 am: bb8d04cd3c am: f2a8eba23cDavid Zeuthen2017-08-081-4/+17
| |\ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ade231287b Change-Id: I2bba85188ae59d63f018b2b70b8e15c50e07de51
| | * | | | | | | | | Merge "update_verifier: Support androidboot.veritymode being empty or 'disabled'." am: 399ce66534 am: bb8d04cd3cDavid Zeuthen2017-08-081-4/+17
| | |\ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f2a8eba23c Change-Id: I22c644eb6bd995fecfd8ddcf9006386eb524dee9
| | | * | | | | | | | Merge "update_verifier: Support androidboot.veritymode being empty or 'disabled'." am: 399ce66534David Zeuthen2017-08-081-4/+17
| | | |\ \ \ \ \ \ \ \ | | | | | |_|/ / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bb8d04cd3c Change-Id: I279d1398c83b4cd97525f56dc035c1719eb6f446
| | | | * | | | | | | Merge "update_verifier: Support androidboot.veritymode being empty or 'disabled'."David Zeuthen2017-08-081-4/+17
| | | | |\ \ \ \ \ \ \ | | | | | | |_|/ / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 399ce66534 Change-Id: I6d2f6f15f9dc56963cd5c7750e67dbad0ee40994
| | | | | * | | | | | Merge "update_verifier: Support androidboot.veritymode being empty or 'disabled'."Treehugger Robot2017-08-081-4/+17
| | | | | |\ \ \ \ \ \
| | | | | | * | | | | | update_verifier: Support androidboot.veritymode being empty or 'disabled'.David Zeuthen2017-08-081-4/+17
| | | | | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bootloaders using libavb will set androidboot.veritymode=disabled if the "disable dm-verity" flag has been set. Additionally if the "disable verification" flag is set androidboot.veritymode will not be set at all. Handle both cases. Without this fix we'll end up in a bootloop. Test: Manually tested on a device using AVB. Bug: 64315394 Change-Id: I8310849e347248f4a96158838310f688ecef4211
* | | | | | | | | | | Import translations. DO NOT MERGE am: 5c2bc51bf2 -s oursBill Yi2017-08-060-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5fec07da3d -s ours Change-Id: I27768afdbce3ff82568046731771f66f7b20d481
| * | | | | | | | | | Import translations. DO NOT MERGEBill Yi2017-08-060-0/+0
| |\ \ \ \ \ \ \ \ \ \ | | | |_|_|_|/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5c2bc51bf2 -s ours Change-Id: Ia5c7cb1a9aee05f47c4a5b281ca1a199e2506248
| | * | | | | | | | | Import translations. DO NOT MERGEBill Yi2017-08-061-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ia215c30c6912ffa1e3270543f6ff4fc27f4260e4 Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import
* | | | | | | | | | | ui: Check for bootreason=recovery_ui. am: 937e884ca1Tao Bao2017-08-040-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 92d98c276d Change-Id: Ic7fcf8aa918d1c47f17edc54ba12013be558e057
| * | | | | | | | | | ui: Check for bootreason=recovery_ui.Tao Bao2017-08-040-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 937e884ca1 Change-Id: I577b7e4230e06bc862022f19297e3b00a4a77345
| | * | | | | | | | | ui: Check for bootreason=recovery_ui.Tao Bao2017-08-032-0/+21
| | | |_|_|_|/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some wear bootloaders are passing bootreason=recovery_ui when booting into recovery from fastboot, or via 'adb reboot recovery'. Allow turning on text mode with a swipe for such a bootreason. Since we will turn on text mode automatically for debuggable builds, this bootreason mainly handles the case for user builds. Note this change only applies to devices that allow touch screen inputs. Bug: 36169090 Bug: 64307776 Test: Build and boot into user build recovery image. Toggle on text mode with a swipe. Change-Id: I55f19aed7b210352f8370de19935b4772cc12095 (cherry picked from commit 046aae29d9b0d2cdf24ad0567146991c3864c140)
* | | | | | | | | | Merge "ui: Check for bootreason=recovery_ui." am: f49cc02e86 am: 7c0b8a4322 am: 7f5b514411 am: 99f78994cbTao Bao2017-08-042-0/+21
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6ec170d867 Change-Id: I8cd8e422b81ff44620bf0ae901b032a28bed2eec
| * | | | | | | | | Merge "ui: Check for bootreason=recovery_ui." am: f49cc02e86 am: 7c0b8a4322 am: 7f5b514411Tao Bao2017-08-042-0/+21
| |\ \ \ \ \ \ \ \ \ | | | |/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 99f78994cb Change-Id: I1cf65cc463c11a8b59f560dfc03b3bc87ea3b68b
| | * | | | | | | | Merge "ui: Check for bootreason=recovery_ui." am: f49cc02e86 am: 7c0b8a4322Tao Bao2017-08-042-0/+21
| | |\ \ \ \ \ \ \ \ | | | | |/ / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7f5b514411 Change-Id: I63473a830b0736da5e4f16febf0ee826d870ab40
| | | * | | | | | | Merge "ui: Check for bootreason=recovery_ui." am: f49cc02e86Tao Bao2017-08-042-0/+21
| | | |\ \ \ \ \ \ \ | | | | | |/ / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7c0b8a4322 Change-Id: I47386ad9e8c1dabaaa981f77d84abb8cf24557d6
| | | | * | | | | | Merge "ui: Check for bootreason=recovery_ui."Tao Bao2017-08-032-0/+21
| | | | |\ \ \ \ \ \ | | | | | | |/ / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f49cc02e86 Change-Id: I75d4f38e9842b24e01027523fa765feca8c8cc25
| | | | | * | | | | Merge "ui: Check for bootreason=recovery_ui."Tao Bao2017-08-032-0/+21
| | | | | |\ \ \ \ \ | | | | | | |_|_|/ / | | | | | |/| | | |
| | | | | | * | | | ui: Check for bootreason=recovery_ui.Tao Bao2017-08-032-0/+21
| | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some wear bootloaders are passing bootreason=recovery_ui when booting into recovery from fastboot, or via 'adb reboot recovery'. Allow turning on text mode with a swipe for such a bootreason. Since we will turn on text mode automatically for debuggable builds, this bootreason mainly handles the case for user builds. Note this change only applies to devices that allow touch screen inputs. Bug: 36169090 Test: Build and boot into user build recovery image. Toggle on text mode with a swipe. Change-Id: I55f19aed7b210352f8370de19935b4772cc12095
* | | | | | | | | ui: Move the support for touch inputs into RecoveryUI. am: af9f8b4d97Tao Bao2017-08-030-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 74098080e0 Change-Id: I09c351bc81724428cc7af397e0baf5eac6cbdb46
| * | | | | | | | ui: Move the support for touch inputs into RecoveryUI.Tao Bao2017-08-030-0/+0
| |\ \ \ \ \ \ \ \ | | | |_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: af9f8b4d97 Change-Id: Ib205b133663f63b4a7413adf9ac584092c3396a3
| | * | | | | | | ui: Move the support for touch inputs into RecoveryUI.Tao Bao2017-08-035-16/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added detection for EV_ABS events in minui/events.cpp, if it's allowed; - Added listening and processing touch inputs in ui.cpp; - Fixed an issue in recognizing swipe with multi-touch protocol A; - Changed the logic in RecoveryUI::ProcessKey() to be swipe-aware. It now allows turning on text mode with <power> + <swipe-up>. The last change also fixed an issue on devices with protocol A: prior to this CL, user may accidentally toggle the text mode during an OTA. Because it was considered as a single-button device, a long tap that sent BTN_TOUCH event would turn on text mode. Test: Allow detecting touch inputs. Swiping (up, down, enter) works on angler, angelfish, dorado respectively. Bug: 36169090 Bug: 64307776 Change-Id: I4bc882b99114ce4ab414f8bdb8f4f7a525b8a8fd (cherry picked from commit 5f8dd9951d986b65d98d6a9ea38003427e9e46df)
* | | | | | | | | Merge "ui: Move the support for touch inputs into RecoveryUI." am: faa5b1f773 am: 5daa000068 am: 14d829b02c am: 30886cb817Tao Bao2017-08-035-16/+209
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f589396b0e Change-Id: I0d9ad1d35ea7973272e7fc6a9852a3f36c3fbfa2
| * | | | | | | | Merge "ui: Move the support for touch inputs into RecoveryUI." am: faa5b1f773 am: 5daa000068 am: 14d829b02cTao Bao2017-08-035-16/+209
| |\ \ \ \ \ \ \ \ | | | |/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 30886cb817 Change-Id: Ib18bcf5bf9165e93afef26070eb5c19949d47a4e
| | * | | | | | | Merge "ui: Move the support for touch inputs into RecoveryUI." am: faa5b1f773 am: 5daa000068Tao Bao2017-08-035-16/+209
| | |\ \ \ \ \ \ \ | | | | |/ / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 14d829b02c Change-Id: Icc07c0788a2d0fdcdb09957c7e80d2c208374e41
| | | * | | | | | Merge "ui: Move the support for touch inputs into RecoveryUI." am: faa5b1f773Tao Bao2017-08-035-16/+209
| | | |\ \ \ \ \ \ | | | | | |/ / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5daa000068 Change-Id: I5cec1eef0e5f0e648e630117b6332e1a4059f4f2
| | | | * | | | | Merge "ui: Move the support for touch inputs into RecoveryUI."Tao Bao2017-08-035-16/+209
| | | | |\ \ \ \ \ | | | | | | |/ / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: faa5b1f773 Change-Id: Id81f4dca012f5af9000409e93c76a176f4f5b4d3
| | | | | * | | | Merge "ui: Move the support for touch inputs into RecoveryUI."Tao Bao2017-08-035-16/+209
| | | | | |\ \ \ \
| | | | | | * | | | ui: Move the support for touch inputs into RecoveryUI.Tao Bao2017-08-025-16/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added detection for EV_ABS events in minui/events.cpp, if it's allowed; - Added listening and processing touch inputs in ui.cpp; - Fixed an issue in recognizing swipe with multi-touch protocol A; - Changed the logic in RecoveryUI::ProcessKey() to be swipe-aware. It now allows turning on text mode with <power> + <swipe-up>. The last change also fixed an issue on devices with protocol A: prior to this CL, user may accidentally toggle the text mode during an OTA. Because it was considered as a single-button device, a long tap that sent BTN_TOUCH event would turn on text mode. Test: Allow detecting touch inputs. Swiping (up, down, enter) works on angler, angelfish, dorado respectively. Bug: 36169090 Change-Id: I4bc882b99114ce4ab414f8bdb8f4f7a525b8a8fd
* | | | | | | | | | Merge "Refactor the imgdiff" am: f411f3dcfb am: 6c1a6c389b am: e500bc3e15 am: 12cd28fb9cTianjie Xu2017-08-032-393/+569
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6eae2f7023 Change-Id: Iaa24195286b770fad16446e9f4fe4c7e80e9dcb2
| * | | | | | | | | Merge "Refactor the imgdiff" am: f411f3dcfb am: 6c1a6c389b am: e500bc3e15Tianjie Xu2017-08-032-393/+569
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 12cd28fb9c Change-Id: Id9b37ba12cfc534f9b59eac78bf1476e6f7a72a3
| | * | | | | | | | Merge "Refactor the imgdiff" am: f411f3dcfb am: 6c1a6c389bTianjie Xu2017-08-032-393/+569
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e500bc3e15 Change-Id: Ibee36f11ef600685881bb2f652216196f323ed8d
| | | * | | | | | | Merge "Refactor the imgdiff" am: f411f3dcfbTianjie Xu2017-08-032-393/+569
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6c1a6c389b Change-Id: Ifc13d6c9fad007909f49192a8e34d37083c0a682
| | | | * | | | | | Merge "Refactor the imgdiff"Tianjie Xu2017-08-032-393/+569
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f411f3dcfb Change-Id: I2b99c2f0f0c117451db80324670590f96fbbb1da
| | | | | * | | | | Merge "Refactor the imgdiff"Tianjie Xu2017-08-032-393/+569
| | | | | |\ \ \ \ \ | | | | | | |/ / / / | | | | | |/| | | |
| | | | | | * | | | Refactor the imgdiffTianjie Xu2017-08-022-393/+569
| | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This helps us to add a new mode to handle large APKs in the follow up CL. Changes include: 1. Create a new interface class 'Image' 1. Create subclasses 'ZipModeImage' and 'ImageModeImage' and move the related functions there. Bug: 63542719 Test: recovery_component_test passes Change-Id: I7729b0ba39b19a9c84811636a60dd0a0b1acc2f0
* | | | | | | | | Merge "Add implemention of SortedRangeSet" am: 64cba55fbc am: fbd4b10310 am: a09376ed90 am: 8b09001e47Tianjie Xu2017-08-012-1/+162
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fd0e740c61 Change-Id: I1a150ab61fd631252faa774455cd3aca83e8dd4c
| * | | | | | | | Merge "Add implemention of SortedRangeSet" am: 64cba55fbc am: fbd4b10310 am: a09376ed90Tianjie Xu2017-08-012-1/+162
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8b09001e47 Change-Id: Ib1c74e9295cf2c2f22a47135a24a884037a31555
| | * | | | | | | Merge "Add implemention of SortedRangeSet" am: 64cba55fbc am: fbd4b10310Tianjie Xu2017-08-012-1/+162
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a09376ed90 Change-Id: I67b2f4e91133239d4eb35524c7f0ed41f18de8dc
| | | * | | | | | Merge "Add implemention of SortedRangeSet" am: 64cba55fbcTianjie Xu2017-08-012-1/+162
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fbd4b10310 Change-Id: I2c6bc65375be433e79db8861e3c5e936847c897e
| | | | * | | | | Merge "Add implemention of SortedRangeSet"Tianjie Xu2017-08-012-1/+162
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 64cba55fbc Change-Id: I2174e4f55c85fe57014b31625dbc2d06e41350be
| | | | | * | | | Merge "Add implemention of SortedRangeSet"Tianjie Xu2017-08-012-1/+162
| | | | | |\ \ \ \
| | | | | | * | | | Add implemention of SortedRangeSetTianjie Xu2017-08-012-1/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is useful in imgdiff to maintain the block ranges of splitted source image. Bug: 34220646 Test: mma && unit tests pass Change-Id: I6427f2ea50f0e3b0aa3dd01880ec0206679b7429
* | | | | | | | | | Merge "otautil: Clean up dirCreateHierarchy()." am: 610712101b am: 5507c3d63c am: 0863373376 am: 06db7363b0Tao Bao2017-07-314-177/+119
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cee984b929 Change-Id: Ia4fbd8f6bbfcc4fe51488b65cfe2b826564119f5
| * | | | | | | | | Merge "otautil: Clean up dirCreateHierarchy()." am: 610712101b am: 5507c3d63c am: 0863373376Tao Bao2017-07-314-177/+119
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 06db7363b0 Change-Id: Ie474f91d9ab7b9c64c2fd9ecb1930a767ceb8e84
| | * | | | | | | | Merge "otautil: Clean up dirCreateHierarchy()." am: 610712101b am: 5507c3d63cTao Bao2017-07-314-177/+119
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0863373376 Change-Id: Ia2326bca2d8a1344fccd2838e2b376cb9a843a82
| | | * | | | | | | Merge "otautil: Clean up dirCreateHierarchy()." am: 610712101bTao Bao2017-07-314-177/+119
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5507c3d63c Change-Id: I811f76004d8b0346746c25d05ee4b2fda635a352
| | | | * | | | | | Merge "otautil: Clean up dirCreateHierarchy()."Tao Bao2017-07-314-177/+119
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 610712101b Change-Id: I95350c4b2aab36dd89ea7813f2eb63d407b5f8ac
| | | | | * | | | | Merge "otautil: Clean up dirCreateHierarchy()."Treehugger Robot2017-07-314-177/+119
| | | | | |\ \ \ \ \
| | | | | | * | | | | otautil: Clean up dirCreateHierarchy().Tao Bao2017-07-274-177/+119
| | | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Changed to std::string based implementation (mostly moved from the former make_parents() in updater/install.cpp); - Removed the timestamp parameter, which is only neeed by file-based OTA; - Changed the type of mode from int to mode_t; - Renamed dirCreateHierarchy() to mkdir_recursively(). Test: recovery_unit_test passes. Test: No external user of dirCreateHierarchy() in code search. Change-Id: I71f8c4b29bab625513bbc3af6d0d1ecdc3a2719a
* | | | | | | | | | Merge "Add more specific error codes for uncrypt failures" am: 3ff8a5e2a4 am: 6f30535229 am: a86d24829b am: ce47e3792fTianjie Xu2017-07-272-6/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 181d514cf1 Change-Id: I0b7d24cea07ce9c51550ca73d36a457d6deddc8e
| * | | | | | | | | Merge "Add more specific error codes for uncrypt failures" am: 3ff8a5e2a4 am: 6f30535229 am: a86d24829bTianjie Xu2017-07-272-6/+8
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ce47e3792f Change-Id: I36e058c5f1337cd032ce561634dcf5b8a9193ce4
| | * | | | | | | | Merge "Add more specific error codes for uncrypt failures" am: 3ff8a5e2a4 am: 6f30535229Tianjie Xu2017-07-272-6/+8
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a86d24829b Change-Id: I841cd10a129cc95ca52b92708d844bfcc5adcdea
| | | * | | | | | | Merge "Add more specific error codes for uncrypt failures" am: 3ff8a5e2a4Tianjie Xu2017-07-272-6/+8
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6f30535229 Change-Id: Iba392936c14c0af584b0dcb94bc65670cb94473e
| | | | * | | | | | Merge "Add more specific error codes for uncrypt failures"Tianjie Xu2017-07-272-6/+8
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3ff8a5e2a4 Change-Id: Iee5b01f59b2e0532232393c0133f0bd3b11d9ccd
| | | | | * | | | | Merge "Add more specific error codes for uncrypt failures"Tianjie Xu2017-07-272-6/+8
| | | | | |\ \ \ \ \
| | | | | | * | | | | Add more specific error codes for uncrypt failuresTianjie Xu2017-07-272-6/+8
| | | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the error codes when we fail to find the realpath, or fail to find the block_device. Bug: 63737759 Test: mma Change-Id: Icf15368ad3e7345c747d9083da2f049cc8acd571
* | | | | | | | | | Merge "roots.cpp: Clean up format_volume()." am: 8eef26cf3d am: dcd272fbb1 am: f93a103587 am: 264caac23dTao Bao2017-07-271-129/+121
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b41d074c9d Change-Id: I41fff0227044d09f5c3eb9de72a67519e082f488
| * | | | | | | | | Merge "roots.cpp: Clean up format_volume()." am: 8eef26cf3d am: dcd272fbb1 am: f93a103587Tao Bao2017-07-271-129/+121
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 264caac23d Change-Id: I497d29e2994f8865e4220811821b2441d6c6a63d
| | * | | | | | | | Merge "roots.cpp: Clean up format_volume()." am: 8eef26cf3d am: dcd272fbb1Tao Bao2017-07-271-129/+121
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f93a103587 Change-Id: I43a23f5bf16feb9a70379c0e1f23892215abc30e
| | | * | | | | | | Merge "roots.cpp: Clean up format_volume()." am: 8eef26cf3dTao Bao2017-07-271-129/+121
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dcd272fbb1 Change-Id: I6983e9df9c4e7d4740050d69fd2522639c2c673d
| | | | * | | | | | Merge "roots.cpp: Clean up format_volume()."Tao Bao2017-07-271-129/+121
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8eef26cf3d Change-Id: I0cf7d7cf82f4e14567b585b2603ba387a8f94231
| | | | | * | | | | Merge "roots.cpp: Clean up format_volume()."Tao Bao2017-07-271-129/+121
| | | | | |\ \ \ \ \ | | | | | | |/ / / / | | | | | |/| | | |
| | | | | | * | | | roots.cpp: Clean up format_volume().Tao Bao2017-07-261-129/+121
| | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: m -j bootable/recovery Test: Wipe data/cache in recovery Change-Id: I11a4bf34015e903992ae2fb100d0b59a9fb75e03
* | | | | | | | | recovery: handle security footer before passing size to mke2fs am: 5e47d5161a -s ours am: 3475faf5ea -s oursJin Qian2017-07-260-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d674d35d0d -s ours Change-Id: I5dcf9bc1475e0c2a392e7d51a1008d5f86046375
| * | | | | | | | recovery: handle security footer before passing size to mke2fs am: 5e47d5161a -s oursJin Qian2017-07-260-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3475faf5ea -s ours Change-Id: I1421a0934fd72b0bdbfc2e35e34f37a64b096706
| | * | | | | | | recovery: handle security footer before passing size to mke2fsJin Qian2017-07-260-0/+0
| | |\ \ \ \ \ \ \ | | | | |_|_|_|/ / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5e47d5161a -s ours Change-Id: I5b9bafb850261ce95cf69fd0323f9104e33babea
* | | | | | | | | recovery: handle security footer before passing size to mke2fs am: 5e47d5161a am: e2d31361ef -s oursJin Qian2017-07-260-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ac05724573 -s ours Change-Id: Iab0233ad7a065e306834a31a19af35a45a6f2eaf
| * | | | | | | | recovery: handle security footer before passing size to mke2fs am: 5e47d5161aJin Qian2017-07-260-0/+0
| |\ \ \ \ \ \ \ \ | | | |_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e2d31361ef -s ours Change-Id: I82c0f53a19c4c3b8311a432023a29fef93047a03
| | * | | | | | | recovery: handle security footer before passing size to mke2fsJin Qian2017-07-261-11/+28
| | |\ \ \ \ \ \ \ | | | | |/ / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5e47d5161a Change-Id: Iaf9b1b1138425101fa10946a215462ada4700433
| | | * | | | | | recovery: handle security footer before passing size to mke2fsJin Qian2017-07-251-11/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mke2fs doesn't take negative size as reserved size. If footer is specified, compute fs size to be (max partition size - reserved footer size) / block_size Bug: 23686092 Bug: 63968011 Merged-In: Iac4e143bd26a70cfc81eb52a399d687e19b1049c Change-Id: Iac4e143bd26a70cfc81eb52a399d687e19b1049c (cherry picked from commit f3ccad58ddb256150858df55a5e6fe5a906c5754)
* | | | | | | | | recovery: Fix the flickering when turning on text mode. am: fda6ee7d61Tao Bao2017-07-260-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 09365a6ef7 Change-Id: Id5a930cc3d82c56e4b1e7a20e1012badc5807966
| * | | | | | | | recovery: Fix the flickering when turning on text mode.Tao Bao2017-07-260-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fda6ee7d61 Change-Id: I5b12133b126a0a92cbff7e447d22b2cece5a28b4
| | * | | | | | | recovery: Fix the flickering when turning on text mode.Tao Bao2017-07-251-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When there's no command specified when booting into debuggable builds (such as using `adb reboot recovery`), we turn on the text mode (i.e. recovery menu) directly. This CL fixes the issue to avoid showing the background image in a flash while turning on the text mode. Bug: 63985334 Test: `fastboot boot $OUT/recovery.img` and it shows the recovery menu directly without the no command image in a flash. Change-Id: Id86bbe346ab76c8defc95e2b423e695a86774b09 (cherry picked from commit 7022f33ec8531c742f8f4701552d687233901495)
* | | | | | | | | Merge "Remove LOCAL_CLANG" am: 231c627a55 am: 1d510671c7 am: 1bc6334312 am: b0e8a507acTao Bao2017-07-264-6/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2affd4cac1 Change-Id: I8900100cf29ceec8b9d795b8772104670b44f4ab
| * | | | | | | | Merge "Remove LOCAL_CLANG" am: 231c627a55 am: 1d510671c7 am: 1bc6334312Tao Bao2017-07-264-6/+0
| |\ \ \ \ \ \ \ \ | | | |_|/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b0e8a507ac Change-Id: I896d73cb352cce7844bf1b02a2f7e4f303fccb29
| | * | | | | | | Merge "Remove LOCAL_CLANG" am: 231c627a55 am: 1d510671c7Tao Bao2017-07-264-6/+0
| | |\ \ \ \ \ \ \ | | | | |_|/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1bc6334312 Change-Id: Ib794876faa040993e6b6d128fae28f80bfa91566
| | | * | | | | | Merge "Remove LOCAL_CLANG" am: 231c627a55Tao Bao2017-07-264-6/+0
| | | |\ \ \ \ \ \ | | | | | |_|/ / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1d510671c7 Change-Id: Ia4f78dc67bc2fac65eba6bb23a273eb3575d9dce
| | | | * | | | | Merge "Remove LOCAL_CLANG"Tao Bao2017-07-254-6/+0
| | | | |\ \ \ \ \ | | | | | | |_|/ / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 231c627a55 Change-Id: Idfd30503b9ebd8e3d59af7ab703911a500ad6c09
| | | | | * | | | Merge "Remove LOCAL_CLANG"Tao Bao2017-07-254-6/+0
| | | | | |\ \ \ \
| | | | | | * | | | Remove LOCAL_CLANGLennart Wieboldt2017-07-254-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clang is the default compiler since Android nougat Change-Id: I930bba431dc49970cb4491ed5fcf44b5e00e97df Signed-off-by: Lennart Wieboldt <lennart.1997@gmx.de>
* | | | | | | | | | Merge "recovery: handle security footer before passing size to mke2fs" am: 539ed9acb1 am: 786177f7e6 am: 2b95e0d0aa am: 6e99b91fd0Jin Qian2017-07-251-11/+28
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9d270b63ad Change-Id: If65fdd4feae44b70eff25f09d7cae49e2b982996
| * | | | | | | | | Merge "recovery: handle security footer before passing size to mke2fs" am: 539ed9acb1 am: 786177f7e6 am: 2b95e0d0aaJin Qian2017-07-251-11/+28
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6e99b91fd0 Change-Id: Idee4f1765fc9569dcb479d3a558b52e712781488
| | * | | | | | | | Merge "recovery: handle security footer before passing size to mke2fs" am: 539ed9acb1 am: 786177f7e6Jin Qian2017-07-251-11/+28
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2b95e0d0aa Change-Id: Ic0ba2478daddb56382b06e321ff11209b8702576
| | | * | | | | | | Merge "recovery: handle security footer before passing size to mke2fs" am: 539ed9acb1Jin Qian2017-07-251-11/+28
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 786177f7e6 Change-Id: Ie10ad843cab2b7c12529a5f2ac361b4884890cf8
| | | | * | | | | | Merge "recovery: handle security footer before passing size to mke2fs"Jin Qian2017-07-251-11/+28
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 539ed9acb1 Change-Id: Iba9eab601be27fe68c6895ca09f4ff2ee3957501
| | | | | * | | | | Merge "recovery: handle security footer before passing size to mke2fs"Treehugger Robot2017-07-251-11/+28
| | | | | |\ \ \ \ \
| | | | | | * | | | | recovery: handle security footer before passing size to mke2fsJin Qian2017-07-251-11/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mke2fs doesn't take negative size as reserved size. If footer is specified, compute fs size to be (max partition size - reserved footer size) / block_size Bug: 23686092 Bug: 63968011 Change-Id: Iac4e143bd26a70cfc81eb52a399d687e19b1049c
* | | | | | | | | | | Merge "updater: Remove dead make_parents()." am: f5396eb8b2 am: ac634e3c9d am: 28cf022931 am: ed4abe576bTao Bao2017-07-251-28/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 33d4ec78dc Change-Id: Ic95dd59fe9b0e9ae5c0024144a89b69bfb5385bb
| * | | | | | | | | | Merge "updater: Remove dead make_parents()." am: f5396eb8b2 am: ac634e3c9d am: 28cf022931Tao Bao2017-07-251-28/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ed4abe576b Change-Id: I43e0a869b8971941469c31f922723b320bf8bcce
| | * | | | | | | | | Merge "updater: Remove dead make_parents()." am: f5396eb8b2 am: ac634e3c9dTao Bao2017-07-251-28/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 28cf022931 Change-Id: Ib045e79f32ff46481ab3c4305a60581ad45d8404
| | | * | | | | | | | Merge "updater: Remove dead make_parents()." am: f5396eb8b2Tao Bao2017-07-251-28/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ac634e3c9d Change-Id: I0e230a00ffd077177562d71fa54f5f9bd7718f4f
| | | | * | | | | | | Merge "updater: Remove dead make_parents()."Tao Bao2017-07-251-28/+0
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f5396eb8b2 Change-Id: Ief0557813324d49c5da64265dc49ab757ed3ae3f
| | | | | * | | | | | Merge "updater: Remove dead make_parents()."Treehugger Robot2017-07-251-28/+0
| | | | | |\ \ \ \ \ \
| | | | | | * | | | | | updater: Remove dead make_parents().Tao Bao2017-07-251-28/+0
| | | | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Its former callers in RenameFn() and SymlinkFn() have been removed in commit 63d786cf22cb44fe32e8b9c1f18b32da3c9d2e1b. Test: mmma -j bootable/recovery Change-Id: I26ed126202554fc5840811ec7ae162da70593213
* | | | | | | | | | | Merge "recovery: Fix the flickering when turning on text mode." am: 771dfb0016 am: 276ff4cc33 am: a40c15717d am: df9252faf7Tao Bao2017-07-251-9/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 62be269570 Change-Id: I75bbd4830db86ff06694d970e6a4ca4912707401
| * | | | | | | | | | Merge "recovery: Fix the flickering when turning on text mode." am: 771dfb0016 am: 276ff4cc33 am: a40c15717dTao Bao2017-07-251-9/+8
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: df9252faf7 Change-Id: I3db534430aec0791663de432fc9e8bf2026bae86
| | * | | | | | | | | Merge "recovery: Fix the flickering when turning on text mode." am: 771dfb0016 am: 276ff4cc33Tao Bao2017-07-251-9/+8
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a40c15717d Change-Id: I2b6120ab9c2defddbb5a7a72ee6269c005a12b4b
| | | * | | | | | | | Merge "recovery: Fix the flickering when turning on text mode." am: 771dfb0016Tao Bao2017-07-251-9/+8
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 276ff4cc33 Change-Id: I0ce7b6bdc85d17d38b9e2a1332556f90b80926a6
| | | | * | | | | | | Merge "recovery: Fix the flickering when turning on text mode."Tao Bao2017-07-251-9/+8
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 771dfb0016 Change-Id: Ic85356b782c6b83725d85f2104fb30fc81ad2ed1
| | | | | * | | | | | Merge "recovery: Fix the flickering when turning on text mode."Treehugger Robot2017-07-251-9/+8
| | | | | |\ \ \ \ \ \ | | | | | | |/ / / / / | | | | | |/| | | | |
| | | | | | * | | | | recovery: Fix the flickering when turning on text mode.Tao Bao2017-07-251-9/+8
| | | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When there's no command specified when booting into debuggable builds (such as using `adb reboot recovery`), we turn on the text mode (i.e. recovery menu) directly. This CL fixes the issue to avoid showing the background image in a flash while turning on the text mode. Bug: 63985334 Test: `fastboot boot $OUT/recovery.img` and it shows the recovery menu directly without the no command image in a flash. Change-Id: Id86bbe346ab76c8defc95e2b423e695a86774b09
* | | | | | | | | | Merge "otautil: Delete dirUnlinkHierarchy()." am: 031661d4a9 am: 993cec5cc9 am: 633aeba594 am: 9c62f67863Tao Bao2017-07-253-101/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e3134ff774 Change-Id: I50e5fb1af1d4a594ae9f579c550972781a3ab5da
| * | | | | | | | | Merge "otautil: Delete dirUnlinkHierarchy()." am: 031661d4a9 am: 993cec5cc9 am: 633aeba594Tao Bao2017-07-253-101/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9c62f67863 Change-Id: I14b40f1a0c5fd4c0dd1b6273440f185b5ec59349
| | * | | | | | | | Merge "otautil: Delete dirUnlinkHierarchy()." am: 031661d4a9 am: 993cec5cc9Tao Bao2017-07-253-101/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 633aeba594 Change-Id: I9833741fe5d785298d7f99f6b2c9539723f8fcd1
| | | * | | | | | | Merge "otautil: Delete dirUnlinkHierarchy()." am: 031661d4a9Tao Bao2017-07-253-101/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 993cec5cc9 Change-Id: Iec927cd9ff2f85e898fa034239641e733e119a49
| | | | * | | | | | Merge "otautil: Delete dirUnlinkHierarchy()."Tao Bao2017-07-253-101/+0
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 031661d4a9 Change-Id: I33a793646f6f11757afc20f16fd3a0f700dd09fb
| | | | | * | | | | Merge "otautil: Delete dirUnlinkHierarchy()."Tao Bao2017-07-253-101/+0
| | | | | |\ \ \ \ \ | | | | | | |/ / / / | | | | | |/| | | |
| | | | | | * | | | otautil: Delete dirUnlinkHierarchy().Tao Bao2017-07-253-101/+0
| | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function has become obsolete since we've removed file-based OTA support (it was needed by 'delete_recursive' edify function earlier). Test: mmma -j bootable/recovery Test: Code search shows no active user of the function. Change-Id: If6faaa759d4c849b79acba4e6adb82baadc89f7a
* | | | | | | | | Merge "roots.cpp: Reformatting the file." am: ac70ffcc85 am: 922a310d36 am: bba1e66f74 am: 11e6d8ee85Tao Bao2017-07-251-101/+93
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 844a4b6fad Change-Id: Ie58fcff8cdd84667a5ec3e131dfe38b70cfddc13
| * | | | | | | | Merge "roots.cpp: Reformatting the file." am: ac70ffcc85 am: 922a310d36 am: bba1e66f74Tao Bao2017-07-251-101/+93
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 11e6d8ee85 Change-Id: I011b232d6e65c9a5a244048391debae6158d348b
| | * | | | | | | Merge "roots.cpp: Reformatting the file." am: ac70ffcc85 am: 922a310d36Tao Bao2017-07-251-101/+93
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bba1e66f74 Change-Id: Id965c1752f56b81d0d9e2e98bd3a9a4a393c73c1
| | | * | | | | | Merge "roots.cpp: Reformatting the file." am: ac70ffcc85Tao Bao2017-07-251-101/+93
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 922a310d36 Change-Id: I120503c0e8a726abc044344a17bd9e0c584200c9
| | | | * | | | | Merge "roots.cpp: Reformatting the file."Tao Bao2017-07-251-101/+93
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ac70ffcc85 Change-Id: Ia658b14b12286a07c878f639763d9d83fa48fabf
| | | | | * | | | Merge "roots.cpp: Reformatting the file."Treehugger Robot2017-07-251-101/+93
| | | | | |\ \ \ \
| | | | | | * | | | roots.cpp: Reformatting the file.Tao Bao2017-07-251-101/+93
| | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mostly cosmetic changes. Removed the use of errno, and added constness to a few pointers. format_volume() and exec_cmd() will be cleaned up in a separate CL. Test: mmma -j bootable/recovery Change-Id: Ia12ce25a91c0bdd0e319f6da02ce1dc8377f265d
* | | | | | | | | tests: Add a test to cover legacy care_map.txt handling. am: 5cee24f4f1Tao Bao2017-07-250-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ce51dfca9e Change-Id: I2bce692879c455b37d20413bd0c3adaf87da7eae
| * | | | | | | | tests: Add a test to cover legacy care_map.txt handling.Tao Bao2017-07-250-0/+0
| |\ \ \ \ \ \ \ \ | | | |_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5cee24f4f1 Change-Id: I4d4583936ddfe3d53c2e78d3ceb20125ffcfef6c
| | * | | | | | | tests: Add a test to cover legacy care_map.txt handling.Tao Bao2017-07-241-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is to cover the code added by commit 5a1dee01df3af346729b5791606b72d59b8e9815, where an O update_verifier should not reject N care_map.txt. Bug: 63544345 Test: recovery_component_test passes on marlin. Change-Id: Ia944e16cba3cc635098b3ffd92842d725b570fec (cherry picked from commit c319613e06f996aed32da3a1c3e93bf9b04ffa95)
* | | | | | | | | Merge "update_verifier: Handle legacy care_map.txt gracefully." into oc-mr1-dev am: 71b8103bf1Tao Bao2017-07-240-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 25a05fc938 Change-Id: I8b39471b35d10a6a597eb3a276ea892803c24a09
| * | | | | | | | Merge "update_verifier: Handle legacy care_map.txt gracefully." into oc-mr1-devTao Bao2017-07-240-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 71b8103bf1 Change-Id: I2fd922b746db80fed5b4212c70b04de9d54eb0cc
| | * | | | | | | Merge "update_verifier: Handle legacy care_map.txt gracefully." into oc-mr1-devTreeHugger Robot2017-07-241-29/+42
| | |\ \ \ \ \ \ \
| | | * | | | | | | update_verifier: Handle legacy care_map.txt gracefully.Tao Bao2017-07-241-29/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update_verifier should be backward compatible to not reject legacy care_map.txt from old releases, which could otherwise fail to boot into the new release. For example, we've changed the care_map format between N and O. An O update_verifier would fail to work with an N care_map.txt - a) we have switched update_verifier to read from device mapper in O; b) the last few blocks that contain metadata can't be read via device mapper. This could be a result of sideloading an O OTA while the device having a pending N update. Bug: 63544345 Test: As follows on sailfish: 1. Flash the device with this CL; 2. Put a copy of N care_map.txt at /data/ota_package/. Restore the permissions properly ('cache' group); 3. `adb reboot bootloader`; 4. `fastboot set_active <current_slot>` 5. Device boots up into home screen, with a warning in logcat that says it has skipped legacy care_map.txt. Change-Id: I6acc88c9e655a9245e6531f176fef7953953935f (cherry picked from commit 5a1dee01df3af346729b5791606b72d59b8e9815)
* | | | | | | | | | Merge "Fix a case when brotli writer fails to write last few blocks of data" into oc-mr1-dev am: 92aef7fa88Tianjie Xu2017-07-240-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d9c4ad1086 Change-Id: I425fd42c7ee4e1a2c37e5b8c1ce97df735d4f9ee
| * | | | | | | | | Merge "Fix a case when brotli writer fails to write last few blocks of data" into oc-mr1-devTianjie Xu2017-07-240-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 92aef7fa88 Change-Id: Ib9b832f6474c0404167d46ec7cda7c9ef1507efd
| | * | | | | | | | Merge "Fix a case when brotli writer fails to write last few blocks of data" into oc-mr1-devTianjie Xu2017-07-242-98/+96
| | |\ \ \ \ \ \ \ \ | | | |/ / / / / / / | | |/| | | | | | |
| | | * | | | | | | Fix a case when brotli writer fails to write last few blocks of dataTianjie Xu2017-07-222-98/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | receive_new_data may exit too early if the zip processor has sent all the raw data. As a result, the last few 'new' commands will fail even though the brotli decoder has more output in its buffer. Restruct the code so that 'NewThreadInfo' owns the decoder state solely; and receive_brotli_new_data is responsible for the decompression. Also reduce the test data size to 100 blocks to avoid the test timeout. Bug: 63802629 Test: recovery_component_test. on bullhead, apply full updates with and w/o brotli compressed entries, apply an incremental update. Change-Id: Id429b2c2f31951897961525609fa12c3657216b7 (cherry picked from commit 6ed175d5412deeaec9691f85757e45452407b8e3)
* | | | | | | | | | Merge "tests: Add a test to cover legacy care_map.txt handling." am: 6eb23c594c am: dbe9da5331 am: 0148a6f9ab am: 2357b0c745Tao Bao2017-07-241-0/+13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4574ca1dff Change-Id: I3ee97953dc4e53354568924fb0b7baf67f119280
| * | | | | | | | | Merge "tests: Add a test to cover legacy care_map.txt handling." am: 6eb23c594c am: dbe9da5331 am: 0148a6f9abTao Bao2017-07-241-0/+13
| |\ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2357b0c745 Change-Id: Ic8dfcde80f8dff11c33fac6a911ed278810590aa
| | * | | | | | | | Merge "tests: Add a test to cover legacy care_map.txt handling." am: 6eb23c594c am: dbe9da5331Tao Bao2017-07-241-0/+13
| | |\ \ \ \ \ \ \ \ | | | | |_|/ / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0148a6f9ab Change-Id: Id568b7cb5043c444f88032368be57a6f128a44c7
| | | * | | | | | | Merge "tests: Add a test to cover legacy care_map.txt handling." am: 6eb23c594cTao Bao2017-07-241-0/+13
| | | |\ \ \ \ \ \ \ | | | | | |_|/ / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dbe9da5331 Change-Id: I87bb6d92a00b97e05b35736e5b9f247101bbac11
| | | | * | | | | | Merge "tests: Add a test to cover legacy care_map.txt handling."Tao Bao2017-07-241-0/+13
| | | | |\ \ \ \ \ \ | | | | | | |_|/ / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6eb23c594c Change-Id: Iaad43cb44f4c406e4c07c9399e70e96cbaa4db7b
| | | | | * | | | | Merge "tests: Add a test to cover legacy care_map.txt handling."Tao Bao2017-07-241-0/+13
| | | | | |\ \ \ \ \
| | | | | | * | | | | tests: Add a test to cover legacy care_map.txt handling.Tao Bao2017-07-241-0/+13
| | | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is to cover the code added by commit 5a1dee01df3af346729b5791606b72d59b8e9815, where an O update_verifier should not reject N care_map.txt. Bug: 63544345 Test: recovery_component_test passes on marlin. Change-Id: Ia944e16cba3cc635098b3ffd92842d725b570fec
* | | | | | | | | | Merge "update_verifier: Handle legacy care_map.txt gracefully." am: 15ae0f01c3 am: fdb5d1cd8c am: 1d923f5e54 am: c580e491caTao Bao2017-07-241-29/+42
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7b1d9ad4a9 Change-Id: Ic3079fbd5da210c514fcdfe0cb2e09c37ad5d889
| * | | | | | | | | Merge "update_verifier: Handle legacy care_map.txt gracefully." am: 15ae0f01c3 am: fdb5d1cd8c am: 1d923f5e54Tao Bao2017-07-241-29/+42
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c580e491ca Change-Id: I7c479ca76006f5402c4bfbedb8d4fc570b722754
| | * | | | | | | | Merge "update_verifier: Handle legacy care_map.txt gracefully." am: 15ae0f01c3 am: fdb5d1cd8cTao Bao2017-07-241-29/+42
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1d923f5e54 Change-Id: I61ebcbb04c989342f48bd53927fafc5e634fdfa8
| | | * | | | | | | Merge "update_verifier: Handle legacy care_map.txt gracefully." am: 15ae0f01c3Tao Bao2017-07-241-29/+42
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fdb5d1cd8c Change-Id: Ia75dbbe4ebf2f4e595f5a50937d831d36c81fe2c
| | | | * | | | | | Merge "update_verifier: Handle legacy care_map.txt gracefully."Tao Bao2017-07-241-29/+42
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 15ae0f01c3 Change-Id: I7a175533cd3710d978b20245817a01a73a3f575d
| | | | | * | | | | Merge "update_verifier: Handle legacy care_map.txt gracefully."Tao Bao2017-07-241-29/+42
| | | | | |\ \ \ \ \
| | | | | | * | | | | update_verifier: Handle legacy care_map.txt gracefully.Tao Bao2017-07-221-29/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update_verifier should be backward compatible to not reject legacy care_map.txt from old releases, which could otherwise fail to boot into the new release. For example, we've changed the care_map format between N and O. An O update_verifier would fail to work with an N care_map.txt - a) we have switched update_verifier to read from device mapper in O; b) the last few blocks that contain metadata can't be read via device mapper. This could be a result of sideloading an O OTA while the device having a pending N update. Bug: 63544345 Test: As follows on sailfish: 1. Flash the device with this CL; 2. Put a copy of N care_map.txt at /data/ota_package/. Restore the permissions properly ('cache' group); 3. `adb reboot bootloader`; 4. `fastboot set_active <current_slot>` 5. Device boots up into home screen, with a warning in logcat that says it has skipped legacy care_map.txt. Change-Id: I6acc88c9e655a9245e6531f176fef7953953935f
* | | | | | | | | | | Merge "Remove the obsolete reference to /file_contexts." am: 6b09b895be am: 248b4f9dca am: fd63239621 am: 0be4c0e261Tao Bao2017-07-230-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 98e02adb75 Change-Id: Iad83b4b701c9a382510b936df94a65911939a919
| * | | | | | | | | | Merge "Remove the obsolete reference to /file_contexts." am: 6b09b895be am: 248b4f9dca am: fd63239621Tao Bao2017-07-230-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0be4c0e261 Change-Id: I854cd279927c60f7d8a726775788c75ef1b0b6b3
| | * | | | | | | | | Merge "Remove the obsolete reference to /file_contexts." am: 6b09b895be am: 248b4f9dcaTao Bao2017-07-232-5/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fd63239621 Change-Id: Ie1721fb7264b3c7277770f5bb44781880ce32f12
| | | * | | | | | | | Merge "Remove the obsolete reference to /file_contexts." am: 6b09b895beTao Bao2017-07-232-5/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 248b4f9dca Change-Id: Idd17e7d036ef7f92c687441e56f1e5c98c6f6b0c
| | | | * | | | | | | Merge "Remove the obsolete reference to /file_contexts."Tao Bao2017-07-232-5/+2
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6b09b895be Change-Id: I2b26ced9ffeb278ce01ff2ca7be4057b0ab6c61c
| | | | | * | | | | | Merge "Remove the obsolete reference to /file_contexts."Treehugger Robot2017-07-232-5/+2
| | | | | |\ \ \ \ \ \ | | | | | | |/ / / / / | | | | | |/| | | | |
| | | | | | * | | | | Remove the obsolete reference to /file_contexts.Tao Bao2017-07-232-5/+2
| | | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This file no longer exists: - /file_contexts has been split into plat_file_contexts and nonplat_file_contexts since commit b236eb6ca204cefcb926e19bd5682f9dcad4021d (system/sepolicy). - It was named /file_contexts.bin prior to the split. '-S file_contexts' is also no longer required by e2fsdroid, since commit 2fff6fb036cbbb6dedd7da3d208b312a9038a5ce (external/e2fsprogs). It will load the file contexts via libselinux. Test: Trigger the path by performing a data wipe for converting to FBE. Change-Id: I179939da409e5c0415ae0ea0bf5ddb23f9e6331e (cherry picked from commit 7af933b6a6fd687bd17710ef6fda0ad5483e4d6d)
* | | | | | | | | | Avoid crashing recovery with unwritable /cache. am: 329fe83509Tao Bao2017-07-220-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 07a5750f1e Change-Id: I4d73128ba0a754d333350d1987daf512dae09eba
| * | | | | | | | | Avoid crashing recovery with unwritable /cache.Tao Bao2017-07-220-0/+0
| |\ \ \ \ \ \ \ \ \ | | | |_|_|_|/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 329fe83509 Change-Id: I88a3da48716c8a7021466fbdefb07cd5776389a7
| | * | | | | | | | Avoid crashing recovery with unwritable /cache.Tao Bao2017-07-221-25/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When /cache is unwritable, recovery hits a crash loop. Because it passes nullptr to fileno(3) when writing back the locale file. This prevents user from recovering a device - it cannot boot far enough to recovery menu which allows wiping /cache. Bug: 63927337 Test: Corrupt /cache and boot into recovery on bullhead: 1. m -j recoveryimage 2. fastboot erase cache 3. fastboot boot $OUT/recovery.img 4. recovery menu shows up. Change-Id: I1407743f802049eb48add56a36298b665cb86139 (cherry picked from commit ec57903a7ec0bfe3c2f39dd6ee9cfc3de4ed20e6)
* | | | | | | | | | Build libminui with BOARD_VNDK_VERSION am: d774ff247eJiyong Park2017-07-220-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8e59e23d14 -s ours Change-Id: I1a01f19c2421c02be9dceb85925b4e784144548b
| * | | | | | | | | Build libminui with BOARD_VNDK_VERSIONJiyong Park2017-07-221-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d774ff247e Change-Id: I282db7cb9da4a5612323c7fcb182760534384229
| | * | | | | | | | Build libminui with BOARD_VNDK_VERSIONJiyong Park2017-07-211-1/+1
| | | |_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use libdrm_platform which is a platform variant of libdrm. Bug: 63741047 Bug: 37342627 Test: BOARD_VNDK_VERSION=current m -j libminui Test: ryu recovery graphics test shows various graphics Change-Id: Ifd2c1432781a96538585cdf818aa728d628a2f5a Merged-In: Ifd2c1432781a96538585cdf818aa728d628a2f5a (cherry picked from commit a48c494f138ddb99320583d00120674be1e3297c)
* | | | | | | | | Merge "Avoid crashing recovery with unwritable /cache." am: 9187f1cc51 am: 4fb2825dc2 am: e62f06246a am: 7d03b8d495Tao Bao2017-07-221-25/+23
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2076da2014 Change-Id: I6b3df2ee56d77b13cd35ba208245d3e8004861c0
| * | | | | | | | Merge "Avoid crashing recovery with unwritable /cache." am: 9187f1cc51 am: 4fb2825dc2 am: e62f06246aTao Bao2017-07-221-25/+23
| |\ \ \ \ \ \ \ \ | | | |/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7d03b8d495 Change-Id: I99fcd7c1af967df6b71430dbcf317355ea19368f
| | * | | | | | | Merge "Avoid crashing recovery with unwritable /cache." am: 9187f1cc51 am: 4fb2825dc2Tao Bao2017-07-221-25/+23
| | |\ \ \ \ \ \ \ | | | | |/ / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e62f06246a Change-Id: Ifb7776e0a6946833bd46e00206412082ce053eba
| | | * | | | | | Merge "Avoid crashing recovery with unwritable /cache." am: 9187f1cc51Tao Bao2017-07-221-25/+23
| | | |\ \ \ \ \ \ | | | | | |/ / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4fb2825dc2 Change-Id: I7ad113d2e73b9944b999a7c2a53ce1e7c9670c8c
| | | | * | | | | Merge "Avoid crashing recovery with unwritable /cache."Tao Bao2017-07-221-25/+23
| | | | |\ \ \ \ \ | | | | | | |/ / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9187f1cc51 Change-Id: Ie5708c2f703aefbfcad85ad0d2d24ae36b725c78
| | | | | * | | | Merge "Avoid crashing recovery with unwritable /cache."Treehugger Robot2017-07-221-25/+23
| | | | | |\ \ \ \
| | | | | | * | | | Avoid crashing recovery with unwritable /cache.Tao Bao2017-07-211-25/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When /cache is unwritable, recovery hits a crash loop. Because it passes nullptr to fileno(3) when writing back the locale file. This prevents user from recovering a device - it cannot boot far enough to recovery menu which allows wiping /cache. Bug: 63927337 Test: Corrupt /cache and boot into recovery on bullhead: 1. m -j recoveryimage 2. fastboot erase cache 3. fastboot boot $OUT/recovery.img 4. recovery menu shows up. Change-Id: I1407743f802049eb48add56a36298b665cb86139
* | | | | | | | | | Merge "Fix a case when brotli writer fails to write last few blocks of data" am: e45c8f0057 am: 80acaab52f am: 75ff0107c8 am: 512283a751Tianjie Xu2017-07-222-98/+96
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 12c6a01e8f Change-Id: I87f690196f6fde0c79af4837a49bdb7f1d46e443
| * | | | | | | | | Merge "Fix a case when brotli writer fails to write last few blocks of data" am: e45c8f0057 am: 80acaab52f am: 75ff0107c8Tianjie Xu2017-07-222-98/+96
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 512283a751 Change-Id: I035725ce64b45b168100a39d594d95876ee7922b
| | * | | | | | | | Merge "Fix a case when brotli writer fails to write last few blocks of data" am: e45c8f0057 am: 80acaab52fTianjie Xu2017-07-222-98/+96
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 75ff0107c8 Change-Id: Ieab5e6e412704599e873c7497d1c0de42453e642
| | | * | | | | | | Merge "Fix a case when brotli writer fails to write last few blocks of data" am: e45c8f0057Tianjie Xu2017-07-212-98/+96
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 80acaab52f Change-Id: Id429b2c2f31951897961525609fa12c3657216b7
| | | | * | | | | | Merge "Fix a case when brotli writer fails to write last few blocks of data"Tianjie Xu2017-07-212-98/+96
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e45c8f0057 Change-Id: I337e8ec26f59a5245ab299080d7251331823e2da
| | | | | * | | | | Merge "Fix a case when brotli writer fails to write last few blocks of data"Tianjie Xu2017-07-212-98/+96
| | | | | |\ \ \ \ \ | | | | | | |/ / / / | | | | | |/| | | |
| | | | | | * | | | Fix a case when brotli writer fails to write last few blocks of dataTianjie Xu2017-07-212-98/+96
| | | | | | | |_|/ | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | receive_new_data may exit too early if the zip processor has sent all the raw data. As a result, the last few 'new' commands will fail even though the brotli decoder has more output in its buffer. Restruct the code so that 'NewThreadInfo' owns the decoder state solely; and receive_brotli_new_data is responsible for the decompression. Also reduce the test data size to 100 blocks to avoid the test timeout. Bug: 63802629 Test: recovery_component_test. on bullhead, apply full updates with and w/o brotli compressed entries, apply an incremental update. Change-Id: I9442f2536b74e48dbf7eeb062a8539c82c6dab47
* | | | | | | | | Merge "recovery: replace make_ext4 with e2fsprogs" am: f7c00ddaf6 am: 9203641742 am: 7cdc58497b am: 6fc893ebcaJin Qian2017-07-220-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ac58c9f87b Change-Id: If23d3ad9082ffddb75a052c7cca79b0f902756c1
| * | | | | | | | Merge "recovery: replace make_ext4 with e2fsprogs" am: f7c00ddaf6 am: 9203641742 am: 7cdc58497bJin Qian2017-07-220-0/+0
| |\| | | | | | | | | |_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6fc893ebca Change-Id: Id765b0a58fad55f940cc6899d3a8c1d4fbf3995c
| | * | | | | | Merge "recovery: replace make_ext4 with e2fsprogs" am: f7c00ddaf6 am: 9203641742Jin Qian2017-07-220-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7cdc58497b Change-Id: Ib2e1ffa2f8620d51c7693130e0d51ed2da9b207f
| | | * | | | | Merge "recovery: replace make_ext4 with e2fsprogs" am: f7c00ddaf6Jin Qian2017-07-213-11/+86
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9203641742 Change-Id: I8e23f2622021e8bae61a3dc4954c665c7fc85ccf
| | | | * | | | Merge "recovery: replace make_ext4 with e2fsprogs"Jin Qian2017-07-213-11/+86
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f7c00ddaf6 Change-Id: I17167b59242c709b18d09fccb52058b0bc25bf09
| | | | | * | | Merge "recovery: replace make_ext4 with e2fsprogs"Treehugger Robot2017-07-213-11/+86
| | | | | |\ \ \
| | | | | | * | | recovery: replace make_ext4 with e2fsprogsJin Qian2017-07-203-11/+86
| | | | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Execute mke2fs to create empty ext4 filesystem. Execute e2fsdroid to add files to filesystem. Test: enter recovery mode and wipe data Bug: 35219933 Change-Id: I10a9f4c1f4754ad864b2df45b1f879180ab33876 (cherry picked from commit ac31808cd37cfb98755e5821dbb2efb5fe5cb12a)
* | | | | | | | Merge "Build libminui with BOARD_VNDK_VERSION"TreeHugger Robot2017-07-211-1/+1
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | Build libminui with BOARD_VNDK_VERSIONJiyong Park2017-07-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use libdrm_platform which is a platform variant of libdrm. Bug: 63741047 Bug: 37342627 Test: BOARD_VNDK_VERSION=current m -j libminui Test: ryu recovery graphics test shows various graphics Change-Id: Ifd2c1432781a96538585cdf818aa728d628a2f5a
* | | | | | | | Merge "Fix the android-cloexec-* warnings in bootable/recovery" am: 94a8ea1797 am: 6d8827e0d3 am: 96b5bb9601Tianjie Xu2017-07-207-116/+115
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| / / / / / / | |/ / / / / / | | | | | | | | | | | | | | am: f2a279adb5 Change-Id: I85c1b30fe78f99a935a19ba28d02841f68216226
| * | | | | | Merge "Fix the android-cloexec-* warnings in bootable/recovery" am: 94a8ea1797 am: 6d8827e0d3Tianjie Xu2017-07-207-116/+115
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 96b5bb9601 Change-Id: I55911c112a34797d7c7098e5e325145667b46715
| | * | | | | Merge "Fix the android-cloexec-* warnings in bootable/recovery" am: 94a8ea1797Tianjie Xu2017-07-207-116/+115
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6d8827e0d3 Change-Id: I0c150dc44b70353f1c4b6ef7dd65b1f601e2ec4b
| | | * | | | Merge "Fix the android-cloexec-* warnings in bootable/recovery"Tianjie Xu2017-07-207-116/+115
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 94a8ea1797 Change-Id: I57ae57bab58f603540654bb24df9facca9a7d625
| | | | * | | Merge "Fix the android-cloexec-* warnings in bootable/recovery"Tianjie Xu2017-07-207-116/+115
| | | | |\ \ \ | | | | | |/ / | | | | |/| |
| | | | | * | Fix the android-cloexec-* warnings in bootable/recoveryTianjie Xu2017-07-197-116/+115
| | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the O_CLOEXEC or 'e' accordingly. Bug: 63510015 Test: recovery tests pass Change-Id: I7094bcc6af22c9687eb535116b2ca6a59178b303
* | | | | | Merge "Remove the obsolete reference to /file_contexts."Tao Bao2017-07-142-5/+2
|\ \ \ \ \ \
| * | | | | | Remove the obsolete reference to /file_contexts.Tao Bao2017-07-132-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This file no longer exists: - /file_contexts has been split into plat_file_contexts and nonplat_file_contexts since commit b236eb6ca204cefcb926e19bd5682f9dcad4021d (system/sepolicy). - It was named /file_contexts.bin prior to the split. '-S file_contexts' is also no longer required by e2fsdroid, since commit 2fff6fb036cbbb6dedd7da3d208b312a9038a5ce (external/e2fsprogs). It will load the file contexts via libselinux. Test: Trigger the path by performing a data wipe for converting to FBE. Change-Id: I179939da409e5c0415ae0ea0bf5ddb23f9e6331e
* | | | | | | Merge "Fix the missing char when showing recovery logs." am: 8155a8ba74 am: c61bbe158e am: 762c42d6f6Tao Bao2017-07-131-5/+5
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | am: 1a4f9e37dd Change-Id: I733b98ea22719db36e3bca71cc083be5df403288
| * | | | | | Merge "Fix the missing char when showing recovery logs." am: 8155a8ba74 am: c61bbe158eTao Bao2017-07-131-5/+5
| |\ \ \ \ \ \ | | | |/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | am: 762c42d6f6 Change-Id: I8dd98865f38e0cc328f5a908a2c7c092d73e3a61
| | * | | | | Merge "Fix the missing char when showing recovery logs." am: 8155a8ba74Tao Bao2017-07-131-5/+5
| | |\ \ \ \ \ | | | | |/ / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | am: c61bbe158e Change-Id: Ic38f2132b05642ff8f5e00745fc1a0ac001d9e27
| | | * | | | Merge "Fix the missing char when showing recovery logs."Tao Bao2017-07-131-5/+5
| | | |\ \ \ \ | | | | | |/ / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | am: 8155a8ba74 Change-Id: I237241a661838e914e3c3e5c7bd2ba113e6a0501
| | | | * | | Merge "Fix the missing char when showing recovery logs."Treehugger Robot2017-07-131-5/+5
| | | | |\ \ \
| | | | | * | | Fix the missing char when showing recovery logs.Tao Bao2017-07-131-5/+5
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a regression when adding support for margin space in commit 171b4c4c. We're losing one char when showing long log lines. Because text_ is aware of kMarginWidth, but not the the added indent (TEXT_INDENT). Test: 'View recovery logs' on angler, with no missing character. Change-Id: I284d54681d603e85e69d8e9c25173b1437a704df
* | | | | | | Merge "Import translations. DO NOT MERGE am: 28b67f8eea -s ours am: 9839965b25 -s ours am: 7e05669aba -s ours" into oc-dr1-dev-plus-aospBill Yi2017-07-110-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c33abb73bc -s ours Change-Id: I595fc1bbe2235ffcb5809423d94f89383ae82976
| * | | | | | Merge "Import translations. DO NOT MERGE am: 28b67f8eea -s ours am: 9839965b25 -s ours am: 7e05669aba -s ours" into oc-dr1-dev-plus-aospAndroid Build Merger (Role)2017-07-110-0/+0
| |\ \ \ \ \ \
| | * \ \ \ \ \ Import translations. DO NOT MERGE am: 28b67f8eea -s ours am: 9839965b25 -s oursBill Yi2017-07-110-0/+0
| | |\ \ \ \ \ \ | | | | |_|_|_|/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7e05669aba -s ours Change-Id: Ib58bfa4519142c21b4f7440d0a269732172f9e16
| | | * | | | | Import translations. DO NOT MERGE am: 28b67f8eea -s oursBill Yi2017-07-110-0/+0
| | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9839965b25 -s ours Change-Id: I0b93748069282ecd14fdcba5341c961913df0432
* | | | | | | | | Import translations. DO NOT MERGE am: 28b67f8eea -s ours am: 9839965b25 -s ours am: 04e1d6ebd9 -s oursBill Yi2017-07-110-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1efc63d9d4 -s ours Change-Id: Ie810f9995732ff09b79fb3ac9858059a5596dc17
| * | | | | | | | Import translations. DO NOT MERGE am: 28b67f8eea -s ours am: 9839965b25 -s oursBill Yi2017-07-110-0/+0
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | / / / / | | | |_|/ / / / | | |/| | | | | | | | | | | | | am: 04e1d6ebd9 -s ours Change-Id: I7a86f732572f2b03220890f096f5881e0f074b25
| | * | | | | | Import translations. DO NOT MERGE am: 28b67f8eea -s oursBill Yi2017-07-110-0/+0
| | |\ \ \ \ \ \ | | | | |/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9839965b25 -s ours Change-Id: Ib54432253ac2e1db0f9a59fbf18c1fb4ce8dfe04
| | | * | | | | Import translations. DO NOT MERGEBill Yi2017-07-110-0/+0
| | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 28b67f8eea -s ours Change-Id: I1f451ff10f7c09b0d960830f8985515c8bc0ab0b
| | | | * | | | | Import translations. DO NOT MERGEBill Yi2017-07-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: If9d38fc1db0f4abc498c5229aa6d45150b0ef5e7 Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import
* | | | | | | | | Merge "Add support to decompress brotli compressed new data" am: 918e6ea1b2 am: 43bdf6cad6 am: 8375ebee37Tianjie Xu2017-07-114-32/+212
|\| | | | | | | | | |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9f8fd32d95 Change-Id: I6af65721fec0bb2ff47980cbe5125d4a301b4787
| * | | | | | | Merge "Add support to decompress brotli compressed new data" am: 918e6ea1b2 am: 43bdf6cad6Tianjie Xu2017-07-114-32/+212
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8375ebee37 Change-Id: I3eea508486f48d316644b68278f42976ffd4698d
| | * | | | | | Merge "Add support to decompress brotli compressed new data" am: 918e6ea1b2Tianjie Xu2017-07-114-32/+212
| | |\ \ \ \ \ \ | | | | |_|_|/ / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 43bdf6cad6 Change-Id: If938b5b33303c52ea815016c42817a62ab9d08d9
| | | * | | | | Merge "Add support to decompress brotli compressed new data"Tianjie Xu2017-07-114-32/+212
| | | |\ \ \ \ \ | | | | | |_|_|/ | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 918e6ea1b2 Change-Id: I4fd9cea71716ad1574ecb4bb7f612bc8734711c5
| | | | * | | | Merge "Add support to decompress brotli compressed new data"Tianjie Xu2017-07-114-32/+212
| | | | |\ \ \ \
| | | | | * | | | Add support to decompress brotli compressed new dataTianjie Xu2017-07-084-32/+212
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new writer that can decode the brotli-compressed system/vendor new data stored in the OTA zip. Brotli generally gives better compression rate at the cost of slightly increased time consumption. The patch.dat is already compressed by BZ; so there's no point to further compress it. For the given 1.9G bullhead system image: Size: 875M -> 787M; ~10% reduction of package size. Time: 147s -> 153s; ~4% increase of the block_image_update execution time. (I guess I/O takes much longer time than decompression.) Also it takes 4 minutes to compress the system image on my local machine, 3 more minutes than zip. Test: recovery tests pass && apply a full OTA with brotli compressed system/vendor.new.dat on bullhead Change-Id: I232335ebf662a9c55579ca073ad45265700a621e
* | | | | | | | Merge "Fix a rare failure for imgdiff when random data equals gzip header" am: b87a166a16 am: 8542502f1f am: 233f4b0b4bTianjie Xu2017-07-072-11/+47
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 79c1562dc9 Change-Id: Ice4f792e23043b595e20110d72cab292edc16041
| * | | | | | | Merge "Fix a rare failure for imgdiff when random data equals gzip header" am: b87a166a16 am: 8542502f1fTianjie Xu2017-07-072-11/+47
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 233f4b0b4b Change-Id: If7e81b8e794f34d374d385eb5603353cdfec524f
| | * | | | | | Merge "Fix a rare failure for imgdiff when random data equals gzip header" am: b87a166a16Tianjie Xu2017-07-072-11/+47
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8542502f1f Change-Id: Iaf46b8d2abad2357975ba6ecedaeed522c20b51e
| | | * | | | | Merge "Fix a rare failure for imgdiff when random data equals gzip header"Tianjie Xu2017-07-072-11/+47
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b87a166a16 Change-Id: Ic3c7d102cc7a2b992c699add012076a4bda549c6
| | | | * | | | Merge "Fix a rare failure for imgdiff when random data equals gzip header"Tianjie Xu2017-07-072-11/+47
| | | | |\ \ \ \
| | | | | * | | | Fix a rare failure for imgdiff when random data equals gzip headerTianjie Xu2017-07-072-11/+47
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a rare case, a random chunk will pass both the gzip header check and the inflation process; but fail the uncompressed length check in the footer. This leads to a imgdiff failure. So, we should treat this chunk as 'normal' instead of 'inflated' while generating the patch. Bug: 63334984 Test: imgdiff generates patch successfully on previous failing images. Change-Id: Ice84f22d3653bce9756bda91e70528c0d2f264a0
* | | | | | | | Restructure vr_ui am: c392888df7 -s oursLuke Song2017-07-070-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1c8189c851 Change-Id: I40c240c5887fce0b766289c2629258fe40e054ba
| * | | | | | | Restructure vr_uiLuke Song2017-07-070-0/+0
| |\ \ \ \ \ \ \ | | | |_|_|_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c392888df7 -s ours Change-Id: I898ecb8a10383d0aaba9cbaf3f47911b5e895576
| | * | | | | | Restructure vr_uiLuke Song2017-07-075-32/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Get rid of pixel offset variables, and use makefile variables in BoardConfigs. Cherry picked from commit 81a8e4cab2a20fd1b1a4716563d4d2586bd1e1de Bug: 37779982 Test: Verified vr ui has same behavior. Change-Id: Ifbf44e27d7101aedbe3c0e6db4b8181d56efadfd
* | | | | | | | Merge "Introduce VR recovery ui am: edc6b52f00 -s ours am: 6660c97f07"Android Build Merger (Role)2017-07-070-0/+0
|\ \ \ \ \ \ \ \
| * | | | | | | | Introduce VR recovery ui am: edc6b52f00 -s oursLuke Song2017-07-070-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6660c97f07 Change-Id: I95633e944dd3ea8706b794ef07663ee7309e822d
* | | | | | | | | Introduce VR recovery ui am: edc6b52f00 -s oursLuke Song2017-07-070-0/+0
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| / / / / / / / | |/ / / / / / / | | | | | | | | | | | | | | | | am: 6660c97f07 Change-Id: I115b8a1a0c218457a33b1f1031d91eeba39efad1
| * | | | | | | Introduce VR recovery uiLuke Song2017-07-070-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: edc6b52f00 -s ours Change-Id: I4b6b4a5c7ffc3ae29c0b35d91f19ed56048ab049
| | * | | | | | Introduce VR recovery uiLuke Song2017-07-066-9/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A version of screen ui with specific adjustments for vr device compatibility. Cherry picked from commit a44dba7f4e7296077f65fd571232e8a61aed9418 Bug: 37779982 Test: "adb reboot recovery" to view Change-Id: If6b0f26c1b587f8d0176060685b5efb6c67593b1
* | | | | | | | Merge "Merge "Merge "recovery: replace make_ext4 with e2fsprogs" into oc-dr1-dev am: bee95d6866" into oc-dr1-dev-plus-aosp am: 114b555807 -s ours"Android Build Merger (Role)2017-07-060-0/+0
|\ \ \ \ \ \ \ \
| * | | | | | | | Merge "Merge "recovery: replace make_ext4 with e2fsprogs" into oc-dr1-dev am: bee95d6866" into oc-dr1-dev-plus-aospJin Qian2017-07-060-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 114b555807 -s ours Change-Id: I013b898521c2563d2cf9ed85ce51324c25c0004b
| | * | | | | | | Merge "Merge "recovery: replace make_ext4 with e2fsprogs" into oc-dr1-dev am: bee95d6866" into oc-dr1-dev-plus-aospAndroid Build Merger (Role)2017-07-060-0/+0
| | |\ \ \ \ \ \ \
* | | \ \ \ \ \ \ \ Merge "Merge "recovery: replace make_ext4 with e2fsprogs" into oc-dr1-dev am: bee95d6866 am: 6895d5c44d -s ours"Android Build Merger (Role)2017-07-060-0/+0
|\ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ Merge "recovery: replace make_ext4 with e2fsprogs" into oc-dr1-dev am: bee95d6866Jin Qian2017-07-060-0/+0
| |\ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6895d5c44d -s ours Change-Id: I4e242646ec15b2b54c44186770a32cf7b27b356c
| | * | | | | | | | | Merge "recovery: replace make_ext4 with e2fsprogs" into oc-dr1-devJin Qian2017-07-063-11/+86
| | |\ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bee95d6866 Change-Id: Iafcdb0e0b27090349d17f130bc0bcdb45ff1b8d4
* | | | | | | | | | | Merge "Merge "recovery: replace make_ext4 with e2fsprogs" into oc-dr1-dev am: bee95d6866 am: 987c5a98a8 -s ours"Android Build Merger (Role)2017-07-060-0/+0
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / |/| | | / / / / / / / | | |_|/ / / / / / / | |/| | | | | | | |
| * | | | | | | | | Merge "recovery: replace make_ext4 with e2fsprogs" into oc-dr1-dev am: bee95d6866Jin Qian2017-07-060-0/+0
| |\ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 987c5a98a8 -s ours Change-Id: Ia186c727dd25fb7b5aa13914bd1ad72392870e21
* | | | | | | | | | Merge "recovery: replace make_ext4 with e2fsprogs" into oc-dr1-dev am: bee95d6866Jin Qian2017-07-060-0/+0
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| / / / / / / / / | |/ / / / / / / / | | | | | | | | | | | | | | | | | | am: 987c5a98a8 -s ours Change-Id: I67a9066b3e91c260c8140af729ea935c7537cd21
| * | | | | | | | Merge "recovery: replace make_ext4 with e2fsprogs" into oc-dr1-devJin Qian2017-07-063-11/+86
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| / / / / / / | | |/ / / / / / | | | | | | | | | | | | | | | | am: bee95d6866 Change-Id: I2428f35c9c8a67ba8f1de23602b4110641e63a3f
| | * | | | | | Merge "recovery: replace make_ext4 with e2fsprogs" into oc-dr1-devTreeHugger Robot2017-07-063-11/+86
| | |\ \ \ \ \ \
| | | * | | | | | recovery: replace make_ext4 with e2fsprogsJin Qian2017-06-273-11/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Execute mke2fs to create empty ext4 filesystem. Execute e2fsdroid to add files to filesystem. Test: enter recovery mode and wipe data Bug: 35219933 Change-Id: I10a9f4c1f4754ad864b2df45b1f879180ab33876 Merged-In: I10a9f4c1f4754ad864b2df45b1f879180ab33876
* | | | | | | | | Merge "Update ScreenRecoveryUI::Draw* function signatures." am: c8e338fa9c am: c24d97fafa am: 7e3b1c00c6Tao Bao2017-07-025-37/+38
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9e62767759 Change-Id: I65581d1580fbb6bc0ee85c980f6f79aedf33d8fe
| * | | | | | | | Merge "Update ScreenRecoveryUI::Draw* function signatures." am: c8e338fa9c am: c24d97fafaTao Bao2017-07-025-37/+38
| |\ \ \ \ \ \ \ \ | | | |_|/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7e3b1c00c6 Change-Id: I8892407f036aa2dd1a8e90068274362648cc6cc0
| | * | | | | | | Merge "Update ScreenRecoveryUI::Draw* function signatures." am: c8e338fa9cTao Bao2017-07-025-37/+38
| | |\ \ \ \ \ \ \ | | | | |_|/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c24d97fafa Change-Id: I6ab605dc914bed4f5104b6fd405d7f5f19a5d863
| | | * | | | | | Merge "Update ScreenRecoveryUI::Draw* function signatures."Tao Bao2017-07-025-37/+38
| | | |\ \ \ \ \ \ | | | | | |_|/ / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c8e338fa9c Change-Id: I8754a10003053459407cbc633a527943a622385a
| | | | * | | | | Merge "Update ScreenRecoveryUI::Draw* function signatures."Treehugger Robot2017-07-025-37/+38
| | | | |\ \ \ \ \
| | | | | * | | | | Update ScreenRecoveryUI::Draw* function signatures.Tao Bao2017-07-025-37/+38
| | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move away from taking int* for the Y-offset. Change it to int and return the offset instead. Test: Check the recovery menu and 'Wipe data' menu. Change-Id: Ib15e070a0d576a0f8f66f35605cb8479e7071f26
* | | | | | | | | screen_ui: Compute the top and bottom gaps. am: f95e686dd0 -s oursTao Bao2017-06-300-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b649cad15f Change-Id: I28c43e6f673457b8765afd965762c09cd662e5b2
| * | | | | | | | screen_ui: Compute the top and bottom gaps.Tao Bao2017-06-300-0/+0
| |\ \ \ \ \ \ \ \ | | | |_|_|/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f95e686dd0 -s ours Change-Id: Iaa00625c3820ca4a88e1fe3dd0ef38dc03561a66
| | * | | | | | | screen_ui: Compute the top and bottom gaps.Tao Bao2017-06-301-11/+14
| | | |_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're not actually following the gaps as in the comments. For example, Nexus 6P is supposed to use 220dp and 194dp gaps (top and bottom respectively), but the actual numbers are 185dp and 194dp. Because the animation icon and text sizes don't match the ones claimed (animation: expected 200dp or 700px, actual 800px; text: claimed 14sp, actual 76px). The top gap changes (shrinks) as we compute the baselines bottom-up. This CL switches to using computed gaps: the major UI elements always stay vertically centered, with identical top and bottom gaps. Bug: 63093285 Test: 'Run graphics test' on angler/volantis/fugu/ryu. Change-Id: I3cadbb34f728cf034afa47ac02a6deba8cb6b4e7 (cherry picked from commit 3250f723602244cd3a87327a14755dcde2f4e5dc)
* | | | | | | | Merge "screen_ui: Compute the top and bottom gaps." am: 344778c4ef am: 1783254c3f am: 2fbbd488d6Tao Bao2017-06-301-11/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3a0fbd46ab Change-Id: I44e6fe34e97cffc6de29eb27927fb9752cc4ade8
| * | | | | | | Merge "screen_ui: Compute the top and bottom gaps." am: 344778c4ef am: 1783254c3fTao Bao2017-06-301-11/+14
| |\ \ \ \ \ \ \ | | | |/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2fbbd488d6 Change-Id: Ide3de0d21546c39508bc35806d544a7c4831c7c7
| | * | | | | | Merge "screen_ui: Compute the top and bottom gaps." am: 344778c4efTao Bao2017-06-301-11/+14
| | |\ \ \ \ \ \ | | | | |/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1783254c3f Change-Id: I022f5b36f750a6ee2640974ec8b2eb9bd1d504b9
| | | * | | | | Merge "screen_ui: Compute the top and bottom gaps."Tao Bao2017-06-301-11/+14
| | | |\ \ \ \ \ | | | | | |/ / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 344778c4ef Change-Id: If58672e390c4794bc93946e6a090da88a7acc90a
| | | | * | | | Merge "screen_ui: Compute the top and bottom gaps."Tao Bao2017-06-301-11/+14
| | | | |\ \ \ \
| | | | | * | | | screen_ui: Compute the top and bottom gaps.Tao Bao2017-06-291-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're not actually following the gaps as in the comments. For example, Nexus 6P is supposed to use 220dp and 194dp gaps (top and bottom respectively), but the actual numbers are 185dp and 194dp. Because the animation icon and text sizes don't match the ones claimed (animation: expected 200dp or 700px, actual 800px; text: claimed 14sp, actual 76px). The top gap changes (shrinks) as we compute the baselines bottom-up. This CL switches to using computed gaps: the major UI elements always stay vertically centered, with identical top and bottom gaps. Bug: 63093285 Test: 'Run graphics test' on angler/volantis/fugu/ryu. Change-Id: I3cadbb34f728cf034afa47ac02a6deba8cb6b4e7
* | | | | | | | | Merge "wear_ui: Remove dead/duplicate codes." am: f722fcf0d4 am: c9e411858f am: c3437622ccTao Bao2017-06-292-13/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fa9509d016 Change-Id: Id8be2884158aca182202451eea7038fa5328151a
| * | | | | | | | Merge "wear_ui: Remove dead/duplicate codes." am: f722fcf0d4 am: c9e411858fTao Bao2017-06-292-13/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c3437622cc Change-Id: I97062d996f0b707a88a4c3e3f88392e3f3ee69ad
| | * | | | | | | Merge "wear_ui: Remove dead/duplicate codes." am: f722fcf0d4Tao Bao2017-06-292-13/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c9e411858f Change-Id: Ib7ed03df1c1f23d4419cb932495f26f15006e3be
| | | * | | | | | Merge "wear_ui: Remove dead/duplicate codes."Tao Bao2017-06-292-13/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f722fcf0d4 Change-Id: I621c528b73da0fade1473235ce2710cbd8d9bc95
| | | | * | | | | Merge "wear_ui: Remove dead/duplicate codes."Tao Bao2017-06-292-13/+0
| | | | |\ \ \ \ \ | | | | | |/ / / / | | | | |/| | | |
| | | | | * | | | wear_ui: Remove dead/duplicate codes.Tao Bao2017-06-292-13/+0
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WearRecoveryUI::draw_progress_locked() has declaration only, where the definition was deleted in commit 5e7cfb9af64d5f6bf616d9b6fa40bd0ae82e781a. WearRecoveryUI::ClearText() is a duplicates of ScreenRecoveryUI::ClearText(). Test: Build swordfish recovery image. 'Run graphics test' and 'View recovery logs'. Change-Id: Ib66955d1d496f04359b4d6487160218e8f954478
* | | | | | | | Merge "Add missing libziparchive dependency." am: f9fe6a705d am: 78ff0832cb am: 8b4c7e7567Elliott Hughes2017-06-281-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 171642fac5 Change-Id: I63a77f7ba32a624f73d0324483f4c747407b9266
| * | | | | | | Merge "Add missing libziparchive dependency." am: f9fe6a705d am: 78ff0832cbElliott Hughes2017-06-281-1/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8b4c7e7567 Change-Id: Id1a0722d51b5f8142b87112f0b32e6162892c199
| | * | | | | | Merge "Add missing libziparchive dependency." am: f9fe6a705dElliott Hughes2017-06-281-1/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 78ff0832cb Change-Id: I57e2b9a4e42e3e32e5f3d4ca550ea59898abbff1
| | | * | | | | Merge "Add missing libziparchive dependency."Elliott Hughes2017-06-281-1/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f9fe6a705d Change-Id: Iface325955657b6c8f72d19fbbe7b8e475a15fbb
| | | | * | | | Merge "Add missing libziparchive dependency."Treehugger Robot2017-06-281-1/+2
| | | | |\ \ \ \
| | | | | * | | | Add missing libziparchive dependency.Elliott Hughes2017-06-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/37560614 Test: builds even after removing system/core/include/ziparchive Change-Id: Ib7ed45cafe83d24ed55aac28b4f41a073c371bc2
* | | | | | | | | Merge "Add override specifier and member constness to RecoveryUI classes." am: d6fb1c6367 am: 2e20c11828 am: 57191920e8Tao Bao2017-06-285-66/+58
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8e4ddcce97 Change-Id: I46ee95ae8d3a1ef7ae6ba76b8125ed2774b1d510
| * | | | | | | | Merge "Add override specifier and member constness to RecoveryUI classes." am: d6fb1c6367 am: 2e20c11828Tao Bao2017-06-285-66/+58
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 57191920e8 Change-Id: I8320f696ca21b14564a3fa38937fdf090eeff4f7
| | * | | | | | | Merge "Add override specifier and member constness to RecoveryUI classes." am: d6fb1c6367Tao Bao2017-06-285-66/+58
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2e20c11828 Change-Id: Ib467bf7ae8a7a581617cdd124c3803a5aa631031
| | | * | | | | | Merge "Add override specifier and member constness to RecoveryUI classes."Tao Bao2017-06-285-66/+58
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d6fb1c6367 Change-Id: I9b012c3096563e3c0187f644ed4fa930e785c502
| | | | * | | | | Merge "Add override specifier and member constness to RecoveryUI classes."Tao Bao2017-06-285-66/+58
| | | | |\ \ \ \ \
| | | | | * | | | | Add override specifier and member constness to RecoveryUI classes.Tao Bao2017-06-245-66/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma bootable/recovery Change-Id: I66e328614423488a4027d7878f4569fbf3a3721e
* | | | | | | | | | Merge "Formatting RecoveryUI related files." am: 8e7db8f4a6 am: 076aba3d8a am: a6aa96f3fdTao Bao2017-06-277-1099/+1100
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 43a866cbe6 Change-Id: I430963a4ad3c9aea4cd3a1530c419a009dd09dcc
| * | | | | | | | | Merge "Formatting RecoveryUI related files." am: 8e7db8f4a6 am: 076aba3d8aTao Bao2017-06-277-1099/+1100
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a6aa96f3fd Change-Id: I08d87ae7eed266f1b755b6bfe94699e64d474ab2
| | * | | | | | | | Merge "Formatting RecoveryUI related files." am: 8e7db8f4a6Tao Bao2017-06-277-1099/+1100
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 076aba3d8a Change-Id: I6a16dab86d41026f7a2501a3ee7601ae97c5dd72
| | | * | | | | | | Merge "Formatting RecoveryUI related files."Tao Bao2017-06-277-1099/+1100
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8e7db8f4a6 Change-Id: I81e0e1e088da045f217aff957c7c5730d09cabbe
| | | | * | | | | | Merge "Formatting RecoveryUI related files."Treehugger Robot2017-06-277-1099/+1100
| | | | |\| | | | |
| | | | | * | | | | Formatting RecoveryUI related files.Tao Bao2017-06-247-1099/+1100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All cosmetic changes about indentation reformatting in this CL. Test: mmma bootable/recovery Change-Id: I4539e6244697d1f356b7eb10b961b52d7db561f7
* | | | | | | | | | Merge "avoid assuming build number is a 32-bit integer" am: 30afdee987 am: 170aa1c923 am: 09b438052eTianjie Xu2017-06-271-13/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 312c30c4f7 Change-Id: I683bfd5fd505435b096ccfe871388d628264593f
| * | | | | | | | | Merge "avoid assuming build number is a 32-bit integer" am: 30afdee987 am: 170aa1c923Tianjie Xu2017-06-271-13/+9
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 09b438052e Change-Id: I56e26389c5959eaa0b8d734515fbbe5dc4b414c0
| | * | | | | | | | Merge "avoid assuming build number is a 32-bit integer" am: 30afdee987Tianjie Xu2017-06-271-13/+9
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 170aa1c923 Change-Id: Ia11eec1dc9c1b484f7f5cd67ff1792b5c3423a26
| | | * | | | | | | Merge "avoid assuming build number is a 32-bit integer"Tianjie Xu2017-06-261-13/+9
| | |/| | | | | | | | | | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 30afdee987 Change-Id: Ibe47feaf6d00838db24b76a51e2418772f329e0d
| | | * | | | | | Merge "avoid assuming build number is a 32-bit integer"Tianjie Xu2017-06-261-13/+9
| | | |\ \ \ \ \ \ | | | | |/ / / / / | | | |/| | | | |
| | | | * | | | | avoid assuming build number is a 32-bit integerDaniel Micay2017-06-261-13/+9
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The install logging currently assumes that the build number is a 32-bit integer and prints an error when that doesn't hold true. However, that's only a convention used by Google builds. From build/core/version_defaults.mk: ifeq "" "$(BUILD_NUMBER)" # BUILD_NUMBER should be set to the source control value that # represents the current state of the source code. E.g., a # perforce changelist number or a git hash. Can be an arbitrary string # (to allow for source control that uses something other than numbers), # but must be a single word and a valid file name. # # If no BUILD_NUMBER is set, create a useful "I am an engineering build # from this date/time" value. Make it start with a non-digit so that # anyone trying to parse it as an integer will probably get "0". BUILD_NUMBER := eng.$(shell echo $${USER:0:6}).$(shell $(DATE) +%Y%m%d.%H%M%S) endif Change-Id: I8e7cec0618783f69545ba76d0dce2bbc1681784c
* | | | | | | | Merge "Restructure vr_ui" am: 20d40ce53a am: 674851dc86 am: 799cd0bb5dLuke Song2017-06-240-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cb12f9040f Change-Id: I75d2427b51373c7775b77bc29a4ebf88498d9247
| * | | | | | | Merge "Restructure vr_ui" am: 20d40ce53a am: 674851dc86Luke Song2017-06-245-32/+13
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 799cd0bb5d Change-Id: I388afaf0bd66c0ad9344b10bfc61e918838a9d5a
| | * | | | | | Merge "Restructure vr_ui" am: 20d40ce53aLuke Song2017-06-245-32/+13
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 674851dc86 Change-Id: Ie94f4e605713dc9bb4a4e312edadc1e8120d860d
| | | * | | | | | Merge "Restructure vr_ui"Luke Song2017-06-245-32/+13
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 20d40ce53a Change-Id: I83efb71cf8d36be932660645a36191be0f12ddc7
| | | | * | | | | Merge "Restructure vr_ui"Treehugger Robot2017-06-245-32/+13
| | | | |\ \ \ \ \
| | | | | * | | | | Restructure vr_uiLuke Song2017-06-245-32/+13
| | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Get rid of pixel offset variables, and use makefile variables in BoardConfigs. Bug: 37779982 Test: Verified vr ui has same behavior. Change-Id: Ifbf44e27d7101aedbe3c0e6db4b8181d56efadfd (cherry picked from commit 81a8e4cab2a20fd1b1a4716563d4d2586bd1e1de)
* | | | | | | | | Merge "Restructure vr_ui"Luke Song2017-06-245-32/+13
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Restructure vr_uiLuke Song2017-06-235-32/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Get rid of pixel offset variables, and use makefile variables in BoardConfigs. Bug: 37779982 Test: Verified vr ui has same behavior. Change-Id: Ifbf44e27d7101aedbe3c0e6db4b8181d56efadfd
* | | | | | | | | | Use Makefile variables to specify margin settings. am: 855eaffff6 -s oursTao Bao2017-06-240-0/+0
|\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 989385200f Change-Id: I0bec043db9e23cb7c47ed2929b906e42561eacef
| * | | | | | | | | Use Makefile variables to specify margin settings.Tao Bao2017-06-240-0/+0
| |\ \ \ \ \ \ \ \ \ | | | |_|_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 855eaffff6 -s ours Change-Id: I25a554cd60a9e08d954180792c2b3d0931fe2400
| | * | | | | | | | Use Makefile variables to specify margin settings.Tao Bao2017-06-233-13/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of defining device-specific UI class, this CL allows using Makefile variables to specify margin values directly. Values explicitly defined via TARGET_RECOVERY_UI_MARGIN_HEIGHT and TARGET_RECOVERY_UI_MARGIN_WIDTH will be used. Otherwise they will default to zero. Bug: 62732748 Test: Specify the height and width and check recovery texts. Change-Id: Icb6f7466c8d407f877b93da38aebfdf7e6b41be7 (cherry picked from commit a92d8fb45676566a56d7c27d2e8fb644523adc94)
* | | | | | | | | | screen_ui: Allow setting screen margin space. am: 8f7547edfa -s oursTao Bao2017-06-240-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2abdb8d6e7 Change-Id: I0b2f63adc3b06b4ee72093821f31d76e6ccc82ef
| * | | | | | | | | screen_ui: Allow setting screen margin space.Tao Bao2017-06-240-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8f7547edfa -s ours Change-Id: Ie480acb2efab18ec32c4964914457aac4f34e74e
| | * | | | | | | | screen_ui: Allow setting screen margin space.Tao Bao2017-06-232-70/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For round screen or screens with rounded corners, we don't want to show texts within the margin which could otherwise be invisible. Move the density computation to ScreenRecoveryUI ctor so that the value can be used earlier. Note that this is similar to the existing stuff in wear UI (outer_width, outer_height). This CL gets ScreenRecoveryUI and WearRecoveryUI one-step closer. Bug: 62732748 Test: Setting and not setting margin_{width,height}_ on angler. Check the recovery texts (recovery menu as well as 'View recovery logs'). Change-Id: Ibf6238c9cc8949a42ed8a410e1c09d55b0b5a151 (cherry picked from commit 87f4650874346f1d0238e70b148a31cea5e19a2e)
* | | | | | | | | | Merge changes Icb6f7466,Ibf6238c9 am: eef231567c am: d1fa3c2380 am: 2eb2c0b276Tao Bao2017-06-240-0/+0
|\| | | | | | | | | | |_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 10ffcd12e9 Change-Id: I5286296ee5f9ea19fe2b3184db21c3b734a8a565
| * | | | | | | | Merge changes Icb6f7466,Ibf6238c9 am: eef231567c am: d1fa3c2380Tao Bao2017-06-243-71/+90
| |\ \ \ \ \ \ \ \ | | | |/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2eb2c0b276 Change-Id: I228c3ccfa659b1d81e841eb66b9e446d665dd8ce
| | * | | | | | | Merge changes Icb6f7466,Ibf6238c9 am: eef231567cTao Bao2017-06-233-71/+90
| | |\ \ \ \ \ \ \ | | | | |/ / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d1fa3c2380 Change-Id: Ib7e71dd067f73367b3461de613e63e476ad8f1de
| | | * | | | | | Merge changes Icb6f7466,Ibf6238c9Tao Bao2017-06-233-71/+90
| | | |\ \ \ \ \ \ | | | | | |/ / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: eef231567c Change-Id: I02789095a2bfec89803f7484abc072d05d8b0148
| | | | * | | | | Merge changes Icb6f7466,Ibf6238c9Tao Bao2017-06-233-71/+90
| | | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Use Makefile variables to specify margin settings. screen_ui: Allow setting screen margin space.
| | | | | * | | | | Use Makefile variables to specify margin settings.Tao Bao2017-06-233-13/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of defining device-specific UI class, this CL allows using Makefile variables to specify margin values directly. Values explicitly defined via TARGET_RECOVERY_UI_MARGIN_HEIGHT and TARGET_RECOVERY_UI_MARGIN_WIDTH will be used. Otherwise they will default to zero. Bug: 62732748 Test: Specify the height and width and check recovery texts. Change-Id: Icb6f7466c8d407f877b93da38aebfdf7e6b41be7 (cherry picked from commit a92d8fb45676566a56d7c27d2e8fb644523adc94)
| | | | | * | | | | screen_ui: Allow setting screen margin space.Tao Bao2017-06-212-71/+78
| | | | | | |/ / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We already have outer_width and outer_height in wear UI, and x_offset and y_offset in VR UI. This CL adds margin_width_ and margin_height_ to their base class (ScreenRecoveryUI) to shorten the gap. This will be in general useful for round or round-cornered screens. Move the density computation to ScreenRecoveryUI ctor so that the value can be used earlier. Bug: 62732748 Test: Setting and not setting margin_{width,height}_ on angler. Check the recovery texts (recovery menu as well as 'View recovery logs'). Change-Id: Ibf6238c9cc8949a42ed8a410e1c09d55b0b5a151 (cherry picked from commit 87f4650874346f1d0238e70b148a31cea5e19a2e)
* | | | | | | | | Merge changes from topic 'recovery_ui_taimen'Tao Bao2017-06-233-71/+90
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Use Makefile variables to specify margin settings. screen_ui: Allow setting screen margin space.
| * | | | | | | | | Use Makefile variables to specify margin settings.Tao Bao2017-06-223-13/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of defining device-specific UI class, this CL allows using Makefile variables to specify margin values directly. Values explicitly defined via TARGET_RECOVERY_UI_MARGIN_HEIGHT and TARGET_RECOVERY_UI_MARGIN_WIDTH will be used. Otherwise they will default to zero. Bug: 62732748 Test: Specify the height and width and check recovery texts. Change-Id: Icb6f7466c8d407f877b93da38aebfdf7e6b41be7
| * | | | | | | | | screen_ui: Allow setting screen margin space.Tao Bao2017-06-202-71/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For round screen or screens with rounded corners, we don't want to show texts within the margin which could otherwise be invisible. Move the density computation to ScreenRecoveryUI ctor so that the value can be used earlier. Note that this is similar to the existing stuff in wear UI (outer_width, outer_height). This CL gets ScreenRecoveryUI and WearRecoveryUI one-step closer. Bug: 62732748 Test: Setting and not setting margin_{width,height}_ on angler. Check the recovery texts (recovery menu as well as 'View recovery logs'). Change-Id: Ibf6238c9cc8949a42ed8a410e1c09d55b0b5a151
* | | | | | | | | | Merge "Remove the obsolete package_extract_dir() test" am: e916cca8a9 am: af913974a5 am: e002d96194Tianjie Xu2017-06-231-96/+0
|\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 617b702104 Change-Id: If64f4217fbdbfc849c851a2b94d306cf1755e65d
| * | | | | | | | | Merge "Remove the obsolete package_extract_dir() test" am: e916cca8a9 am: af913974a5Tianjie Xu2017-06-231-96/+0
| |\ \ \ \ \ \ \ \ \ | | | |/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e002d96194 Change-Id: If4887683362c1a00ee20b0d6e447d70bff442c28
| | * | | | | | | | Merge "Remove the obsolete package_extract_dir() test" am: e916cca8a9Tianjie Xu2017-06-231-96/+0
| | |\ \ \ \ \ \ \ \ | | | | |/ / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: af913974a5 Change-Id: I6afcdb92726231325a7d2e8171e3e2b1b3b940e0
| | | * | | | | | | Merge "Remove the obsolete package_extract_dir() test"Tianjie Xu2017-06-231-96/+0
| | | |\ \ \ \ \ \ \ | | | | | |/ / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e916cca8a9 Change-Id: If43bfd9b134a1b2630e5ad906770c6f9516c494d
| | | | * | | | | | Merge "Remove the obsolete package_extract_dir() test"Tianjie Xu2017-06-231-96/+0
| | | | |\ \ \ \ \ \
| | | | | * | | | | | Remove the obsolete package_extract_dir() testTianjie Xu2017-06-231-96/+0
| | | | | | |/ / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | package_extract_dir() was removed in go/aog/402383, and the corresponding UpdaterTest should be removed as well. Bug: 62918308 Test: mma && code search Change-Id: Ibe9c473a5d41d2fa4d26abca5684e71b104891b0
* | | | | | | | | | update_verifier: Support AVB. am: 336cbce252 -s oursDavid Zeuthen2017-06-230-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: eb0dfc0dc6 -s ours Change-Id: I0e3bae1447fee7441daf6e5d3a2e3dcfa64f7775
| * | | | | | | | | update_verifier: Support AVB.David Zeuthen2017-06-230-0/+0
| |\ \ \ \ \ \ \ \ \ | | | |_|_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 336cbce252 -s ours Change-Id: I3907377b5896f9b859703a5acad47486bd17a52d
| | * | | | | | | | update_verifier: Support AVB.David Zeuthen2017-06-234-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using AVB, PRODUCT_SUPPORTS_VERITY is not set so check for BOARD_ENABLE_AVB as well. Also AVB sets up the root filesystem as 'vroot' so map that to 'system' since this is what is expected. Managed to test at least that the code is at least compiled in: $ fastboot --set-active=_a Setting current slot to 'a'... OKAY [ 0.023s] finished. total time: 0.023s $ fastboot reboot rebooting... finished. total time: 0.050s $ adb wait-for-device $ adb logcat |grep update_verifier 03-04 05:28:56.773 630 630 I /system/bin/update_verifier: Started with arg 1: nonencrypted 03-04 05:28:56.776 630 630 I /system/bin/update_verifier: Booting slot 0: isSlotMarkedSuccessful=0 03-04 05:28:56.776 630 630 W /system/bin/update_verifier: Failed to open /data/ota_package/care_map.txt: No such file or directory 03-04 05:28:56.788 630 630 I /system/bin/update_verifier: Marked slot 0 as booted successfully. 03-04 05:28:56.788 630 630 I /system/bin/update_verifier: Leaving update_verifier. Bug: 62464819 Test: Manually tested on device using AVB bootloader. Merged-In: I13c0fe1cc5d0f397e36f5e62fcc05c8dfee5fd85 Change-Id: I2834b17688053411e7b904e31df9c83bf904cd56
* | | | | | | | | | Merge "update_verifier: Support AVB." am: e248e434ea am: 1f108dae49 am: b0c38f1cceDavid Zeuthen2017-06-224-7/+24
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0f6a109f14 Change-Id: I8bcac1f9bbb2a84055708a74237ea6f3c60be21c
| * | | | | | | | | Merge "update_verifier: Support AVB." am: e248e434ea am: 1f108dae49David Zeuthen2017-06-224-7/+24
| |\ \ \ \ \ \ \ \ \ | | | |/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b0c38f1cce Change-Id: If4e8be8b8277143cad9447a487a674e39ba5a832
| | * | | | | | | | Merge "update_verifier: Support AVB." am: e248e434eaDavid Zeuthen2017-06-224-7/+24
| | |\ \ \ \ \ \ \ \ | | | | |/ / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1f108dae49 Change-Id: I85544f829783fade5e91cfa1d48013047056924d
| | | * | | | | | | Merge "update_verifier: Support AVB."David Zeuthen2017-06-224-7/+24
| | | |\ \ \ \ \ \ \ | | | | | |/ / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e248e434ea Change-Id: Ia17522bce3427eb29fc0e8860ea6e05749047d49
| | | | * | | | | | Merge "update_verifier: Support AVB."Treehugger Robot2017-06-224-7/+24
| | | | |\ \ \ \ \ \ | | | | | |_|/ / / / | | | | |/| | | | |
| | | | | * | | | | update_verifier: Support AVB.David Zeuthen2017-05-244-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using AVB, PRODUCT_SUPPORTS_VERITY is not set so check for BOARD_ENABLE_AVB as well. Also AVB sets up the root filesystem as 'vroot' so map that to 'system' since this is what is expected. Managed to test at least that the code is at least compiled in: $ fastboot --set-active=_a Setting current slot to 'a'... OKAY [ 0.023s] finished. total time: 0.023s $ fastboot reboot rebooting... finished. total time: 0.050s $ adb wait-for-device $ adb logcat |grep update_verifier 03-04 05:28:56.773 630 630 I /system/bin/update_verifier: Started with arg 1: nonencrypted 03-04 05:28:56.776 630 630 I /system/bin/update_verifier: Booting slot 0: isSlotMarkedSuccessful=0 03-04 05:28:56.776 630 630 W /system/bin/update_verifier: Failed to open /data/ota_package/care_map.txt: No such file or directory 03-04 05:28:56.788 630 630 I /system/bin/update_verifier: Marked slot 0 as booted successfully. 03-04 05:28:56.788 630 630 I /system/bin/update_verifier: Leaving update_verifier. Bug: None Test: Manually tested on device using AVB bootloader. Change-Id: I13c0fe1cc5d0f397e36f5e62fcc05c8dfee5fd85
* | | | | | | | | | recovery: replace make_ext4 with e2fsprogsJin Qian2017-06-193-11/+86
| |_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Execute mke2fs to create empty ext4 filesystem. Execute e2fsdroid to add files to filesystem. Test: enter recovery mode and wipe data Bug: 35219933 Change-Id: I10a9f4c1f4754ad864b2df45b1f879180ab33876
* | | | | | | | | Merge "Introduce VR recovery ui" am: 5efe2bca22 am: 850e00951a am: 8daabacce5Luke Song2017-06-170-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e003fbaa2e Change-Id: Id250042bae68eb4b2d93cfdeb1c7ec3a36d1e507
| * | | | | | | | Merge "Introduce VR recovery ui" am: 5efe2bca22 am: 850e00951aLuke Song2017-06-176-8/+144
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8daabacce5 Change-Id: I7aaad686f788672b9fd8be2173c7b9976c19e04f
| | * | | | | | | Merge "Introduce VR recovery ui" am: 5efe2bca22Luke Song2017-06-176-8/+144
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 850e00951a Change-Id: I498b7b568523631f41f92994a003e77492616916
| | | * | | | | | Merge "Introduce VR recovery ui"Luke Song2017-06-176-8/+144
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5efe2bca22 Change-Id: I5fb663d9922866aa57e0afcd6d86f3afdf0de8c9
| | | | * | | | | Merge "Introduce VR recovery ui"Treehugger Robot2017-06-176-8/+144
| | | | |\ \ \ \ \
| | | | | * | | | | Introduce VR recovery uiLuke Song2017-06-176-8/+144
| | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A version of screen ui with specific adjustments for vr device compatibility. (cherrypick of a44dba7f4e7296077f65fd571232e8a61aed9418 to AOSP) Bug: 37779982 Test: "adb reboot recovery" to view Change-Id: If6b0f26c1b587f8d0176060685b5efb6c67593b1
* | | | | | | | | Merge "Introduce VR recovery ui"Luke Song2017-06-166-8/+144
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Introduce VR recovery uiLuke Song2017-06-156-8/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A version of screen ui with specific adjustments for vr device compatibility. Bug: 37779982 Test: "adb reboot recovery" to view Change-Id: If6b0f26c1b587f8d0176060685b5efb6c67593b1
* | | | | | | | | | Merge "Add OWNERS in bootable/recovery" am: ffd8505f4d am: 9f20e861b6 am: 80eb02dcbfChih-hung Hsieh2017-06-161-0/+3
|\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 14307c0c5f Change-Id: I872e9aec11ebc60950edecf65c5e2f5ba894d5ff
| * | | | | | | | | Merge "Add OWNERS in bootable/recovery" am: ffd8505f4d am: 9f20e861b6Chih-hung Hsieh2017-06-161-0/+3
| |\ \ \ \ \ \ \ \ \ | | | |/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 80eb02dcbf Change-Id: Id5ee47cf4f4537b041ce9313dc45c9ad1f498d7f
| | * | | | | | | | Merge "Add OWNERS in bootable/recovery" am: ffd8505f4dChih-hung Hsieh2017-06-161-0/+3
| | |\ \ \ \ \ \ \ \ | | | | |/ / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9f20e861b6 Change-Id: If364b9bcb40126e8b892e2ac6ed1530f9959a1a6
| | | * | | | | | | Merge "Add OWNERS in bootable/recovery"Chih-hung Hsieh2017-06-161-0/+3
| | | |\ \ \ \ \ \ \ | | | | | |/ / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ffd8505f4d Change-Id: I2675a929464997b106818afd4cf8a28b3b65f69c
| | | | * | | | | | Merge "Add OWNERS in bootable/recovery"Chih-hung Hsieh2017-06-161-0/+3
| | | | |\ \ \ \ \ \
| | | | | * | | | | | Add OWNERS in bootable/recoveryChih-Hung Hsieh2017-06-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Owners are selected from top CL approvals or owners. They will be suggested to review/approve future CLs. * OWNERS files are recognized by the new find-owners plugin, see .md files in https://gerrit.googlesource.com/plugins/find-owners/+/master/src/main/resources/Documentation/ Test: build/make/tools/checkowners.py -c -v OWNERS Change-Id: Ifb3f0a31389b2d55357fb6b8ea60c42dd790169d
* | | | | | | | | | | Merge "Fix "No file_contexts" warning am: e35926e1af am: 3445b94c89" into oc-dr1-dev-plus-aospJeff Vander Stoep2017-06-160-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2ea95442ed Change-Id: I6ed6e51f75a28dc76977393b30c824a54b71553f
| * | | | | | | | | | Merge "Fix "No file_contexts" warning am: e35926e1af am: 3445b94c89" into oc-dr1-dev-plus-aospAndroid Build Merger (Role)2017-06-160-0/+0
| |\ \ \ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ \ \ Fix "No file_contexts" warning am: e35926e1afJeff Vander Stoep2017-06-162-9/+6
| | |\ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|_|_|/ / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3445b94c89 Change-Id: I43f6596b266caff05e27c12ad1517e03e584d491
| | | * | | | | | | | | Fix "No file_contexts" warningJeff Vander Stoep2017-06-162-9/+6
| | | |\ \ \ \ \ \ \ \ \ | | | | | |_|_|_|_|_|/ / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e35926e1af Change-Id: I32fdf32429d8574d901e94370bbc5a8db674542d
* | | | | | | | | | | | Fix "No file_contexts" warning am: e35926e1af am: eba11fa574Jeff Vander Stoep2017-06-160-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 29476681cb Change-Id: Ib8f7981adf3455af83ac28481bb109d9d924e900
| * | | | | | | | | | | Fix "No file_contexts" warning am: e35926e1afJeff Vander Stoep2017-06-162-9/+6
| |\ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / | |/| | | / / / / / / / | | | |_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | am: eba11fa574 Change-Id: I278bc4d7af6892ecf3c2d259f6d7fd32a34f19ec
| | * | | | | | | | | Fix "No file_contexts" warningJeff Vander Stoep2017-06-162-9/+6
| | |\ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e35926e1af Change-Id: Ia050561286c30d8198f3185da9e3cd31372b1d79
| | | * | | | | | | | Fix "No file_contexts" warningJeff Vander Stoep2017-06-152-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed by Loading the file_contexts specified in libselinux, whereas previously recovery loaded /file_contexts which no longer exists. Bug: 62587423 Test: build and flash recovery on Angler. Warning is gone. Test: Wipe data and cache. Test: sideload OTA Change-Id: I11581c878b860ac5f412e6e8e7acde811f37870f (cherry picked from commit 2330dd8733ce0b207058e3003a3b1efebc022394)
* | | | | | | | | | | Fix "No file_contexts" warningJeff Vander Stoep2017-06-152-9/+6
| |_|_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed by Loading the file_contexts specified in libselinux, whereas previously recovery loaded /file_contexts which no longer exists. Bug: 62587423 Test: build and flash recovery on Angler. Warning is gone. Test: Wipe data and cache. Test: sideload OTA Change-Id: I11581c878b860ac5f412e6e8e7acde811f37870f
* | | | | | | | | | Merge "Fix a race condition for temperature_logger" am: 8e5fb46e87 am: efa40b4827 am: 54138462b4Tianjie Xu2017-06-091-3/+7
|\| | | | | | | | | | |_|_|/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 327193d252 Change-Id: I20661bb18d6728abcaa9411805e81336c0832885
| * | | | | | | | Merge "Fix a race condition for temperature_logger" am: 8e5fb46e87 am: efa40b4827Tianjie Xu2017-06-091-3/+7
|/| | | | | | | | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 54138462b4 Change-Id: Id7c14730166326810d18283c3f1469446a4f71c6
| * | | | | | | Merge "Fix a race condition for temperature_logger" am: 8e5fb46e87Tianjie Xu2017-06-091-3/+7
| |\ \ \ \ \ \ \ | | | |/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: efa40b4827 Change-Id: Ie4c4bc3028fb41b49e5037ddca44680cf670c56a
| | * | | | | | Merge "Fix a race condition for temperature_logger"Tianjie Xu2017-06-091-3/+7
| | |\ \ \ \ \ \ | | | | |/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8e5fb46e87 Change-Id: If62d4548b541432963a4d3d41f299d19927c72d6
| | | * | | | | Merge "Fix a race condition for temperature_logger"Tianjie Xu2017-06-091-3/+7
| | | |\ \ \ \ \ | | | | |_|/ / / | | | |/| | | |
| | | | * | | | Fix a race condition for temperature_loggerTianjie Xu2017-06-081-3/+7
| | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's a rare deadlock that happens on fugu when the updater exits too fast due to a format error. Bug: 62379170 Test: fake-ota fails gracefully without hanging. Change-Id: Icbd6cff4f6b44ca20f4d75f8039332111f696cc5
* | | | | | | Merge "kill package_extract_dir" am: 99e7216907 am: 49f9c969eb am: 66e53f59b9Tianjie Xu2017-06-017-439/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d1b65aa645 Change-Id: Idb46742fd2b73e927a14e12dd1b7ae5854e35334
| * | | | | | Merge "kill package_extract_dir" am: 99e7216907 am: 49f9c969ebTianjie Xu2017-05-317-439/+0
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 66e53f59b9 Change-Id: Iec9ae5171aaa2d8a0eb92de12b78e65aeb0136a4
| | * | | | | | Merge "kill package_extract_dir" am: 99e7216907Tianjie Xu2017-05-317-439/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 49f9c969eb Change-Id: If8936fb2b090b83ad6fba39668d60e324662a42e
| | | * | | | | Merge "kill package_extract_dir"Tianjie Xu2017-05-317-439/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 99e7216907 Change-Id: Ibc08736b0108151a4a023d971bd608654138d45e
| | | | * | | | Merge "kill package_extract_dir"Tianjie Xu2017-05-317-439/+0
| | | | |\ \ \ \
| | | | | * | | | kill package_extract_dirTianjie Xu2017-05-247-439/+0
| | | | | | |/ / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's only used by file-based OTA which has been deprecated for O. Test: mma Change-Id: I439c93155ca94554d827142c99aa6c0845cc7561
* | | | | | | | Merge "Implement a custom deflate sink function for bspatch" am: 764eb215af am: 0f8e67088a am: 4a2cfffd33Tianjie Xu2017-05-271-58/+86
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d38aec8de6 Change-Id: Ibdb1b48633736802bff664973fcd4c08dc9ac93a
| * | | | | | | Merge "Implement a custom deflate sink function for bspatch" am: 764eb215af am: 0f8e67088aTianjie Xu2017-05-271-58/+86
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4a2cfffd33 Change-Id: Ifd32f346adefb90d043bccc3d6f20060ae3ca45d
| | * | | | | | Merge "Implement a custom deflate sink function for bspatch" am: 764eb215afTianjie Xu2017-05-271-58/+86
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0f8e67088a Change-Id: I8e7499d97f6acb505e42b9935d3b21a41695dba7
| | | * | | | | Merge "Implement a custom deflate sink function for bspatch"Tianjie Xu2017-05-271-58/+86
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 764eb215af Change-Id: Ifac391f38d692a5312b4b03ff5eaf701da6d7d41
| | | | * | | | Merge "Implement a custom deflate sink function for bspatch"Tianjie Xu2017-05-271-58/+86
| | | | |\ \ \ \
| | | | | * | | | Implement a custom deflate sink function for bspatchTianjie Xu2017-05-261-58/+86
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new sink function works as a wrapper of the old sink. It deflates the available patch data on the fly. Therefore, we don't need to store the full uncompressed patch data in memory. Test: recovery_component_test && apply an incremental update on angler Change-Id: I2274ec50a1607089abcc9d0954a2a748f28c3122
* | | | | | | | Merge "Retry the update if ApplyBSDiffPatch | ApplyImagePatch fails" am: 9c1a114789 am: 66f02b4e71 am: aef046255aTianjie Xu2017-05-244-4/+12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: da1fcf7ab2 Change-Id: Icad68a225061426e396541d0f67374a530f1dcb3
| * | | | | | | Merge "Retry the update if ApplyBSDiffPatch | ApplyImagePatch fails" am: 9c1a114789 am: 66f02b4e71Tianjie Xu2017-05-244-4/+12
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: aef046255a Change-Id: Ib9ce75418ca56c2bb9fa68719371628b1763aa03
| | * | | | | | Merge "Retry the update if ApplyBSDiffPatch | ApplyImagePatch fails" am: 9c1a114789Tianjie Xu2017-05-244-4/+12
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 66f02b4e71 Change-Id: I6e745992d384b6d870b2549d16dc40100175493e
| | | * | | | | Merge "Retry the update if ApplyBSDiffPatch | ApplyImagePatch fails"Tianjie Xu2017-05-244-4/+12
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9c1a114789 Change-Id: I45afda69f82147ba02b3e4666c3a296d84a2db47
| | | | * | | | Merge "Retry the update if ApplyBSDiffPatch | ApplyImagePatch fails"Tianjie Xu2017-05-244-4/+12
| | | | |\ \ \ \ | | | | | |/ / / | | | | |/| | |
| | | | | * | | Retry the update if ApplyBSDiffPatch | ApplyImagePatch failsTianjie Xu2017-05-244-4/+12
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have seen one case when bspatch failed likely due to patch corruption. Since the package has passed verification before, we want to reboot and retry the patch command again since there's no alternative for users. We won't delete the stash before reboot, and the src has passed SHA1 check. If there's an error on the patch, it will fail the package verification during retry. Bug: 37855643 Test: angler reboots and retries the update when bspatch fails. Change-Id: I2ebac9621bd1f0649bb301b9a28a0dd079ed4e1d
* | | | | | | Merge "Print SHA1 of the patch if bsdiff fails with data error" am: 1f9808bd48 am: 8f68accc9d am: 1562f41348Tianjie Xu2017-05-194-22/+71
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0abe9860d8 Change-Id: Id8d4e4b369f30a33a37ca1895d5dd36eb2bf8aff
| * | | | | | Merge "Print SHA1 of the patch if bsdiff fails with data error" am: 1f9808bd48 am: 8f68accc9dTianjie Xu2017-05-194-22/+71
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1562f41348 Change-Id: I7b605673eb3cee6a615459ca9fe2fc00c532ed9d
| | * | | | | Merge "Print SHA1 of the patch if bsdiff fails with data error" am: 1f9808bd48Tianjie Xu2017-05-194-22/+71
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8f68accc9d Change-Id: Ic81b2812030e8267a4d0d81d4909f84d284d1743
| | | * | | | Merge "Print SHA1 of the patch if bsdiff fails with data error"Tianjie Xu2017-05-194-22/+71
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1f9808bd48 Change-Id: I4900198d7c45c864e1a93bbd386b4ec36ed4cdec
| | | | * | | Merge "Print SHA1 of the patch if bsdiff fails with data error"Tianjie Xu2017-05-194-22/+71
| | | | |\ \ \
| | | | | * | | Print SHA1 of the patch if bsdiff fails with data errorTianjie Xu2017-05-164-22/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will help us to identify the patch corruption. Meanwhile fix a wrong size parameter passed to bspatch. (patch->data.size() into patch->data.size() - patch_offset). Also remove the only usage of "ApplyBSDiffPatchMem()" and inline its Sink function for simplicity. Bug: 37855643 Test: Prints SHA1 for corrupted patch in imgdiff_test. Change-Id: Ibf2db8c08b0ded1409bb7c91a3547a6bf99c601d
* | | | | | | | Merge "libbootloader_message: convert to Android.bp" am: bec0d4cb94 am: 8226fd8926 am: 01bcf118d5Tom Cherry2017-05-184-26/+27
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: eefefc6c13 Change-Id: I3bf255d47848e773b9d0e70224abb96ae15f6110
| * | | | | | | Merge "libbootloader_message: convert to Android.bp" am: bec0d4cb94 am: 8226fd8926Tom Cherry2017-05-184-26/+27
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 01bcf118d5 Change-Id: Ie9103aedc7c0b61d505023238e0cb0ab327f7e84
| | * | | | | | Merge "libbootloader_message: convert to Android.bp" am: bec0d4cb94Tom Cherry2017-05-184-26/+27
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8226fd8926 Change-Id: I6a2b8df36703936560b84ec84555c3b5bb95cb0f
| | | * | | | | Merge "libbootloader_message: convert to Android.bp"Tom Cherry2017-05-184-26/+27
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bec0d4cb94 Change-Id: I0da04f8103a48f746801fdf9381571e4a812e8c3
| | | | * | | | Merge "libbootloader_message: convert to Android.bp"Tom Cherry2017-05-184-26/+27
| | | | |\ \ \ \
| | | | | * | | | libbootloader_message: convert to Android.bpTom Cherry2017-05-174-26/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: build Change-Id: Ia0c2e141673e37eea29306817d2f4b2c944213b0
* | | | | | | | | Fix the input parameter for "set_retry_bootloader_message" am: 539b08cfcfTianjie Xu2017-05-180-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1c120067c2 Change-Id: I45e25f7309f90ca3317d94d3f66e055fc02543b3
| * | | | | | | | Fix the input parameter for "set_retry_bootloader_message"Tianjie Xu2017-05-180-0/+0
| |\ \ \ \ \ \ \ \ | | | |_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 539b08cfcf Change-Id: Idd730e8e9ae3dbf27bc20b4ff2c5a3e73e28ce5d
| | * | | | | | | Fix the input parameter for "set_retry_bootloader_message"Tianjie Xu2017-05-171-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're not updating argc & argv during get_args(), so some boot arguments missed when we set the boot message for retry. Bug: 38383406 Test: boot command sets correctly during retry attempt. Change-Id: Ie8583a22fad5e0084245e3431d4018518d508dfd (cherry picked from commit 72449c9f995649b1427b2116985ed9826a141d46)
* | | | | | | | | Merge "Fix the input parameter for "set_retry_bootloader_message"" am: 0e60ccdc76 am: 1d6f88675b am: f1546892e1Tianjie Xu2017-05-171-13/+13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1941f61fb6 Change-Id: I1148a20467db687dac5de9150936d0bb3516f8dc
| * | | | | | | | Merge "Fix the input parameter for "set_retry_bootloader_message"" am: 0e60ccdc76 am: 1d6f88675bTianjie Xu2017-05-171-13/+13
| |\ \ \ \ \ \ \ \ | | | |/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f1546892e1 Change-Id: If5d97891ffae307ada2948b771f113e82235fd73
| | * | | | | | | Merge "Fix the input parameter for "set_retry_bootloader_message"" am: 0e60ccdc76Tianjie Xu2017-05-171-13/+13
| | |\ \ \ \ \ \ \ | | | | |/ / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1d6f88675b Change-Id: I280282a1b2676e3030a0327239781f50fb7a64d8
| | | * | | | | | Merge "Fix the input parameter for "set_retry_bootloader_message""Tianjie Xu2017-05-171-13/+13
| | | |\ \ \ \ \ \ | | | | | |/ / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0e60ccdc76 Change-Id: I881182909805359cb1042a25bb7d942586fbbaab
| | | | * | | | | Merge "Fix the input parameter for "set_retry_bootloader_message""Tianjie Xu2017-05-171-13/+13
| | | | |\ \ \ \ \ | | | | | |_|/ / / | | | | |/| | | |
| | | | | * | | | Fix the input parameter for "set_retry_bootloader_message"Tianjie Xu2017-05-171-13/+13
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're not updating argc & argv during get_args(), so some boot arguments missed when we set the boot message for retry. Bug: 38383406 Test: boot command sets correctly during retry attempt. Change-Id: Ie8583a22fad5e0084245e3431d4018518d508dfd
* | | | | | | | Merge "updater: Update the mkfs.f2fs argument to match f2fs-tools 1.8.0." am: 494d97fe6b am: 843ca31c4c am: 9539cdb3c0Tao Bao2017-05-131-3/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 763b52dd45 Change-Id: I7dfc08a29beac241366533d9a1296ea10c25dd73
| * | | | | | | Merge "updater: Update the mkfs.f2fs argument to match f2fs-tools 1.8.0." am: 494d97fe6b am: 843ca31c4cTao Bao2017-05-121-3/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9539cdb3c0 Change-Id: Id6209c2f0e75a3b24bf50f64896cf8a5d1f080a5
| | * | | | | | Merge "updater: Update the mkfs.f2fs argument to match f2fs-tools 1.8.0." am: 494d97fe6bTao Bao2017-05-121-3/+5
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 843ca31c4c Change-Id: I3f7c6b2d4b4d7b56866f98e146cb3bf691a7a3f3
| | | * | | | | Merge "updater: Update the mkfs.f2fs argument to match f2fs-tools 1.8.0."Tao Bao2017-05-121-3/+5
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 494d97fe6b Change-Id: I48bf4260c586bdbcc12e615ff5b0ce6459f88c98
| | | | * | | | Merge "updater: Update the mkfs.f2fs argument to match f2fs-tools 1.8.0."Tao Bao2017-05-121-3/+5
| | | | |\ \ \ \ | | | | | |_|/ / | | | | |/| | |
| | | | | * | | updater: Update the mkfs.f2fs argument to match f2fs-tools 1.8.0.Tao Bao2017-05-121-3/+5
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit adeb41a8c0da3122a2907acb4aafd7ff9bce26af has switched the argument for recovery. This CL handles the case for updater. Note that there's a chance the updater may run against the old recovery (and f2fs 1.4.1 binary). Not sending a 0-sector argument to f2fs 1.4.1 also works. Bug: 37758867 Test: Make an OTA package that calls format f2fs, with mkfs.f2fs 1.8.0 and 1.4.1 binaries respectively. Change-Id: I4d4bbe8c57544d1c514b7aa37fbf22a0aab14e2c
* | | | | | | Merge "Don't write to /sys/class/android_usb/android0/enable with configfs." am: 7cb1b79673 am: 7ca2e734fc am: e89cbd675cTao Bao2017-05-121-7/+16
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7890e6e689 Change-Id: I5e5f62a2449f52f2ab506daf7d2e27b6ea0211d9
| * | | | | | Merge "Don't write to /sys/class/android_usb/android0/enable with configfs." am: 7cb1b79673 am: 7ca2e734fcTao Bao2017-05-121-7/+16
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e89cbd675c Change-Id: I569d0f186ab36176f8bd4edcfff14ec53af747bc
| | * | | | | Merge "Don't write to /sys/class/android_usb/android0/enable with configfs." am: 7cb1b79673Tao Bao2017-05-121-7/+16
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7ca2e734fc Change-Id: I983747440b9c7c7e0a58406ee13155f5f2c90525
| | | * | | | Merge "Don't write to /sys/class/android_usb/android0/enable with configfs."Tao Bao2017-05-121-7/+16
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7cb1b79673 Change-Id: Id8d5e0ce3c5c31df534dc82fc8a7b743cb8649fa
| | | | * | | Merge "Don't write to /sys/class/android_usb/android0/enable with configfs."Tao Bao2017-05-121-7/+16
| | | | |\ \ \
| | | | | * | | Don't write to /sys/class/android_usb/android0/enable with configfs.Tao Bao2017-05-111-7/+16
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | USB configfs doesn't use /s/c/a/a/enable. Trying to set that gives confusing message on screen when sideloading. Bug: 37713851 Test: adb sideload on device using with configfs. Test: adb sideload on marlin. Change-Id: Ifa55f90c2a5fe6bf9e7cee95882de9f6de686d73
* | | | | | | Merge "recovery: Skip "/" in setup_install_mounts()." am: d7446c8eed am: b0626221a1 am: 8c7c38ca7fTao Bao2017-05-111-19/+22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2d7c9797c6 Change-Id: I00148c23b353352f47bd6824022e0594122be025
| * | | | | | Merge "recovery: Skip "/" in setup_install_mounts()." am: d7446c8eed am: b0626221a1Tao Bao2017-05-111-19/+22
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8c7c38ca7f Change-Id: Ic7ee2fb3f542f9b1d9176c174c1ecb717be9390b
| | * | | | | Merge "recovery: Skip "/" in setup_install_mounts()." am: d7446c8eedTao Bao2017-05-111-19/+22
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b0626221a1 Change-Id: I45e1f564cbb36ea1f61351701bdc7a2ace7b8798
| | | * | | | Merge "recovery: Skip "/" in setup_install_mounts()."Tao Bao2017-05-111-19/+22
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d7446c8eed Change-Id: I93411025025393abe819ff109ce7e00565281d88
| | | | * | | Merge "recovery: Skip "/" in setup_install_mounts()."Tao Bao2017-05-111-19/+22
| | | | |\ \ \
| | | | | * | | recovery: Skip "/" in setup_install_mounts().Tao Bao2017-05-101-19/+22
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't want to do anything for "/" when preparing for an install. Bug: 36686818 Test: adb sideload on angler/marlin respectively. Change-Id: Id854dd0a743a0e163a8f13baf2514105091ddc67
* | | | | | | Merge "otautil: Android.mk -> Android.bp" am: 106ca8e93f am: 46938bcf0c am: 09690020fbSteven Moreland2017-05-104-34/+37
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: af47ef6529 Change-Id: Ie877a72a379d62ba9db89d4cf83bdde64fea5971
| * | | | | | Merge "otautil: Android.mk -> Android.bp" am: 106ca8e93f am: 46938bcf0cSteven Moreland2017-05-104-34/+37
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 09690020fb Change-Id: I675758b9ee62128346bb04c80433728c00ea2bf7
| | * | | | | Merge "otautil: Android.mk -> Android.bp" am: 106ca8e93fSteven Moreland2017-05-104-34/+37
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 46938bcf0c Change-Id: I14874081d5ecfde92523fdb2487bcee239f9c664
| | | * | | | Merge "otautil: Android.mk -> Android.bp"Steven Moreland2017-05-104-34/+37
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 106ca8e93f Change-Id: I59305515a5d9f9df949bf42135803311f5b355e6
| | | | * | | Merge "otautil: Android.mk -> Android.bp"Treehugger Robot2017-05-104-34/+37
| | | | |\ \ \
| | | | | * | | otautil: Android.mk -> Android.bpSteven Moreland2017-05-104-34/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: flash and boot recovery on internal angler Change-Id: Id8845b4b422d0078b251333eb6d30ce14771ef10
* | | | | | | | Merge "recovery: Use libverifier instead of rebuilding the sources." am: c008485643 am: 1dc25e3e0a am: 1f7e8f6ab6Tao Bao2017-05-091-3/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bf8e46b45a Change-Id: I31ae9610f713ab26dc5f648d8ff9ffbb406aad59
| * | | | | | | Merge "recovery: Use libverifier instead of rebuilding the sources." am: c008485643 am: 1dc25e3e0aTao Bao2017-05-091-3/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1f7e8f6ab6 Change-Id: Ifb27bb442d7bfe0cec59e7de8c66402a9e5fde93
| | * | | | | | Merge "recovery: Use libverifier instead of rebuilding the sources." am: c008485643Tao Bao2017-05-091-3/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1dc25e3e0a Change-Id: Ib8930473e5ad198915a0a6cb6b2b2119ec4b54ac
| | | * | | | | Merge "recovery: Use libverifier instead of rebuilding the sources."Tao Bao2017-05-091-3/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c008485643 Change-Id: Ie75f03351f2106fc816a133c52365444064ce608
| | | | * | | | Merge "recovery: Use libverifier instead of rebuilding the sources."Tao Bao2017-05-091-3/+1
| | | | |\ \ \ \
| | | | | * | | | recovery: Use libverifier instead of rebuilding the sources.Tao Bao2017-05-081-3/+1
| | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma bootable/recovery Change-Id: Ie8cec009b00c121948179518ba9cbc26a82352bf
* | | | | | | | Merge "Add a binary path param to update_binary_command()." am: 197304aada am: f648b5c9fc am: f49c57643dTao Bao2017-05-093-33/+103
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 460e47adfc Change-Id: I34b789b29f019f730d6c8a7e3a96384a056c1d4a
| * | | | | | | Merge "Add a binary path param to update_binary_command()." am: 197304aada am: f648b5c9fcTao Bao2017-05-093-33/+103
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f49c57643d Change-Id: Iea3496ad9cbcd8389ade9effa7072198cf33a5c3
| | * | | | | | Merge "Add a binary path param to update_binary_command()." am: 197304aadaTao Bao2017-05-093-33/+103
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f648b5c9fc Change-Id: I5210a1f710ea95e36484e6f2ea85354baa95c416
| | | * | | | | Merge "Add a binary path param to update_binary_command()."Tao Bao2017-05-093-33/+103
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 197304aada Change-Id: I7035cbc02b8f7dcd9a7b41602105e9397ab35572
| | | | * | | | Merge "Add a binary path param to update_binary_command()."Tao Bao2017-05-093-33/+103
| | | | |\ \ \ \ | | | | | |/ / / | | | | |/| | |
| | | | | * | | Add a binary path param to update_binary_command().Tao Bao2017-05-083-33/+103
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows writing native tests for non-A/B update_binary_command(). Prior to this CL, it was extracting the updater to a hard-coded location (/tmp/update_binary) that's not available under the test environment. Test: recovery_component_test on angler and marlin respectively. Test: Sideload OTA packages on angler and marlin respectively. Change-Id: I78b9cc211d90c0a16a84e94e339b65759300e2a8
* | | | | | | Merge "recovery: update mkfs.f2fs args to match f2fs-tools 1.8.0" am: f347c1abca am: d6f506e783 am: 5975ee6a46Jin Qian2017-05-051-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fce0589895 Change-Id: I15fc61221441c2c8e3d440ae2cc8e423f027c802
| * | | | | | Merge "recovery: update mkfs.f2fs args to match f2fs-tools 1.8.0" am: f347c1abca am: d6f506e783Jin Qian2017-05-051-3/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5975ee6a46 Change-Id: I607d33c4309613d91a2088ddc4fc2950df7827c9
| | * | | | | Merge "recovery: update mkfs.f2fs args to match f2fs-tools 1.8.0" am: f347c1abcaJin Qian2017-05-051-3/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d6f506e783 Change-Id: I3f07419c0ccb380770220b201981b0fc7c88cc8f
| | | * | | | Merge "recovery: update mkfs.f2fs args to match f2fs-tools 1.8.0"Jin Qian2017-05-051-3/+3
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f347c1abca Change-Id: I0308f26d79af2f34a28a0c67142b8e205bf07062
| | | | * | | Merge "recovery: update mkfs.f2fs args to match f2fs-tools 1.8.0"Treehugger Robot2017-05-051-3/+3
| | | | |\ \ \
| | | | | * | | recovery: update mkfs.f2fs args to match f2fs-tools 1.8.0Jin Qian2017-05-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mkfs.f2fs in 1.8.0 returns error if number of sectors is 0. Skip this argument to let mkfs detect device size. 0 sector is also not necessary for 1.4.1. Test: format userdata to f2fs and boot Bug: 37758867 Change-Id: If120988dfb678596c973d183572f870eb0b72a27
* | | | | | | | Merge "Update the comment for obsolete symlink handling ." am: a24f9d7cc7 am: e452c25620 am: 4ab07dfcd3Tianjie Xu2017-05-041-1/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f7f1188ab6 Change-Id: If15421c189a59794fd3b78fac8a2dca012fceb0f
| * | | | | | | Merge "Update the comment for obsolete symlink handling ." am: a24f9d7cc7 am: e452c25620Tianjie Xu2017-05-041-1/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4ab07dfcd3 Change-Id: I0431bb7c57bcb11a7618ccde40a7f71e2eba7baa
| | * | | | | | Merge "Update the comment for obsolete symlink handling ." am: a24f9d7cc7Tianjie Xu2017-05-041-1/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e452c25620 Change-Id: Ifc3a1b4921c1bea13a232a03514ab715a19f300a
| | | * | | | | Merge "Update the comment for obsolete symlink handling ."Tianjie Xu2017-05-041-1/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a24f9d7cc7 Change-Id: Ieb37d12ed5e0b164d067fd62e8daf7d8776fa31f
| | | | * | | | Merge "Update the comment for obsolete symlink handling ."Treehugger Robot2017-05-041-1/+0
| | | | |\ \ \ \
| | | | | * | | | Update the comment for obsolete symlink handling .Tianjie Xu2017-05-041-1/+0
| | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Symlink is a filebased OTA feature, and the corresponding updater function has been removed in https://android-review.googlesource.com/#/c/350357/. Also the only place where we call "package_extract_dir()" is to unpack some bootloader dir in vendor's code. We plan to remove it also in a separate bug. Bug: 31917448 Test: mma Change-Id: I3986d60958e64e0d5d8fa5f5bd508c579fb7fa2c
* | | | | | | | Merge "Revert "Remove EXPAND/STRINGIFY macros."" am: 7c42198581 am: 1d33e0815d am: a51e44cef7Tao Bao2017-05-043-4/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 38577ef1e1 Change-Id: I55260d77ab0dd2b5eff5010d65305b14111439b0
| * | | | | | | Merge "Revert "Remove EXPAND/STRINGIFY macros."" am: 7c42198581 am: 1d33e0815dTao Bao2017-05-043-4/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a51e44cef7 Change-Id: I38990e888541ba2f6428277eae65c3d840364b60
| | * | | | | | Merge "Revert "Remove EXPAND/STRINGIFY macros."" am: 7c42198581Tao Bao2017-05-043-4/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1d33e0815d Change-Id: I93c7c3e0d66c4e7d59b1d97552036026cb15f96a
| | | * | | | | Merge "Revert "Remove EXPAND/STRINGIFY macros.""Tao Bao2017-05-043-4/+4
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7c42198581 Change-Id: I89eb2acace8e53a2af00fd681e6298edc157f8ac
| | | | * | | | Merge "Revert "Remove EXPAND/STRINGIFY macros.""Tao Bao2017-05-043-4/+4
| | | | |\ \ \ \
| | | | | * | | | Revert "Remove EXPAND/STRINGIFY macros."Tao Bao2017-05-043-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit ec9706738f35a859f66fd0758b73381055804f63. Reason for revert: It's not a good idea to put RECOVERY_API_VERSION in common.h, which might be included by device-specific codes (but with RECOVERY_API_VERSION undefined). Change-Id: I9feb9c64a5af3e9165164622a59b043aa28a8b8c
* | | | | | | | | Merge "fuse_sideload: Change the minimal block size to 4096." am: 4e8e56eaea am: 53b98de866 am: 6bea344d7eTao Bao2017-05-044-141/+161
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bfca876038 Change-Id: I5d1fa644a867b523553127c8bde92000f4cb539a
| * | | | | | | | Merge "fuse_sideload: Change the minimal block size to 4096." am: 4e8e56eaea am: 53b98de866Tao Bao2017-05-044-141/+161
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6bea344d7e Change-Id: If7e905a7630ee8cf142752695272afb8e76c28cb
| | * | | | | | | Merge "fuse_sideload: Change the minimal block size to 4096." am: 4e8e56eaeaTao Bao2017-05-044-141/+161
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 53b98de866 Change-Id: Id70ff412dcc22ef36fd9cdd0540211ce49cb2437
| | | * | | | | | Merge "fuse_sideload: Change the minimal block size to 4096."Tao Bao2017-05-044-141/+161
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4e8e56eaea Change-Id: Ica6e3890e6f13ef57d7da340bfa0314b3f121b49
| | | | * | | | | Merge "fuse_sideload: Change the minimal block size to 4096."Tao Bao2017-05-044-141/+161
| | | | |\ \ \ \ \
| | | | | * | | | | fuse_sideload: Change the minimal block size to 4096.Tao Bao2017-05-034-141/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | run_fuse_sideload() is passing the block size as the max_read option, so it will only handle a request that involves at most two blocks at a time. However, the minimal allowed value was set to 1024 prior to this CL, which is inconsistent with the kernel code (fs/fuse/inode.c) that sets it to the greater of 4096 and the passed-in max_read option. This would fail the calls with a block size / max_read less than 4096 due to the wrongly computed block indices. Note that we didn't observe real issue in practice, because we have been using 64 KiB block sizes for both of adb and sdcard sideload calls. The issue only shows up in my local CL (to come later) that uses 1024 block size in run_fuse_sideload() tests. Test: recovery_component_test Test: adb sideload with the new recovery image on angler Change-Id: Id9f0cfea13d0d193dcb7cd41a1553a23739545f2
* | | | | | | | | | Merge "Remove EXPAND/STRINGIFY macros." am: b00c66faf7 am: 3642b99073 am: 5f8d2932d0Tao Bao2017-05-043-4/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dd08a0d4d3 Change-Id: I266ad9ef96c483ed03fa4c385f05d0a658da9cee
| * | | | | | | | | Merge "Remove EXPAND/STRINGIFY macros." am: b00c66faf7 am: 3642b99073Tao Bao2017-05-043-4/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5f8d2932d0 Change-Id: Ib13d560262af5b9dbe762a7d7b01831b4791ba2f
| | * | | | | | | | Merge "Remove EXPAND/STRINGIFY macros." am: b00c66faf7Tao Bao2017-05-043-4/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3642b99073 Change-Id: I28a2be565c74a051c8b5e7a5633455eb86483a3d
| | | * | | | | | | Merge "Remove EXPAND/STRINGIFY macros."Tao Bao2017-05-043-4/+4
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b00c66faf7 Change-Id: I59a8424b2df0a8e02999061a80b9ecefd8aa23db
| | | | * | | | | | Merge "Remove EXPAND/STRINGIFY macros."Tao Bao2017-05-043-4/+4
| | | | |\ \ \ \ \ \ | | | | | | |/ / / / | | | | | |/| / / / | | | | | |_|/ / / | | | | |/| | | |
| | | | | * | | | Remove EXPAND/STRINGIFY macros.Tao Bao2017-05-033-4/+4
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They are error-prone by putting anything into a string (e.g. EXPAND(RECOVERY_API_VERSION) would become "RECOVER_API_VERSION" if we forgot to pass -DRECOVERY_API_VERSION=3). RECOVERY_API_VERSION is the only user (in bootable/recovery) that gets stringified. Assign it to a typed var and sanity check the value. Don't see other reference to the macros from device-specific recovery directories (they can still define that locally if really needed). Test: recovery_component_test Test: Sideload an OTA on angler and marlin respectively. Change-Id: I358bbdf8f0a99db5ce4c7bc2fdcafe8013501b64
* | | | | | | | Merge "Add a default error code when updater script aborts" am: 89394632b1 am: 18bb9a4f26 am: 7a1c2943abTianjie Xu2017-05-032-7/+10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 03f740ec3d Change-Id: I3927cb4801a5b06467120a5e8c1c112438f86235
| * | | | | | | Merge "Add a default error code when updater script aborts" am: 89394632b1 am: 18bb9a4f26Tianjie Xu2017-05-032-7/+10
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7a1c2943ab Change-Id: I56207a2e987ee09e05270b0249b5f579f1710d11
| | * | | | | | Merge "Add a default error code when updater script aborts" am: 89394632b1Tianjie Xu2017-05-032-7/+10
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 18bb9a4f26 Change-Id: I0614c33388d68a45d443de8058c2ee36e896c583
| | | * | | | | Merge "Add a default error code when updater script aborts"Tianjie Xu2017-05-032-7/+10
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 89394632b1 Change-Id: Iceebf87fb62b1c2a23e20c2b4966606c0c7b0a72
| | | | * | | | Merge "Add a default error code when updater script aborts"Tianjie Xu2017-05-032-7/+10
| | | | |\ \ \ \
| | | | | * | | | Add a default error code when updater script abortsTianjie Xu2017-05-032-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We didn't report error/cause codes unless there's an explict "Abort()" call inside the updater script. As a result, some cause codes set by ErrorAbort() didn't show up in last_install. To fix the issue, add a default error code when the script terminates abnormally (i.e. with non zero status). Bug: 37912405 Test: error/cause code shows up in last_install when argument parsing fails Change-Id: Ic6d3bd1855b853aeaa0760071e593a00cf6f0209
* | | | | | | | | Merge "Move sysMapFile and sysReleaseMap into MemMapping class." am: fe7eecff4c am: 08d9ede8f2 am: b3eeb817abTao Bao2017-05-038-142/+114
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 586377d1f3 Change-Id: I4d2cac061fbf6ac34e9e5125ebd5294dbc33e4ef
| * | | | | | | | Merge "Move sysMapFile and sysReleaseMap into MemMapping class." am: fe7eecff4c am: 08d9ede8f2Tao Bao2017-05-038-142/+114
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b3eeb817ab Change-Id: I1bcf86cbbc495bf5df92dc53e01be39e7c623255
| | * | | | | | | Merge "Move sysMapFile and sysReleaseMap into MemMapping class." am: fe7eecff4cTao Bao2017-05-038-142/+114
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 08d9ede8f2 Change-Id: I48024bef3d747e7f7913e5f76043ea74972ba135
| | | * | | | | | Merge "Move sysMapFile and sysReleaseMap into MemMapping class."Tao Bao2017-05-038-142/+114
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fe7eecff4c Change-Id: Id67b92ed607b678aee3074329dad49d6e78c1896
| | | | * | | | | Merge "Move sysMapFile and sysReleaseMap into MemMapping class."Tao Bao2017-05-038-142/+114
| | | | |\ \ \ \ \ | | | | | |_|/ / / | | | | |/| | | |
| | | | | * | | | Move sysMapFile and sysReleaseMap into MemMapping class.Tao Bao2017-05-028-142/+114
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: recovery_component_test Test: recovery_unit_test Test: Apply an OTA on angler. Change-Id: I7170f03e4ce1fe06184ca1d7bcce0a695f33ac4d
* | | | | | | | Merge "recovery: Change install_package() to take std::string." am: ba365180d3 am: c0c4ae1583 am: a0fb95a386Tao Bao2017-05-022-75/+77
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2fdfcf17fb Change-Id: I128525a76a3a23d968c3dc55e4802784b5b61fd4
| * | | | | | | Merge "recovery: Change install_package() to take std::string." am: ba365180d3 am: c0c4ae1583Tao Bao2017-05-022-75/+77
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a0fb95a386 Change-Id: Ieb03e2d9ecb228305274849c1f2a92b5b9842e98
| | * | | | | | Merge "recovery: Change install_package() to take std::string." am: ba365180d3Tao Bao2017-05-022-75/+77
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c0c4ae1583 Change-Id: Ifc4791197b987071609552de9a8552df385ac71d
| | | * | | | | Merge "recovery: Change install_package() to take std::string."Tao Bao2017-05-022-75/+77
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ba365180d3 Change-Id: Ibc9d75359447d36bc5c8b827fa768b20057e56e8
| | | | * | | | Merge "recovery: Change install_package() to take std::string."Tao Bao2017-05-022-75/+77
| | | | |\ \ \ \
| | | | | * | | | recovery: Change install_package() to take std::string.Tao Bao2017-05-012-75/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also change the parameter type for log_buffer from reference to pointer, so the styles for parameters look consistent. Test: mmma bootable/recovery Test: sideload a package with the new recovery image Change-Id: I8f25580ccf22977624648b3e2181cca44dd67c1b
* | | | | | | | | Merge "adb_install: Stop passing RecoveryUI as a parameter." am: e58dabade9 am: dc534a9481 am: 139a6dd9e2Tao Bao2017-05-013-101/+96
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fb26613a83 Change-Id: I01b1ffc50dfb7b7a111aa2e69abfdb01e842f8ab
| * | | | | | | | Merge "adb_install: Stop passing RecoveryUI as a parameter." am: e58dabade9 am: dc534a9481Tao Bao2017-05-013-101/+96
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 139a6dd9e2 Change-Id: Iafe926bcdcfe28de78801493132af8fb9605de79
| | * | | | | | | Merge "adb_install: Stop passing RecoveryUI as a parameter." am: e58dabade9Tao Bao2017-05-013-101/+96
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dc534a9481 Change-Id: I30a59d772bb291564357d7a9bf64667856266bef
| | | * | | | | | Merge "adb_install: Stop passing RecoveryUI as a parameter."Tao Bao2017-05-013-101/+96
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e58dabade9 Change-Id: Ia574203d27a258c99ffbb035143a3875ab184636
| | | | * | | | | Merge "adb_install: Stop passing RecoveryUI as a parameter."Tao Bao2017-05-013-101/+96
| | | | |\ \ \ \ \ | | | | | |/ / / / | | | | |/| | | |
| | | | | * | | | adb_install: Stop passing RecoveryUI as a parameter.Tao Bao2017-05-013-101/+96
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's already a global declared in common.h which is included by adb_install.cpp. Remove '#include "minadbd/fuse_adb_provider.h"' that's not needed by adb_install.cpp (minadbd takes care of that). Test: mmma bootable/recovery Change-Id: I6d08b7abc706b4b05de2ef46a57ced2204ad297e
* | | | | | | | Merge "minui: Fix breakage in graphics_adf." am: 54da112277 am: d66f05b82c am: 4cc6889da8Tao Bao2017-04-291-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 895e6fdf36 Change-Id: I5c17e2bdfddab5e996f4a49b76447755afa5ab31
| * | | | | | | Merge "minui: Fix breakage in graphics_adf." am: 54da112277 am: d66f05b82cTao Bao2017-04-291-1/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4cc6889da8 Change-Id: Id405586d2ff8a94a49c9cb649483dbb7ec645fd1
| | * | | | | | Merge "minui: Fix breakage in graphics_adf." am: 54da112277Tao Bao2017-04-291-1/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d66f05b82c Change-Id: I1b2eeab49d9ab625ba396c111df1da94ff7701c7
| | | * | | | | Merge "minui: Fix breakage in graphics_adf."Tao Bao2017-04-291-1/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 54da112277 Change-Id: Ia65d9494373e6583325779a6fdd27e06dd01902a
| | | | * | | | Merge "minui: Fix breakage in graphics_adf."Tao Bao2017-04-291-1/+2
| | | | |\ \ \ \
| | | | | * | | | minui: Fix breakage in graphics_adf.Alistair Strachan2017-04-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When graphics_adf was refactored in 557fa1f, a class member was introduced that was not initialized to zero. This meant that the first time Flip() was called, current_surface would have a junk value and cause a bad pointer rereference, crashing recovery. Make sure current_surface is initialized to 0 for the first Flip(). Test: Ran recovery on a device using the ADF backend. Change-Id: I9b8fac0a4d48cac990e5e9808a071c232de1ebfb
* | | | | | | | | Merge "Fix potential OOM in update_verifier" am: 5443072c3c am: 00a309ab3e am: 711e8b649dTianjie Xu2017-04-281-6/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 36e3388bdc Change-Id: Id6fe72a2599cc4c9ceafcccd26b8ed31e3c43046
| * | | | | | | | Merge "Fix potential OOM in update_verifier" am: 5443072c3c am: 00a309ab3eTianjie Xu2017-04-281-6/+11
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 711e8b649d Change-Id: Idf8b683ed3597063637af7f73c11c9cd3672b3f6
| | * | | | | | | Merge "Fix potential OOM in update_verifier" am: 5443072c3cTianjie Xu2017-04-281-6/+11
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 00a309ab3e Change-Id: Iac217d868ccc8a3fd90dcfb26c89d653ce066ffb
| | | * | | | | | Merge "Fix potential OOM in update_verifier"Tianjie Xu2017-04-281-6/+11
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5443072c3c Change-Id: I8bfcd49c0a5f57149d6a87ecfb244273acff3208
| | | | * | | | | Merge "Fix potential OOM in update_verifier"Tianjie Xu2017-04-281-6/+11
| | | | |\ \ \ \ \ | | | | | |/ / / / | | | | |/| | | |
| | | | | * | | | Fix potential OOM in update_verifierTianjie Xu2017-04-271-6/+11
| | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Limit the size of each read to 1024 * BLOCKSIZE. (Same as the I/O limit of each transfer command for block based OTA). Bug: 37729708 Test: U_V sets slot successfully on sailfish, and it takes about ~20s (no noticeable time increase) Change-Id: I7a6cdc744fe4c0760e09e0afed75b89c16d8eac3
* | | | | | | | Adding support for quiescent reboot to recovery am: ed9db0fd73Dmitri Plotnikov2017-04-280-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7b385fb738 Change-Id: I8f65fd53ab15a2303c07a9981f5a8b5b3190c4ec
| * | | | | | | Adding support for quiescent reboot to recoveryDmitri Plotnikov2017-04-280-0/+0
| |\ \ \ \ \ \ \ | | | |_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ed9db0fd73 Change-Id: Ied907089cc7a88c4cf75dbbfa366a27cc9b01f73
| | * | | | | | Adding support for quiescent reboot to recoveryDmitri Plotnikov2017-04-284-8/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 37401320 Test: build and push OTA and hit adb reboot recovery,quiescent. The screen should remain off throughout the upgrade process. (cherry picked from commit 8706a98aa635236a95795f0a0c122bb3e591a50d) Change-Id: I79789a151f6faafda8ecc6198c2182cc2a91da70
* | | | | | | | Merge "Adding support for quiescent reboot to recovery" am: 0481faef77 am: 5b27cd1093 am: 533ad31cc1Dmitri Plotnikov2017-04-284-8/+27
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8a3d58655c Change-Id: Ida6d4e2bf06a902fc85e693e61b2e87f1afd736c
| * | | | | | | Merge "Adding support for quiescent reboot to recovery" am: 0481faef77 am: 5b27cd1093Dmitri Plotnikov2017-04-284-8/+27
| |\ \ \ \ \ \ \ | | | |/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 533ad31cc1 Change-Id: Ia5505643eb1206ae333371a42aa47f81fdbc8d18
| | * | | | | | Merge "Adding support for quiescent reboot to recovery" am: 0481faef77Dmitri Plotnikov2017-04-284-8/+27
| | |\ \ \ \ \ \ | | | | |/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5b27cd1093 Change-Id: I5d7730fedba7a9b5e39bd4ee3d093036406a7bd4
| | | * | | | | Merge "Adding support for quiescent reboot to recovery"Dmitri Plotnikov2017-04-284-8/+27
| | | |\ \ \ \ \ | | | | | |/ / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0481faef77 Change-Id: I79e31282bd133e0de5b0f0601c5bc3bd728ddd64
| | | | * | | | Merge "Adding support for quiescent reboot to recovery"Treehugger Robot2017-04-284-8/+27
| | | | |\ \ \ \ | | | | | |_|/ / | | | | |/| | |
| | | | | * | | Adding support for quiescent reboot to recoveryDmitri Plotnikov2017-04-194-8/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 37401320 Test: build and push OTA and hit adb reboot recovery,quiescent. The screen should remain off throughout the upgrade process. Change-Id: Ibed3795c09e26c4fa73684d40b94e40c78394d3f
* | | | | | | | Merge "Separate libupdate_verifier module and add testcases." am: c99bb23955 am: d8c078d2c6 am: c7410924a3Tao Bao2017-04-276-16/+179
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 322d866ec8 Change-Id: I58bf1596f7247866e0d9e76c1c7a5ddc1d58024a
| * | | | | | | Merge "Separate libupdate_verifier module and add testcases." am: c99bb23955 am: d8c078d2c6Tao Bao2017-04-276-16/+179
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c7410924a3 Change-Id: I452f0a1b5c0377f985294d37d59a19d1272be50d
| | * | | | | | Merge "Separate libupdate_verifier module and add testcases." am: c99bb23955Tao Bao2017-04-276-16/+179
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d8c078d2c6 Change-Id: Ic443988359d98712989c248db166fd914a2bfa8a
| | | * | | | | Merge "Separate libupdate_verifier module and add testcases."Tao Bao2017-04-276-16/+179
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c99bb23955 Change-Id: Idfcde607838bbcae2930fbcc9108756296f4ca34
| | | | * | | | Merge "Separate libupdate_verifier module and add testcases."Tao Bao2017-04-276-16/+179
| | | | |\ \ \ \
| | | | | * | | | Separate libupdate_verifier module and add testcases.Tao Bao2017-04-276-16/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable -Wall and expose verify_image() for testing purpose. Test: mmma bootable/recovery Test: recovery_component_test Change-Id: I1ee1db2a775bafdc1112e25a1bc7194d8d6aee4f
* | | | | | | | | Merge "libfusesideload: Clean up the CFLAGS for the module." am: 416c55cf43 am: 74812187c0 am: 67dc335646Tao Bao2017-04-272-5/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 48e6d280da Change-Id: I5dc30739121768d02b3eb6fb7c51e9143f4fa93d
| * | | | | | | | Merge "libfusesideload: Clean up the CFLAGS for the module." am: 416c55cf43 am: 74812187c0Tao Bao2017-04-272-5/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 67dc335646 Change-Id: Ic15e8289fa247d3669f64cf421c5322258a09e89
| | * | | | | | | Merge "libfusesideload: Clean up the CFLAGS for the module." am: 416c55cf43Tao Bao2017-04-272-5/+6
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 74812187c0 Change-Id: Icca59707002ef3d0e710f9601f3fe6efa93b398e
| | | * | | | | | Merge "libfusesideload: Clean up the CFLAGS for the module."Tao Bao2017-04-272-5/+6
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 416c55cf43 Change-Id: Ice50708eb27e01ecad729b0e05af77995b845e39
| | | | * | | | | Merge "libfusesideload: Clean up the CFLAGS for the module."Tao Bao2017-04-272-5/+6
| | | | |\ \ \ \ \ | | | | | |/ / / / | | | | |/| | | |
| | | | | * | | | libfusesideload: Clean up the CFLAGS for the module.Tao Bao2017-04-272-5/+6
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove "-DADB_HOST=0" since it doesn't include adb related stuff. Test: mmma bootable/recovery Test: sideload on marlin Change-Id: Ia83a8edd31eedd803435d687513d561c873ffabe
* | | | | | | | Merge "applypatch: Remove the obsolete support for "applypatch -s"." am: d5ae4253c1 am: 22b1fa7d61 am: 7ee4b7dd84Tao Bao2017-04-262-31/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 41dc284309 Change-Id: If092d5a6d97e31bef4d2ec19478061c8df4ad792
| * | | | | | | Merge "applypatch: Remove the obsolete support for "applypatch -s"." am: d5ae4253c1 am: 22b1fa7d61Tao Bao2017-04-262-31/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7ee4b7dd84 Change-Id: I9f372c9b371f28b70ec6832e66053d3aee5b7c8e
| | * | | | | | Merge "applypatch: Remove the obsolete support for "applypatch -s"." am: d5ae4253c1Tao Bao2017-04-262-31/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 22b1fa7d61 Change-Id: I16a55f996e66e46359d315508c1ea48e22f4c67f
| | | * | | | | Merge "applypatch: Remove the obsolete support for "applypatch -s"."Tao Bao2017-04-262-31/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d5ae4253c1 Change-Id: Ia790cb8dc24f356703dcad78bfc0f4bb7f0069e5
| | | | * | | | Merge "applypatch: Remove the obsolete support for "applypatch -s"."Tao Bao2017-04-262-31/+1
| | | | |\ \ \ \
| | | | | * | | | applypatch: Remove the obsolete support for "applypatch -s".Tao Bao2017-04-262-31/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SpaceMode (applypatch -s) was used in amend script (cupcake) only, which has been removed since commit 9ce2ebf5d300eba5f6086583b0941ef68a3e4b42 (platform/build). The later (and current) edify script uses apply_patch_space(). Note that other modes (PatchMode, CheckMode) of applypatch executable are mostly used by install-recovery.sh script. Test: No active user of "applypatch -s". Test: recovery_component_test Change-Id: I1d689b7fedd3884077e88ed1d6c22f7a2198859d
* | | | | | | | | Merge "applypatch: Add determine the return value of ApplyDiffPatch and capture the error flow." am: ac78ed8915 am: 282c863524 am: 3dcc24490bTao Bao2017-04-261-1/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ce5e980835 Change-Id: Ic8852e654a36a90c99a505fb5b2af6182aaff30d
| * | | | | | | | Merge "applypatch: Add determine the return value of ApplyDiffPatch and capture the error flow." am: ac78ed8915 am: 282c863524Tao Bao2017-04-261-1/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3dcc24490b Change-Id: I7ce76a10f42079cfa1d5f4890b9347edecd4bb24
| | * | | | | | | Merge "applypatch: Add determine the return value of ApplyDiffPatch and capture the error flow." am: ac78ed8915Tao Bao2017-04-261-1/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 282c863524 Change-Id: I4e9e5c6411b9ac58568bb7ea9491f533bf934bfc
| | | * | | | | | Merge "applypatch: Add determine the return value of ApplyDiffPatch and capture the error flow."Tao Bao2017-04-261-1/+4
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ac78ed8915 Change-Id: I7acad8d3ce6a71554e93d785e6a7e307e2c9f9fe
| | | | * | | | | Merge "applypatch: Add determine the return value of ApplyDiffPatch and capture the error flow."Tao Bao2017-04-261-1/+4
| | | | |\ \ \ \ \
| | | | | * | | | | applypatch: Add determine the return value of ApplyDiffPatch andJinguang Dong2017-04-261-1/+4
| | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | capture the error flow. Construct ota package which is bsdiff exception scene ,then do simulation test, native code can not capture exception scenes. Test: recovery_component_test Test: Apply an bsdiff exception scene ota package. Change-Id: Icd9f6eac78739bd35c74b9fcaaf8154335d680a5
* | | | | | | | | Merge "minadbd: Fix a failing test due to SIGPIPE." am: 7b1fffe095 am: f849ff34d4 am: c798cf2531Tao Bao2017-04-251-9/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f70e39a90d Change-Id: I0ccdafddf54b96e7c55bdef29d9835b254ee07c2
| * | | | | | | | Merge "minadbd: Fix a failing test due to SIGPIPE." am: 7b1fffe095 am: f849ff34d4Tao Bao2017-04-251-9/+11
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c798cf2531 Change-Id: Ieb91c6fb06a2e8dd3602c993e261284a6d1343e0
| | * | | | | | | Merge "minadbd: Fix a failing test due to SIGPIPE." am: 7b1fffe095Tao Bao2017-04-251-9/+11
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f849ff34d4 Change-Id: I930a2e743419a1a9323fa8a3d8deb089d569db49
| | | * | | | | | Merge "minadbd: Fix a failing test due to SIGPIPE."Tao Bao2017-04-251-9/+11
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7b1fffe095 Change-Id: I0feb7529e596a201fb0d683e5054d2b1b4227c1d
| | | | * | | | | Merge "minadbd: Fix a failing test due to SIGPIPE."Tao Bao2017-04-251-9/+11
| | | | |\ \ \ \ \ | | | | | |/ / / / | | | | |/| | | |
| | | | | * | | | minadbd: Fix a failing test due to SIGPIPE.Tao Bao2017-04-251-9/+11
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: minadbd_test on bullhead. Change-Id: Iab1c51ba8d3113a83e8b464c3640be770a6cda97
* | | | | | | | Merge "recovery: Remove the include of adb.h." am: dff2276012 am: 2dad1a9d28 am: 36683d0fc8Tao Bao2017-04-252-3/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b217714654 Change-Id: Ib87c761251e6e315389814f56154eef4c9d4a208
| * | | | | | | Merge "recovery: Remove the include of adb.h." am: dff2276012 am: 2dad1a9d28Tao Bao2017-04-252-3/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 36683d0fc8 Change-Id: I52142d9129285cffcd9e2481799d394f5fb13a79
| | * | | | | | Merge "recovery: Remove the include of adb.h." am: dff2276012Tao Bao2017-04-252-3/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2dad1a9d28 Change-Id: I19dc6c2adf91b695412d79cfcd8cf759afcf6cf3
| | | * | | | | Merge "recovery: Remove the include of adb.h."Tao Bao2017-04-252-3/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dff2276012 Change-Id: If6c4e195112f8442535ae9c698277b311e590dbd
| | | | * | | | Merge "recovery: Remove the include of adb.h."Tao Bao2017-04-252-3/+0
| | | | |\ \ \ \
| | | | | * | | | recovery: Remove the include of adb.h.Tao Bao2017-04-242-3/+0
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | recovery.cpp doesn't have a direct dependency on adb.h (only minadbd does). 'adb.h' was once needed for DEFAULT_ADB_PORT, until being killed by commit acb2a2fa4c415944a27539461ba3757f3edbb128. Test: mmma bootable/recovery Change-Id: I84f87988d01c3f0c3d1383cc3cffde2e7d5e7aea
* | | | | | | | Add more tests for verify_package_compatibility(). am: b4c0de6c7b -s oursTao Bao2017-04-250-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 50db2e2fd3 Change-Id: I5ee25c85f43ae671f5776bf9c04157a31d1da457
| * | | | | | | Add more tests for verify_package_compatibility().Tao Bao2017-04-250-0/+0
| |\ \ \ \ \ \ \ | | | |_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b4c0de6c7b -s ours Change-Id: I077f67578ba0df44debf6b64323aa54dd1f69e3b
| | * | | | | | Add more tests for verify_package_compatibility().Tao Bao2017-04-241-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This now covers the actual calls to libvintf, and asserts we're getting identical results through verify_package_compatibility() and by calling libvintf directly. We were missing the coverage and introduced the double free bug (fixed by commit f978278995d02a58e311fe017bdbb2c3702dd3bc). Bug: 37413730 Test: recovery_component_test passes. Test: recovery_component_test fails w/o commit f978278995d02a58e311fe017bdbb2c3702dd3bc. Change-Id: If5195ea1c583fd7c440a1de289da82145e80e23c (cherry picked from commit f2784b6a43e54ed67bc30ac456f66f11bd16bc74)
* | | | | | | | Merge "Add more tests for verify_package_compatibility()." am: a9dd77fa84 am: 5f85d07e87 am: 54f8988cfeTao Bao2017-04-241-0/+84
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7b2957ed25 Change-Id: Ia1dbea19d1975348a7dfdcaf803ebb6bf4b99a0a
| * | | | | | | Merge "Add more tests for verify_package_compatibility()." am: a9dd77fa84 am: 5f85d07e87Tao Bao2017-04-241-0/+84
| |\ \ \ \ \ \ \ | | | |/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 54f8988cfe Change-Id: I389ced1ec0e90e90e5fbde74f1b0ab5449310ab7
| | * | | | | | Merge "Add more tests for verify_package_compatibility()." am: a9dd77fa84Tao Bao2017-04-241-0/+84
| | |\ \ \ \ \ \ | | | | |/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5f85d07e87 Change-Id: Iea6d09d9b99512727ceff40611e193e2009a0ba7
| | | * | | | | Merge "Add more tests for verify_package_compatibility()."Tao Bao2017-04-241-0/+84
| | | |\ \ \ \ \ | | | | | |/ / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | am: a9dd77fa84 Change-Id: Ie0eeef3f0f188236b502d378140041931c2b7fb1
| | | | * | | | Merge "Add more tests for verify_package_compatibility()."Tao Bao2017-04-241-0/+84
| | | | |\ \ \ \
| | | | | * | | | Add more tests for verify_package_compatibility().Tao Bao2017-04-201-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This now covers the actual calls to libvintf, and asserts we're getting identical results through verify_package_compatibility() and by calling libvintf directly. We were missing the coverage and introduced the double free bug (fixed by commit f978278995d02a58e311fe017bdbb2c3702dd3bc). Bug: 37413730 Test: recovery_component_test passes. Test: recovery_component_test fails w/o commit f978278995d02a58e311fe017bdbb2c3702dd3bc. Change-Id: If5195ea1c583fd7c440a1de289da82145e80e23c
* | | | | | | | | Merge "tests: Remove obsolete classes in applypatch_test." am: f17aa960db am: 8a3325dc8a am: f4a8d0bba6Tao Bao2017-04-241-49/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b35fb1cf7b Change-Id: Iba385b5435dc8aa4393821f8a72c92c477685f51
| * | | | | | | | Merge "tests: Remove obsolete classes in applypatch_test." am: f17aa960db am: 8a3325dc8aTao Bao2017-04-241-49/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f4a8d0bba6 Change-Id: If68b3e47fa75a5d5f2041bdda8a8f4cb84c8880c
| | * | | | | | | Merge "tests: Remove obsolete classes in applypatch_test." am: f17aa960dbTao Bao2017-04-241-49/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8a3325dc8a Change-Id: I77c8a213052fd667f573b40e8a87fed0bb87676f
| | | * | | | | | Merge "tests: Remove obsolete classes in applypatch_test."Tao Bao2017-04-241-49/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f17aa960db Change-Id: I4e9f49255f8cdeb1bded80a578a82772c6ebb8c2
| | | | * | | | | Merge "tests: Remove obsolete classes in applypatch_test."Tao Bao2017-04-241-49/+2
| | | | |\ \ \ \ \
| | | | | * | | | | tests: Remove obsolete classes in applypatch_test.Tao Bao2017-04-211-49/+2
| | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ApplyPatchFullTest and ApplyPatchDoubleCacheTest were used for defining testcases for file-based OTA. The testcases have already been removed by commit 40e144dae877654f75e65242535036058ea48f58. This CL removes the obsolete class defnitions. Bug: 37559618 Test: recovery_component_test on angler and marlin respectively. Change-Id: I3f4f1dfc8580cf010365e671de256f68bbc0d99a
* | | | | | | | | Merge "librecovery: Remove -Wno-unused-parameter and add -Wall." am: b6c9c41a3d am: 0cf72f0f14 am: c179ac9238Tao Bao2017-04-242-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d19fa968de Change-Id: I567f2c85d02440e51dfd921c3e612d87bce3360e
| * | | | | | | | Merge "librecovery: Remove -Wno-unused-parameter and add -Wall." am: b6c9c41a3d am: 0cf72f0f14Tao Bao2017-04-242-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c179ac9238 Change-Id: I15f91cd1f14778fc23e3e7205145ea6fca98c2ca
| | * | | | | | | Merge "librecovery: Remove -Wno-unused-parameter and add -Wall." am: b6c9c41a3dTao Bao2017-04-242-2/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0cf72f0f14 Change-Id: I79929b309cd9c465ef8f35f06df8469a77accec6
| | | * | | | | | Merge "librecovery: Remove -Wno-unused-parameter and add -Wall."Tao Bao2017-04-242-2/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b6c9c41a3d Change-Id: I4ec01251132d6dc871cec19cf7c8577e33aac193
| | | | * | | | | Merge "librecovery: Remove -Wno-unused-parameter and add -Wall."Tao Bao2017-04-242-2/+2
| | | | |\ \ \ \ \
| | | | | * | | | | librecovery: Remove -Wno-unused-parameter and add -Wall.Tao Bao2017-04-242-2/+2
| | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma bootable/recovery Change-Id: I5598d32bebb9dbda4a183a1502e0b7dc4918392e
* | | | | | | | | Merge "Reboot the device on user build after the install fails" am: d6f436849d am: 4849c87033 am: 0cd8986bc2Tianjie Xu2017-04-221-4/+12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 05867dbecc Change-Id: I41e9092a750acc7f71ec2d2fbd84cf2c98bb8f60
| * | | | | | | | Merge "Reboot the device on user build after the install fails" am: d6f436849d am: 4849c87033Tianjie Xu2017-04-221-4/+12
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0cd8986bc2 Change-Id: I1c81003e76486748cbb02dd9d8fe11b167e4232b
| | * | | | | | | Merge "Reboot the device on user build after the install fails" am: d6f436849dTianjie Xu2017-04-221-4/+12
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4849c87033 Change-Id: I7fd09a998e2a3d21ad9c772179890988b44809b5
| | | * | | | | | Merge "Reboot the device on user build after the install fails"Tianjie Xu2017-04-221-4/+12
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d6f436849d Change-Id: I72eae6c525d6dd39c86a74b144d0970ad8793b42
| | | | * | | | | Merge "Reboot the device on user build after the install fails"Treehugger Robot2017-04-221-4/+12
| | | | |\ \ \ \ \
| | | | | * | | | | Reboot the device on user build after the install failsTianjie Xu2017-04-221-4/+12
| | | | | | |_|/ / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Users can't do much after the install fails with the device showing "error" under recovery. So our best choice is to reboot the device since sometimes the system image is still bootable (i.e. on package verification failure). At worst the device would stuck in a boot loop where the users need the same professional knowledge to recover as before. Behaviors after installation failure (including data wipe): If recovery text is visible: No change. If recovery text is not visible: Old behavior: Wait under "error" screen. Reboot after UI timeout (120s) if not connected to usb charger. New behavior: Wait for 5s (shortens from the 120s timeout) under "error" screen and reboot (w or w/o charger). sideload-auto-reboot (only available for userdebug): Old behavior: Reboot immediately after installation failure. New behavior: Wait for 5s under "error" screen and reboot. Bug: 35386985 Test: On angler user, device auto reboots 5s after a failing OTA. Change-Id: I3ff0ead86e2ccec9445d6a2865bc2c463855f23c
* | | | | | | | | Merge "Minor clean up to minadbd_services.cpp" am: fa7d55a7e3 am: 235a2cc1c7 am: 33a8900d2bTianjie Xu2017-04-201-9/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fa982415a5 Change-Id: I11760a580106049067f4a923f5d7c17f2ae87b82
| * | | | | | | | Merge "Minor clean up to minadbd_services.cpp" am: fa7d55a7e3 am: 235a2cc1c7Tianjie Xu2017-04-201-9/+7
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 33a8900d2b Change-Id: I0e83d8f196397b2eb7afaab9c531d2bebec29346
| | * | | | | | | Merge "Minor clean up to minadbd_services.cpp" am: fa7d55a7e3Tianjie Xu2017-04-201-9/+7
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 235a2cc1c7 Change-Id: I71fd3d604a8adadb29f9e4f1916a1e1bdb5eebed
| | | * | | | | | Merge "Minor clean up to minadbd_services.cpp"Tianjie Xu2017-04-201-9/+7
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fa7d55a7e3 Change-Id: I741417224e3ee22916e5b0ae6adc237887bd3ecb
| | | | * | | | | Merge "Minor clean up to minadbd_services.cpp"Tianjie Xu2017-04-201-9/+7
| | | | |\ \ \ \ \ | | | | | |_|/ / / | | | | |/| | | |
| | | | | * | | | Minor clean up to minadbd_services.cppTianjie Xu2017-04-191-9/+7
| | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch some function signatures to std::string to avoid memory leak. Bug: 30039381 Test: sideload a package on angler Change-Id: Iae1e75871a782d6e5d6dde5dcf3f18469eb63f7d
* | | | | | | | Merge "Call libvintf to verify package compatibility." am: b0945e1a23 am: 8e7884abcc am: d7a065eb1cTao Bao2017-04-200-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3a484e49bb Change-Id: Iece1d57f4be2b9b7c71f1dbdbc30f5ec25ad8671
| * | | | | | | Merge "Call libvintf to verify package compatibility." am: b0945e1a23 am: 8e7884abccTao Bao2017-04-200-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d7a065eb1c Change-Id: I885d137e5ffc873ab8af1155b1e85eca65d8f03c
| | * | | | | | Merge "Call libvintf to verify package compatibility." am: b0945e1a23Tao Bao2017-04-203-5/+17
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8e7884abcc Change-Id: I229350afea463c596d7155794fca300bf9547229
| | | * | | | | Merge "Call libvintf to verify package compatibility."Tao Bao2017-04-203-5/+17
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b0945e1a23 Change-Id: I1c54dafa606aa4ba0955983f3a5023d7b65ded1b
| | | | * | | | Merge "Call libvintf to verify package compatibility."Tao Bao2017-04-203-5/+17
| | | | |\ \ \ \
| | | | | * | | | Call libvintf to verify package compatibility.Tao Bao2017-04-203-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The libvintf API has landed. Hook up to do the actual verification. Bug: 36597505 Test: recovery_component_test Test: m recoveryimage; adb sideload on angler and sailfish, with packages that contain dummy compatibility entries. Test: m recoveryimage; adb sideload on angler and sailfish, with packages that don't contain any compatibility entries. Change-Id: Idbd6f5aaef605ca51b20e667505d686de5ac781f (cherry picked from commit da320ac6ab53395ddff3cc08b88a61f977ed939a)
* | | | | | | | | Call libvintf to verify package compatibility. am: da320ac6abTao Bao2017-04-203-5/+17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 34ae4d02ce Change-Id: I96580281c3d898b382e9870f3dbc8db218114e27
| * | | | | | | | Call libvintf to verify package compatibility.Tao Bao2017-04-203-5/+17
| |\ \ \ \ \ \ \ \ | | | |_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: da320ac6ab Change-Id: I5749ac56a8eed8c3ce8420360643a4cfe8d52bc7
| | * | | | | | | Call libvintf to verify package compatibility.Tao Bao2017-04-193-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The libvintf API has landed. Hook up to do the actual verification. Bug: 36597505 Test: recovery_component_test Test: m recoveryimage; adb sideload on angler and sailfish, with packages that contain dummy compatibility entries. Test: m recoveryimage; adb sideload on angler and sailfish, with packages that don't contain any compatibility entries. Change-Id: Idbd6f5aaef605ca51b20e667505d686de5ac781f
* | | | | | | | | Merge "Add tests for read_metadata_from_package()." am: e888d45950 am: c08c055ce0 am: 7b9b77f445Tao Bao2017-04-192-43/+89
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 67045afa85 Change-Id: I449c52d75ee821293e57878eda5b95782912d429
| * | | | | | | | Merge "Add tests for read_metadata_from_package()." am: e888d45950 am: c08c055ce0Tao Bao2017-04-192-43/+89
| |\ \ \ \ \ \ \ \ | | | |/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7b9b77f445 Change-Id: I9e3563e052ce1b993981af29c8af9fd4ab4f3516
| | * | | | | | | Merge "Add tests for read_metadata_from_package()." am: e888d45950Tao Bao2017-04-192-43/+89
| | |\ \ \ \ \ \ \ | | | | |/ / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c08c055ce0 Change-Id: I000e0cc00b510a7734e5cc41143f1d5939293b24
| | | * | | | | | Merge "Add tests for read_metadata_from_package()."Tao Bao2017-04-192-43/+89
| | | |\ \ \ \ \ \ | | | | | |/ / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e888d45950 Change-Id: I182da1ac7d39120d8959b96dfbd70b344c27d600
| | | | * | | | | Merge "Add tests for read_metadata_from_package()."Tao Bao2017-04-192-43/+89
| | | | |\ \ \ \ \ | | | | | |_|/ / / | | | | |/| | | |
| | | | | * | | | Add tests for read_metadata_from_package().Tao Bao2017-04-192-43/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: recovery_component_test Change-Id: I672a6a4f101c72e82b9f25f165dccd1c9520627b
* | | | | | | | | Merge "Add 'system' to update_verifier's gid" into oc-dev am: 464c6ba9f8Tianjie Xu2017-04-190-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2e8daf8b83 Change-Id: I935d795db67b120883a34cb9e9254cdc40083fea
| * | | | | | | | Merge "Add 'system' to update_verifier's gid" into oc-devTianjie Xu2017-04-190-0/+0
| |\ \ \ \ \ \ \ \ | | | |_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 464c6ba9f8 Change-Id: I26b77c2f8bb3d041eea402fc05bcb2d820775471
| | * | | | | | | Merge "Add 'system' to update_verifier's gid" into oc-devTianjie Xu2017-04-191-2/+2
| | |\ \ \ \ \ \ \
| | | * | | | | | | Add 'system' to update_verifier's gidTianjie Xu2017-04-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This addresses the denial to /dev/cpuset/tasks: update_verifier: type=1400 audit(0.0:377): avc: denied { dac_override } for capability=1 scontext=u:r:update_verifier:s0 tcontext=u:r:update_verifier:s0 tclass=capability permissive=1 update_verifier: type=1400 audit(0.0:378): avc: granted { write } for name="tasks" dev="cgroup" ino=5 scontext=u:r:update_verifier:s0 tcontext=u:object_r:cgroup:s0 tclass=file Bug: 37358323 Test: denial message gone after adding system group Change-Id: I66b4925295a13fbc1c6f26a1bb9bd2f9cebcec3d (cherry-picked from 0ad2de5eab12dbf63ad43bd0c3e5ef729984cf81)
* | | | | | | | | | Merge "Minor clean up to install.cpp." am: 08146728c1 am: 668e84233d am: 6650c0426fTao Bao2017-04-191-66/+61
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1918fbcd40 Change-Id: Ib0eb86629ac0f1b0092120b4de2a71c7fe2a6956
| * | | | | | | | | Merge "Minor clean up to install.cpp." am: 08146728c1 am: 668e84233dTao Bao2017-04-191-66/+61
| |\ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6650c0426f Change-Id: Iacabb5816f811b519bde548c620929dc7b1841dd
| | * | | | | | | | Merge "Minor clean up to install.cpp." am: 08146728c1Tao Bao2017-04-191-66/+61
| | |\ \ \ \ \ \ \ \ | | | | |_|/ / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 668e84233d Change-Id: I961822ff4c9263cef813c98877f1c3a3e9bf6441
| | | * | | | | | | Merge "Minor clean up to install.cpp."Tao Bao2017-04-191-66/+61
| | | |\ \ \ \ \ \ \ | | | | | |_|/ / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 08146728c1 Change-Id: Ie1f04ce992d48f37fae1fc8c8f083b21634e1024
| | | | * | | | | | Merge "Minor clean up to install.cpp."Tao Bao2017-04-191-66/+61
| | | | |\ \ \ \ \ \ | | | | | | |_|/ / / | | | | | |/| | | |
| | | | | * | | | | Minor clean up to install.cpp.Tao Bao2017-04-191-66/+61
| | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move some macros / constants into functions; - Remove unneeded #include "minui/minui.h"; - Remove two dead constants (DEFAULT_{FILES,IMAGES}_PROGRESS_FRACTION). Test: mmma bootable/recovery Change-Id: Ib808f14b7569e06e23a8a7cc9b2d4e9aa5469de1
* | | | | | | | | Merge "Add tests for update_binary_command()." into oc-dev am: a6084f8c9b -s oursTao Bao2017-04-190-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fbc78e6f01 Change-Id: I306e52d9057772c398e6ab12f5f37347bcb02fff
| * | | | | | | | Merge "Add tests for update_binary_command()." into oc-devTao Bao2017-04-190-0/+0
| |\ \ \ \ \ \ \ \ | | | |_|_|/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a6084f8c9b -s ours Change-Id: Ia9a1fc3898b31d658e82883dbac17c511168bb94
| | * | | | | | | Merge "Add tests for update_binary_command()." into oc-devTao Bao2017-04-194-82/+199
| | |\ \ \ \ \ \ \
| | | * | | | | | | Add tests for update_binary_command().Tao Bao2017-04-194-82/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expose update_binary_command() through private/install.h for testing purpose. Also make minor clean-ups to install.cpp: a) adding more verbose logging on ExtractToMemory failures; b) update_binary_command() taking std::string instead of const char*; c) moving a few macro and global constants into update_binary_command(). Bug: 37300957 Test: recovery_component_test on marlin Test: Build new recovery and adb sideload on angler and sailfish. Change-Id: Ib2d9068af3fee038f01c90940ccaeb0a7da374fc Merged-In: Ib2d9068af3fee038f01c90940ccaeb0a7da374fc (cherry picked from commit bc4b1fe4c4305ebf0fbfc891b9b508c14b5c8ef8)
* | | | | | | | | | Merge "Add tests for update_binary_command()." am: 44f61b4ce5 am: 1fc109bdc7 am: d218dca8f9Tao Bao2017-04-194-82/+198
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c6bb44e9bf Change-Id: I42f53d3d48caf913fa8d4ba2eba475e20c8b65f9
| * | | | | | | | | Merge "Add tests for update_binary_command()." am: 44f61b4ce5 am: 1fc109bdc7Tao Bao2017-04-194-82/+198
| |\ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d218dca8f9 Change-Id: Ib8520d3249f3c131be5008324c52e4b94cf8426d
| | * | | | | | | | Merge "Add tests for update_binary_command()." am: 44f61b4ce5Tao Bao2017-04-194-82/+198
| | |\ \ \ \ \ \ \ \ | | | | |_|/ / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1fc109bdc7 Change-Id: I831f0f5f058cc56af34f3f4b77a48b17050256ef
| | | * | | | | | | Merge "Add tests for update_binary_command()."Tao Bao2017-04-194-82/+198
| | | |\ \ \ \ \ \ \ | | | | | |_|/ / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 44f61b4ce5 Change-Id: I12b49334130d68305753096f6a3376e246f947bc
| | | | * | | | | | Merge "Add tests for update_binary_command()."Tao Bao2017-04-194-82/+198
| | | | |\ \ \ \ \ \ | | | | | |_|_|_|/ / | | | | |/| | | | |
| | | | | * | | | | Add tests for update_binary_command().Tao Bao2017-04-184-82/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expose update_binary_command() through private/install.h for testing purpose. Also make minor clean-ups to install.cpp: a) adding more verbose logging on ExtractToMemory failures; b) update_binary_command() taking std::string instead of const char*; c) moving a few macro and global constants into update_binary_command(). Bug: 37300957 Test: recovery_component_test on marlin Test: Build new recovery and adb sideload on angler and sailfish. Change-Id: Ib2d9068af3fee038f01c90940ccaeb0a7da374fc
* | | | | | | | | | init.rc: Remove sys.powerctl action am: 37ac94978cTom Cherry2017-04-180-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 668b411a8e Change-Id: I71e9d44138c081f78a49462218e6d1b7968cce26
| * | | | | | | | | init.rc: Remove sys.powerctl actionTom Cherry2017-04-180-0/+0
| |\ \ \ \ \ \ \ \ \ | | | |_|_|_|/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 37ac94978c Change-Id: Idc5d954493b7078293f7b40b7a70ef047fb9f467
| | * | | | | | | | init.rc: Remove sys.powerctl actionTom Cherry2017-04-181-3/+0
| | | |_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Init now handles this property change directly. Bug: 37209359 Bug: 37415192 Test: Init reboots normally. Change-Id: I9a4925897fb83bed180d12c871d9a71126fa4aa8 (cherry picked from commit 4608daf0fe6b5feb11afbfb6ae613d7a5161c95d)
* | | | | | | | | Merge "Add 'system' to update_verifier's gid" am: ba3f078f6f am: 4575986069 am: 239d154869Tianjie Xu2017-04-181-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: eaa4e5daea Change-Id: I99c9be77a91286ae39cfc1fac1e563c9d895612d
| * | | | | | | | Merge "Add 'system' to update_verifier's gid" am: ba3f078f6f am: 4575986069Tianjie Xu2017-04-181-2/+2
| |\ \ \ \ \ \ \ \ | | | |/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 239d154869 Change-Id: Iaaca701520690071b12c4648683b76f9e0448e6b
| | * | | | | | | Merge "Add 'system' to update_verifier's gid" am: ba3f078f6fTianjie Xu2017-04-181-2/+2
| | |\ \ \ \ \ \ \ | | | | |/ / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4575986069 Change-Id: I08428546960c2f893ab2cd47c96850ae867044bd
| | | * | | | | | Merge "Add 'system' to update_verifier's gid"Tianjie Xu2017-04-181-2/+2
| | | |\ \ \ \ \ \ | | | | | |/ / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ba3f078f6f Change-Id: Iff90d951f8a45df2bd6f11329ad2d33399d61ec6
| | | | * | | | | Merge "Add 'system' to update_verifier's gid"Tianjie Xu2017-04-181-2/+2
| | | | |\ \ \ \ \
| | | | | * | | | | Add 'system' to update_verifier's gidTianjie Xu2017-04-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This addresses the denial to /dev/cpuset/tasks: update_verifier: type=1400 audit(0.0:377): avc: denied { dac_override } for capability=1 scontext=u:r:update_verifier:s0 tcontext=u:r:update_verifier:s0 tclass=capability permissive=1 update_verifier: type=1400 audit(0.0:378): avc: granted { write } for name="tasks" dev="cgroup" ino=5 scontext=u:r:update_verifier:s0 tcontext=u:object_r:cgroup:s0 tclass=file Bug: 37358323 Test: denial message gone after adding system group Change-Id: I66b4925295a13fbc1c6f26a1bb9bd2f9cebcec3d
* | | | | | | | | | Merge "init.rc: Remove sys.powerctl action" am: 9848209088 am: 9fcc7c8253 am: 6e575ccd0fTom Cherry2017-04-181-3/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c58e03ec23 Change-Id: I45f6b187da18fb6f23abfe91e7b19c9fbb7bd297
| * | | | | | | | | Merge "init.rc: Remove sys.powerctl action" am: 9848209088 am: 9fcc7c8253Tom Cherry2017-04-181-3/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6e575ccd0f Change-Id: Iec1eb05ea5ec85c035d6ae7e232699ab3a6f6878
| | * | | | | | | | Merge "init.rc: Remove sys.powerctl action" am: 9848209088Tom Cherry2017-04-181-3/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9fcc7c8253 Change-Id: I76a7548643752b7c8e3b0d959843969cddd14e7e
| | | * | | | | | | Merge "init.rc: Remove sys.powerctl action"Tom Cherry2017-04-181-3/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9848209088 Change-Id: I8ca8866c43e6c8edf1a4aa39ad0934b2f92eae0a
| | | | * | | | | | Merge "init.rc: Remove sys.powerctl action"Tom Cherry2017-04-181-3/+0
| | | | |\ \ \ \ \ \ | | | | | |_|_|/ / / | | | | |/| | | | |
| | | | | * | | | | init.rc: Remove sys.powerctl actionTom Cherry2017-04-181-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Init now handles this property change directly. Bug: 37209359 Bug: 37415192 Test: Init reboots normally. Change-Id: I9a4925897fb83bed180d12c871d9a71126fa4aa8
* | | | | | | | | | Merge "Fix the double free in verify_package_compatibility()." am: ce91df8293 am: dc388aab8b am: d87bccd567Tao Bao2017-04-180-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 478c173598 Change-Id: I0fa5341a7d9f7e41c2356926617687a2e2c76ede
| * | | | | | | | | Merge "Fix the double free in verify_package_compatibility()." am: ce91df8293 am: dc388aab8bTao Bao2017-04-180-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d87bccd567 Change-Id: If0647f3e3e9479078e8152afef64e63f64eb2049
| | * | | | | | | | Merge "Fix the double free in verify_package_compatibility()." am: ce91df8293Tao Bao2017-04-181-1/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dc388aab8b Change-Id: I954027631743765ff3155a622a6618ac85056090
| | | * | | | | | | Merge "Fix the double free in verify_package_compatibility()."Tao Bao2017-04-181-1/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ce91df8293 Change-Id: I44f27412ad803b560a0ea317e7e0e2837e6fad39
| | | | * | | | | | Merge "Fix the double free in verify_package_compatibility()."Tao Bao2017-04-181-1/+0
| | | | |\ \ \ \ \ \
| | | | | * | | | | | Fix the double free in verify_package_compatibility().Tao Bao2017-04-181-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | """ void* cookie; std::unique_ptr<void, decltype(&EndIteration)> guard(cookie, EndIteration); ... EndIteration(cookie); """ The above pattern is buggy that frees 'cookie' twice. Bug: 37413730 Test: Build new recovery and adb sideload a previously crashed package that contains 'compatibility.zip'. Change-Id: I183c33827fb28a438ebaedda446e84cabe7cb92d (cherry picked from commit f978278995d02a58e311fe017bdbb2c3702dd3bc)
* | | | | | | | | | | Merge changes from topic 'libvintf' am: c1ca21a32d am: beb1cb1df5 am: 35849591a0 -s oursTao Bao2017-04-180-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 87206b3ca2 Change-Id: I486a89ed3c2a9f778fa25cfa13d413718363f488
| * | | | | | | | | | Merge changes from topic 'libvintf' am: c1ca21a32d am: beb1cb1df5Tao Bao2017-04-180-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 35849591a0 -s ours Change-Id: Ifc15ea6b3b293740073061f99702200c744fdbb9
| | * | | | | | | | | Merge changes from topic 'libvintf' am: c1ca21a32dTao Bao2017-04-186-5/+164
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: beb1cb1df5 Change-Id: I293d9e3b2820fe8c41e91032d7be525a7a9e4c38
| | | * | | | | | | | Merge changes from topic 'libvintf'Tao Bao2017-04-186-5/+164
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c1ca21a32d Change-Id: I8ba8fc5a7f403a554cf5c1f01b0ccd0b19848277
| | | | * | | | | | | Merge changes from topic 'libvintf'Tao Bao2017-04-186-5/+164
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Add the missing LOCAL_CFLAGS for librecovery. Verify the package compatibility with libvintf.
| | | | | * | | | | | Add the missing LOCAL_CFLAGS for librecovery.Tao Bao2017-04-181-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The -DAB_OTA_UDPATER part was missing when separating the librecovery module (commit 62e0bc7586077b3bde82759fb34b51b982cea20f). Bug: 37300957 Test: Build sailfish recovery image and sideload full OTA. Change-Id: Idd25662f6bc812c1aca95b096802f59b051f8d63 (cherry picked from commit 25dbe1717e3096ee59bfa4385cbcf80a972016a6)
| | | | | * | | | | | Verify the package compatibility with libvintf.Tao Bao2017-04-136-5/+159
| | | | | | |/ / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | verify_package_compatibility() is added to parse the compatibility entry (compatibility.zip) in a given OTA package. If entry is present, the information is sent to libvintf to check the compatibility. This CL doesn't actually call libvintf, since the API there is not available yet. Bug: 36597505 Test: Doesn't break the install with existing packages (i.e. w/o the compatibility entry). Test: recovery_component_test Change-Id: I3903ffa5f6ba33a5c0d761602ade6290c6752596 (cherry picked from commit 62e0bc7586077b3bde82759fb34b51b982cea20f)
* | | | | | | | | | Merge "libmounts: Remove two dead functions." am: 4854e77fd2 am: 7e031fdfe6 am: fdc5ac8051Tao Bao2017-04-182-21/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b27a039b9c Change-Id: I7305841f2058fd9c094b3e02757a61393031e1fe
| * | | | | | | | | Merge "libmounts: Remove two dead functions." am: 4854e77fd2 am: 7e031fdfe6Tao Bao2017-04-182-21/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fdc5ac8051 Change-Id: I5ce97d5ddf95f58812ca9949b73ca5355976e265
| | * | | | | | | | Merge "libmounts: Remove two dead functions." am: 4854e77fd2Tao Bao2017-04-182-21/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7e031fdfe6 Change-Id: Ie4336244e7d1343cd28ab0ea7a0b116138e9cf77
| | | * | | | | | | Merge "libmounts: Remove two dead functions."Tao Bao2017-04-182-21/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4854e77fd2 Change-Id: Iac3ba66cea9a551141ba7c2c97b8eae14b9ec881
| | | | * | | | | | Merge "libmounts: Remove two dead functions."Tao Bao2017-04-182-21/+0
| | | | |\ \ \ \ \ \ | | | | | |_|/ / / / | | | | |/| | | | |
| | | | | * | | | | libmounts: Remove two dead functions.Tao Bao2017-04-172-21/+0
| | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | find_mounted_volume_by_device() and remount_read_only() have no active users. And we don't have a code logic that requires these two functions. Test: mmma bootable/recovery Test: Code search shows no user. Change-Id: Ib11c2ba93ee087ea020c1337eb06686a6165f894
* | | | | | | | | Fix the double free in verify_package_compatibility(). am: f978278995Tao Bao2017-04-171-1/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7b781d9a40 Change-Id: I2053bb1754febb22dc20cde4fe6ebced45e16ad1
| * | | | | | | | Fix the double free in verify_package_compatibility().Tao Bao2017-04-171-1/+0
| |\ \ \ \ \ \ \ \ | | | |_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f978278995 Change-Id: I07547ecde6ad9cbbdd540ddc50e5273ead108e35
| | * | | | | | | Fix the double free in verify_package_compatibility().Tao Bao2017-04-171-1/+0
| | | |_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | """ void* cookie; std::unique_ptr<void, decltype(&EndIteration)> guard(cookie, EndIteration); ... EndIteration(cookie); """ The above pattern is buggy that frees 'cookie' twice. Bug: 37413730 Test: Build new recovery and adb sideload a previously crashed package that contains 'compatibility.zip'. Change-Id: I183c33827fb28a438ebaedda446e84cabe7cb92d
* | | | | | | | Merge "minadbd: switch adb_thread_create to std::thread." am: d3d91e5595 am: 0836159ce1 am: 572b7ba1bcJosh Gao2017-04-141-27/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 91eeb9b527 Change-Id: Id0efeada4af9a33b64f7a34f2c36c65a2bed01df
| * | | | | | | Merge "minadbd: switch adb_thread_create to std::thread." am: d3d91e5595 am: 0836159ce1Josh Gao2017-04-141-27/+3
| |\ \ \ \ \ \ \ | | | |/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 572b7ba1bc Change-Id: I23651b378a75ee352ffb895b78be4129d259fc00
| | * | | | | | Merge "minadbd: switch adb_thread_create to std::thread." am: d3d91e5595Josh Gao2017-04-141-27/+3
| | |\ \ \ \ \ \ | | | | |/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0836159ce1 Change-Id: Ic6f031298f1f5bf189baf030d225baa67f5c46ca
| | | * | | | | Merge "minadbd: switch adb_thread_create to std::thread."Josh Gao2017-04-141-27/+3
| | | |\ \ \ \ \ | | | | | |/ / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | am: d3d91e5595 Change-Id: If7c9c8cf8d2d8c93c521d3426c55be9068c817cc
| | | | * | | | Merge "minadbd: switch adb_thread_create to std::thread."Josh Gao2017-04-141-27/+3
| | | | |\ \ \ \ | | | | | |_|/ / | | | | |/| | |
| | | | | * | | minadbd: switch adb_thread_create to std::thread.Josh Gao2017-04-131-27/+3
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: treehugger Change-Id: I7edcb13eb1fc6d4f36f5a764a1b647fbf9cd063e
* | | | | | | Add the missing LOCAL_CFLAGS for librecovery. am: 25dbe1717eTao Bao2017-04-131-0/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b145e43a08 Change-Id: I3c3e3a89e832477b9d6237b373ebf54ae55d6397
| * | | | | | Add the missing LOCAL_CFLAGS for librecovery.Tao Bao2017-04-131-0/+5
| |\ \ \ \ \ \ | | | |_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | am: 25dbe1717e Change-Id: Ie69a29ae06c2f5081b0532cbc6c9c32898187bec
| | * | | | | Add the missing LOCAL_CFLAGS for librecovery.Tao Bao2017-04-131-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The -DAB_OTA_UDPATER part was missing when separating the librecovery module (commit 62e0bc7586077b3bde82759fb34b51b982cea20f). Bug: 37300957 Test: Build sailfish recovery image and sideload full OTA. Change-Id: Idd25662f6bc812c1aca95b096802f59b051f8d63
* | | | | | | Verify the package compatibility with libvintf. am: 62e0bc7586Tao Bao2017-04-136-5/+159
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 33ebf7bea4 Change-Id: I9799279177b4b0c98b6a198a7544da224cda72b0
| * | | | | | Verify the package compatibility with libvintf.Tao Bao2017-04-136-5/+159
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 62e0bc7586 Change-Id: I35383abfd52766070df0de00013ec743dea190c7
| | * | | | | Verify the package compatibility with libvintf.Tao Bao2017-04-126-5/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | verify_package_compatibility() is added to parse the compatibility entry (compatibility.zip) in a given OTA package. If entry is present, the information is sent to libvintf to check the compatibility. This CL doesn't actually call libvintf, since the API there is not available yet. Bug: 36597505 Test: Doesn't break the install with existing packages (i.e. w/o the compatibility entry). Test: recovery_component_test Change-Id: I3903ffa5f6ba33a5c0d761602ade6290c6752596
* | | | | | | Merge "Protect filename_cache with lock in ota fault" am: 1b28a27c33 am: 461188865b am: 41bdd91780Tianjie Xu2017-04-112-3/+22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 57870ade10 Change-Id: I03b5a79c441e31bcf9e2c85b814be99ab10d04eb
| * | | | | | Merge "Protect filename_cache with lock in ota fault" am: 1b28a27c33 am: 461188865bTianjie Xu2017-04-112-3/+22
| |\ \ \ \ \ \ | | | |/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | am: 41bdd91780 Change-Id: I04cbfbe5268bb0decaa3c84d815914ac4dcfa80f
| | * | | | | Merge "Protect filename_cache with lock in ota fault" am: 1b28a27c33Tianjie Xu2017-04-112-3/+22
| | |\ \ \ \ \ | | | | |/ / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | am: 461188865b Change-Id: I07ff3c134ebca9738a7f7d725ec1c39941047944
| | | * | | | Merge "Protect filename_cache with lock in ota fault"Tianjie Xu2017-04-112-3/+22
| | | |\ \ \ \ | | | | | |/ / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | am: 1b28a27c33 Change-Id: Ie5ed472ddb83f4101b54e74d74a550a0cc5237da
| | | | * | | Merge "Protect filename_cache with lock in ota fault"Tianjie Xu2017-04-112-3/+22
| | | | |\ \ \
| | | | | * | | Protect filename_cache with lock in ota faultTianjie Xu2017-04-112-3/+22
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 33173924 Test: Apply a successfully update on bullhead Change-Id: I28cc356e216a3e957b5533c338ee6bc3c0920222
* | | | | | | Merge "Abort the update if there's not enough new data" am: b4b0c49c48 am: bc66528cb9 am: 955c5ebeceTianjie Xu2017-04-102-4/+92
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3bd7aaf871 Change-Id: I015ba8d71c6aea95647b01b4c61a7c28d153fbda
| * | | | | | Merge "Abort the update if there's not enough new data" am: b4b0c49c48 am: bc66528cb9Tianjie Xu2017-04-102-4/+92
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 955c5ebece Change-Id: I65b6699cc653192b3b8cbcb88093abd1a0e44ba1
| | * | | | | Merge "Abort the update if there's not enough new data" am: b4b0c49c48Tianjie Xu2017-04-102-4/+92
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bc66528cb9 Change-Id: If62e8d2ea8740efb81adfa609ec1544b7563ba4c
| | | * | | | Merge "Abort the update if there's not enough new data"Tianjie Xu2017-04-102-4/+92
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b4b0c49c48 Change-Id: Id2eece5eabd369e0de5b06fc3d5a953a78ef563f
| | | | * | | Merge "Abort the update if there's not enough new data"Tianjie Xu2017-04-102-4/+92
| | | | |\ \ \
| | | | | * | | Abort the update if there's not enough new dataTianjie Xu2017-04-082-4/+92
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now the update stuck in a deadlock if there's less new data than expection. Add some checkers and abort the update if such case happens. Also add a corresponding test. Bug: 36787146 Test: update aborts correctly on bullhead && recovery_component_test passes Change-Id: I914e4a2a4cf157b99ef2fc65bd21c6981e38ca47
* | | | | | | Merge "tests: Use get_bootloader_message_blk_device() to find /misc." am: 3cd630a5a8 am: cc630bdde1 am: f25cd871ccTao Bao2017-04-053-49/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8ce8affee8 Change-Id: I6501442dc37ef8db52a0bcd75c0475636f157d52
| * | | | | | Merge "tests: Use get_bootloader_message_blk_device() to find /misc." am: 3cd630a5a8 am: cc630bdde1Tao Bao2017-04-053-49/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f25cd871cc Change-Id: I7ee75869ea3b80548c25e5f96d0906c1e8d88862
| | * | | | | Merge "tests: Use get_bootloader_message_blk_device() to find /misc." am: 3cd630a5a8Tao Bao2017-04-053-49/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cc630bdde1 Change-Id: Ib6a8a360e1854096c4d77bcbc99ea7e2dc18d5de
| | | * | | | Merge "tests: Use get_bootloader_message_blk_device() to find /misc."Tao Bao2017-04-053-49/+4
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3cd630a5a8 Change-Id: Ia5b13eef57e82407e0043579267f1c809fee692a
| | | | * | | Merge "tests: Use get_bootloader_message_blk_device() to find /misc."Tao Bao2017-04-053-49/+4
| | | | |\ \ \
| | | | | * | | tests: Use get_bootloader_message_blk_device() to find /misc.Tao Bao2017-04-053-49/+4
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit fb00d82f32446804f7149bc6846dcc580cf0db1d has added get_bootloader_message_blk_device() as an API, switch the tests-local implementation to it. Test: recovery_component_test on angler. Test: recovery_component_test on a local build that doesn't have /misc. Change-Id: I4f5f542cb9ef58292c587a677da73d8822db7262
* | | | | | | Merge "Boot control HAL based on the A/B headers." am: b5fca37976 am: df141b9381 am: c14d0728a7Alex Deymo2017-04-055-0/+448
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c2e3f0e02e Change-Id: I13c19a44cae9356f978c0294016de85312b14c83
| * | | | | | Merge "Boot control HAL based on the A/B headers." am: b5fca37976 am: df141b9381Alex Deymo2017-04-055-0/+448
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c14d0728a7 Change-Id: I9326688728bff043a0accabb8ce55a9ce3b51d61
| | * | | | | Merge "Boot control HAL based on the A/B headers." am: b5fca37976Alex Deymo2017-04-055-0/+448
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: df141b9381 Change-Id: I5e16931621728122fc265d8e6c1c904227de2385
| | | * | | | Merge "Boot control HAL based on the A/B headers."Alex Deymo2017-04-055-0/+448
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b5fca37976 Change-Id: I6ede3c9c4b0f173baa40bb061ce01ecc6f77b73e
| | | | * | | Merge "Boot control HAL based on the A/B headers."Alex Deymo2017-04-055-0/+448
| | | | |\ \ \
| | | | | * | | Boot control HAL based on the A/B headers.Alex Deymo2017-04-035-0/+448
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The added bootctrl.bcb module implement the legacy interface for the bootctrl HAL based on the Boot Control Block (BCB) and the headers already specified in the booloader_message library. This serves as a reference implementation of the boot_control HAL. Bug: 32707546 Test: Tested internally that a device can use this HAL to flip slots and recovery from a /misc wipe. Change-Id: Ic02e5aaf4de7d0a1780eac4e8705dae20d0b3e10
* | | | | | | | Merge "Change the internal representation in RangeSet." am: 7ffa8be41d am: 2e12242b7a am: 7f4e5d55f4Tao Bao2017-04-053-239/+318
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b126a2cd9a Change-Id: Iabb1641aec17d535d740ae1275351e7befdf1432
| * | | | | | | Merge "Change the internal representation in RangeSet." am: 7ffa8be41d am: 2e12242b7aTao Bao2017-04-043-239/+318
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7f4e5d55f4 Change-Id: Ie48c858013808b1ccbe19b68e236b6bf18471da8
| | * | | | | | Merge "Change the internal representation in RangeSet." am: 7ffa8be41dTao Bao2017-04-043-239/+318
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2e12242b7a Change-Id: I126ee51f8c346a72f64fc270f1ac2e38caa5a8d8
| | | * | | | | Merge "Change the internal representation in RangeSet."Tao Bao2017-04-043-239/+318
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7ffa8be41d Change-Id: Ic7e82fd8b60f93fb5db4f0029d5f63507080b538
| | | | * | | | Merge "Change the internal representation in RangeSet."Tao Bao2017-04-043-239/+318
| | | |/| | | |
| | | | * | | | Change the internal representation in RangeSet.Tao Bao2017-04-033-239/+318
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL makes the following changes to RangeSet: - Uses std::pair<size_t, size_t> to represent a Range; - Uses std::vector<Range> to represent a RangeSet; - Provides const iterators (forward and reverse); - Provides const accessor; - 'blocks()' returns the number of blocks (formerly 'size'); - 'size()' returns the number of Range's (formerly 'count'). Test: recovery_unit_test Test: Apply an incremental update with the new updater. Change-Id: Ia1fbb343370a152e1f7aa050cf914c2da09b1396
* | | | | | | Merge "update_verifier: correct group in rc file" into oc-dev am: 5d9fb40ef7Tom Cherry2017-04-040-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8f0b4bd117 Change-Id: I5f05beffb2eff49419fa181871de068277b81e52
| * | | | | | Merge "update_verifier: correct group in rc file" into oc-devTom Cherry2017-04-040-0/+0
| |\ \ \ \ \ \ | | | |_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | am: 5d9fb40ef7 Change-Id: I8a063b50828403abbd787cc162e8a6f7cfd2bafd
| | * | | | | Merge "update_verifier: correct group in rc file" into oc-devTreeHugger Robot2017-04-042-3/+3
| | |\ \ \ \ \
| | | * | | | | update_verifier: correct group in rc fileTom Cherry2017-04-042-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update_verifier should be in the cache group, not 'class'. Also use PLOG instead of LOG if care_map.txt cannot be opened. Bug: 36818743 Test: boot sailfish Test: fake OTA on sailfish and verify update_verifier reads care_package (cherry picked from commit 3a8002f8c0382894b65ea3cece784287a75c7881) Change-Id: I7e4cccd457ee84054164077c81d04ad7cb394c7a
* | | | | | | | update_verifier: tweak priority of update_verifier for quick boot am: 98beba314bWei Wang2017-04-040-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ffa4c26c76 Change-Id: I28be0315afaf5b7e3aa406f31a7b4525a62d327b
| * | | | | | | update_verifier: tweak priority of update_verifier for quick bootWei Wang2017-04-040-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 98beba314b Change-Id: I54f6186f731986832e05b49f8185d0ed820b32fc
| | * | | | | | update_verifier: tweak priority of update_verifier for quick bootWei Wang2017-04-041-2/+2
| | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Highest ioprio is 0 for CFQ and we should run update_verifier with that. Tested on device and showing boottime decreased. Bug: 36511808 Bug: 36102163 Test: Boot marlin Change-Id: Iddd925951d976e21014b61e5590bcdae3cea8470 (cherry picked from commit a015cd1d7a3af5d9c06622e00be47fee52ba4b02)
* | | | | | | Merge "update_verifier: correct group in rc file" am: 310fa65c02 am: 2717c28e77 am: bec8264c6fTom Cherry2017-04-042-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 93928e788f Change-Id: I7aef8b4e330bc4d0e49b3992704a214b313773ed
| * | | | | | Merge "update_verifier: correct group in rc file" am: 310fa65c02 am: 2717c28e77Tom Cherry2017-04-042-3/+3
| |\ \ \ \ \ \ | | | |/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | am: bec8264c6f Change-Id: Ifc3baa35b8eba56eec9d014b98cb750597911629
| | * | | | | Merge "update_verifier: correct group in rc file" am: 310fa65c02Tom Cherry2017-04-042-3/+3
| | |\ \ \ \ \ | | | | |/ / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | am: 2717c28e77 Change-Id: I1f4f5330857098875addea53875f045003459b33
| | | * | | | Merge "update_verifier: correct group in rc file"Tom Cherry2017-04-042-3/+3
| | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 310fa65c02 Change-Id: I66e145f77ab1543f91a2b666f6bd4f4287b61292
| | | | * \ \ \ Merge "update_verifier: correct group in rc file"Treehugger Robot2017-04-042-3/+3
| | | | |\ \ \ \
| | | | | * | | | update_verifier: correct group in rc fileTom Cherry2017-04-042-3/+3
| | | | | | |/ / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update_verifier should be in the cache group, not 'class'. Also use PLOG instead of LOG if care_map.txt cannot be opened. Bug: 36818743 Test: boot sailfish Test: fake OTA on sailfish and verify update_verifier reads care_package Change-Id: I0ec844cac5ef5c63b18ebee90160854fd84ee829
* | | | | | | | Merge "update_verifier: tweak priority of update_verifier for quick boot" am: a6ea26987d am: 56e9b9cc26 am: 8ed4fd4b69Wei Wang2017-04-041-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a3dbdd8510 Change-Id: Id3a74248bd247d73f9b7e5b1ab64185a37e96a2b
| * | | | | | | Merge "update_verifier: tweak priority of update_verifier for quick boot" am: a6ea26987d am: 56e9b9cc26Wei Wang2017-04-041-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8ed4fd4b69 Change-Id: I972fa8dc3e12d56b4e59a70e91be9c14d133881e
| | * | | | | | Merge "update_verifier: tweak priority of update_verifier for quick boot" am: a6ea26987dWei Wang2017-04-041-2/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 56e9b9cc26 Change-Id: Id664f6e38c53ada64365e7ce296de2a2832d179b
| | | * | | | | Merge "update_verifier: tweak priority of update_verifier for quick boot"Wei Wang2017-04-041-2/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a6ea26987d Change-Id: I19d4e2680f731d78a22f595a049cb079f1531516
| | | | * | | | Merge "update_verifier: tweak priority of update_verifier for quick boot"Treehugger Robot2017-04-041-2/+2
| | | | |\ \ \ \ | | | | | |/ / / | | | | |/| | |
| | | | | * | | update_verifier: tweak priority of update_verifier for quick bootWei Wang2017-04-031-2/+2
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Highest ioprio is 0 for CFQ and we should run update_verifier with that. Tested on device and showing boottime decreased. Bug: 36511808 Bug: 36102163 Test: Boot marlin Change-Id: Iddd925951d976e21014b61e5590bcdae3cea8470
* | | | | | | Merge "applypatch: Remove duplicate test files." am: b6609f8895 am: 1f38a9b96e am: 0f72cf5403Tao Bao2017-04-035-468/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f69d320862 Change-Id: If80eb66a1410f8d8b8ac25d4e9263f6bda32df1f
| * | | | | | Merge "applypatch: Remove duplicate test files." am: b6609f8895 am: 1f38a9b96eTao Bao2017-04-035-468/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0f72cf5403 Change-Id: Ied3603b0c00832d0b9e8eb90820783b0708ea48d
| | * | | | | Merge "applypatch: Remove duplicate test files." am: b6609f8895Tao Bao2017-04-035-468/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1f38a9b96e Change-Id: I07005e37314f65775da6e9d6178652c624fc6379
| | | * | | | Merge "applypatch: Remove duplicate test files."Tao Bao2017-04-035-468/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b6609f8895 Change-Id: I725317517485f5332cf4ebd326deb027bfc397e8
| | | | * | | Merge "applypatch: Remove duplicate test files."Tao Bao2017-04-035-468/+0
| | | | |\ \ \
| | | | | * | | applypatch: Remove duplicate test files.Tao Bao2017-04-025-468/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CL in commit b8a693bbc73808924f4be8c4d47bbc4da0647e3a has ported the tests to gtest-based recovery_component_tests. Test: N/A Change-Id: I485fa11413df68a11416d4a9f91f090f302bcfc0
* | | | | | | | Merge "updater: Keep the parsed parameters in std::unique_ptr." am: c80dd4ade2 am: a982e53a6e am: 78e277cd42Tao Bao2017-04-031-160/+157
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 008eb6dfd8 Change-Id: I26cafc18dc0ee74c6e548522a63c7319861bc7c8
| * | | | | | | Merge "updater: Keep the parsed parameters in std::unique_ptr." am: c80dd4ade2 am: a982e53a6eTao Bao2017-04-031-160/+157
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 78e277cd42 Change-Id: I551d0fd22cb1848ba009f35edbf15811e959a81a
| | * | | | | | Merge "updater: Keep the parsed parameters in std::unique_ptr." am: c80dd4ade2Tao Bao2017-04-031-160/+157
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a982e53a6e Change-Id: Ib17659287aed12399b226236144d1f1561b05815
| | | * | | | | Merge "updater: Keep the parsed parameters in std::unique_ptr."Tao Bao2017-04-031-160/+157
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c80dd4ade2 Change-Id: I1387f9134a9bfeada23120b64544cdd7630f25e1
| | | | * | | | Merge "updater: Keep the parsed parameters in std::unique_ptr."Tao Bao2017-04-031-160/+157
| | | | |\ \ \ \
| | | | | * | | | updater: Keep the parsed parameters in std::unique_ptr.Tao Bao2017-03-311-160/+157
| | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't need to take raw pointers out of the parsed arguments. std::unique_ptr handles the dereferencing automatically. Test: mmma bootable/recovery Change-Id: I1beabf6e04dc350bdad7b36cee5fb345c82b28f2
* | | | | | | | Merge "Use regular check for partition name instead of CHECK()" am: 76cb4eeda6 am: cd66e52573 am: 705a4d72c8 am: 8dcbd1b399Tianjie Xu2017-04-020-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8737e8493c Change-Id: I94befcc1256828a31740da18d533934c3eeb10ac
| * | | | | | | Merge "Use regular check for partition name instead of CHECK()" am: 76cb4eeda6 am: cd66e52573 am: 705a4d72c8Tianjie Xu2017-04-020-0/+0
| |\ \ \ \ \ \ \ | | | |_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8dcbd1b399 Change-Id: If34784728cdb15d0ffbcd574d8032eb2715b2262
| | * | | | | | Merge "Use regular check for partition name instead of CHECK()" am: 76cb4eeda6 am: cd66e52573Tianjie Xu2017-04-021-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 705a4d72c8 Change-Id: Ie1f8e1c6ab9fddf1b355287f0c4e5fc0b2631441 (cherry picked from commit 2e797d9905df9ca3a6068a23f6ad6669b823657d)
* | | | | | | | Merge "Update_verifier should read blocks in EIO mode" am: 21d481c81e am: 89559e3cfe am: 81f5b04df2 am: 253e223799 -s oursTianjie Xu2017-04-020-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6f910585b3 Change-Id: I05ad553e9cc234a181df8597a835611820527939
| * | | | | | | Merge "Update_verifier should read blocks in EIO mode" am: 21d481c81e am: 89559e3cfe am: 81f5b04df2Tianjie Xu2017-04-020-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 253e223799 -s ours Change-Id: Ie57f78309f2937f2d1212f0eadf72418cf43195d
| | * | | | | | Merge "Update_verifier should read blocks in EIO mode" am: 21d481c81e am: 89559e3cfeTianjie Xu2017-04-021-26/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 81f5b04df2 Change-Id: I20f459c3403ec0e120769bd805b9508dbe11b989 (cherry picked from commit e3ea825181d073eb240cdedaf4aa412647b495fd)
* | | | | | | | Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 474dc18479 -s ours am: bdf8a3106c -s oursBill Yi2017-04-020-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 807adcb71e -s ours Change-Id: Ie7dae1fb734dcc8d18edf0e057ba460e86d67233
| * | | | | | | Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 474dc18479 -s oursBill Yi2017-04-020-0/+0
| |\ \ \ \ \ \ \ | | | |/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bdf8a3106c -s ours Change-Id: I119864fe230b48d92caadc05ee69c008c7a35657
| | * | | | | | Merge "Import translations. DO NOT MERGE" into stage-aosp-masterBill Yi2017-04-020-0/+0
| | |\ \ \ \ \ \ | | | | |/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 474dc18479 -s ours Change-Id: I173829304cd93380fb3dedfd43d8b4774686d8a9
| | | * | | | | Merge "Import translations. DO NOT MERGE" into stage-aosp-masterTreeHugger Robot2017-04-0278-312/+390
| | | |\ \ \ \ \
| | | | * | | | | Import translations. DO NOT MERGEBill Yi2017-04-0278-312/+390
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 36832302 Change-Id: I1bfbb1791a4d7925491d7574c08994f6e7ff640d
* | | | | | | | | Merge "Use regular check for partition name instead of CHECK()" am: 76cb4eeda6 am: cd66e52573 am: 705a4d72c8Tianjie Xu2017-04-021-3/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2e797d9905 Change-Id: Ib81077e24225a972edbb9a90b86c376608e56cba
| * | | | | | | | Merge "Use regular check for partition name instead of CHECK()" am: 76cb4eeda6 am: cd66e52573Tianjie Xu2017-04-021-3/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 705a4d72c8 Change-Id: Ie1f8e1c6ab9fddf1b355287f0c4e5fc0b2631441
| | * | | | | | | Merge "Use regular check for partition name instead of CHECK()" am: 76cb4eeda6Tianjie Xu2017-04-021-3/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cd66e52573 Change-Id: I1e2df685b2e5fbf3b1affc949faf1cfc0348ca9e
| | | * | | | | | Merge "Use regular check for partition name instead of CHECK()"Tianjie Xu2017-04-021-3/+4
| | | |\ \ \ \ \ \ | | | | |/ / / / / | | | |/| | / / / | | | | | |/ / / | | | | |/| | | | | | | | | | | am: 76cb4eeda6 Change-Id: Idd4686a7d30f08baa92557a0bcc872e95f867ba3
| | | | * | | | Merge "Use regular check for partition name instead of CHECK()"Tianjie Xu2017-04-021-3/+4
| | | | |\ \ \ \
| | | | | * | | | Use regular check for partition name instead of CHECK()Tianjie Xu2017-04-011-3/+4
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 36260064 Test: Device reboots for invalid care_map. Change-Id: Id614f0d118fc2b9d9abf24918aa4b4324f4c94e1
* | | | | | | | Merge "Update_verifier should read blocks in EIO mode" am: 21d481c81e am: 89559e3cfe am: 81f5b04df2Tianjie Xu2017-04-011-26/+33
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e3ea825181 Change-Id: I80680f929ad512d337ff1cec03fc787fae0f3270
| * | | | | | | Merge "Update_verifier should read blocks in EIO mode" am: 21d481c81e am: 89559e3cfeTianjie Xu2017-04-011-26/+33
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 81f5b04df2 Change-Id: I20f459c3403ec0e120769bd805b9508dbe11b989
| | * | | | | | Merge "Update_verifier should read blocks in EIO mode" am: 21d481c81eTianjie Xu2017-04-011-26/+33
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 89559e3cfe Change-Id: Ia129cd76c9ab62d34d79d39046ceab3e4778e9bc
| | | * | | | | Merge "Update_verifier should read blocks in EIO mode"Tianjie Xu2017-04-011-26/+33
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 21d481c81e Change-Id: Ib564e410f614ef516784eeaf9df24f33e4a07d8c
| | | | * | | | Merge "Update_verifier should read blocks in EIO mode"Tianjie Xu2017-04-011-26/+33
| | | | |\ \ \ \ | | | | | |_|/ / | | | | |/| | |
| | | | | * | | Update_verifier should read blocks in EIO modeTianjie Xu2017-03-311-26/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update_verifier will reboot the device if it fails to read some blocks on the care_map when veritymode=eio. Also make some partition name changes to match the care_map.txt. Test: Update_verifier reboots the device after read failures in eio mode. Change-Id: Icf68e6151dee72f626a9ab72946100cf482a4e6c
* | | | | | | | Merge "Move parse_range() and range_overlaps() into RangeSet." am: 8fab8f97b7 am: 74c4da4c01 am: 3cf1113021Tao Bao2017-03-314-110/+199
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1980075fa9 Change-Id: Ife54e7b7235c4f81c8f01d8c5554cd278b350c6e
| * | | | | | | Merge "Move parse_range() and range_overlaps() into RangeSet." am: 8fab8f97b7 am: 74c4da4c01Tao Bao2017-03-314-110/+199
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3cf1113021 Change-Id: I297d6d7d5bb266cddc11e76216e064ea3ad1529e
| | * | | | | | Merge "Move parse_range() and range_overlaps() into RangeSet." am: 8fab8f97b7Tao Bao2017-03-314-110/+199
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 74c4da4c01 Change-Id: I4675097d3b6938eef80db469e367e29296a69756
| | | * | | | | Merge "Move parse_range() and range_overlaps() into RangeSet."Tao Bao2017-03-314-110/+199
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8fab8f97b7 Change-Id: Ibb85242f50b14baea227661443d105e1a68e9504
| | | | * | | | Merge "Move parse_range() and range_overlaps() into RangeSet."Tao Bao2017-03-314-110/+199
| | | | |\ \ \ \
| | | | | * | | | Move parse_range() and range_overlaps() into RangeSet.Tao Bao2017-03-314-110/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also move RangeSet into a header file to make it testable, and add unit tests. In RangeSet::Parse() (the former parse_range()), use libbase logging to do assertions. This has the same effect as the previous exit(EXIT_FAILURE) to terminate the updater process and abort an update. The difference lies in the exit status code (i.e. WEXITSTATUS(status) in install.cpp), which changes from 1 (i.e. EXIT_FAILURE) to 0. Test: recovery_unit_test Test: Apply an incremental update with the new updater. Change-Id: Ie8393c78b0d8ae0fd5f0ca0646d871308d71fff0
* | | | | | | | | Merge "Log temperature during OTA update" am: bc2c51a97f am: 1d7e500bfc am: 556ca4e301 am: d8df5485ebTianjie Xu2017-03-310-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 01ce8b0f61 Change-Id: I9a258472b788818aca9373adc342363a8b440463
| * | | | | | | | Merge "Log temperature during OTA update" am: bc2c51a97f am: 1d7e500bfc am: 556ca4e301Tianjie Xu2017-03-310-0/+0
| |\ \ \ \ \ \ \ \ | | | |_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d8df5485eb Change-Id: Ibbe3bef3e31c7950f0b4d956fad97f6e426bbcaf
| | * | | | | | | Merge "Log temperature during OTA update" am: bc2c51a97f am: 1d7e500bfcTianjie Xu2017-03-314-9/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 556ca4e301 Change-Id: Ib75bdbee801b1caa2ff7b94b174feae1f7d85688 (cherry picked from commit 6ccd0b780fe0953bcea4c538fe2c0a1f2b9f5af2)
* | | | | | | | | recovery: switch to fs_mgr_read_fstab_default() am: 930247241fBowgo Tsai2017-03-310-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 735481b7c9 Change-Id: I676028ff93510edac68ca4d36211966c9449bec9
| * | | | | | | | recovery: switch to fs_mgr_read_fstab_default()Bowgo Tsai2017-03-310-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 930247241f Change-Id: I84bfd3d3b3af61a47e2cc2b0de3d102cffde1db0
| | * | | | | | | recovery: switch to fs_mgr_read_fstab_default()Bowgo Tsai2017-03-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fs_mgr_read_fstab_default() is now aware of recovery mode so it's ok to switch to this new API. Bug: 35811655 Test: recovery boot sailfish Change-Id: I1025b606fd96e74a893ae99cefc1da01e4b27a23 (cherry picked from commit 84a06485a94f6d2bfe78dbe8b69c517e542a0ce9)
* | | | | | | | | Merge "recovery: switch to fs_mgr_read_fstab_default()" am: d0c7ae1fa6 am: 0e728806f3 am: 18cc5b330aBowgo Tsai2017-03-311-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bdb2be7ad1 Change-Id: I7b1d67bb8ae9f214377a290a7122e2a22f3262e0
| * | | | | | | | Merge "recovery: switch to fs_mgr_read_fstab_default()" am: d0c7ae1fa6 am: 0e728806f3Bowgo Tsai2017-03-311-2/+2
| |\ \ \ \ \ \ \ \ | | | |/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 18cc5b330a Change-Id: Ib843a22b68ae43daa60be322f6b29191adac312b
| | * | | | | | | Merge "recovery: switch to fs_mgr_read_fstab_default()" am: d0c7ae1fa6Bowgo Tsai2017-03-311-2/+2
| | |\ \ \ \ \ \ \ | | | | |/ / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0e728806f3 Change-Id: I5d8072efbefa8e3dea693b8e4367fcb7063c523b
| | | * | | | | | Merge "recovery: switch to fs_mgr_read_fstab_default()"Bowgo Tsai2017-03-311-2/+2
| | | |\ \ \ \ \ \ | | | | | |/ / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d0c7ae1fa6 Change-Id: I2afb42ed6b87e3e8d8e8289eb99fa6198d1a7daf
| | | | * | | | | Merge "recovery: switch to fs_mgr_read_fstab_default()"Treehugger Robot2017-03-311-2/+2
| | | | |\ \ \ \ \ | | | | | |_|/ / / | | | | |/| | | |
| | | | | * | | | recovery: switch to fs_mgr_read_fstab_default()Bowgo Tsai2017-03-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fs_mgr_read_fstab_default() is now aware of recovery mode so it's ok to switch to this new API. Bug: 35811655 Test: recovery boot sailfish Change-Id: I1025b606fd96e74a893ae99cefc1da01e4b27a23
* | | | | | | | | Merge "updater: Move RangeSinkWrite into RangeSinkState." am: 65c065b4bb am: 7ccb4090d1 am: 8538fab040Tao Bao2017-03-311-164/+146
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4555745014 Change-Id: I9376c1905d7fa9dd83c225eeff8e63c752432d56
| * | | | | | | | Merge "updater: Move RangeSinkWrite into RangeSinkState." am: 65c065b4bb am: 7ccb4090d1Tao Bao2017-03-311-164/+146
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8538fab040 Change-Id: Ifcf5f181f02e4a6cd9debde4af50b63b040cd078
| | * | | | | | | Merge "updater: Move RangeSinkWrite into RangeSinkState." am: 65c065b4bbTao Bao2017-03-311-164/+146
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7ccb4090d1 Change-Id: I3656d90bf395850fe183f278eb809a7f150e57eb
| | | * | | | | | Merge "updater: Move RangeSinkWrite into RangeSinkState."Tao Bao2017-03-311-164/+146
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 65c065b4bb Change-Id: Ic58d5dc9343840feaf916fdeac556b4191e64dfe
| | | | * | | | | Merge "updater: Move RangeSinkWrite into RangeSinkState."Tao Bao2017-03-311-164/+146
| | | | |\ \ \ \ \
| | | | | * | | | | updater: Move RangeSinkWrite into RangeSinkState.Tao Bao2017-03-291-164/+146
| | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Then rename RangeSinkState to RangeSinkWriter. RangeSinkWriter reads data from the given FD, and writes them to the desination RangeSet. Test: Apply an incremental with the new updater. Change-Id: I5e3ab6fc082efa1726562c55b56e2d418fe4acaf
* | | | | | | | | Merge "updater: Don't append newline when calling uiPrint()." am: 58cb690eac am: 08224f745c am: f39093d968Tao Bao2017-03-302-9/+10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9b4a17f407 Change-Id: I9e8d78f433f8f2bcffe2af1b146e1df74e1b0869
| * | | | | | | | Merge "updater: Don't append newline when calling uiPrint()." am: 58cb690eac am: 08224f745cTao Bao2017-03-302-9/+10
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f39093d968 Change-Id: I6cc325656a95abd1f45e42b547e2e0289bfc632d
| | * | | | | | | Merge "updater: Don't append newline when calling uiPrint()." am: 58cb690eacTao Bao2017-03-302-9/+10
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 08224f745c Change-Id: I15e03a6cd11aa65e111db124b08fe567509256ab
| | | * | | | | | Merge "updater: Don't append newline when calling uiPrint()."Tao Bao2017-03-302-9/+10
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 58cb690eac Change-Id: Ib7f2356c3a519be52c65ebae179c24a138058b37
| | | | * | | | | Merge "updater: Don't append newline when calling uiPrint()."Tao Bao2017-03-302-9/+10
| | | | |\ \ \ \ \
| | | | | * | | | | updater: Don't append newline when calling uiPrint().Tao Bao2017-03-302-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LOG(INFO) already appends a newline. Don't print redundant newline. Test: No extra blank lines when calling ui_print(). And on-screen UI shows the same. Change-Id: I74e9a8504a7146a6cb3dae02fe2406d0dd54069b
* | | | | | | | | | Merge "tests: Remove LOCAL_ADDITIONAL_DEPENDENCIES." am: 3f0a3a2b1d am: b648a8781f am: 4d6f904a88Tao Bao2017-03-301-4/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 25546af375 Change-Id: Ibe08bac8d4197947db6535ea5900a30c416fe0c5
| * | | | | | | | | Merge "tests: Remove LOCAL_ADDITIONAL_DEPENDENCIES." am: 3f0a3a2b1d am: b648a8781fTao Bao2017-03-301-4/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4d6f904a88 Change-Id: Ib0e503efca67d3abcb964c5c9cc6bf6c60d0a0fc
| | * | | | | | | | Merge "tests: Remove LOCAL_ADDITIONAL_DEPENDENCIES." am: 3f0a3a2b1dTao Bao2017-03-301-4/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b648a8781f Change-Id: I37702cf53e98ee389c2defdea92d99e8596af41e
| | | * | | | | | | Merge "tests: Remove LOCAL_ADDITIONAL_DEPENDENCIES."Tao Bao2017-03-301-4/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3f0a3a2b1d Change-Id: I9bad302ba2f047362ac920e92f135098fe32cbeb
| | | | * | | | | | Merge "tests: Remove LOCAL_ADDITIONAL_DEPENDENCIES."Treehugger Robot2017-03-301-4/+0
| | | | |\ \ \ \ \ \ | | | | | |/ / / / / | | | | |/| | | | |
| | | | | * | | | | tests: Remove LOCAL_ADDITIONAL_DEPENDENCIES.Tao Bao2017-03-301-4/+0
| | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per the comment in build/make/core/base_rules.mk: Ninja has an implicit dependency on the command being run, and kati will regenerate the ninja manifest if any read makefile changes, so there is no need to have dependencies on makefiles. Test: mmma bootable/recovery Change-Id: I27b97df10d40f39ad966be70b33811175a665439
* | | | | | | | | Merge "Add test config to minadbd_test" am: df1a585504 am: b8f33fdf5f am: 57bb313b1eDan Shi2017-03-304-0/+60
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c0e6475f68 Change-Id: Iaba7e4e7e62b4e735fd5b71531a2a36bab11428d
| * | | | | | | | Merge "Add test config to minadbd_test" am: df1a585504 am: b8f33fdf5fDan Shi2017-03-304-0/+60
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 57bb313b1e Change-Id: I3e9aaedf23d1f3bfbeac9c7afee97993fa14422e
| | * | | | | | | Merge "Add test config to minadbd_test" am: df1a585504Dan Shi2017-03-304-0/+60
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b8f33fdf5f Change-Id: Ifa25165e3b03d49cfb4b5e6b0af14e1059837022
| | | * | | | | | Merge "Add test config to minadbd_test"Dan Shi2017-03-304-0/+60
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: df1a585504 Change-Id: Ib5a65fd6f8e300812cea9aeccf05e31363096a09
| | | | * | | | | Merge "Add test config to minadbd_test"Treehugger Robot2017-03-304-0/+60
| | | | |\ \ \ \ \
| | | | | * | | | | Add test config to minadbd_testDan Shi2017-03-294-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Design doc: Generalized Suites & the Unification of APCT & CTS Workflows Design/Roadmap https://docs.google.com/document/d/1eabK3srlBLouMiBMrNP3xJPiRRdcoCquNxC8gBWPvx8/edit#heading=h.78vup5eivwzo Details about test configs changes are tracked in doc https://docs.google.com/document/d/1EWUjJ7fjy8ge_Nk0YQbFdRp8DSHo3z6GU0R8jLgrAcw/edit# Bug: 35882476 Test: local test Change-Id: I51e1b410536469d254ae7a353bc61a7df06c8324
* | | | | | | | | | update_verifier: raise priority and ioprio and start with exec_start am: beaa39bc23Tom Cherry2017-03-300-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a76807930a Change-Id: I2a5d258804270aeb95fb7944acf1e00cc50acc3c
| * | | | | | | | | update_verifier: raise priority and ioprio and start with exec_startTom Cherry2017-03-300-0/+0
| |\ \ \ \ \ \ \ \ \ | | | |_|_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: beaa39bc23 Change-Id: I61da489612bc8e5becf94f535c826a26218924ba
| | * | | | | | | | update_verifier: raise priority and ioprio and start with exec_startTom Cherry2017-03-292-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Raise the priority and ioprio of update_verifier and launch with exec_start. This saves ~100ms of time before `class_start main` is executed. Bug: 36511808 Bug: 36102163 Test: Boot bullhead Test: Verify boottime decrease on sailfish Change-Id: I944a6c0d4368ead5b99171f49142da2523ed1bdd (cherry picked from commit 545317f4fb99efd4d2c32187328e617ad6f69980)
* | | | | | | | | | Merge "update_verifier: raise priority and ioprio and start with exec_start" am: 3a8919e813 am: 8fe39a28b0 am: e404f5d9c8Tom Cherry2017-03-292-0/+13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d81f28067d Change-Id: If7653a1c79cd95eda13cec8ac4b89fcf2707f8be
| * | | | | | | | | Merge "update_verifier: raise priority and ioprio and start with exec_start" am: 3a8919e813 am: 8fe39a28b0Tom Cherry2017-03-292-0/+13
| |\ \ \ \ \ \ \ \ \ | | | |/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e404f5d9c8 Change-Id: I30aa6fa463302a30af4bfb5a3fd7241fa45b12e5
| | * | | | | | | | Merge "update_verifier: raise priority and ioprio and start with exec_start" am: 3a8919e813Tom Cherry2017-03-292-0/+13
| | |\ \ \ \ \ \ \ \ | | | | |/ / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8fe39a28b0 Change-Id: I08ec1da1be30d8fa240785e0d0261d1279a646bc
| | | * | | | | | | Merge "update_verifier: raise priority and ioprio and start with exec_start"Tom Cherry2017-03-292-0/+13
| | | |\ \ \ \ \ \ \ | | | | | |/ / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3a8919e813 Change-Id: Ie61669fa42793d0e3620ba20720f1aed1735d49e
| | | | * | | | | | Merge "update_verifier: raise priority and ioprio and start with exec_start"Treehugger Robot2017-03-292-0/+13
| | | | |\ \ \ \ \ \ | | | | | |_|_|/ / / | | | | |/| | | | |
| | | | | * | | | | update_verifier: raise priority and ioprio and start with exec_startTom Cherry2017-03-292-0/+13
| | | | | | |_|/ / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Raise the priority and ioprio of update_verifier and launch with exec_start. This saves ~100ms of time before `class_start main` is executed. Bug: 36511808 Bug: 36102163 Test: Boot bullhead Test: Verify boottime decrease on sailfish Change-Id: I944a6c0d4368ead5b99171f49142da2523ed1bdd
* | | | | | | | | Merge "Log the error message when failing to mount/umount." am: 850f89f198 am: 23fe20fb6e am: cbc90e5c2cTao Bao2017-03-292-10/+22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6ac5c7c4d1 Change-Id: I9bc396aeeddf602d9de2ec6116e3aef97f559f1b
| * | | | | | | | Merge "Log the error message when failing to mount/umount." am: 850f89f198 am: 23fe20fb6eTao Bao2017-03-292-10/+22
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cbc90e5c2c Change-Id: Ief973b0d636ed77d22d3f349cbddb4bdd615f1f3
| | * | | | | | | Merge "Log the error message when failing to mount/umount." am: 850f89f198Tao Bao2017-03-292-10/+22
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 23fe20fb6e Change-Id: Ic9aa9f793ea2e13dc877d7c55e3c396e8cba455c
| | | * | | | | | Merge "Log the error message when failing to mount/umount."Tao Bao2017-03-292-10/+22
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 850f89f198 Change-Id: I5de062307d6a395035cada802fd8fe202418407b
| | | | * | | | | Merge "Log the error message when failing to mount/umount."Tao Bao2017-03-292-10/+22
| | | | |\ \ \ \ \
| | | | | * | | | | Log the error message when failing to mount/umount.Tao Bao2017-03-292-10/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: Observe the error messaage for a umount failure case. Bug: 36686818 Change-Id: I28e335c2df4454dd0192f95e3909599fcc9dc1c0
* | | | | | | | | | Fix the bad merge (duplicate tests).Tao Bao2017-03-291-45/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma bootable/recovery Change-Id: I909164fed84fb17a7e1cb2427cb88208a69dc052
* | | | | | | | | | resolve merge conflicts of 39ef2d7f to oc-dev-plus-aospTao Bao2017-03-291-0/+45
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8fdce9ab99 Change-Id: Ifcd2c3236d337216adabb5bb810befd33f05f44c
| * | | | | | | | | resolve merge conflicts of 39ef2d7f to oc-dev-plus-aospTao Bao2017-03-293-3/+46
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: I solemnly swear I tested this conflict resolution. Change-Id: I59d27cec1ef2c6befe824848cdc9ef3b0a0dc586
| | * | | | | | | | Merge "tests: Construct two bad packages at runtime for VerifierTest." am: 3f2d35522aTao Bao2017-03-293-3/+46
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 197e49d60c Change-Id: I65b0abc35d2d6044447099f534c894f86132045f
| | | * | | | | | | Merge "tests: Construct two bad packages at runtime for VerifierTest."Tao Bao2017-03-293-3/+46
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3f2d35522a Change-Id: I439b941da099c4b45853b12a9e0f2a190208e2d9
| | | | * | | | | | Merge "tests: Construct two bad packages at runtime for VerifierTest."Tao Bao2017-03-293-3/+46
| | | | |\ \ \ \ \ \
| | | | | * | | | | | tests: Construct two bad packages at runtime for VerifierTest.Tao Bao2017-03-283-3/+46
| | | | | | |/ / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For the BadPackage tests from VerifierTest: one alters the footer, and the other alters the metadata. Move the two tests to be based on otasigned_v3.zip (they're based on otasigned_v1.zip previously). Also construct the testdata files dynamically (to save the space and for better readability). Test: recovery_component_test Change-Id: I7604d563f8b4fa0c55fec8730c063384158e3abc
* | | | | | | | | | Merge "Add the missing sr-Latn into png files and rename the png locale header" am: 713d915636 am: dc235b5ab9 am: 5ec12126f0 am: 0a599567ceTianjie Xu2017-03-290-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6273c0673f Change-Id: I31e93f37b0afe0944c4bddabfe31c6fc7fa6dcdd
| * | | | | | | | | Merge "Add the missing sr-Latn into png files and rename the png locale header" am: 713d915636 am: dc235b5ab9 am: 5ec12126f0Tianjie Xu2017-03-290-0/+0
| |\ \ \ \ \ \ \ \ \ | | | |_|_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0a599567ce Change-Id: I56d4faab38ae65b43602637f2cb9c6a22fa6d9a4
| | * | | | | | | | Merge "Add the missing sr-Latn into png files and rename the png locale header" am: 713d915636 am: dc235b5ab9Tianjie Xu2017-03-2930-24/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5ec12126f0 Change-Id: Ia6b861c91958d3be23a4a7456d6d5d8e4a1607c8 (cherry picked from commit 9166f66eee883d6d6cc280a6c355e5528bb4a3f0)
* | | | | | | | | | Merge "tests: Add a test for --wipe_ab into UncryptTest." am: 7b0cda5b37 am: c6df7d2937 am: 62a4e5ca98Tao Bao2017-03-291-103/+82
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 20e4e73caa Change-Id: Ib58d2e7843c6cbe75695b83651e3dcd2f9d94f9a
| * | | | | | | | | Merge "tests: Add a test for --wipe_ab into UncryptTest." am: 7b0cda5b37 am: c6df7d2937Tao Bao2017-03-291-103/+82
| |\ \ \ \ \ \ \ \ \ | | | |/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 62a4e5ca98 Change-Id: I87b66da50364c0effdfdd5dbe8a7d0496152e68b
| | * | | | | | | | Merge "tests: Add a test for --wipe_ab into UncryptTest." am: 7b0cda5b37Tao Bao2017-03-291-103/+82
| | |\ \ \ \ \ \ \ \ | | | | |/ / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c6df7d2937 Change-Id: Iea518cbea5e64bd06475c472f88c6cc8c75602d6
| | | * | | | | | | Merge "tests: Add a test for --wipe_ab into UncryptTest."Tao Bao2017-03-291-103/+82
| | | |\ \ \ \ \ \ \ | | | | | |/ / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7b0cda5b37 Change-Id: Iadc316dd0503240b3d8bbdf30334c9da92ac238f
| | | | * | | | | | Merge "tests: Add a test for --wipe_ab into UncryptTest."Tao Bao2017-03-291-103/+82
| | | | |\ \ \ \ \ \
| | | | | * | | | | | tests: Add a test for --wipe_ab into UncryptTest.Tao Bao2017-03-281-103/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also factor out the common parts in {setup,clear}_bcb into a separate function. Test: recovery_component_test Change-Id: I7b95cced925c8135e020dcb791ca2425d4f28449
* | | | | | | | | | | Merge "Suppress the unused variable warning in parser.yy" am: b9b03a282b am: 05c111b90b am: 6835d52c7eTianjie Xu2017-03-281-0/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0868447714 Change-Id: Icdd7a149a5666866720266343095665fc5830229
| * | | | | | | | | | Merge "Suppress the unused variable warning in parser.yy" am: b9b03a282b am: 05c111b90bTianjie Xu2017-03-281-0/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6835d52c7e Change-Id: Ibb0bc1ccb3abf0a9ad82eea38b28e882a89e2f06
| | * | | | | | | | | Merge "Suppress the unused variable warning in parser.yy" am: b9b03a282bTianjie Xu2017-03-281-0/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 05c111b90b Change-Id: I111bdd2b72dd4ae04e7c6bcb020621fdc77915b7
| | | * | | | | | | | Merge "Suppress the unused variable warning in parser.yy"Tianjie Xu2017-03-281-0/+3
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b9b03a282b Change-Id: I722683e1a474180dc7bfd85d249e05aab66c8712
| | | | * | | | | | | Merge "Suppress the unused variable warning in parser.yy"Treehugger Robot2017-03-281-0/+3
| | | | |\ \ \ \ \ \ \
| | | | | * | | | | | | Suppress the unused variable warning in parser.yyTianjie Xu2017-03-281-0/+3
| | | | | | |_|/ / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The warning says: bootable/recovery/edify/parser.yy:123.3-9: warning: unused value: $1 Bug: 36678950 Test: mma Change-Id: Ic734c416a5a8f62fb5e516669102c1d2b4ad5083
* | | | | | | | | | | Merge "Log temperature during OTA update" am: bc2c51a97f am: 1d7e500bfc am: 556ca4e301Tianjie Xu2017-03-284-9/+159
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6ccd0b780f Change-Id: I506216f819950295d50a7d0d0310f7d537d59b60
| * | | | | | | | | | Merge "Log temperature during OTA update" am: bc2c51a97f am: 1d7e500bfcTianjie Xu2017-03-284-9/+159
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 556ca4e301 Change-Id: Ib75bdbee801b1caa2ff7b94b174feae1f7d85688
| | * | | | | | | | | Merge "Log temperature during OTA update" am: bc2c51a97fTianjie Xu2017-03-284-9/+159
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1d7e500bfc Change-Id: I44a64b7cf0054fcc4cea9b6124c3f6a089f268e1
| | | * | | | | | | | Merge "Log temperature during OTA update"Tianjie Xu2017-03-284-9/+159
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bc2c51a97f Change-Id: I7feda067a7e343868a7a1fef3a561afa9d14e77c
| | | | * | | | | | | Merge "Log temperature during OTA update"Tianjie Xu2017-03-284-9/+159
| | | | |\ \ \ \ \ \ \
| | | | | * | | | | | | Log temperature during OTA updateTianjie Xu2017-03-284-9/+159
| | | | | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Log the maximum temperature as well as the start/end temperature of an update to last_install. Check the temperature at the end of each block_image_update(verify). To get the maximum temp, we iterate through /sys/class/thermal/thermal_zone*/temp and find the maximum value present. Bug: 32518487 Test: temperature logs in last_install Change-Id: Iaf22a9fbc5b18611bbc5320ffea995417872e514
* | | | | | | | | | | Merge "tests: Construct two bad packages at runtime for VerifierTest."Tao Bao2017-03-283-3/+46
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | tests: Construct two bad packages at runtime for VerifierTest.Tao Bao2017-03-283-3/+46
| | |_|_|_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For the BadPackage tests from VerifierTest: one alters the footer, and the other alters the metadata. Move the two tests to be based on otasigned_v3.zip (they're based on otasigned_v1.zip previously). Also construct the testdata files dynamically (to save the space and for better readability). Test: recovery_component_test Change-Id: I7604d563f8b4fa0c55fec8730c063384158e3abc (cherry picked from commit 217d9f98595076f344746bffdafb4314191f3e1b)
* | | | | | | | | | | Merge "Add the missing sr-Latn into png files and rename the png locale header" am: 713d915636 am: dc235b5ab9 am: 5ec12126f0Tianjie Xu2017-03-2830-24/+45
|\ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9166f66eee Change-Id: Ia899f1e60074f1ecfa9759f6aecfbc6ce9c3ec9b
| * | | | | | | | | | Merge "Add the missing sr-Latn into png files and rename the png locale header" am: 713d915636 am: dc235b5ab9Tianjie Xu2017-03-2830-24/+45
| |\ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5ec12126f0 Change-Id: Ia6b861c91958d3be23a4a7456d6d5d8e4a1607c8
| | * | | | | | | | | Merge "Add the missing sr-Latn into png files and rename the png locale header" am: 713d915636Tianjie Xu2017-03-2830-24/+45
| | |\ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dc235b5ab9 Change-Id: I8683d9c8d6d2dfe1ef6085b48f6edc2cb8b1834d
| | | * | | | | | | | Merge "Add the missing sr-Latn into png files and rename the png locale header"Tianjie Xu2017-03-2830-24/+45
| | | |\ \ \ \ \ \ \ \ | | | | | |/ / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 713d915636 Change-Id: I23a8ac215d4a549cda347b86a91df1bb97e089c5
| | | | * | | | | | | Merge "Add the missing sr-Latn into png files and rename the png locale header"Tianjie Xu2017-03-2830-24/+45
| | | | |\ \ \ \ \ \ \ | | | | | |_|_|_|/ / / | | | | |/| | | | | |
| | | | | * | | | | | Add the missing sr-Latn into png files and rename the png locale headerTianjie Xu2017-03-2530-24/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch the locale header in the png files from Locale.toString() to Locale.toLanguageTag(). For example, en_US --> en-us and sr__#Latn --> sr-Latn. Also clean up recovery a bit to expect the new locale format. Bug: 35215015 Test: sr-Latn shows correctly under graphic tests && recovery tests pass Change-Id: Ic62bab7756cdc6e5f98f26076f7c2dd046f811db
* | | | | | | | | | | Merge changes from topic 'sinkfn' am: 34df98ee6d am: 862b7e8523 am: a2015e0d86Tao Bao2017-03-287-161/+128
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e003a97668 Change-Id: I04d941f9df9b83df53e8f564e4abcd83d61c279a
| * | | | | | | | | | Merge changes from topic 'sinkfn' am: 34df98ee6d am: 862b7e8523Tao Bao2017-03-287-161/+128
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a2015e0d86 Change-Id: I55bd4c762033cbfd68b019c3fad861ff9b954450
| | * | | | | | | | | Merge changes from topic 'sinkfn' am: 34df98ee6dTao Bao2017-03-287-161/+128
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 862b7e8523 Change-Id: I859296b62fcd7b43775885f4d2ece3272a9bff11
| | | * | | | | | | | Merge changes from topic 'sinkfn'Tao Bao2017-03-287-161/+128
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 34df98ee6d Change-Id: I05710606fac5b4b8746416799635691f4083aef4
| | | | * | | | | | | Merge changes from topic 'sinkfn'Treehugger Robot2017-03-287-231/+190
| | | | |\ \ \ \ \ \ \ | | | | | |_|_|_|/ / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: applypatch: Let Apply{BSDiff,Image}Patch accept std::function. applypatch: Change the ssize_t length parameters to size_t.
| | | | | * | | | | | applypatch: Let Apply{BSDiff,Image}Patch accept std::function.Tao Bao2017-03-287-161/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma bootable/recovery system/update_engine Test: recovery_component_test Change-Id: I93c2caa87bf94a53509bb37f98f2c02bcadb6f5c
* | | | | | | | | | | applypatch: Change the ssize_t length parameters to size_t. am: f7eb760fe7 am: d4d9ef3941 am: 52569ce2edTao Bao2017-03-287-89/+81
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b5f84ef1c3 Change-Id: Ic78e33f6b5cc364b6b1280b6dbd51dc4641c56ca
| * | | | | | | | | | applypatch: Change the ssize_t length parameters to size_t. am: f7eb760fe7 am: d4d9ef3941Tao Bao2017-03-287-89/+81
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 52569ce2ed Change-Id: Ifeeb537d59d93acac445a0c748e4180a9704fcfb
| | * | | | | | | | | applypatch: Change the ssize_t length parameters to size_t. am: f7eb760fe7Tao Bao2017-03-287-89/+81
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d4d9ef3941 Change-Id: Ifd231403d2d5960faf35859d445de73a78b6a371
| | | * | | | | | | | applypatch: Change the ssize_t length parameters to size_t.Tao Bao2017-03-287-89/+81
| | | |\ \ \ \ \ \ \ \ | | | | | |/ / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f7eb760fe7 Change-Id: I4661186d7bd696e4fa5318217b383cbe0a2902c3
| | | | * | | | | | | applypatch: Change the ssize_t length parameters to size_t.Tao Bao2017-03-287-89/+81
| | | | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mostly for applypatch family APIs like ApplyBSDiffPatch() and ApplyImagePatch(). Changing to size_t doesn't indicate they would necessarily work with very large size_t (e.g. > ssize_t), just similar to write(2). But otherwise accepting negative length doesn't make much sense. Also change the return type of SinkFn from ssize_t to size_t. Callers tell a successful sink by comparing the number of written bytes against the desired value. Negative return values like -1 are not needed. This also makes it consistent with bsdiff::bspatch interface. Test: recovery_component_test Test: Apply an incremental with the new updater. Change-Id: I7ff1615203a5c9854134f75d019e266f4ea6e714
* | | | | | | | | | Merge "updater: Clean up LoadSrcTgtVersion2()." am: f037b7b535 am: 51159a069d am: 21b5268fbdTao Bao2017-03-280-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 67801f2b3a Change-Id: I94a98c9df68e0bba19aa5a7901a4ce5bb45cfca1
| * | | | | | | | | Merge "updater: Clean up LoadSrcTgtVersion2()." am: f037b7b535 am: 51159a069dTao Bao2017-03-281-146/+143
| |\| | | | | | | | | | |_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 21b5268fbd Change-Id: I7f0051f628907b8a1c6c35a96c136fa624bd623d
* | | | | | | | | Merge "updater: Clean up LoadSrcTgtVersion2()." am: f037b7b535 am: 51159a069dTao Bao2017-03-281-146/+143
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| / / / / / / / | |/ / / / / / / | | | | | | | | | | | | | | | | am: 21b5268fbd Change-Id: Ic8c8d1192aeaf6a16fb0b5fe496a320074792421
| * | | | | | | Merge "updater: Clean up LoadSrcTgtVersion2()." am: f037b7b535Tao Bao2017-03-281-146/+143
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 51159a069d Change-Id: Ia542c58abd931af5f2b0bc089ff2b67886c91070
| | * | | | | | Merge "updater: Clean up LoadSrcTgtVersion2()."Tao Bao2017-03-281-146/+143
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f037b7b535 Change-Id: I6e2488d12fadebb5b17949b5fbecbaee335700af
| | | * | | | | Merge "updater: Clean up LoadSrcTgtVersion2()."Tao Bao2017-03-281-146/+143
| | | |\ \ \ \ \ | | | | |_|/ / / | | | |/| | | |
| | | | * | | | updater: Clean up LoadSrcTgtVersion2().Tao Bao2017-03-281-146/+143
| | | | | |/ / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename to LoadSourceBlocks() by moving the target blocks parsing part into the caller. This allows detecting whether the target blocks have already had the expected data before loading the source blocks. It doesn't affect anything when applying an update package for the first time, but it skips loading the unneeded source blocks when resuming an update. It additionally avoids unnecessarily dumping the "corrupt" source/stash blocks when resuming an update. Bug: 33694730 Test: Apply an incremental update with the new updater. Test: Resume an incremental update with the new updater. Change-Id: I794fd0d1045be7b3b7f8619285dc0dade01398d0
* | | | | | | Merge "tests: Construct signature-boundary.zip at runtime."Tao Bao2017-03-282-2/+18
|\ \ \ \ \ \ \
| * | | | | | | tests: Construct signature-boundary.zip at runtime.Tao Bao2017-03-272-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: Observe the same failure with recovery_component_test ("signature start: 65535 is larger than comment size: 0"). Change-Id: I98c357b5df2fa4caa9d8eed63af2e945ed99f18a
* | | | | | | | Merge "Revert "libbootloader_message: use different fstab paths for normal/recovery boot"" am: 27c3e47853 am: b0e768e269Tao Bao2017-03-271-8/+2
|\ \ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e65835d5ac Change-Id: I518933a6b2f9bd03653924bda5511f7d4a3b15f1
| * | | | | | | Merge "Revert "libbootloader_message: use different fstab paths for normal/recovery boot"" am: 27c3e47853Tao Bao2017-03-271-8/+2
| |\ \ \ \ \ \ \ | | | |/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b0e768e269 Change-Id: I87d8040917dcd2fc6e233458c8b14f4cdb15e457
| | * | | | | | Merge "Revert "libbootloader_message: use different fstab paths for normal/recovery boot""Tao Bao2017-03-271-8/+2
| | |\ \ \ \ \ \ | | | | |/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 27c3e47853 Change-Id: Ie55f8cbbcec911192d9fd3b92f32731721dba36f
| | | * | | | | Merge "Revert "libbootloader_message: use different fstab paths for normal/recovery boot""Tao Bao2017-03-271-8/+2
| | | |\ \ \ \ \
| | | | * | | | | Revert "libbootloader_message: use different fstab paths for normal/recovery boot"Bowgo Tsai2017-03-271-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 37bd44174bf2511320961f3f8cd1f698a1c72b66. The logic here is better to be moved into fs_mgr, not fs_mgr clients. Bug: 35811655 Bug: 36502022 Change-Id: Iae79bd8f7131516ad223f3323f1bc1d805206d51 Test: normal boot sailfish, go to Settings > System & tap on "Factory Data reset" Test: recovery boot sailfish
* | | | | | | | | Merge "Skip logging the warning for uncrypt_status for devices w/o /cache" am: df0619edea -s ours am: a97b0712d8 -s oursTianjie Xu2017-03-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 334850c9fe -s ours Change-Id: I3a6ab2167920e16d29e9e90fa2726b2df97c6973
| * | | | | | | | Merge "Skip logging the warning for uncrypt_status for devices w/o /cache" am: df0619edea -s oursTianjie Xu2017-03-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a97b0712d8 -s ours Change-Id: I94338224aa3f9b7b88518527f14dd51f7ce62b22
| | * | | | | | | Merge "Skip logging the warning for uncrypt_status for devices w/o /cache"Tianjie Xu2017-03-270-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: df0619edea -s ours Change-Id: I997f1ad6197e8a92530f50ed7fc002b972681407
| | | * | | | | | Merge "Skip logging the warning for uncrypt_status for devices w/o /cache"Tianjie Xu2017-03-271-5/+9
| | | |\ \ \ \ \ \ | | | | |_|_|/ / / | | | |/| | | | |
| | | | * | | | | Skip logging the warning for uncrypt_status for devices w/o /cacheTianjie Xu2017-03-261-5/+9
| | | | | |_|/ / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This warning may cause confusion for users. Bug: 36590598 Test: Warning line no longer shows for sailfish. Change-Id: I277c87a50a72fdb499be790ee25b97f815d980be Merged-In: I277c87a50a72fdb499be790ee25b97f815d980be
* | | | | | | | Skip logging the warning for uncrypt_status for devices w/o /cache am: 340e6762f8Tianjie Xu2017-03-270-0/+0
|\| | | | | | | | |_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 898fa718a9 Change-Id: I36a404a8b09ee22e1a113bfeb890baa3468727cb
| * | | | | | Skip logging the warning for uncrypt_status for devices w/o /cacheTianjie Xu2017-03-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 340e6762f8 Change-Id: I05e9925238255de835b8a9317a74f9d199cef494
| | * | | | | Skip logging the warning for uncrypt_status for devices w/o /cacheTianjie Xu2017-03-271-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This warning may cause confusion for users. Bug: 36590598 Test: Warning line no longer shows for sailfish. Change-Id: I277c87a50a72fdb499be790ee25b97f815d980be (cherry picked from commit bcb5b18630f518835a0768535b43ccfe91683fc9)
* | | | | | | Merge "Skip logging the warning for uncrypt_status for devices w/o /cache" into nyc-mr2-dev-plus-aospTianjie Xu2017-03-271-5/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 49420e6c3d Change-Id: Ice77b003eb914b615f7380b80e75fda998a903f5
| * | | | | | Merge "Skip logging the warning for uncrypt_status for devices w/o /cache" into nyc-mr2-dev-plus-aospTianjie Xu2017-03-271-5/+9
| |\ \ \ \ \ \
| | * | | | | | Skip logging the warning for uncrypt_status for devices w/o /cacheTianjie Xu2017-03-261-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This warning may cause confusion for users. Bug: 36590598 Test: Warning line no longer shows for sailfish. Change-Id: I277c87a50a72fdb499be790ee25b97f815d980be (cherry picked from commit bcb5b18630f518835a0768535b43ccfe91683fc9)
* | | | | | | | Merge "applypatch: Drop the support for patching non-EMMC targets." am: b4c4f8c494 am: 351f69e64aTao Bao2017-03-262-401/+109
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dcbabd5932 Change-Id: Ia8ff537f0c503fec5602ae6ad6677c8b427d0806
| * | | | | | | Merge "applypatch: Drop the support for patching non-EMMC targets." am: b4c4f8c494Tao Bao2017-03-262-401/+109
| |\ \ \ \ \ \ \ | | |/ / / / / / | |/| / / / / / | | |/ / / / / | | | | | | | | | | | | | | am: 351f69e64a Change-Id: I83220c87347e6f4fe76b73924347b55a9c9e18ff
| | * | | | | Merge "applypatch: Drop the support for patching non-EMMC targets."Tao Bao2017-03-262-401/+109
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b4c4f8c494 Change-Id: If2eadfe81c5a7942c2709a548dcd3957323e3436
| | | * | | | Merge "applypatch: Drop the support for patching non-EMMC targets."Tao Bao2017-03-262-401/+109
| | | |\ \ \ \
| | | | * | | | applypatch: Drop the support for patching non-EMMC targets.Tao Bao2017-03-162-401/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patching regular files is used in file-based OTA only, which has become obsolete. Bug: 35853185 Test: Apply an incremental that patches the boot.img. Test: /system/bin/install-recovery.sh works. Test: recovery_component_test passes. Change-Id: Id44e42c4bc63f2162ecc8a6df1cb528b7ae6b0a9
* | | | | | | | Merge "Don't fail ReadArgs if length to parse is 0" am: f4c949a41e am: e102ea13eeTianjie Xu2017-03-261-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5f9617a51f Change-Id: I674484fcdde5d9b7f847d6efef667638a8da6936
| * | | | | | | Merge "Don't fail ReadArgs if length to parse is 0" am: f4c949a41eTianjie Xu2017-03-261-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e102ea13ee Change-Id: I56740f678375ad00f3ae90125c610c8f5003290e
| | * | | | | | Merge "Don't fail ReadArgs if length to parse is 0"Tianjie Xu2017-03-261-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f4c949a41e Change-Id: Ic6daca7eb24b121058c7e9075d5719fcdada37ae
| | | * | | | | Merge "Don't fail ReadArgs if length to parse is 0"Tianjie Xu2017-03-261-1/+1
| | | |\ \ \ \ \
| | | | * | | | | Don't fail ReadArgs if length to parse is 0Tianjie Xu2017-03-231-1/+1
| | | | | |/ / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Test: recovery component tests pass Change-Id: I0946ba498d845ec552ae7e4c79dc94618b2fdf6d
* | | | | | | | Merge "updater: Remove some redundant arguments." am: 5212a00588 am: 4ae56a3586Tao Bao2017-03-261-78/+65
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cf219a93c6 Change-Id: I7047eb4ce09d7aa69cd044ddce07cbb41e5ac246
| * | | | | | | Merge "updater: Remove some redundant arguments." am: 5212a00588Tao Bao2017-03-261-78/+65
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4ae56a3586 Change-Id: I2fd18158ad74770e4a372b6288e65ceabfc18297
| | * | | | | | Merge "updater: Remove some redundant arguments."Tao Bao2017-03-261-78/+65
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5212a00588 Change-Id: I74ae1b87579bec0f1008b38e5ca913ef7c355238
| | | * | | | | Merge "updater: Remove some redundant arguments."Tao Bao2017-03-261-78/+65
| | | |\ \ \ \ \
| | | | * | | | | updater: Remove some redundant arguments.Tao Bao2017-03-241-78/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up a few functions that take CommandParameters& as the first parameter. We don't need to take duplicate arguments if they always come from CommandParameters. This redundancy came from the point we replaced strtok()s (commit baad2d454dc07ce916442987a2908a93fe6ae298). Test: Apply an incremental update with the new updater. Change-Id: I2912b8ce6bc7580bf7f566e125f12270e679e155
* | | | | | | | | Merge "libbootloader_message: use different fstab paths for normal/recovery boot" am: 5f98326c1e am: 85882b0779Bowgo Tsai2017-03-251-2/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ec96346b84 Change-Id: I7d1750e6031e42fb331974cc21b2a6f71e799584
| * | | | | | | | Merge "libbootloader_message: use different fstab paths for normal/recovery boot" am: 5f98326c1eBowgo Tsai2017-03-251-2/+8
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 85882b0779 Change-Id: Ie7f75589e4ec7a3da4bc8cb31f0630837cbea4f4
| | * | | | | | | Merge "libbootloader_message: use different fstab paths for normal/recovery boot"Bowgo Tsai2017-03-251-2/+8
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5f98326c1e Change-Id: Ie5061ac357ee86a2192e8e1c1ab9e49a00fc1df0
| | | * | | | | | Merge "libbootloader_message: use different fstab paths for normal/recovery boot"Treehugger Robot2017-03-251-2/+8
| | | |\ \ \ \ \ \ | | | | | |_|_|/ / | | | | |/| | | |
| | | | * | | | | libbootloader_message: use different fstab paths for normal/recovery bootBowgo Tsai2017-03-251-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libbootloader_message is used by both normal boot and recovery boot. It needs to use different fstab paths, respectively. Otherwise, factory reset will fail when we move /fstab.{ro.hardware} to /vendor/etc/. Recovery boot: fs_mgr_read_fstab_with_dt("/etc/recovery.fstab") Normal boot: fs_mgr_read_fstab_default() Bug: 35811655 Bug: 36502022 Test: normal boot sailfish, go to Settings > System & tap on "Factory Data reset" Test: recovery boot sailfish Change-Id: I253f5bdfb9be8a01f80856eb1194f85cdf992bbd
* | | | | | | | | Merge "updater: Drop the support for BBOTA v1 and v2." am: 5479506c9c am: 7b82ad12f6Tao Bao2017-03-251-398/+330
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0ec16d8831 Change-Id: Iaa368fdab1940c3b206e9c43396c364790f707b8
| * | | | | | | | Merge "updater: Drop the support for BBOTA v1 and v2." am: 5479506c9cTao Bao2017-03-251-398/+330
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7b82ad12f6 Change-Id: I7404ce4db28555a98a24fd5020712edda84b04d5
| | * | | | | | | Merge "updater: Drop the support for BBOTA v1 and v2."Tao Bao2017-03-251-398/+330
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5479506c9c Change-Id: If0f6acf7120c6bc4b4644a12aa83939b52ad48c5
| | | * | | | | | Merge "updater: Drop the support for BBOTA v1 and v2."Tao Bao2017-03-251-398/+330
| | | |\ \ \ \ \ \ | | | | | |/ / / / | | | | |/| | | |
| | | | * | | | | updater: Drop the support for BBOTA v1 and v2.Tao Bao2017-03-241-398/+330
| | | | | |/ / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The script support for BBOTA v1 and v2 has been dropped in commit 8fad03e7712082eb880ffaaffb69eb13252ce220 (platform/build). Bug: 33694730 Test: Apply an incremental with the new updater. Test: recovery_component_test Change-Id: I038b1bf8d10f030cab8ec0aa6ee565c5a9545dfd
* | | | | | | | Merge "Const modifiers" am: 4efd353d8f am: 92d8772c49Tao Bao2017-03-246-11/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d51bd8770a Change-Id: I7a8f14bde0359dcd3d1a29d8ba37f373b205c47a
| * | | | | | | Merge "Const modifiers" am: 4efd353d8fTao Bao2017-03-246-11/+11
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 92d8772c49 Change-Id: I453dbfb45e3f70586e77cb28207c164fe9cb72fa
| | * | | | | | Merge "Const modifiers"Tao Bao2017-03-246-11/+11
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4efd353d8f Change-Id: I8ae993749d5f2c58cc5ef23f90845cf5a0bf756d
| | | * | | | | Merge "Const modifiers"Tao Bao2017-03-246-11/+11
| | | |\ \ \ \ \
| | | | * | | | | Const modifiersMikhail Lappo2017-03-236-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This functions do not change class variables Would be good to mark them as const, so class variables are not changed by coincidence Change-Id: Iea34f6d26dbd1bde813035160e07ff2a681989e6
* | | | | | | | | Merge "Removed C-style casts" am: 110155a604 am: 6a831e02b6Tao Bao2017-03-243-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6b3df6486e Change-Id: Ib917ebb9e4bd7a5cd7dcd785593f0a2f4ef0aefb
| * | | | | | | | Merge "Removed C-style casts" am: 110155a604Tao Bao2017-03-243-3/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6a831e02b6 Change-Id: If512cbe096ad18388fea2800d12182832d0ecda8
| | * | | | | | | Merge "Removed C-style casts"Tao Bao2017-03-243-3/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 110155a604 Change-Id: I363e172a8f7f9e67dfc9474e0e10463690cdd833
| | | * | | | | | Merge "Removed C-style casts"Tao Bao2017-03-243-3/+3
| | | |\| | | | |
| | | | * | | | | Removed C-style castsMikhail Lappo2017-03-233-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In c++ code would be cleaner to use c++ retinterpret cast instead of old c-style notation Change-Id: Ibeef5e0c374addf108c0a8876a6be45063d8e396
* | | | | | | | | Merge "Fix the wrong parameter when calling read_metadata_from_package()." am: 6014db5da6 am: 5da7e41ec8Tao Bao2017-03-241-37/+35
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: be4578f009 Change-Id: I46cf74bc32cd1d2666a1b14df62b9fe96445c971
| * | | | | | | | Merge "Fix the wrong parameter when calling read_metadata_from_package()." am: 6014db5da6Tao Bao2017-03-241-37/+35
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5da7e41ec8 Change-Id: I56222c4a4bf245ca7c5a9506750125f23bed443f
| | * | | | | | | Merge "Fix the wrong parameter when calling read_metadata_from_package()."Tao Bao2017-03-241-37/+35
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6014db5da6 Change-Id: I55b44f34491f8103487bcd7b871d3615666b45d9
| | | * | | | | | Merge "Fix the wrong parameter when calling read_metadata_from_package()."Tao Bao2017-03-241-37/+35
| | | |\ \ \ \ \ \ | | | | |_|_|/ / / | | | |/| | | | |
| | | | * | | | | Fix the wrong parameter when calling read_metadata_from_package().Tao Bao2017-03-241-37/+35
| | | | | |/ / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The call to read_metadata_from_package() is broken due to being passed an invalid pointer (ZipArchiveHandle vs ZipArchiveHandle*). It's introduced when switching from minzip to libziparchive. Compiler didn't complain, because ZipArchiveHandle is typedef'd as void*, which legitly accepts a void**. Also clean up secure_wipe_partition() logs a bit by using android-base logging. Bug: 36427762 Test: Send a wipe package. Change-Id: I791a0f09a066f1c257dae890e7ae13d02a02e78b
* | | | | | | | Merge "Reword the wipe warning message to be more comprehensible." am: f09efaff89 am: eddc9a15f9Paul Crowley2017-03-241-4/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 25bf90201c Change-Id: Ie7451d7ed8acb7118655ca90ed1bd738447eef0d
| * | | | | | | Merge "Reword the wipe warning message to be more comprehensible." am: f09efaff89Paul Crowley2017-03-241-4/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: eddc9a15f9 Change-Id: I41c7a52fda6b0df63869640193a198a98801ed75
| | * | | | | | Merge "Reword the wipe warning message to be more comprehensible."Paul Crowley2017-03-241-4/+6
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f09efaff89 Change-Id: I4078499b8019361979a8d47cf9205e1ee865303c
| | | * | | | | Merge "Reword the wipe warning message to be more comprehensible."Treehugger Robot2017-03-241-4/+6
| | | |\ \ \ \ \ | | | | |/ / / / | | | |/| | | |
| | | | * | | | Reword the wipe warning message to be more comprehensible.Paul Crowley2017-03-231-4/+6
| | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: My device was crashing anyway, so observed message on crash. Bug: 34669779 Change-Id: Ib85d1d137139f5e14f735c972c2312acce2caf5f
* | | | | | | Merge "Redundant checking of STL container element" am: b56a3c2e3a am: 9e05f26e1aTao Bao2017-03-231-3/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bc3d2ee5e5 Change-Id: I704638b127b43b1e2964f5679bdd486384563a8e
| * | | | | | Merge "Redundant checking of STL container element" am: b56a3c2e3aTao Bao2017-03-231-3/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9e05f26e1a Change-Id: I269ff1530179a77f38d824f67a219adb7c666271
| | * | | | | Merge "Redundant checking of STL container element"Tao Bao2017-03-231-3/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b56a3c2e3a Change-Id: If1dc1bd436b7ef97fbdc848373f59ce66881c0a2
| | | * | | | Merge "Redundant checking of STL container element"Tao Bao2017-03-231-3/+1
| | | |\ \ \ \ | | | | |/ / / | | | |/| | |
| | | | * | | Redundant checking of STL container elementMikhail Lappo2017-03-231-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of C++ specification size_type erase( const key_type& key ); removes the element (if one exists). There is no need to perform the check twice. Change-Id: I4b057c08526abc7c2a483a60f9e166e4d8f56a74
* | | | | | | Merge "Checking unsigned variable less than zero" am: 0d264bf088 am: 957f6491f8Tao Bao2017-03-231-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cd03df0652 Change-Id: Ic5bcbe14b6db759135274fd51a35703327c3826d
| * | | | | | Merge "Checking unsigned variable less than zero" am: 0d264bf088Tao Bao2017-03-231-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 957f6491f8 Change-Id: If9516fdbb4798675330cc3accdc299445e64e258
| | * | | | | Merge "Checking unsigned variable less than zero"Tao Bao2017-03-231-2/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0d264bf088 Change-Id: I3a5013ec09e81ce1daae78a91975884a1f8d7a81
| | | * | | | Merge "Checking unsigned variable less than zero"Tao Bao2017-03-231-2/+2
| | | |\| | |
| | | | * | | Checking unsigned variable less than zeroMikhail Lappo2017-03-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unsinged variable can not be less than zero Makes sense only to check if it is equal
* | | | | | | Merge "Fixed scanf modifier" am: 577c668861 am: d414ae465eTao Bao2017-03-231-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8859e2aea8 Change-Id: I0b38bfba79de254cd30f85ab7ea68603dec53017
| * | | | | | Merge "Fixed scanf modifier" am: 577c668861Tao Bao2017-03-231-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d414ae465e Change-Id: If548f8240521dacba70e969f625728160d2bde2a
| | * | | | | Merge "Fixed scanf modifier"Tao Bao2017-03-231-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 577c668861 Change-Id: I5d28d5c71996e260c5e901b66884285d6e8ba1e8
| | | * | | | Merge "Fixed scanf modifier"Tao Bao2017-03-231-1/+1
| | | |\| | |
| | | | * | | Fixed scanf modifierMikhail Lappo2017-03-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Scanf expectation is to have same type of pointer to store parsed value and modifier in format string
* | | | | | | Merge "updater: Fix the broken case for apply_patch_check()." am: 9f2062657d am: 923d41ccd5Tao Bao2017-03-232-1/+50
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 47ee8fa42a Change-Id: I24a2b7776779a61f786fae0cbe5dd9569250ff7b
| * | | | | | Merge "updater: Fix the broken case for apply_patch_check()." am: 9f2062657dTao Bao2017-03-232-1/+50
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 923d41ccd5 Change-Id: I732705e595aadd1d50d33b4371393e54959014a6
| | * | | | | Merge "updater: Fix the broken case for apply_patch_check()."Tao Bao2017-03-232-1/+50
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9f2062657d Change-Id: Ifb3e0dc56f014322ad7227e5f2f9a5bd9cf61b43
| | | * | | | Merge "updater: Fix the broken case for apply_patch_check()."Tao Bao2017-03-232-1/+50
| | | |\ \ \ \
| | | | * | | | updater: Fix the broken case for apply_patch_check().Tao Bao2017-03-232-1/+50
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's valid to provide only 1 argument to apply_patch_check(). We shouldn't fail the argument parsing. Bug: 36541737 Test: recovery_component_test passes. Test: recovery_component_test captures the failure without the fix. Test: The previously failed update applies successfully. Change-Id: Iee4c54ed33b877fc4885945b085341ec5c64f663
* | | | | | | Merge "recovery: Replace the hard-coded 1000 with AID_SYSTEM." am: 833442cf4e am: ca9c1e0965Tao Bao2017-03-231-2/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f5ac45cbd9 Change-Id: I052ce543f6ae13b2f5960d6c86ebd3b5a0ed8c7c
| * | | | | | Merge "recovery: Replace the hard-coded 1000 with AID_SYSTEM." am: 833442cf4eTao Bao2017-03-231-2/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ca9c1e0965 Change-Id: Ibd89df485b537f38f21956ed95527d58e8106e9f
| | * | | | | Merge "recovery: Replace the hard-coded 1000 with AID_SYSTEM."Tao Bao2017-03-231-2/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 833442cf4e Change-Id: Iaed8003a749dac83794db10632040179acc48869
| | | * | | | Merge "recovery: Replace the hard-coded 1000 with AID_SYSTEM."Tao Bao2017-03-231-2/+3
| | | |\ \ \ \ | | | | |/ / / | | | |/| | |
| | | | * | | recovery: Replace the hard-coded 1000 with AID_SYSTEM.Tao Bao2017-03-221-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma bootable/recovery Change-Id: Icea5bd91a976957e8b6ab46e367345ff69a53ca4
* | | | | | | Merge "Remove malloc in edify functions" am: 1ea869b0c6 am: 137d85333eTianjie Xu2017-03-239-257/+331
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: eb0623b14b Change-Id: I7c48105d9259b1713e8be5fb2c50ef8d6a92c993
| * | | | | | Merge "Remove malloc in edify functions" am: 1ea869b0c6Tianjie Xu2017-03-239-257/+331
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 137d85333e Change-Id: I3ce3450f8385ef18f71491608da88184f3885730
| | * | | | | Merge "Remove malloc in edify functions"Tianjie Xu2017-03-239-257/+331
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1ea869b0c6 Change-Id: I1501b6a92e49a12f168a63b87a89a57eb13c262d
| | | * | | | Merge "Remove malloc in edify functions"Tianjie Xu2017-03-239-257/+331
| | | |\ \ \ \ | | | | |/ / / | | | |/| | |
| | | | * | | Remove malloc in edify functionsTianjie Xu2017-03-229-257/+331
| | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And switch them to std::vector & std::unique_ptr Bug: 32117870 Test: recovery tests passed on sailfish Change-Id: I5a45951c4bdf895be311d6d760e52e7a1b0798c3
* | | | | | Merge "Fix the permission of stashed blocks created by updater" am: d882b8892a am: deb2a29a42Tianjie Xu2017-03-221-0/+12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 71be88734a Change-Id: I52eaf4b1515b89488061c1494379028adacb492c
| * | | | | Merge "Fix the permission of stashed blocks created by updater" am: d882b8892aTianjie Xu2017-03-221-0/+12
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: deb2a29a42 Change-Id: I66602230756a9a1c8c6208441f83e7e1703e926c
| | * | | | Merge "Fix the permission of stashed blocks created by updater"Tianjie Xu2017-03-221-0/+12
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d882b8892a Change-Id: I845ad9179755f98d3415cc148fd6e192acabcf2c
| | | * | | Merge "Fix the permission of stashed blocks created by updater"Tianjie Xu2017-03-221-0/+12
| | | |\ \ \
| | | | * | | Fix the permission of stashed blocks created by updaterTianjie Xu2017-03-221-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our updater created the stashes with root permission. This causes an access denial when the RecoverySystem service tries to clean up these blocks after a failing update. As a result, the subsequent OTA updates may fail due to insufficient cache space. Bug: 36457133 Test: stashed blocks cleaned successfully after reboot Change-Id: If0ca99638cdfa1033646f29d9cc92b5ff1bacac1
* | | | | | | Merge "Refactor asn1_decoder functions into a class." am: ea3d0b923d am: d7846b7303Tao Bao2017-03-224-410/+361
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6e30101834 Change-Id: I4ac855fe7b33e4b1141c601045ecf79a681c60cf
| * | | | | | Merge "Refactor asn1_decoder functions into a class." am: ea3d0b923dTao Bao2017-03-224-410/+361
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d7846b7303 Change-Id: I4a41296ab8d4629a8db12bd7a23abd9e27f0a613
| | * | | | | Merge "Refactor asn1_decoder functions into a class."Tao Bao2017-03-224-410/+361
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ea3d0b923d Change-Id: I581e85f453fe1dc8b3a7cb6a7b660539f99ec55e
| | | * | | | Merge "Refactor asn1_decoder functions into a class."Tao Bao2017-03-224-410/+361
| | | |\ \ \ \
| | | | * | | | Refactor asn1_decoder functions into a class.Tao Bao2017-03-214-410/+361
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma bootable/recovery Test: recovery_unit_test passes. Test: recovery_component_test passes. Change-Id: If0bf25993158eaebeedff55ba4f4dd0f6e5f937d
* | | | | | | | Merge "Fix updater include generation w/installclean" am: 6d0262218a am: c1cb30f842Dan Willemsen2017-03-221-16/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8a77b9d831 Change-Id: Ieea27e48e4fee300b42d4de9887038224b33b491
| * | | | | | | Merge "Fix updater include generation w/installclean" am: 6d0262218aDan Willemsen2017-03-221-16/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c1cb30f842 Change-Id: Ie68499bd9ba2e31f2a04dc0fe7ce09ba94eed8a9
| | * | | | | | Merge "Fix updater include generation w/installclean"Dan Willemsen2017-03-221-16/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6d0262218a Change-Id: I9ed72b119c9c416aa038f2bcf04c90dfcac2d81b
| | | * | | | | Merge "Fix updater include generation w/installclean"Treehugger Robot2017-03-221-16/+4
| | | |\ \ \ \ \ | | | | |/ / / / | | | |/| | | |
| | | | * | | | Fix updater include generation w/installcleanDan Willemsen2017-03-221-16/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since this was putting the intermediate file in obj/PACKAGING, every installclean was removing it and triggering updater to rebuild. Instead, use the standard generated-sources-dir. The dep file can also be removed now that ninja will re-run the generator if the command line changes. Test: m -j updater; m installclean; m -j updater Test: Only change to aosp_fugu updater before/after is the debug info Change-Id: I20928bd2049d4a3d4e21f83fd64d16cfdc541958
* | | | | | | | Merge "verify_file: Add constness to a few addresses." am: 5b2bf90e13 am: 43bd2c8414Tao Bao2017-03-216-79/+78
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1c456cd3a5 Change-Id: I6d423a2fe19727e0d41b083a4020be30ae9400fb
| * | | | | | | Merge "verify_file: Add constness to a few addresses." am: 5b2bf90e13Tao Bao2017-03-216-79/+78
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 43bd2c8414 Change-Id: Ia7da54b2c532bb75ae4554e2642e95eae09821e3
| | * | | | | | Merge "verify_file: Add constness to a few addresses."Tao Bao2017-03-216-79/+78
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5b2bf90e13 Change-Id: I6e04bf2bc3dc8c978edafafcbb41401189865233
| | | * | | | | Merge "verify_file: Add constness to a few addresses."Tao Bao2017-03-216-79/+78
| | | |\ \ \ \ \ | | | | |_|/ / / | | | |/| | | |
| | | | * | | | verify_file: Add constness to a few addresses.Tao Bao2017-03-216-79/+78
| | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We should not touch any data while verifying packages (or parsing the in-memory ASN.1 structures). Test: mmma bootable/recovery Test: recovery_component_test passes. Test: recovery_unit_test passes. Change-Id: Ie990662c6451ec066a1807b3081c9296afbdb0bf
* | | | | | | Merge "Add testcases for load_keys()." am: 110102f37e am: 43f5ad6e90Tao Bao2017-03-201-0/+57
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 60ea643afb Change-Id: I2246094d0db184726cae34d7b916c127512ad6d2
| * | | | | | Merge "Add testcases for load_keys()." am: 110102f37eTao Bao2017-03-201-0/+57
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 43f5ad6e90 Change-Id: Ic627f06818729779fb6593ac083708c1a71190fe
| | * | | | | Merge "Add testcases for load_keys()."Tao Bao2017-03-201-0/+57
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 110102f37e Change-Id: I67989c074351f4a9d2a39ee894fd744f4b35c901
| | | * | | | Merge "Add testcases for load_keys()."Tao Bao2017-03-201-0/+57
| | | |\ \ \ \
| | | | * | | | Add testcases for load_keys().Tao Bao2017-03-181-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: recovery_component_test passes. Change-Id: I6276b59981c87c50736d69d4af7647c8ed892965
* | | | | | | | Merge "Remove the dead #include's in verifier.cpp." am: 64d25024b9 am: b2617e882eTao Bao2017-03-203-8/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cc3f3c3d1c Change-Id: Ib78b586044938d9ec41cabfb07e8a274cc7d4d73
| * | | | | | | Merge "Remove the dead #include's in verifier.cpp." am: 64d25024b9Tao Bao2017-03-203-8/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b2617e882e Change-Id: I8b99bd307e38e4dc4a477bf3ae2bd89495434507
| | * | | | | | Merge "Remove the dead #include's in verifier.cpp."Tao Bao2017-03-203-8/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 64d25024b9 Change-Id: I36aed07781b1b9bff0ffe6cabeb5d1f3b8546072
| | | * | | | | Merge "Remove the dead #include's in verifier.cpp."Tao Bao2017-03-203-8/+2
| | | |\ \ \ \ \ | | | | |/ / / / | | | |/| | | |
| | | | * | | | Remove the dead #include's in verifier.cpp.Tao Bao2017-03-183-8/+2
| | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A follow-up to commit 5e535014dd7961fbf812abeaa27f3339775031f1. Also clean up Android.mk, since libverifier no longer needs anything from libminui. Test: mmma bootable/recovery Test: recovery_component_test passes. Change-Id: I1c11e4bbeef67ca34a2054debf1f5b280d509217
* | | | | | | resolve merge conflicts of 90d3f20c to stage-aosp-master am: 553c7bd307Tao Bao2017-03-180-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f3db68dd61 -s ours Change-Id: I98c0681152bd8dcb7f04b281acbbb7ffb9a39f51
| * | | | | | resolve merge conflicts of 90d3f20c to stage-aosp-masterTao Bao2017-03-184-302/+240
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 553c7bd307 Change-Id: I78b16c412ce3487651c0b2da467256488dd75ff5
| | * | | | | resolve merge conflicts of 90d3f20c to stage-aosp-masterTao Bao2017-03-184-302/+240
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: I solemnly swear I tested this conflict resolution. Change-Id: I9c1806eceb56712c4b3d1c67d54f4b21bd3fe50a
| | | * | | | Merge "Drop the dependency on 'ui' in verify_file()."Tao Bao2017-03-184-297/+235
| | | |\ \ \ \ | | | | |/ / / | | | |/| | |
| | | | * | | Drop the dependency on 'ui' in verify_file().Tao Bao2017-03-174-297/+235
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | verify_file() has a dependency on the global variable of 'ui' for posting the verification progress, which requires the users of libverifier to provide a UI instance. This CL adds an optional argument to verify_file() so that it can post the progress through the provided callback function. As a result, we can drop the MockUI class in verifier_test.cpp. Test: recovery_component_test passes. Test: verify_file() posts progress update when installing an OTA. Change-Id: I8b87d0f0d99777ea755d33d6dbbe2b6d44243bf1
* | | | | | | Merge "Drop the dependency on 'ui' in verify_file()."Tao Bao2017-03-184-303/+241
|\ \ \ \ \ \ \
| * | | | | | | Drop the dependency on 'ui' in verify_file().Tao Bao2017-03-174-303/+241
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | verify_file() has a dependency on the global variable of 'ui' for posting the verification progress, which requires the users of libverifier to provide a UI instance. This CL adds an optional argument to verify_file() so that it can post the progress through the provided callback function. As a result, we can drop the MockUI class in verifier_test.cpp. Test: recovery_component_test passes. Test: verify_file() posts progress update when installing an OTA. Change-Id: I8b87d0f0d99777ea755d33d6dbbe2b6d44243bf1 (cherry picked from commit 5e535014dd7961fbf812abeaa27f3339775031f1)
* | | | | | | | Merge "Revert "Revert "Print SHA-1 in hex for corrupted blocks""" am: 73cb75b46c am: 9accc96dd1Tianjie Xu2017-03-171-6/+140
|\ \ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 592078f554 Change-Id: I3c6e06a86fc53d03d97bd8ad5c5231ea69e0116f
| * | | | | | | Merge "Revert "Revert "Print SHA-1 in hex for corrupted blocks""" am: 73cb75b46cTianjie Xu2017-03-171-6/+140
| |\ \ \ \ \ \ \ | | | |/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9accc96dd1 Change-Id: I90f0e8dfef1cee02ebb4531560173392d3e5d1fa
| | * | | | | | Merge "Revert "Revert "Print SHA-1 in hex for corrupted blocks"""Tianjie Xu2017-03-171-6/+140
| | |\ \ \ \ \ \ | | | | |/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 73cb75b46c Change-Id: I81b1dc17eb5947f361d7b31b5bc8d07c34fe24b0
| | | * | | | | Merge "Revert "Revert "Print SHA-1 in hex for corrupted blocks"""Tianjie Xu2017-03-171-6/+140
| | | |\ \ \ \ \
| | | | * | | | | Revert "Revert "Print SHA-1 in hex for corrupted blocks""Tianjie Xu2017-03-171-6/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 90eff6a340f9983792d700df3b1ea0203aced207. Also fix the bug where stashed blocks are not freed. Bug: 21124445 Test: Previous failed update succeeded on bullhead Change-Id: I23d232331a2beb51b6dcc82c957c87bc247d0268
* | | | | | | | | Merge "Add a test to perform block_image_update" am: 881b08ecd2 am: 5c06706d51Tianjie Xu2017-03-172-6/+123
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 640fc1d338 Change-Id: If611a8023bb5411ac2a1063411d0030121ce0de2
| * | | | | | | | Merge "Add a test to perform block_image_update" am: 881b08ecd2Tianjie Xu2017-03-172-6/+123
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5c06706d51 Change-Id: I8d8961b0db84e7cedf12e0505d62f7321aace9ed
| | * | | | | | | Merge "Add a test to perform block_image_update"Tianjie Xu2017-03-172-6/+123
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 881b08ecd2 Change-Id: Id80b5d9376bbf65dbbeb82aa1c3d7cdd8921c9ff
| | | * | | | | | Merge "Add a test to perform block_image_update"Tianjie Xu2017-03-172-6/+123
| | | |\ \ \ \ \ \ | | | | |_|_|/ / / | | | |/| | | | |
| | | | * | | | | Add a test to perform block_image_updateTianjie Xu2017-03-172-6/+123
| | | | | |_|/ / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the following tests: stash src bspatch stashed_src tgt free stashed_src (expected a successful update) stash src free stashed_src fail_the_update (expected stashed_src freed) Bug: 36242722 Test: Test identified unfreed stashes correctly. Change-Id: I5a136e8dc31774367972fbfe8c63cbc1ddb3a113
* | | | | | | | Merge "Add the missing #include of <functional>." am: dd553d280f am: 965021ab8dTao Bao2017-03-172-0/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 26d00e87f9 Change-Id: Ib707f1282c3280374a014fadd7f27580f8bedaf0
| * | | | | | | Merge "Add the missing #include of <functional>." am: dd553d280fTao Bao2017-03-172-0/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 965021ab8d Change-Id: I31d1c3bb2729886457d4f5a573af7cd13cec74d2
| | * | | | | | Merge "Add the missing #include of <functional>."Tao Bao2017-03-172-0/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dd553d280f Change-Id: I9592ef7ff84d12acc027ba4f9f5014abbb45b805
| | | * | | | | Merge "Add the missing #include of <functional>."Tao Bao2017-03-172-0/+3
| | | |\ \ \ \ \ | | | | |_|/ / / | | | |/| | | |
| | | | * | | | Add the missing #include of <functional>.Tao Bao2017-03-172-0/+3
| | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For the use of std::function and std::bind. They were relying on the transitive inclusion from <minui/minui.h>. Test: mmma bootable/recovery Change-Id: Ia138e1cbdd035b11d6cdca9e16c5591303b6ee13
* | | | | | | Merge "More cleanup to imgdiff & imgpatch" am: 3541934ff5 am: 91f8574061Tianjie Xu2017-03-176-197/+133
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dda128abbf Change-Id: I4369d91759d40a1fb261766fb5b1e6aa0ecb36c4
| * | | | | | Merge "More cleanup to imgdiff & imgpatch" am: 3541934ff5Tianjie Xu2017-03-176-197/+133
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 91f8574061 Change-Id: I2ae1939a2a9452d23b3e659815e9e8f097c116a2
| | * | | | | Merge "More cleanup to imgdiff & imgpatch"Tianjie Xu2017-03-176-197/+133
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3541934ff5 Change-Id: Icd54cbc1ca04fbe959a16fa6ac59ac4c20aeddcf
| | | * | | | Merge "More cleanup to imgdiff & imgpatch"Treehugger Robot2017-03-176-197/+133
| | | |\ \ \ \
| | | | * | | | More cleanup to imgdiff & imgpatchTianjie Xu2017-03-166-197/+133
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also remove the utils in applypatch and replace them with the corresponding libbase functions. Test: recovery tests pass. Change-Id: I77254c141bd3e7d3d6894c23b60e866009516f81
* | | | | | | Merge "updater: Minor clean up to EnumerateStash()." am: 4fc7659612 am: 8209daeff1Tao Bao2017-03-171-73/+50
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8da15d10da Change-Id: I7912d4d125d1b9660497660d42a2130b26374e09
| * | | | | | Merge "updater: Minor clean up to EnumerateStash()." am: 4fc7659612Tao Bao2017-03-171-73/+50
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8209daeff1 Change-Id: I1a6540650a9a7f9b4252bf20e6ac2eb8c59e5642
| | * | | | | Merge "updater: Minor clean up to EnumerateStash()."Tao Bao2017-03-171-73/+50
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4fc7659612 Change-Id: I2e51c81a9742dd71e487784eb51d472ee8a9fd04
| | | * | | | Merge "updater: Minor clean up to EnumerateStash()."Tao Bao2017-03-171-73/+50
| | | |\ \ \ \ | | | | |/ / / | | | |/| | |
| | | | * | | updater: Minor clean up to EnumerateStash().Tao Bao2017-03-161-73/+50
| | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: Apply an incremental BBOTA package with the new updater. Test: Resume an interrupted BBOTA (so it cleans up the partial stash). Change-Id: I620cc57ee6366845bcffbc19210f7a01e2196052
* | | | / / Merge "Revert "Print SHA-1 in hex for corrupted blocks"" am: 06f6227f1d am: 8acce85be8Tao Bao2017-03-151-140/+3
|\| | | | | | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | am: 7a57bb564a Change-Id: Ic860f7de6d4134875b28fec9709e9a3069f5d67d
| * | | | Merge "Revert "Print SHA-1 in hex for corrupted blocks"" am: 06f6227f1dTao Bao2017-03-151-140/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8acce85be8 Change-Id: Idfa1fa66a81fa8282737258bc846cce0a4919b4a
| | * | | Merge "Revert "Print SHA-1 in hex for corrupted blocks""Tao Bao2017-03-151-140/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 06f6227f1d Change-Id: I8a7a1653cdadf4748508d38b69da51fa5d5be877
| | | * | Merge "Revert "Print SHA-1 in hex for corrupted blocks""Tao Bao2017-03-151-140/+3
| | | |\ \
| | | | * | Revert "Print SHA-1 in hex for corrupted blocks"Tao Bao2017-03-151-140/+3
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit bb0cd75a0e1f6760bdf96bd141f3a546ffa45fbc. Broke the 'free' command that deletes a stash. Bug: 36242722 Test: The previously failed incremental applies successfully. Change-Id: I1237cb0a33adfbeea57e0465b629704862ba13aa
* | | | | Merge "updater: Remove some obsoleted functions for file-based OTA." am: 342717d148 am: 000f364c19Tao Bao2017-03-142-475/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1fc6e95672 Change-Id: I3e01f0bbcbe9233b2c0ed8088fc3cf1781a4baf3
| * | | | Merge "updater: Remove some obsoleted functions for file-based OTA." am: 342717d148Tao Bao2017-03-142-475/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 000f364c19 Change-Id: If8fc89d7a6e6111bb3ed51f888fa5303914aebd8
| | * | | Merge "updater: Remove some obsoleted functions for file-based OTA."Tao Bao2017-03-142-475/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 342717d148 Change-Id: I773ec06188a884ebdefe5194ede39974a4b1f419
| | | * | Merge "updater: Remove some obsoleted functions for file-based OTA."Tao Bao2017-03-142-475/+0
| | | |\ \
| | | | * | updater: Remove some obsoleted functions for file-based OTA.Tao Bao2017-03-132-475/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL removes the updater support for delete(), symlink(), rename(), set_metadata() and set_metadata_recursive(). Such functions have been removed from the generation script in commit f388104eaacd05cfa075d6478369e1d0df5ddbf3 (platform/build). Note: This CL also removes delete_recursive() which seems to have never been supported in generation script. Bug: 35853185 Test: recovery_component_test passes. Change-Id: I51e1ec946fa73761118fa1eaa082423df6d588e9
* | | | | | Merge "Print SHA-1 in hex for corrupted blocks" am: 59383b383c am: 821592aff4Tianjie Xu2017-03-131-3/+140
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 51c6b7079e Change-Id: Iaa03517eaed640c4f8e6ee44bffdd0539f748853
| * | | | | Merge "Print SHA-1 in hex for corrupted blocks" am: 59383b383cTianjie Xu2017-03-131-3/+140
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 821592aff4 Change-Id: I7555a81c640bee3c8bb165fe712d5d55cb94d6fe
| | * | | | Merge "Print SHA-1 in hex for corrupted blocks"Tianjie Xu2017-03-131-3/+140
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 59383b383c Change-Id: Ib1e6c3c853a52e619f053996c45913cfc9a70703
| | | * | | Merge "Print SHA-1 in hex for corrupted blocks"Tianjie Xu2017-03-131-3/+140
| | | |\ \ \ | | | | |/ / | | | |/| |
| | | | * | Print SHA-1 in hex for corrupted blocksTianjie Xu2017-03-131-3/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It will be helpful for debug if we know which blocks are corrupted after a verification failure. This CL prints the SHA-1 for each source block in a transfer command if these blocks don't have an expected hash. And along with the correct SHA-1, we will catch the corrupted blocks. Bug: 21124445 Test: Printed the mismatched SHA-1 for bullhead during an update. Change-Id: I683d4bdaf9a335035045b3f532b3a265b2fcbbfc
* | | | | | Merge "update_verifier: Set the success flag if dm-verity is not enabled." am: a7211b3c16 am: 6c6861d7c5Tao Bao2017-03-112-0/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 390ae4c660 Change-Id: I61026e9987d434fc8ccccfa7e7913e4d9e4b0020
| * | | | | Merge "update_verifier: Set the success flag if dm-verity is not enabled." am: a7211b3c16Tao Bao2017-03-112-0/+9
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6c6861d7c5 Change-Id: I93a04b0b60ee1b18554c4d2bf993084d16f6a039
| | * | | | Merge "update_verifier: Set the success flag if dm-verity is not enabled."Tao Bao2017-03-112-0/+9
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a7211b3c16 Change-Id: I4e516463fe7a7a7f97e7bb6c7c7c42f5f320f7ef
| | | * | | Merge "update_verifier: Set the success flag if dm-verity is not enabled."Tao Bao2017-03-112-0/+9
| | | |\ \ \
| | | | * | | update_verifier: Set the success flag if dm-verity is not enabled.Tao Bao2017-03-112-0/+9
| | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For devices that are not using dm-verity, update_verifier can't verify anything, but to mark the successfully booted flag unconditionally. Test: Successfully-booted flag is set on devices w/o dm-verity. Test: Successfully-booted flag is set after verification on devices w/ dm-verity. Change-Id: I79ab2caec2d4284aad0d66dd161adabebde175b6
* | | | | | Merge "recovery: replacing fs_mgr_read_fstab() with new fs_mgr APIs" am: 7a0dfec771 am: 1a23257214Bowgo Tsai2017-03-104-44/+13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1a76f4a3bc Change-Id: I8869ddf69589c2a1bb0e8dd493df67f9126db585
| * | | | | Merge "recovery: replacing fs_mgr_read_fstab() with new fs_mgr APIs" am: 7a0dfec771Bowgo Tsai2017-03-104-44/+13
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1a23257214 Change-Id: Ie60bf8b6b9e55c91770df218e02383dc4adb20cd
| | * | | | Merge "recovery: replacing fs_mgr_read_fstab() with new fs_mgr APIs"Bowgo Tsai2017-03-104-44/+13
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7a0dfec771 Change-Id: I99394806f787e6a6acc55d240720fd22f57ac523
| | | * | | Merge "recovery: replacing fs_mgr_read_fstab() with new fs_mgr APIs"Treehugger Robot2017-03-104-44/+13
| | | |\ \ \ | | | | |/ / | | | |/| |
| | | | * | recovery: replacing fs_mgr_read_fstab() with new fs_mgr APIsBowgo Tsai2017-03-104-44/+13
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fstab settings of early-mounted partitions (e.g., /vendor) will be in kernel device tree. Switch to the new API to get the whole settings with those in device tree: fs_mgr_read_fstab_with_dt("/etc/recovery.fstab") The original default /fstab.{ro.hardware} might be moved to /vendor/etc/. or /odm/etc/. Use another new API to get the default fstab instead of using the hard-coded /fstab.{ro.hardware}. This API also includes the settings from device tree: fs_mgr_read_fstab_default() Bug: 35811655 Test: boot sailfish recovery Change-Id: Iaa56ac7f7b4c4dfc7180c65f03e9a37b94f1de09
* | | | | Merge "recovery: Fix the FIXME in get_menu_selection()." am: f0e8f0727e am: 316610763bTao Bao2017-03-081-99/+94
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0970c47d74 Change-Id: I7e23bc98c5039060bc8c6d6bec75ca11f6f2d8ff
| * | | | Merge "recovery: Fix the FIXME in get_menu_selection()." am: f0e8f0727eTao Bao2017-03-081-99/+94
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 316610763b Change-Id: Ie0698991909eb5276be4be9a7e2a65896ff0055a
| | * | | Merge "recovery: Fix the FIXME in get_menu_selection()."Tao Bao2017-03-081-99/+94
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: f0e8f0727e Change-Id: Ia944d71ea0ef89d3ed73abf53e1efc740302a630
| | | * | Merge "recovery: Fix the FIXME in get_menu_selection()."Tao Bao2017-03-081-99/+94
| | | |\ \
| | | | * | recovery: Fix the FIXME in get_menu_selection().Tao Bao2017-03-081-99/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It used to return a REBOOT action on timeout, until the CL in commit daefc1d442fb421606680feb9aeb59c133f4c427 that redefined the return value of get_menu_selection() (changing from action to a menu index). Prior to this CL, it was returning 0 (i.e. the value of Device::REBOOT) to trigger the reboot. This CL specifies a return value of -1 to indicate the timeout. Test: Boot into a user build recovery; it reboots automatically on timeout (120 sec). Change-Id: I4aedb7a4628bf258017078fe73eb8b48a21d0ea8
* | | | | | Merge "recovery: Move a few int to bool." am: cbb2bcf541 am: b97f06a5ddTao Bao2017-03-083-147/+142
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 25070fcf47 Change-Id: Idfbf4d7031337facb9c8e943aab239aa3c5d89a9
| * | | | | Merge "recovery: Move a few int to bool." am: cbb2bcf541Tao Bao2017-03-083-147/+142
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b97f06a5dd Change-Id: I406a6cfffe6bef144d31fb605cd572fd5df6d72b
| | * | | | Merge "recovery: Move a few int to bool."Tao Bao2017-03-083-147/+142
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cbb2bcf541 Change-Id: I73b44ccf00d361ca3dfa47832ef8a4cb253c83ff
| | | * | | Merge "recovery: Move a few int to bool."Tao Bao2017-03-083-147/+142
| | | |\| |
| | | | * | recovery: Move a few int to bool.Tao Bao2017-03-083-147/+142
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the changes are trivial. Also update a dead reference to device_handle_key() in device.h comment, and add some comments to get_menu_selection() function. Test: `mmma bootable/recovery` Change-Id: I59ef9213ec88ab35c0e7b8a7813ccf9c56dbd5c5
* | | | | Merge "recovery: Add the missing #include." am: b7f56f9b91 am: d988b56999Tao Bao2017-03-071-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fe380a30a6 Change-Id: Icc449069f386c7ea8d80a18fa95b0061e7baf4f4
| * | | | Merge "recovery: Add the missing #include." am: b7f56f9b91Tao Bao2017-03-071-0/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d988b56999 Change-Id: I3d0b551d86c9dbaf2976f9de7e7e712aadf84a1a
| | * | | Merge "recovery: Add the missing #include."Tao Bao2017-03-071-0/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: b7f56f9b91 Change-Id: I2d1801e9bbbea854ef3a81b02514a79adf7a3003
| | | * | Merge "recovery: Add the missing #include."Tao Bao2017-03-071-0/+2
| | | |\ \
| | | | * | recovery: Add the missing #include.Tao Bao2017-03-071-0/+2
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Although I checked there's no reference to 'stage' in device-specific recovery codes (for commit a8d72bc3b4087632e8cdad95e8355a2495e15690), it's insufficient to capture the missing #include issue. Test: lunch aosp_dragon-userdebug; mmma bootable/recovery Change-Id: I4c5dbe9acf38918491c3aa776ce358be03f9ecca
* | | | | Merge "recovery: Drop the "--stages" / '-g' argument." am: 9bd1dced90 am: ecf5467a82Tao Bao2017-03-072-14/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 25f8062e35 Change-Id: I7337b380e8539b60df9e03287d51b1176b9528cb
| * | | | Merge "recovery: Drop the "--stages" / '-g' argument." am: 9bd1dced90Tao Bao2017-03-072-14/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ecf5467a82 Change-Id: I05e330ba778ab29118cd5e1082a77eb5bf100e26
| | * | | Merge "recovery: Drop the "--stages" / '-g' argument."Tao Bao2017-03-072-14/+5
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9bd1dced90 Change-Id: I2110aaac69dfe017281924426486dc821da10b49
| | | * | Merge "recovery: Drop the "--stages" / '-g' argument."Tao Bao2017-03-072-14/+5
| | | |\ \
| | | | * | recovery: Drop the "--stages" / '-g' argument.Tao Bao2017-03-072-14/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was introduced in commit c87bab101893e8322b49d7c8600e3367b20ab50a. But the stage info should be passed through BCB only (there's a dedicated field in struct bootloader_message). This CL removes it from recovery arguments, and also moves 'stage' variable to std::string. Test: 'stage' variable is not used by any device-specific recovery code. Test: Code search shows no hit of '--stages' use. Change-Id: Iccbde578a13255f2b55dd4a928e9ecf487f16b97
* | | | | | Merge "recovery: Add SetStage() into 'Run graphics test'." am: 1a575f8d5f am: e303128144Tao Bao2017-03-071-25/+37
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f8fddd0341 Change-Id: I81527d626b7608063dd8f7021c833fb2b59023c0
| * | | | | Merge "recovery: Add SetStage() into 'Run graphics test'." am: 1a575f8d5fTao Bao2017-03-071-25/+37
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e303128144 Change-Id: I216c7c75b8c87fd3882bef1d5f5cc40a63d55196
| | * | | | Merge "recovery: Add SetStage() into 'Run graphics test'."Tao Bao2017-03-071-25/+37
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1a575f8d5f Change-Id: Ic9195fcbce64b811ab71fc6873147db8f2308f4a
| | | * | | Merge "recovery: Add SetStage() into 'Run graphics test'."Tao Bao2017-03-071-25/+37
| | | |\ \ \
| | | | * | | recovery: Add SetStage() into 'Run graphics test'.Tao Bao2017-03-071-25/+37
| | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows a quicker test for stage UI. Bug: 27804510 Test: 'Run graphices test' with the new recovery image. Change-Id: I47689ae8e4cac6d7e5d1f6a10b9e393d50d713f3
* | | | | | Merge "recovery: Minor clean up to choose_recovery_file()." am: 73d21d1c1c am: 4a2bde2d26Tao Bao2017-03-071-51/+35
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1f1a738968 Change-Id: I181515b3d8b80bcdd5e29136a50d58984ddedca6
| * | | | | Merge "recovery: Minor clean up to choose_recovery_file()." am: 73d21d1c1cTao Bao2017-03-071-51/+35
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4a2bde2d26 Change-Id: Ib0d23cb6913b6133009efc14d070232f9c9e2bed
| | * | | | Merge "recovery: Minor clean up to choose_recovery_file()."Tao Bao2017-03-071-51/+35
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 73d21d1c1c Change-Id: I06d44be6abee33c6760bd3e9bf8a5d0945c6e442
| | | * | | Merge "recovery: Minor clean up to choose_recovery_file()."Tao Bao2017-03-071-51/+35
| | | |\ \ \ | | | | |/ / | | | |/| |
| | | | * | recovery: Minor clean up to choose_recovery_file().Tao Bao2017-03-071-51/+35
| | | |/ / | | | | | | | | | | | | | | | | | | | | Test: 'View recovery logs' on bullhead and sailfish. Change-Id: I53272b121e3e55e6fe4c77b71e3c2e819e72cb64
* | | | | Merge "Refractor the code for imgdiff" am: a2e7a07031 am: 68571e27d8Tianjie Xu2017-03-074-618/+653
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 36ee8dd262 Change-Id: I8ce462fa0d6c9ea601e1e3d3c9386cc3fcaa7972
| * | | | Merge "Refractor the code for imgdiff" am: a2e7a07031Tianjie Xu2017-03-074-618/+653
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 68571e27d8 Change-Id: Ia09afb0b5c510171196e9b072506d973019dc60d
| | * | | Merge "Refractor the code for imgdiff"Tianjie Xu2017-03-074-618/+653
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: a2e7a07031 Change-Id: Ic183461ff0f29d73b2baee2f28fa7a580f01d5c7
| | | * | Merge "Refractor the code for imgdiff"Treehugger Robot2017-03-074-618/+653
| | | |\ \
| | | | * | Refractor the code for imgdiffTianjie Xu2017-03-074-618/+653
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Put ImageChunk and some helper functions into a class. Also switch to using std::vector instead of malloc. Bug: 18606652 Test: imgdiff_test passed on host. Also generate a complete incremental OTA package. The file content is the same and time consumption is similar. Change-Id: Id603ada4e130ef521218400761a119001a86ca79
* | | | | | Merge "Fix an error on bootloadermessager test teardown" am: b694ba8aab am: 536989892cTianjie Xu2017-03-031-2/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b2dfc0182a Change-Id: Ie4ee06310e7ea9c36e5323f4990f71f2f8fb771e
| * | | | | Merge "Fix an error on bootloadermessager test teardown" am: b694ba8aabTianjie Xu2017-03-031-2/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 536989892c Change-Id: I457f30c36fde0dd407a9684fbc7c2d68ac2b94c0
| | * | | | Merge "Fix an error on bootloadermessager test teardown"Tianjie Xu2017-03-031-2/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b694ba8aab Change-Id: I9e32f0468e4d5fb22190d9c64b2804666d8202fb
| | | * | | Merge "Fix an error on bootloadermessager test teardown"Tianjie Xu2017-03-031-2/+4
| | | |\ \ \
| | | | * | | Fix an error on bootloadermessager test teardownTianjie Xu2017-03-031-2/+4
| | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test should not clear bcb during teardown on devices without /misc. Bug: 35712836 Test: The test tears down without errors after /misc removed from the fstab. Change-Id: I42df89feb18fac5a435cd17eef97a6bad0f44545
* | | | | | Merge "Recovery Test: add SideloadTest to test FUSE support on target" am: 53feebea4f am: 3d605c54e3Wei Wang2017-03-032-0/+22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 685391c5e9 Change-Id: I656a9c7f1e4880bb00e7aaad7f9e55104a7096a7
| * | | | | Merge "Recovery Test: add SideloadTest to test FUSE support on target" am: 53feebea4fWei Wang2017-03-032-0/+22
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3d605c54e3 Change-Id: If8fb74e5d040cf73b9e08abff1cc8fed574e0d64
| | * | | | Merge "Recovery Test: add SideloadTest to test FUSE support on target"Wei Wang2017-03-032-0/+22
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 53feebea4f Change-Id: Idc6cf3db83322316f31c99b0e0490f8b0939d8b1
| | | * | | Merge "Recovery Test: add SideloadTest to test FUSE support on target"Treehugger Robot2017-03-032-0/+22
| | | |\ \ \ | | | | |/ / | | | |/| |
| | | | * | Recovery Test: add SideloadTest to test FUSE support on targetWei Wang2017-03-032-0/+22
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FUSE FS is required in recovery sideload functionalites. This CL is to add a native test to flag when FUSE is not supported in the device kernel. Bug: 35768196 Test: mma, run recovery_component_test on marlin and pass all Change-Id: I43b6dbee658010df56ba4d4b0e91baa7fd1c4480
* | | | | Merge "Skip BootloaderMessageTest, UncryptTest for devices without /misc" am: 0f26468eda am: 5cce91a95aTianjie Xu2017-03-013-3/+111
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6b0959a6bb Change-Id: I1dc478edd656d4a20b4b886570d8ff822fe5e29e
| * | | | Merge "Skip BootloaderMessageTest, UncryptTest for devices without /misc" am: 0f26468edaTianjie Xu2017-03-013-3/+111
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5cce91a95a Change-Id: Iab56aa614ff6d910b65bf50327177837dd3fdf1b
| | * | | Merge "Skip BootloaderMessageTest, UncryptTest for devices without /misc"Tianjie Xu2017-03-013-3/+111
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0f26468eda Change-Id: Iab64d6894c3d228ce3e4bb9b57db30eecbcb09c5
| | | * | Merge "Skip BootloaderMessageTest, UncryptTest for devices without /misc"Treehugger Robot2017-03-013-3/+111
| | | |\ \
| | | | * | Skip BootloaderMessageTest, UncryptTest for devices without /miscTianjie Xu2017-03-013-3/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Skip these two tests if /misc partition is not found in fstab. Bug: 35712836 Test: Both test skip correctly if there's no /misc in fstab.${hardware}. Change-Id: I38417a8677030229a335e43eaef85ae70c4e0845
* | | | | | Merge "recovery: Remember the last log position." am: d549616b24 am: 6691dacf56Tao Bao2017-03-011-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b1ddf973d0 Change-Id: Iaac30245dfe49d2024e6e871f08f8b439065e739
| * | | | | Merge "recovery: Remember the last log position." am: d549616b24Tao Bao2017-03-011-1/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6691dacf56 Change-Id: If020fcbe02e879e96b1b6481c1aae4029785483e
| | * | | | Merge "recovery: Remember the last log position."Tao Bao2017-03-011-1/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d549616b24 Change-Id: Ibf3ad2e7dc5c8e1de8f6c5eefe7efec4a2b63a4f
| | | * | | Merge "recovery: Remember the last log position."Tao Bao2017-03-011-1/+2
| | | |\ \ \ | | | | |/ / | | | |/| |
| | | | * | recovery: Remember the last log position.Tao Bao2017-03-011-1/+2
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After reading one log entry, it should stay at the same menu position. Test: 'View recovery logs' -> Read -> Exit Change-Id: I4b579be4c2fe1e3a1dcc4873e128fd0b2d619ba3
* | | | | Import translations. DO NOT MERGEBill Yi2017-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I90d94072de955eca8ea38762faa5d3e5a4f295db Auto-generated-cl: translation import
* | | | | Merge "recovery: Don't show "No /cache partition found" on screen." am: 021304503a am: 7c77883b06Tao Bao2017-02-241-1/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 43248cc36c Change-Id: I078f19d294d225479620b378e2644796325698c5
| * | | | Merge "recovery: Don't show "No /cache partition found" on screen." am: 021304503aTao Bao2017-02-241-1/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7c77883b06 Change-Id: I1797129fa70266d9fe5eb09dece6b00cf75b6f2a
| | * | | Merge "recovery: Don't show "No /cache partition found" on screen."Tao Bao2017-02-241-1/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 021304503a Change-Id: I5bc7cba2eb474faf60212877cd621d8ab06fe00c
| | | * | Merge "recovery: Don't show "No /cache partition found" on screen."Treehugger Robot2017-02-241-1/+0
| | | |\ \
| | | | * | recovery: Don't show "No /cache partition found" on screen.Tao Bao2017-02-241-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | People have been confused by the message and thought that's an error. Test: Boot recovery on sailfish; choose 'View recovery logs'. Change-Id: I2c540f18d6493c1a129233d10ecbc96823dd3601
* | | | | | Merge "Add a missing #include for openat(2)." am: 3ac0dd2a56 am: cdfe2895b4Elliott Hughes2017-02-241-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a82df97dd8 Change-Id: Ie157634ac0e83d168a980fe1b3c72664179551ce
| * | | | | Merge "Add a missing #include for openat(2)." am: 3ac0dd2a56Elliott Hughes2017-02-241-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cdfe2895b4 Change-Id: I0924ddf2096e076bd6a32b850c25e575f080041d
| | * | | | Merge "Add a missing #include for openat(2)."Elliott Hughes2017-02-241-0/+1
| |/| | | | | | |/ / / | | | | | | | | | | | | | | | | | | | | am: 3ac0dd2a56 Change-Id: I29988a3e7d509587d55c7a821c4ced2e0f32ebe4
| | * | | Merge "Add a missing #include for openat(2)."Elliott Hughes2017-02-241-0/+1
| | |\ \ \
| | | * | | Add a missing #include for openat(2).Elliott Hughes2017-02-231-0/+1
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | Bug: https://code.google.com/p/android/issues/detail?id=64374 Test: builds Change-Id: I7d7650463197710657820a1adce51f71c1b01415
* | | | | Merge "Use bspatch from external/bsdiff." am: f9962dbfe2 am: 2c467f6e49 am: 6f06890343Sen Jiang2017-02-165-183/+31
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 05087fb83d Change-Id: Ifafcedf27aa9394a307fca854c491891191cce04
| * | | | Merge "Use bspatch from external/bsdiff." am: f9962dbfe2 am: 2c467f6e49Sen Jiang2017-02-165-183/+31
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6f06890343 Change-Id: I6e49f937f1145dba2c5500f25db5020fca7ceac0
| | * \ \ \ Merge "Use bspatch from external/bsdiff." am: f9962dbfe2Sen Jiang2017-02-165-183/+31
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2c467f6e49 Change-Id: Id7641e953d6ca749e20ecfb126a39392b6db3dab
| | | * | | | Merge "Use bspatch from external/bsdiff."Sen Jiang2017-02-165-183/+31
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f9962dbfe2 Change-Id: I21e6de951b22673fe48ff8f7db418e22d233ee58
| | | | * | | Merge "Use bspatch from external/bsdiff."Sen Jiang2017-02-165-183/+31
| | | | |\ \ \ | | | | | |/ / | | | | |/| |
| | | | | * | Use bspatch from external/bsdiff.Sen Jiang2017-02-025-183/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now ApplyBSDiffPatch() will stream the output to sink as we go instead of sinking everything at the end. Test: recovery_host_test Bug: 26982501 Change-Id: I05b6ed40d45e4b1b19ae72784cf705b731b976e3
* | | | | | | Merge "recovery: Clean up browse_directory()." am: 635eb1c83e am: c42d44bbeb am: 19e7776451Tao Bao2017-02-141-92/+55
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b1b8e89db8 Change-Id: I5eb70db5411cb8e5a1d469f132d4b974df4fa0a7
| * | | | | | Merge "recovery: Clean up browse_directory()." am: 635eb1c83e am: c42d44bbebTao Bao2017-02-141-92/+55
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 19e7776451 Change-Id: I412a0f3df337c20c89b6168521ac7dd7a8e47ee5
| | * | | | | Merge "recovery: Clean up browse_directory()." am: 635eb1c83eTao Bao2017-02-141-92/+55
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c42d44bbeb Change-Id: I462259ea96248f253e161065a17b0098add83716
| | | * | | | Merge "recovery: Clean up browse_directory()."Tao Bao2017-02-141-92/+55
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 635eb1c83e Change-Id: Idf8a4e33a1f7cfd5d5c648aa97e00219828fc58d
| | | | * | | Merge "recovery: Clean up browse_directory()."Tao Bao2017-02-141-92/+55
| | | | |\ \ \
| | | | | * | | recovery: Clean up browse_directory().Tao Bao2017-02-111-92/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Get rid of the malloc/realloc/free'd menus. browse_directory() will only be called on devices with SD card. Tested the CL by temporarily setting SDCARD_ROOT to a different location. Test: See above. Change-Id: I935e1bf4bad0273e3dff87fa2536924f1219adb5
* | | | | | | | Merge "minui: Move graphics_{adf,drm,fbdev} into classes." am: 0d14cc279c am: 6585a3c368 am: b8997adc20Tao Bao2017-02-138-271/+333
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1cb8964aac Change-Id: I8b1fb8ba115f7313f7382b7669e35184eaea3a79
| * | | | | | | Merge "minui: Move graphics_{adf,drm,fbdev} into classes." am: 0d14cc279c am: 6585a3c368Tao Bao2017-02-138-271/+333
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b8997adc20 Change-Id: I32adb7cc1bf316e5986308a8863399e5a504e10f
| | * | | | | | Merge "minui: Move graphics_{adf,drm,fbdev} into classes." am: 0d14cc279cTao Bao2017-02-138-271/+333
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6585a3c368 Change-Id: I0484295d4c202f6854968f99bac0b4b0c6928378
| | | * | | | | Merge "minui: Move graphics_{adf,drm,fbdev} into classes."Tao Bao2017-02-138-271/+333
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0d14cc279c Change-Id: I75c426732188a868f0acb160284a45a19d0b9b1e
| | | | * | | | Merge "minui: Move graphics_{adf,drm,fbdev} into classes."Tao Bao2017-02-138-271/+333
| | | | |\ \ \ \ | | | | | |/ / / | | | | |/| | |
| | | | | * | | minui: Move graphics_{adf,drm,fbdev} into classes.Tao Bao2017-02-118-271/+333
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL defines minui_backend as an interface, and expresses the three backends (adf, drm and fbdev) as subclasses to the interface. Test: 'Run graphics test' on N9, Pixel C and N5X. Change-Id: I0e23951c7b2e2ff918957a8d9fc8b0085b6e5952
* | | | | | | Merge "minui: Save errno before calling close()." am: df464dbe79 am: 8075089ca1 am: 30c164411fTao Bao2017-02-101-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0b4641724b Change-Id: I494ad8c5749290645f9850410789247e35d3bd41
| * | | | | | Merge "minui: Save errno before calling close()." am: df464dbe79 am: 8075089ca1Tao Bao2017-02-101-1/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 30c164411f Change-Id: Ifebc398f240364d0afc2d0abd5eba01f07b36d9d
| | * | | | | Merge "minui: Save errno before calling close()." am: df464dbe79Tao Bao2017-02-101-1/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8075089ca1 Change-Id: I7641b122a89431ecdf1208a11dd5c0e3f948ab0b
| | | * | | | Merge "minui: Save errno before calling close()."Tao Bao2017-02-101-1/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: df464dbe79 Change-Id: I58e4df9b09b8c6e1470a815180df73d908b98d0a
| | | | * | | Merge "minui: Save errno before calling close()."Treehugger Robot2017-02-101-1/+2
| | | | |\ \ \
| | | | | * | | minui: Save errno before calling close().Tao Bao2017-02-091-1/+2
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise errno would be overwritten when calling close(2). Test: mmma bootable/recovery Change-Id: I661e46b1b040f550639a728aa2683e91621b4307
* | | | | | | Merge "minui: Clean up graphics_fbdev.cpp." am: 5121961421 am: e91a2d23ca am: c441edd1c3Tao Bao2017-02-091-139/+129
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e799840d8d Change-Id: I4d9b1ddb2819b59234a32cca15009adf018c91e6
| * | | | | | Merge "minui: Clean up graphics_fbdev.cpp." am: 5121961421 am: e91a2d23caTao Bao2017-02-091-139/+129
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c441edd1c3 Change-Id: I81a799dfff3453dbbcd5465595785473f17a972d
| | * | | | | Merge "minui: Clean up graphics_fbdev.cpp." am: 5121961421Tao Bao2017-02-091-139/+129
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e91a2d23ca Change-Id: I9eb08e7e14df408dc3a6284d9a558858060f1052
| | | * | | | Merge "minui: Clean up graphics_fbdev.cpp."Tao Bao2017-02-091-139/+129
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5121961421 Change-Id: If16c6e23b6eb8854660c5c461fc5283e5e5bd4e5
| | | | * | | Merge "minui: Clean up graphics_fbdev.cpp."Treehugger Robot2017-02-091-139/+129
| | | | |\ \ \
| | | | | * | | minui: Clean up graphics_fbdev.cpp.Tao Bao2017-02-071-139/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unneeded header includes. Otherwise mostly cosmetic changes like reformatting. Test: 'Run graphics test' on bullhead (which uses fbdev). Change-Id: I9b92c96128fa332ac940f73764f9c5fc93ff6c8c
* | | | | | | | Merge "minui: Clean up graphics_adf.cpp." am: d592e1d5e1 am: 46829c326e am: ffd5c03711Tao Bao2017-02-091-191/+156
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ff7a320971 Change-Id: I5d6139d8ffd8f65f19caf24d3c17b090fe59bb4b
| * | | | | | | Merge "minui: Clean up graphics_adf.cpp." am: d592e1d5e1 am: 46829c326eTao Bao2017-02-091-191/+156
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ffd5c03711 Change-Id: Idb949b2caa2b168677730c70ace20914bd21b42e
| | * | | | | | Merge "minui: Clean up graphics_adf.cpp." am: d592e1d5e1Tao Bao2017-02-091-191/+156
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 46829c326e Change-Id: I1b12bb7c728cb1be70a865f489971f38e00fe175
| | | * | | | | Merge "minui: Clean up graphics_adf.cpp."Tao Bao2017-02-091-191/+156
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d592e1d5e1 Change-Id: Ia530771c7e5443b15ffacfcd439549617c3bd6fb
| | | | * | | | Merge "minui: Clean up graphics_adf.cpp."Tao Bao2017-02-091-191/+156
| | | | |\ \ \ \
| | | | | * | | | minui: Clean up graphics_adf.cpp.Tao Bao2017-02-071-191/+156
| | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unneeded header includes. Switch a few memset() to '= {}' style. Otherwise mostly cosmetic changes like reformatting. Test: 'Run graphics test' on N9 (which is an ADF device). Change-Id: If008af18ddae9521f53216b581d882d5eed76d41
* | | | | | | | Merge "minui: Clean up graphics_drm.cpp." am: 648f252c71 am: f6b6b75916 am: ed5ee5292cTao Bao2017-02-091-351/+297
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0f38c6da12 Change-Id: I20e3c6b46345df5035d7077dbd3aaf0a2be58670
| * | | | | | | Merge "minui: Clean up graphics_drm.cpp." am: 648f252c71 am: f6b6b75916Tao Bao2017-02-091-351/+297
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ed5ee5292c Change-Id: I21eb69fec55c2f68142acd94f043557fa24f75f2
| | * | | | | | Merge "minui: Clean up graphics_drm.cpp." am: 648f252c71Tao Bao2017-02-091-351/+297
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f6b6b75916 Change-Id: I897a2b2a5046554a92ee8be59bc6e90ebbe2b8f5
| | | * | | | | Merge "minui: Clean up graphics_drm.cpp."Tao Bao2017-02-091-351/+297
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 648f252c71 Change-Id: I30f5536b2a0686424da0dc31ba9da787768a00d4
| | | | * | | | Merge "minui: Clean up graphics_drm.cpp."Treehugger Robot2017-02-091-351/+297
| | | | |\ \ \ \ | | | | | |/ / / | | | | |/| | |
| | | | | * | | minui: Clean up graphics_drm.cpp.Tao Bao2017-02-071-351/+297
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unneeded header includes. Switch a few memset() to '= {}' style. Otherwise mostly cosmetic changes like reformatting. Test: 'Run graphics test' on ryu (which is a DRM device). Change-Id: I4b0ab2dc0da69a690f09e4f0674b8377de662962
* | | | | | | Merge "Replace _exit(-1) with _exit(EXIT_FAILURE)." am: 95bcbfdd4e am: 80176c68b2 am: b8af1beed0Tao Bao2017-02-046-9/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5101b78f03 Change-Id: I0ae109fdc9c0600fdaf82dedbf56bb86a63ff6d3
| * | | | | | Merge "Replace _exit(-1) with _exit(EXIT_FAILURE)." am: 95bcbfdd4e am: 80176c68b2Tao Bao2017-02-046-9/+9
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b8af1beed0 Change-Id: I1f764a4f9c1cb442f9c6d8a5ae885739364fcc04
| | * | | | | Merge "Replace _exit(-1) with _exit(EXIT_FAILURE)." am: 95bcbfdd4eTao Bao2017-02-046-9/+9
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 80176c68b2 Change-Id: I6338fc4f929b0887563a0194719c887131538fec
| | | * | | | Merge "Replace _exit(-1) with _exit(EXIT_FAILURE)."Tao Bao2017-02-046-9/+9
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 95bcbfdd4e Change-Id: Icbf6b4d02cc8d60c66f7ed8ebf9d7798a2d518c3
| | | | * | | Merge "Replace _exit(-1) with _exit(EXIT_FAILURE)."Treehugger Robot2017-02-046-9/+9
| | | | |\ \ \
| | | | | * | | Replace _exit(-1) with _exit(EXIT_FAILURE).Tao Bao2017-02-036-9/+9
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -1 is not a valid exit status. Also replace a few exit(1) with exit(EXIT_FAILURE). Test: mmma bootable/recovery Change-Id: I4596c8328b770bf95acccc06a4401bd5cabd4bfd
* | | | | | | Merge "Avoid to call UI functions in child process" am: 0f275ae56e am: 5fa2e576f9 am: 15ab95bb63Tianjie Xu2017-02-031-1/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5eaf3cd966 Change-Id: Idd211a64de13886a6ca74b5bf33159d3b90cdf7d
| * | | | | | Merge "Avoid to call UI functions in child process" am: 0f275ae56e am: 5fa2e576f9Tianjie Xu2017-02-031-1/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 15ab95bb63 Change-Id: Ifedf5d53d6ff11ecfeda4a8a1fe7f4e802c9e152
| | * | | | | Merge "Avoid to call UI functions in child process" am: 0f275ae56eTianjie Xu2017-02-031-1/+5
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5fa2e576f9 Change-Id: I83d52f51ab6c788cc67a75ca6f7a46cd2f8289cd
| | | * | | | Merge "Avoid to call UI functions in child process"Tianjie Xu2017-02-031-1/+5
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0f275ae56e Change-Id: Ia1a735d6ca5c966e6e84c5fe67456c3b5142632e
| | | | * | | Merge "Avoid to call UI functions in child process"Treehugger Robot2017-02-031-1/+5
| | | | |\ \ \
| | | | | * | | Avoid to call UI functions in child processTianjie Xu2017-02-031-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ui_print uses a mutex to protect the critical section. And a forked child process may intialize the mutex inappropriatly, which leads to a hanging child process. So we shall avoid to call the UI functions in child process. Bug: 34769056 Test: fake ota on fugu failed as expected due to updater format mismatch. Change-Id: I81bc942a796878fac19cf712512092c2b0d807c9
* | | | | | | | Merge "update_verifier should read dm wrapped partition" am: c44c479197 am: d40cd0e7cf am: a8764c46aaTianjie Xu2017-02-031-6/+64
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f15097c98a Change-Id: Iec37e67b4a45037734ec197dde5ab1e28f3a3e38
| * | | | | | | Merge "update_verifier should read dm wrapped partition" am: c44c479197 am: d40cd0e7cfTianjie Xu2017-02-031-6/+64
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a8764c46aa Change-Id: Iee59f57ae75c69ac2113ddf20e327b35d63bad23
| | * | | | | | Merge "update_verifier should read dm wrapped partition" am: c44c479197Tianjie Xu2017-02-031-6/+64
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d40cd0e7cf Change-Id: Ief705589ebe2293ecb2e688a7643c5f2e4a79ea9
| | | * | | | | Merge "update_verifier should read dm wrapped partition"Tianjie Xu2017-02-031-6/+64
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c44c479197 Change-Id: I3ce467a3d634f2a566f87a936a86e7b55627c6cd
| | | | * | | | Merge "update_verifier should read dm wrapped partition"Tianjie Xu2017-02-031-6/+64
| | | | |\ \ \ \
| | | | | * | | | update_verifier should read dm wrapped partitionTianjie Xu2017-01-261-6/+64
| | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update_verifier used to read from system_block_device, which bypasses dm-verity check completely. Switch update_verifier to read the corresponding '/dev/block/dm-X' instead. U_v gets the verity block device number by comparing the contents in '/sys/block/dm-X/dm/name'. Bug: 34391662 Test: update_verifier detects the corrupped blocks and dm-verity trigger the reboot on Sailfish. Change-Id: Ie5c50c23410bd29fcc6e733ba29cf892e9a07460
* | | | | | | | Merge "minui: Minor clean up to graphics.cpp." am: b04bc0540d am: ec8d74580d am: 7d8e13a535Tao Bao2017-02-031-62/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cdd7b47545 Change-Id: Ib8e921d63f067bdf3547419e072cdb1a7ad9f0fc
| * | | | | | | Merge "minui: Minor clean up to graphics.cpp." am: b04bc0540d am: ec8d74580dTao Bao2017-02-031-62/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7d8e13a535 Change-Id: Ia8041250f259e3aded94a623c72aa589980b383a
| | * | | | | | Merge "minui: Minor clean up to graphics.cpp." am: b04bc0540dTao Bao2017-02-031-62/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ec8d74580d Change-Id: I9cb585a2cbca3d6a1dcf884aba179acf36380352
| | | * | | | | Merge "minui: Minor clean up to graphics.cpp."Tao Bao2017-02-031-62/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b04bc0540d Change-Id: Ie1ebc638e9a013d69f0195b567a8a16aa3aaf79c
| | | | * | | | Merge "minui: Minor clean up to graphics.cpp."Tao Bao2017-02-031-62/+1
| | | | |\ \ \ \ | | | | | |_|/ / | | | | |/| | |
| | | | | * | | minui: Minor clean up to graphics.cpp.Tao Bao2017-02-031-62/+1
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unneeded header includes. Remove the dead code in gr_test() (already commented out). Similar tests have been covered by the "Run graphics test" from recovery menu. Test: mmma -j32 bootable/recovery Change-Id: If977c1b780602f5c5054469a3dae4fd85f34ab1a
* | | | | | | Merge "Fix a log issue in ui.cpp." am: 7f38fbf976 am: c33d037d7d am: 2be767eba4Tao Bao2017-02-011-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8af3af933b Change-Id: If2e117d67d4f26c9014d6eb53b9fdc4b33b9332b
| * | | | | | Merge "Fix a log issue in ui.cpp." am: 7f38fbf976 am: c33d037d7dTao Bao2017-02-011-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2be767eba4 Change-Id: Id0b175413d92e994fb18c0b93bdfd20a02843e6c
| | * | | | | Merge "Fix a log issue in ui.cpp." am: 7f38fbf976Tao Bao2017-02-011-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c33d037d7d Change-Id: I440288d7d518e9aa6cb13fe7d8647770bc7011f3
| | | * | | | Merge "Fix a log issue in ui.cpp."Tao Bao2017-02-011-1/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7f38fbf976 Change-Id: I84dcdabf341eb566ee7591259c405ac7d406ebf0
| | | | * | | Merge "Fix a log issue in ui.cpp."Tao Bao2017-02-011-1/+1
| | | | |\ \ \
| | | | | * | | Fix a log issue in ui.cpp.Tao Bao2017-02-011-1/+1
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's a copy/paste error when addressing reviewer's comment for commit 6278bdf3490a2f6682f5a9c47350b3d9f92a9165. Test: recovery gives the right message (e.g. "Permission denied") when it fails to read max_brightness. Change-Id: I10372c82595bdc00a6f6725f036c02721b19a1aa
* | | | | | | Merge "bootable/recovery: cleanup compiler warnings (potential leak of memory)" am: 7ab9c3812d am: 29ef12f777 am: 1c35b48253Tao Bao2017-02-011-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e4cf63be78 Change-Id: I4fca7ee7e8164e049d966822670d486c3e3fc183
| * | | | | | Merge "bootable/recovery: cleanup compiler warnings (potential leak of memory)" am: 7ab9c3812d am: 29ef12f777Tao Bao2017-02-011-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1c35b48253 Change-Id: Ic23c7a580b346220485c913e98304c5a3cf05026
| | * | | | | Merge "bootable/recovery: cleanup compiler warnings (potential leak of memory)" am: 7ab9c3812dTao Bao2017-02-011-0/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 29ef12f777 Change-Id: I95295f72efb73b6b40a2cd420514204b4bc93d63
| | | * | | | Merge "bootable/recovery: cleanup compiler warnings (potential leak of memory)"Tao Bao2017-02-011-0/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7ab9c3812d Change-Id: I779a671ef4756fb149dc1bd5823eb85f0e846269
| | | | * | | Merge "bootable/recovery: cleanup compiler warnings (potential leak of memory)"Tao Bao2017-02-011-0/+1
| | | | |\ \ \
| | | | | * | | bootable/recovery: cleanup compiler warnings (potential leak of memory)Rahul Chaudhry2016-12-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bootable/recovery/applypatch/imgdiff.cpp:195:5: warning: Potential leak of memory pointed to by 'img' [clang-analyzer-unix.Malloc] Bug: 26936282 Test: WITH_TIDY=1 WITH_STATIC_ANALYZER=1 mm Change-Id: Ie79c780233ddfebf85686a24df3bf2561f831580
* | | | | | | | Merge "recovery: Add screensaver mode." am: 389a29193c am: 2684259c34 am: 79ce31073aTao Bao2017-01-312-24/+120
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1d17298958 Change-Id: Ie6692ff538ffb4600e4c912ca0f1dca0355e8cfb
| * | | | | | | Merge "recovery: Add screensaver mode." am: 389a29193c am: 2684259c34Tao Bao2017-01-312-24/+120
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 79ce31073a Change-Id: I7f8d0553853ed01acd9973a80c710b3eab1f370b
| | * | | | | | Merge "recovery: Add screensaver mode." am: 389a29193cTao Bao2017-01-312-24/+120
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2684259c34 Change-Id: I94fa5b8e3d0faad7e16a8f696f9b96bb055f2fc6
| | | * | | | | Merge "recovery: Add screensaver mode."Tao Bao2017-01-312-24/+120
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 389a29193c Change-Id: Ia3a03dce52f6e6c0aa907643aa67ad725fea8005
| | | | * | | | Merge "recovery: Add screensaver mode."Tao Bao2017-01-312-24/+120
| | | | |\ \ \ \ | | | | | |_|/ / | | | | |/| | |
| | | | | * | | recovery: Add screensaver mode.Tao Bao2017-01-312-24/+120
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While it's waiting for user input, dim or turn off the backlight to avoid OLED burn-in. The backlight brightness will be reduced after the first timeout (default 120s), and then turned off after the second. Pressing any key will take it back to the normal brightness. While the display is off, the first key input will only turn on the backlight. The most common case that triggers the screensaver is under text mode, such as waiting for menu selection or viewing recovery logs. This CL doesn't change the brightness while it's installing updates or performing wipes under UI mode. When it encounters any install error under UI mode (user builds): - If it's NOT USB connected, it will reboot automatically after the first timeout (same as before); - If it's USB connected, it will dim and turn off the display per the change in this CL. Bug: 34077703 Test: Boot a device with the new recovery image. Wait for timeout. Change-Id: I0c14907e60340a7f037adb6e464942d099ada08b
* | | | | | | Merge "Remove '_static' suffix from libext2* references." am: 56ff8061b1 am: 5b5b8333e0 am: 9518d34c0fAlex Deymo2017-01-262-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ade61afd29 Change-Id: I8e5a22261264f0fd5506e9916a37e1af20261645
| * | | | | | Merge "Remove '_static' suffix from libext2* references." am: 56ff8061b1 am: 5b5b8333e0Alex Deymo2017-01-262-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9518d34c0f Change-Id: I18abe00601a4642ebe3a2557e2f862b4a84221ba
| | * | | | | Merge "Remove '_static' suffix from libext2* references." am: 56ff8061b1Alex Deymo2017-01-262-2/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5b5b8333e0 Change-Id: I8a4889260b966acb63664ad8a04cde2853262113
| | | * | | | Merge "Remove '_static' suffix from libext2* references."Alex Deymo2017-01-262-2/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 56ff8061b1 Change-Id: Icadc8fe11a75ce85771e0ba6383e0ea7b1cceb10
| | | | * | | Merge "Remove '_static' suffix from libext2* references."Alex Deymo2017-01-262-2/+2
| | | | |\ \ \
| | | | | * | | Remove '_static' suffix from libext2* references.Alex Deymo2017-01-242-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 34220783 Test: make checkbuild Change-Id: Iceea20e440a4bb6a3b254486a65a86401a2241ef
* | | | | | | | Merge "Use flash erase & logical block size for userdata wipe" am: c8f7b5bad7 am: a78bbda4e2 am: 445f24f712Connor O'Brien2017-01-251-1/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b6684d327f Change-Id: I02ff6a6d8c01360cedbb14e62e78b73cc885005f
| * | | | | | | Merge "Use flash erase & logical block size for userdata wipe" am: c8f7b5bad7 am: a78bbda4e2Connor O'Brien2017-01-251-1/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 445f24f712 Change-Id: I97379a407b4c146f07c2bc44951dd903a0e4e4cc
| | * | | | | | Merge "Use flash erase & logical block size for userdata wipe" am: c8f7b5bad7Connor O'Brien2017-01-251-1/+6
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a78bbda4e2 Change-Id: Ia6a0eca88a49dc53d9cff27fb4f34c912530bc21
| | | * | | | | Merge "Use flash erase & logical block size for userdata wipe"Connor O'Brien2017-01-251-1/+6
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c8f7b5bad7 Change-Id: Ie9ad2ca457ecb6bf68a57120bcc504faaabc0871
| | | | * | | | Merge "Use flash erase & logical block size for userdata wipe"Treehugger Robot2017-01-251-1/+6
| | | | |\ \ \ \
| | | | | * | | | Use flash erase & logical block size for userdata wipeConnor O'Brien2017-01-251-1/+6
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If flash erase and logical block size are available, then pass them to libext4_utils when rebuilding userdata. Test: Factory reset marlin in recovery, confirmed params passed correctly Bug: 33243520 Change-Id: I6bed976a73e7a64a80eaac50f48fbacb6d812517 Signed-off-by: Connor O'Brien <connoro@google.com>
* | | | | | | | Merge "minui: Move callback functions to std::function." am: a476312714 am: 343987b2a1 am: 19856bcb2eTao Bao2017-01-255-129/+115
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6b26798b3a Change-Id: I8fb3757de81e2d15e72df61951590653752df20c
| * | | | | | | Merge "minui: Move callback functions to std::function." am: a476312714 am: 343987b2a1Tao Bao2017-01-255-129/+115
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 19856bcb2e Change-Id: Ifed7e368ce476adac7361b2480091693e2446898
| | * | | | | | Merge "minui: Move callback functions to std::function." am: a476312714Tao Bao2017-01-255-129/+115
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 343987b2a1 Change-Id: Ib2d10bf8844591fd75b5b86e3f16fc3daaa5d6d6
| | | * | | | | Merge "minui: Move callback functions to std::function."Tao Bao2017-01-255-129/+115
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a476312714 Change-Id: I31bcb78f9f145fb97df82b6065d0e026c57c1d56
| | | | * | | | Merge "minui: Move callback functions to std::function."Tao Bao2017-01-255-129/+115
| | | | |\ \ \ \
| | | | | * | | | minui: Move callback functions to std::function.Tao Bao2017-01-235-129/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also make minor clean up to the header includes. Test: mmma bootable/recovery system/core/healthd system/extra/slideshow Change-Id: I3bfcf2c0e203c26a98ee08f1f8036c68356a69fd
* | | | | | | | | Merge "update_verifier: Move property_get() to android::base::GetProperty()." am: 42906e06b3 am: 8e01ded271 am: b30b8cf436Tao Bao2017-01-251-48/+46
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8567eb4b11 Change-Id: I57242d4fb939be8055aa62ce3e4ad7480dc97724
| * | | | | | | | Merge "update_verifier: Move property_get() to android::base::GetProperty()." am: 42906e06b3 am: 8e01ded271Tao Bao2017-01-251-48/+46
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b30b8cf436 Change-Id: I58a2b01da656fab324e31cbc4d8c655346bf3c1d
| | * | | | | | | Merge "update_verifier: Move property_get() to android::base::GetProperty()." am: 42906e06b3Tao Bao2017-01-251-48/+46
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8e01ded271 Change-Id: I8a71998ae2df2111a834ca375420961b283aab2b
| | | * | | | | | Merge "update_verifier: Move property_get() to android::base::GetProperty()."Tao Bao2017-01-251-48/+46
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 42906e06b3 Change-Id: I3acda7030997b014801f691f2d8c87a82664938f
| | | | * | | | | Merge "update_verifier: Move property_get() to android::base::GetProperty()."Tao Bao2017-01-251-48/+46
| | | | |\ \ \ \ \
| | | | | * | | | | update_verifier: Move property_get() to android::base::GetProperty().Tao Bao2017-01-201-48/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also make minor changes to android::base::ParseUint(), which accepts std::string now. Test: Flash an A/B device and make sure update_verifier works (by marking the active slot as successfully booted). Change-Id: Id6e578671cb3c87160c2b6ca717ee618ecf2342a
* | | | | | | | | | Merge "Print with newline for ui_print." am: 90deaf9ab7 am: 1313a9636d am: 14be4eb8ceTao Bao2017-01-243-7/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 64768cef87 Change-Id: I5afd90b6e26e3eeae05f5a04c8cd2b985f53c2c9
| * | | | | | | | | Merge "Print with newline for ui_print." am: 90deaf9ab7 am: 1313a9636dTao Bao2017-01-243-7/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 14be4eb8ce Change-Id: If8832fd8ea2b0dc80c82d40c384adbabb2edd926
| | * | | | | | | | Merge "Print with newline for ui_print." am: 90deaf9ab7Tao Bao2017-01-243-7/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1313a9636d Change-Id: I1cc5523b0ae213f5091caa6793c549e08dc148dc
| | | * | | | | | | Merge "Print with newline for ui_print."Tao Bao2017-01-243-7/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 90deaf9ab7 Change-Id: Idfeb698aec25a5fe1a577dd3baf36afed8107c8a
| | | | * | | | | | Merge "Print with newline for ui_print."Tao Bao2017-01-243-7/+1
| | | | |\ \ \ \ \ \ | | | | | |_|_|/ / / | | | | |/| | | | |
| | | | | * | | | | Print with newline for ui_print.Tao Bao2017-01-223-7/+1
| | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the ui_print command between the recovery and updater doesn't append newline. Updater has to send an extra "ui_print" command without any argument to get the line break. This looks unnecessary. And not all the callers (including the ones in bootable/recovery) are following this protocol when sending the ui_print command. This CL simplifies the protocol to always print with a newline for ui_print command. When updating from an old recovery with the new updater, all the ui_print'd strings would appear in one line as a side effect. But a) it would only affect the text-mode UI, which won't be shown to users; b) log files won't be affected. Bug: 32305035 Test: Apply an update with the new updater on top of an old and new recovery image respectively. Change-Id: I305a0ffc6f180daf60919cf99d24d1495d68749b
* | | | | | | | | Merge "bootctrl HAL uses "default" service name" am: cf1af460d5 am: ee3030ad4e am: 58eace4a96Chris Phoenix2017-01-230-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e218ca21d5 -s ours Change-Id: Ifbb2ff93fe76fd71ee4f1d80eeaf48225b7335f5
| * | | | | | | | Merge "bootctrl HAL uses "default" service name" am: cf1af460d5 am: ee3030ad4eChris Phoenix2017-01-231-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 58eace4a96 Change-Id: I8b50cce19ece3b5082676c2ebb84164b78542544
| | * | | | | | | Merge "bootctrl HAL uses "default" service name" am: cf1af460d5Chris Phoenix2017-01-231-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ee3030ad4e Change-Id: I58625313d404e8f7e947d324441ae9a51c4d0931
| | | * | | | | | Merge "bootctrl HAL uses "default" service name"Chris Phoenix2017-01-231-1/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cf1af460d5 Change-Id: Iae6ad548a1f3d10864daf95c05db05e5277f52ab
| | | | * | | | | Merge "bootctrl HAL uses "default" service name"Chris Phoenix2017-01-231-1/+1
| | | | |\ \ \ \ \
| | | | | * | | | | bootctrl HAL uses "default" service nameChris Phoenix2017-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The getService() and registerAsService() methods of interface objects now have default parameters of "default" for the service name. HALs will not have to use any service name unless they want to register more than one service. Test: builds; verify HAL still works In support of b/33844934 Change-Id: I5ce988128b0471384e1472298a0ae383df2b7c3e Merged-In: I86c44aaaaf663e774c631a469ebf2b81619f89c4
* | | | | | | | | | Merge "Restore the max width for recovery background texts" am: c1df344381 am: b037cff12e am: f1a371b1b0Tianjie Xu2017-01-2311-0/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 281fa9fd30 Change-Id: I109593352d526941895eafea41f87a49561f8fd7
| * | | | | | | | | Merge "Restore the max width for recovery background texts" am: c1df344381 am: b037cff12eTianjie Xu2017-01-2311-0/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f1a371b1b0 Change-Id: I9de47dbda98fab48b82f99ebecee2d01f70526c5
| | * | | | | | | | Merge "Restore the max width for recovery background texts" am: c1df344381Tianjie Xu2017-01-2311-0/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b037cff12e Change-Id: I177c4d5edcf8e0ee9874bd1627d0ae12a43ae506
| | | * | | | | | | Merge "Restore the max width for recovery background texts"Tianjie Xu2017-01-2311-0/+3
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c1df344381 Change-Id: I0a5900cba2e650082e9d9443c111f1682bb393e8
| | | | * | | | | | Merge "Restore the max width for recovery background texts"Tianjie Xu2017-01-2311-0/+3
| | | | |\ \ \ \ \ \ | | | | | |_|/ / / / | | | | |/| | | | |
| | | | | * | | | | Restore the max width for recovery background textsTianjie Xu2017-01-2311-0/+3
| | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restore the max width to 900px for xxhdpi and 1200px for xxxhdpi Bug: 34541299 Test: Checked width and images passed recovery_manual_test Change-Id: If0fd51f93cfb3f965d4e9e69be5626eba89eb857
* | | | | | | | | Merge "bootctrl HAL uses "default" service name"Chris Phoenix2017-01-231-1/+1
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | bootctrl HAL uses "default" service nameChris Phoenix2017-01-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The getService() and registerAsService() methods of interface objects now have default parameters of "default" for the service name. HALs will not have to use any service name unless they want to register more than one service. Test: builds; verify HAL still works Bug: 33844934 Change-Id: I86c44aaaaf663e774c631a469ebf2b81619f89c4
* | | | | | | | | | Merge "imgpatch: Compile with ZLIB_CONST defined." am: e78ca37656 am: ca261d3b48 am: 6a82bc228aTao Bao2017-01-202-4/+10
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| / / / / / / / / | |/ / / / / / / / | | | | | | | | | | | | | | | | | | am: 8157166107 Change-Id: I122904cb52fa214dba468e43afb17e55aafd0039
| * | | | | | | | Merge "imgpatch: Compile with ZLIB_CONST defined." am: e78ca37656 am: ca261d3b48Tao Bao2017-01-202-4/+10
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6a82bc228a Change-Id: I8e1687131deca82302246fd4f05d0f6e48c5301f
| | * | | | | | | Merge "imgpatch: Compile with ZLIB_CONST defined." am: e78ca37656Tao Bao2017-01-202-4/+10
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ca261d3b48 Change-Id: I0278ded6acb4c003c65cb6b71b7b52a7824fe2fc
| | | * | | | | | Merge "imgpatch: Compile with ZLIB_CONST defined."Tao Bao2017-01-202-4/+10
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e78ca37656 Change-Id: I636cfadd456cb6e256049a23f70e3a7a71c70d78
| | | | * | | | | Merge "imgpatch: Compile with ZLIB_CONST defined."Tao Bao2017-01-202-4/+10
| | | | |\ \ \ \ \ | | | | | |/ / / / | | | | |/| | | |
| | | | | * | | | imgpatch: Compile with ZLIB_CONST defined.Tao Bao2017-01-202-4/+10
| | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So z_stream.next_in takes pointer to const data. Test: mmma bootable/recovery/applypatch Change-Id: If269b766a7c84fa2f67424ee61ba5afab0159261
* | | | | | | | DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-dev am: 4eb997d52b -s ours am: 3591cb48f5 -s ours am: 8bdb13dd9a am: 0d750f900b -s ours am: 457ad2dc3c am: d1c3bdd8c2 am: 9930b28456 am: 0a627e5a5f -s ours am: 510b13acd8 am: 3d1f19c733 am: 8e267878cc am: 99e38bf254 am: e4dcbd1c9eTianjie Xu2017-01-200-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9af09c0505 -s ours Change-Id: I4701616a9c3d5e7237e23942ffdf05d696b61d6e
| * | | | | | | DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-dev am: 4eb997d52b -s ours am: 3591cb48f5 -s ours am: 8bdb13dd9a am: 0d750f900b -s ours am: 457ad2dc3c am: d1c3bdd8c2 am: 9930b28456 am: 0a627e5a5f -s ours am: 510b13acd8 am: 3d1f19c733 am: 8e267878cc am: 99e38bf254Tianjie Xu2017-01-200-0/+0
| |\ \ \ \ \ \ \ | | | |_|_|_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e4dcbd1c9e Change-Id: Ib2b4830318c7d6d1303d5ee5efdc49caaaba8836
| | * | | | | | DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-dev am: 4eb997d52b -s ours am: 3591cb48f5 -s ours am: 8bdb13dd9a am: 0d750f900b -s ours am: 457ad2dc3c am: d1c3bdd8c2 am: 9930b28456 am: 0a627e5a5f -s ours am: 510b13acd8 am: 3d1f19c733 am: 8e267878ccTianjie Xu2017-01-200-0/+0
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 99e38bf254 Change-Id: I3ba0b154e71535e0528c0117728c3b1fee0f20d3
* | | | | | | | | DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-dev am: 4eb997d52b -s ours am: 3591cb48f5 -s ours am: 8bdb13dd9a am: 0d750f900b -s ours am: 457ad2dc3c am: d1c3bdd8c2 am: 9930b28456 am: 0a627e5a5f -s ours am: 510b13acd8 am: 3d1f19c733 am: 8e267878cc am: 99e38bf254 am: 87f49b83caTianjie Xu2017-01-200-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 85bb15a4e5 -s ours Change-Id: I40db1874f3ec2176b39350a04d95a6fa4018882d
| * | | | | | | | DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-dev am: 4eb997d52b -s ours am: 3591cb48f5 -s ours am: 8bdb13dd9a am: 0d750f900b -s ours am: 457ad2dc3c am: d1c3bdd8c2 am: 9930b28456 am: 0a627e5a5f -s ours am: 510b13acd8 am: 3d1f19c733 am: 8e267878cc am: 99e38bf254Tianjie Xu2017-01-200-0/+0
| |\ \ \ \ \ \ \ \ | | | |_|/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 87f49b83ca Change-Id: Ib02c4fddda47bae1c082df0502e94ad7cd3b0417
| | * | | | | | | DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-dev am: 4eb997d52b -s ours am: 3591cb48f5 -s ours am: 8bdb13dd9a am: 0d750f900b -s ours am: 457ad2dc3c am: d1c3bdd8c2 am: 9930b28456 am: 0a627e5a5f -s ours am: 510b13acd8 am: 3d1f19c733 am: 8e267878ccTianjie Xu2017-01-200-0/+0
| | |\ \ \ \ \ \ \ | | | | |/ / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 99e38bf254 Change-Id: Id8c4d672f5edbe5b12efa8350588ae088bbe595b
| | | * | | | | | DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-dev am: 4eb997d52b -s ours am: 3591cb48f5 -s ours am: 8bdb13dd9a am: 0d750f900b -s ours am: 457ad2dc3c am: d1c3bdd8c2 am: 9930b28456 am: 0a627e5a5f -s ours am: 510b13acd8 am: 3d1f19c733Tianjie Xu2017-01-200-0/+0
| | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8e267878cc Change-Id: I5cff676ac1b93c413cd8b339d7cf62ca7fbc650f
| | | | * \ \ \ \ \ DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-dev am: 4eb997d52b -s ours am: 3591cb48f5 -s ours am: 8bdb13dd9a am: 0d750f900b -s ours am: 457ad2dc3c am: d1c3bdd8c2 am: 9930b28456 am: 0a627e5a5f -s ours am: 510b13acd8Tianjie Xu2017-01-200-0/+0
| | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3d1f19c733 Change-Id: I4c3c665cb6aac08125817f26d788f9fb82b3ca92
| | | | | * \ \ \ \ \ DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-dev am: 4eb997d52b -s ours am: 3591cb48f5 -s ours am: 8bdb13dd9a am: 0d750f900b -s ours am: 457ad2dc3c am: d1c3bdd8c2 am: 9930b28456 am: 0a627e5a5f -s oursTianjie Xu2017-01-200-0/+0
| | | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 510b13acd8 Change-Id: I4b0f915faac915a11917ebc8291de0ba782dd76b
| | | | | | * \ \ \ \ \ DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-dev am: 4eb997d52b -s ours am: 3591cb48f5 -s ours am: 8bdb13dd9a am: 0d750f900b -s ours am: 457ad2dc3c am: d1c3bdd8c2 am: 9930b28456Tianjie Xu2017-01-200-0/+0
| | | | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0a627e5a5f -s ours Change-Id: I503597404e665b723337ee56a46c719890a547a1
| | | | | | | * \ \ \ \ \ DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-dev am: 4eb997d52b -s ours am: 3591cb48f5 -s ours am: 8bdb13dd9a am: 0d750f900b -s ours am: 457ad2dc3c am: d1c3bdd8c2Tianjie Xu2017-01-200-0/+0
| | | | | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9930b28456 Change-Id: Ib4853ac0b4f56534130a6b40fbe4ea1a95131cca
| | | | | | | | * \ \ \ \ \ DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-dev am: 4eb997d52b -s ours am: 3591cb48f5 -s ours am: 8bdb13dd9a am: 0d750f900b -s ours am: 457ad2dc3cTianjie Xu2017-01-200-0/+0
| | | | | | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d1c3bdd8c2 Change-Id: I8dbfd452ad4bae3374efa7395b8189db00cdfbe1
| | | | | | | | | * \ \ \ \ \ DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-dev am: 4eb997d52b -s ours am: 3591cb48f5 -s ours am: 8bdb13dd9a am: 0d750f900b -s oursTianjie Xu2017-01-200-0/+0
| | | | | | | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 457ad2dc3c Change-Id: Ic6e056e6a50066eb6d123b150e928533633f96e0
| | | | | | | | | | * \ \ \ \ \ DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-dev am: 4eb997d52b -s ours am: 3591cb48f5 -s ours am: 8bdb13dd9aTianjie Xu2017-01-200-0/+0
| | | | | | | | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0d750f900b -s ours Change-Id: Iaab9c0e9d8e5a5198bcad373d229915c6bc62c79
| | | | | | | | | | | * \ \ \ \ \ DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-dev am: 4eb997d52b -s ours am: 3591cb48f5 -s oursTianjie Xu2017-01-200-0/+0
| | | | | | | | | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8bdb13dd9a Change-Id: Ieb6efb9b8efec556f401325fb8449e56b2f9d4bc
| | | | | | | | | | | | * \ \ \ \ \ DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-dev am: 4eb997d52b -s oursTianjie Xu2017-01-200-0/+0
| | | | | | | | | | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3591cb48f5 -s ours Change-Id: I173c8f1c1f68b57b3046f91525c5ac3d3acf184d
| | | | | | | | | | | | | * \ \ \ \ \ DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-devTianjie Xu2017-01-200-0/+0
| | | | | | | | | | | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4eb997d52b -s ours Change-Id: If5c4537e910fffddd757be2a80ca9c949e93ed93
| | | | | | | | | | | | | | * | | | | | DO NOT MERGE: resolve merge conflicts of 5346da02 to klp-modular-devTianjie Xu2017-01-201-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie52a9abae416bbb84ddc61bb7159a531de778c15
* | | | | | | | | | | | | | | | | | | | Merge "imgdiff: cache bsdiff suffix array in zip mode." am: 37bda6a004 am: 9bb0819ef6 am: f859652e5fSen Jiang2017-01-192-16/+20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a727d151d4 Change-Id: Ia0c4c77f05484fe625dd5ecb4eaa0234f9dcefcb
| * | | | | | | | | | | | | | | | | | | Merge "imgdiff: cache bsdiff suffix array in zip mode." am: 37bda6a004 am: 9bb0819ef6Sen Jiang2017-01-192-16/+20
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f859652e5f Change-Id: I67af664a5da8d4ceea827542d5b82e30e08c4984
| | * | | | | | | | | | | | | | | | | | Merge "imgdiff: cache bsdiff suffix array in zip mode." am: 37bda6a004Sen Jiang2017-01-192-16/+20
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|_|_|_|_|_|_|_|_|_|/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9bb0819ef6 Change-Id: I913d4350db0003aba9d995ef01340d6fba417c6b
| | | * | | | | | | | | | | | | | | | | Merge "imgdiff: cache bsdiff suffix array in zip mode."Sen Jiang2017-01-192-16/+20
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|_|_|_|_|_|_|_|_|_|_|/ / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 37bda6a004 Change-Id: I444a0b2245ed72cd874f734a354feb2eb51e4b5a
| | | | * | | | | | | | | | | | | | | | Merge "imgdiff: cache bsdiff suffix array in zip mode."Sen Jiang2017-01-192-16/+20
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | imgdiff: cache bsdiff suffix array in zip mode.Sen Jiang2017-01-192-16/+20
| | | | | | |_|_|_|_|_|_|_|_|_|_|_|_|/ / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In zip mode, if a chunk is not deflate or its filename can't be found in source chunks, the entire source file is used as old data for bsdiff, To avoid repeatedly construct the suffix array used by bsdiff, we cache the suffix array of the entire source file. Bug: 34281147 Test: =time -v imgdiff -z Chrome-ORF74B.apk Chrome-ORF76B.apk Chrome.imgdiff Change-Id: Ifd957ccecf7226fcb44dbf28c58969a06ef74f4b
* | | | | | | | | | | | | | | | | | | | Merge "Add checkers and tests for empty locale in PNG file" am: 69e73ab7a9 am: a38224eadb am: 18098b7de3Tianjie Xu2017-01-195-3/+177
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 98cf72d3aa Change-Id: I1fb6b0898d347ca1187241e495fe28b260c6d905
| * | | | | | | | | | | | | | | | | | | Merge "Add checkers and tests for empty locale in PNG file" am: 69e73ab7a9 am: a38224eadbTianjie Xu2017-01-195-3/+177
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 18098b7de3 Change-Id: I640596adfbe3a345c0780d56b62ea6f9eb2b17f2
| | * | | | | | | | | | | | | | | | | | Merge "Add checkers and tests for empty locale in PNG file" am: 69e73ab7a9Tianjie Xu2017-01-195-3/+177
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a38224eadb Change-Id: I76d7bafedec04bbbb4f5473f61c69333e2a6d25a
| | | * | | | | | | | | | | | | | | | | Merge "Add checkers and tests for empty locale in PNG file"Tianjie Xu2017-01-195-3/+177
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 69e73ab7a9 Change-Id: Ie7f4dd37a6dbe08ced5c8735fb03af4601bc8f88
| | | | * | | | | | | | | | | | | | | | Merge "Add checkers and tests for empty locale in PNG file"Tianjie Xu2017-01-195-3/+177
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | Add checkers and tests for empty locale in PNG fileTianjie Xu2017-01-195-3/+177
| | | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | match_locale() will return false for empty locale string in the PNG file. Also add a manual test to validate if a PNG file is qualified to use under recovery. Bug: 34054052 Test: recovery_manual_test catches invalid PNG files successfully & Locale_test passed Change-Id: Id7e2136e1d8abf20da15825aa7901effbced8b03
* | | | | | | | | | | | | | | | | | | Merge "DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s ours am: 37a5941440 am: ddca75fb0a am: b21b92b386 am: 8a51334062 -s ours am: 67b69c05c6 am: 8f9e3c9bd9 am: 8953f919e4 am: d0bfa33c66 am: 4aa56ad477" into nyc-mr2-dev-plus-aospTianjie Xu2017-01-190-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8a6139a9e8 -s ours Change-Id: I6a4a55ea154a6e144a6fe910c1377decbfc0838f
| * | | | | | | | | | | | | | | | | | Merge "DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s ours am: 37a5941440 am: ddca75fb0a am: b21b92b386 am: 8a51334062 -s ours am: 67b69c05c6 am: 8f9e3c9bd9 am: 8953f919e4 am: d0bfa33c66 am: 4aa56ad477" into nyc-mr2-dev-plus-aospAndroid Build Merger (Role)2017-01-190-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
* | \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s ours am: 37a5941440 am: ddca75fb0a am: b21b92b386 am: 8a51334062 -s ours am: 67b69c05c6 am: 8f9e3c9bd9 am: 8953f919e4 am: d0bfa33c66 am: 4aa56ad477Tianjie Xu2017-01-190-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5403bdced4 -s ours Change-Id: I98e8158e2559ba541ba18107c235242941989a5c
| * | | | | | | | | | | | | | | | | | | DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s ours am: 37a5941440 am: ddca75fb0a am: b21b92b386 am: 8a51334062 -s ours am: 67b69c05c6 am: 8f9e3c9bd9 am: 8953f919e4 am: d0bfa33c66Tianjie Xu2017-01-190-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4aa56ad477 Change-Id: Ife96e05de25d6feba52958f7c927285cea411ca6
| | * | | | | | | | | | | | | | | | | | DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s ours am: 37a5941440 am: ddca75fb0a am: b21b92b386 am: 8a51334062 -s ours am: 67b69c05c6 am: 8f9e3c9bd9 am: 8953f919e4Tianjie Xu2017-01-190-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d0bfa33c66 Change-Id: I73459eeb26653773edcf10209531f397e40d2c03
* | | | | | | | | | | | | | | | | | | | DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s ours am: 37a5941440 am: ddca75fb0a am: b21b92b386 am: 8a51334062 -s ours am: 67b69c05c6 am: 8f9e3c9bd9 am: 8953f919e4 am: d0bfa33c66 am: de530474e9Tianjie Xu2017-01-190-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|/ / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0058ef2cec -s ours Change-Id: I72dbbcd840da2f0c8493bebbac57b37f0256430f
| * | | | | | | | | | | | | | | | | | | DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s ours am: 37a5941440 am: ddca75fb0a am: b21b92b386 am: 8a51334062 -s ours am: 67b69c05c6 am: 8f9e3c9bd9 am: 8953f919e4 am: d0bfa33c66Tianjie Xu2017-01-190-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / | |/| | | / / / / / / / / / / / / / / / | | | |_|/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: de530474e9 Change-Id: I9d78ead6684f04b84cfaba81f2e8a7b09ed35f3f
| | * | | | | | | | | | | | | | | | | DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s ours am: 37a5941440 am: ddca75fb0a am: b21b92b386 am: 8a51334062 -s ours am: 67b69c05c6 am: 8f9e3c9bd9 am: 8953f919e4Tianjie Xu2017-01-190-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d0bfa33c66 Change-Id: I65685b89b6e1c3d7adae8c24a554d680aa026408
| | | * | | | | | | | | | | | | | | | DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s ours am: 37a5941440 am: ddca75fb0a am: b21b92b386 am: 8a51334062 -s ours am: 67b69c05c6 am: 8f9e3c9bd9Tianjie Xu2017-01-190-0/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|/ / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8953f919e4 Change-Id: Ibe82fdacb0c2ee8214e3d9038ef9751f8d1315ad
| | | | * | | | | | | | | | | | | | | DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s ours am: 37a5941440 am: ddca75fb0a am: b21b92b386 am: 8a51334062 -s ours am: 67b69c05c6Tianjie Xu2017-01-190-0/+0
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | |_|_|/ / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8f9e3c9bd9 Change-Id: I83fa019edb9771cf799e691c9b6637aec75a4cc4
| | | | | * | | | | | | | | | | | | | DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s ours am: 37a5941440 am: ddca75fb0a am: b21b92b386 am: 8a51334062 -s oursTianjie Xu2017-01-190-0/+0
| | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | |_|_|/ / / / / / / / / / | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 67b69c05c6 Change-Id: I32c16f13987f4b1b1c46af948c1a724d8225c0cc
| | | | | | * | | | | | | | | | | | | DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s ours am: 37a5941440 am: ddca75fb0a am: b21b92b386Tianjie Xu2017-01-190-0/+0
| | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | |_|_|/ / / / / / / / / | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8a51334062 -s ours Change-Id: I7f2969a4bd8192f2c700945a493d2c32af91af70
| | | | | | | * | | | | | | | | | | | DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s ours am: 37a5941440 am: ddca75fb0aTianjie Xu2017-01-190-0/+0
| | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | |_|_|/ / / / / / / / | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b21b92b386 Change-Id: I30cc5605866bc087fc6afdad2b2d7e033cd2f25e
| | | | | | | | * | | | | | | | | | | DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s ours am: 37a5941440Tianjie Xu2017-01-190-0/+0
| | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | |_|_|/ / / / / / / | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ddca75fb0a Change-Id: I8010afacf2d0299715cb3b11b81f31d6baca1083
| | | | | | | | | * | | | | | | | | | DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s oursTianjie Xu2017-01-190-0/+0
| | | | | | | | | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | |_|_|/ / / / / / | | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 37a5941440 Change-Id: I87b102e92e9ee2bc49af6b7c8ec4d0a48894f732
| | | | | | | | | | * | | | | | | | | DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6Tianjie Xu2017-01-190-0/+0
| | | | | | | | | | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | |_|_|/ / / / / | | | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2b1bcab427 -s ours Change-Id: I74119e64e0d5fe813c18191a201fadbf9870c400
| | | | | | | | | | | * | | | | | | | DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s oursTianjie Xu2017-01-190-0/+0
| | | | | | | | | | | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | |_|_|/ / / / | | | | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 94c8b5e5a6 Change-Id: I42132e10d5ba4cdf77232dadb88100e6c29acf80
| | | | | | | | | | | | * | | | | | | DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s oursTianjie Xu2017-01-190-0/+0
| | | | | | | | | | | | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | |_|_|/ / / | | | | | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 051dfa7ec3 -s ours Change-Id: I88ff80ef082f32825f4ed860af9b9d67d282e11a
| | | | | | | | | | | | | * | | | | | DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s oursTianjie Xu2017-01-190-0/+0
| | | | | | | | | | | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | |_|_|/ / | | | | | | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a41cc29447 -s ours Change-Id: Ib3a827173380145bf7a3fcd7e4f8386571228699
| | | | | | | | | | | | | | * | | | | DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726Tianjie Xu2017-01-190-0/+0
| | | | | | | | | | | | | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5346da0220 -s ours Change-Id: I2952d0746c6cc00837c90370d09a30049d462df3
| | | | | | | | | | | | | | | * \ \ \ \ DO NOT MERGE: Add a checker for signature boundary in verifierTianjie Xu2017-01-181-0/+7
| | | | | | | | | | | | | | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f616da1726 Change-Id: I05a1a6775229a1041e1a93388a86262d36d6581b
| | | | | | | | | | | | | | | | * | | | | DO NOT MERGE: Add a checker for signature boundary in verifierTianjie Xu2016-12-201-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'signature_start' variable marks the location of the signature from the end of a zip archive. And a boundary check is missing where 'signature_start' should be within the EOCD comment field. This causes problems when sideloading a malicious package. Also add a corresponding test. Bug: 31914369 Test: Verification fails correctly when sideloading recovery_test.zip on angler. Change-Id: I6ea96bf04dac5d8d4d6719e678d504f957b4d5c1 (cherry-picked from f69e6a9475983b2ad46729e44ab58d2b22cd74d0) (cherry picked from commit 54ea136fded56810bf475885eb4bd7bf1b11f09c)
* | | | | | | | | | | | | | | | | | | | | resolve build error when merging 0f7f7e21 am: 97ea844acaTianjie Xu2017-01-190-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 977adba098 Change-Id: I30673c8b014a5da69291c4b42894e3cd560ed42f
| * | | | | | | | | | | | | | | | | | | | resolve build error when merging 0f7f7e21Tianjie Xu2017-01-191-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 97ea844aca Change-Id: I9c7eaa3b9e25be3b36e74b71003a1911c14a305b
| | * | | | | | | | | | | | | | | | | | | resolve build error when merging 0f7f7e21Tianjie Xu2017-01-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mma Change-Id: Ibdcf7b47e54d3739fb922f66996365763d2acfef
* | | | | | | | | | | | | | | | | | | | | Merge "Add a checker for signature boundary in verifier am: 54ea136fde am: 0a34b17c8b am: fb80b4f72d am: d3d5e54a45 am: 6ea9888d51 am: a055eb93c3 am: 15ca2a4763 am: ca50d7b66a am: 64f0de7a13 am: e4ec60e045 am: e0d3b0ceab am: f127896675" into nyc-mr2-dev-plus-aospTianjie Xu2017-01-190-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 344646e6d3 Change-Id: I4e64b87f2a32d5990921c9849403be52455aaa3b
| * | | | | | | | | | | | | | | | | | | | Merge "Add a checker for signature boundary in verifier am: 54ea136fde am: 0a34b17c8b am: fb80b4f72d am: d3d5e54a45 am: 6ea9888d51 am: a055eb93c3 am: 15ca2a4763 am: ca50d7b66a am: 64f0de7a13 am: e4ec60e045 am: e0d3b0ceab am: f127896675" into nyc-mr2-dev-plus-aospAndroid Build Merger (Role)2017-01-180-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
* | \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Add a checker for signature boundary in verifier am: 54ea136fde am: 0a34b17c8b am: fb80b4f72d am: d3d5e54a45 am: 6ea9888d51 am: a055eb93c3 am: 15ca2a4763 am: ca50d7b66a am: 64f0de7a13 am: e4ec60e045 am: e0d3b0ceab am: f127896675Tianjie Xu2017-01-190-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: db20859dcc Change-Id: I47109f9781ee2b0ae21a933f586e9876674dfc33
| * | | | | | | | | | | | | | | | | | | | | Add a checker for signature boundary in verifier am: 54ea136fde am: 0a34b17c8b am: fb80b4f72d am: d3d5e54a45 am: 6ea9888d51 am: a055eb93c3 am: 15ca2a4763 am: ca50d7b66a am: 64f0de7a13 am: e4ec60e045 am: e0d3b0ceabTianjie Xu2017-01-181-0/+6
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f127896675 Change-Id: I08b867c83803ad28cf524af3f81eec7dd8b9a121
| | * | | | | | | | | | | | | | | | | | | | Add a checker for signature boundary in verifier am: 54ea136fde am: 0a34b17c8b am: fb80b4f72d am: d3d5e54a45 am: 6ea9888d51 am: a055eb93c3 am: 15ca2a4763 am: ca50d7b66a am: 64f0de7a13 am: e4ec60e045Tianjie Xu2017-01-181-0/+6
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e0d3b0ceab Change-Id: I2b483f4cd082ef6cc0d9839c576a05161d980728
* | | | | | | | | | | | | | | | | | | | | | Add a checker for signature boundary in verifier am: 54ea136fde am: 0a34b17c8b am: fb80b4f72d am: d3d5e54a45 am: 6ea9888d51 am: a055eb93c3 am: 15ca2a4763 am: ca50d7b66a am: 64f0de7a13 am: e4ec60e045 am: e0d3b0ceab am: 8a45adb243Tianjie Xu2017-01-190-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|/ / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0f7f7e21a4 -s ours Change-Id: Ia3d9f4ba80b6b9ce59e83c9bd885d69f81daf167
| * | | | | | | | | | | | | | | | | | | | | Add a checker for signature boundary in verifier am: 54ea136fde am: 0a34b17c8b am: fb80b4f72d am: d3d5e54a45 am: 6ea9888d51 am: a055eb93c3 am: 15ca2a4763 am: ca50d7b66a am: 64f0de7a13 am: e4ec60e045 am: e0d3b0ceabTianjie Xu2017-01-181-0/+6
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / / / | |/| | | / / / / / / / / / / / / / / / / / | | | |_|/ / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8a45adb243 Change-Id: Iaccdc00a1151f637300f516cb362404c020de7d7
| | * | | | | | | | | | | | | | | | | | | Add a checker for signature boundary in verifier am: 54ea136fde am: 0a34b17c8b am: fb80b4f72d am: d3d5e54a45 am: 6ea9888d51 am: a055eb93c3 am: 15ca2a4763 am: ca50d7b66a am: 64f0de7a13 am: e4ec60e045Tianjie Xu2017-01-181-0/+6
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e0d3b0ceab Change-Id: I4fe8bdd81f8250b862b0018f0a52a76d37ee9d88
| | | * | | | | | | | | | | | | | | | | | Add a checker for signature boundary in verifier am: 54ea136fde am: 0a34b17c8b am: fb80b4f72d am: d3d5e54a45 am: 6ea9888d51 am: a055eb93c3 am: 15ca2a4763 am: ca50d7b66a am: 64f0de7a13Tianjie Xu2017-01-181-0/+6
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e4ec60e045 Change-Id: If13ea5ee5c963357e73f82c677782d569c745acd
| | | | * | | | | | | | | | | | | | | | | Add a checker for signature boundary in verifier am: 54ea136fde am: 0a34b17c8b am: fb80b4f72d am: d3d5e54a45 am: 6ea9888d51 am: a055eb93c3 am: 15ca2a4763 am: ca50d7b66aTianjie Xu2017-01-181-0/+6
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | |/ / / / / / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 64f0de7a13 Change-Id: I3b67824479c820d06e84e6611e4aff87265dab11
| | | | | * | | | | | | | | | | | | | | | Add a checker for signature boundary in verifier am: 54ea136fde am: 0a34b17c8b am: fb80b4f72d am: d3d5e54a45 am: 6ea9888d51 am: a055eb93c3 am: 15ca2a4763Tianjie Xu2017-01-181-0/+6
| | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | |/ / / / / / / / / / / / / / | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ca50d7b66a Change-Id: Ic6e05b8812f4b765b9114149373c7a00ad9ec78d
| | | | | | * | | | | | | | | | | | | | | Add a checker for signature boundary in verifier am: 54ea136fde am: 0a34b17c8b am: fb80b4f72d am: d3d5e54a45 am: 6ea9888d51 am: a055eb93c3Tianjie Xu2017-01-181-0/+6
| | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | |/ / / / / / / / / / / / / | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 15ca2a4763 Change-Id: I5481d39f0d2fdb92c95e964d2a55512f4df3acb3
| | | | | | | * | | | | | | | | | | | | | Add a checker for signature boundary in verifier am: 54ea136fde am: 0a34b17c8b am: fb80b4f72d am: d3d5e54a45 am: 6ea9888d51Tianjie Xu2017-01-181-0/+6
| | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | |/ / / / / / / / / / / / | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a055eb93c3 Change-Id: I8d26eefd2de6b7245a110c27d4210d5fdd2bd151
| | | | | | | | * | | | | | | | | | | | | Add a checker for signature boundary in verifier am: 54ea136fde am: 0a34b17c8b am: fb80b4f72d am: d3d5e54a45Tianjie Xu2017-01-181-0/+6
| | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | |/ / / / / / / / / / / | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6ea9888d51 Change-Id: I7bbabdbe543c54f18dd42cb64030ca2174bf9bf2
| | | | | | | | | * | | | | | | | | | | | Add a checker for signature boundary in verifier am: 54ea136fde am: 0a34b17c8b am: fb80b4f72dTianjie Xu2017-01-181-0/+6
| | | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | |/ / / / / / / / / / | | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d3d5e54a45 Change-Id: Ib892c1745197ccb42d77c7bc8647f2e6b725a7dd
| | | | | | | | | | * | | | | | | | | | | Add a checker for signature boundary in verifier am: 54ea136fde am: 0a34b17c8bTianjie Xu2017-01-181-0/+6
| | | | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | |/ / / / / / / / / | | | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fb80b4f72d Change-Id: Iba2da78981e4bd7a2b263b2f6b18ab6c176e5fc8
| | | | | | | | | | | * | | | | | | | | | Add a checker for signature boundary in verifier am: 54ea136fdeTianjie Xu2017-01-181-0/+6
| | | | | | | | | | | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | |/ / / / / / / / | | | | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0a34b17c8b Change-Id: I4dbba92ea717951307dbcb6bf287edf4f6144a38
| | | | | | | | | | | | * | | | | | | | | Add a checker for signature boundary in verifierTianjie Xu2017-01-181-0/+6
| | | | | | | | | | | | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | |/ / / / / / / | | | | | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 54ea136fde Change-Id: Ide2da96e322c6a913b7f2e950e43c4d11278338e
| | | | | | | | | | | | | * | | | | | | | Add a checker for signature boundary in verifierTianjie Xu2016-12-171-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'signature_start' variable marks the location of the signature from the end of a zip archive. And a boundary check is missing where 'signature_start' should be within the EOCD comment field. This causes problems when sideloading a malicious package. Also add a corresponding test. Bug: 31914369 Test: Verification fails correctly when sideloading recovery_test.zip on angler. Change-Id: I6ea96bf04dac5d8d4d6719e678d504f957b4d5c1 (cherry-picked from f69e6a9475983b2ad46729e44ab58d2b22cd74d0)
* | | | | | | | | | | | | | | | | | | | | Merge "minui: Export minui/minui.h." am: 13d15af08f am: ad20b76397 am: 54890af615Tao Bao2017-01-1711-22/+45
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 397c6c5382 Change-Id: Ib72aea7ad125286d1d347ff3b25fb5f90c408bd3
| * | | | | | | | | | | | | | | | | | | | Merge "minui: Export minui/minui.h." am: 13d15af08f am: ad20b76397Tao Bao2017-01-1711-22/+45
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 54890af615 Change-Id: I3b5d457c024e46560e5f49390102e2ca66be21b0
| | * | | | | | | | | | | | | | | | | | | Merge "minui: Export minui/minui.h." am: 13d15af08fTao Bao2017-01-1711-22/+45
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ad20b76397 Change-Id: I91b8a72fc334fc69ba4b907d6460c9e8c4e9dd18
| | | * | | | | | | | | | | | | | | | | | Merge "minui: Export minui/minui.h."Tao Bao2017-01-1711-22/+45
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 13d15af08f Change-Id: I12755c0fa6b184e68b49899e1cf589161e24eb62
| | | | * | | | | | | | | | | | | | | | | Merge "minui: Export minui/minui.h."Tao Bao2017-01-1711-22/+45
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | minui: Export minui/minui.h.Tao Bao2017-01-1711-22/+45
| | | | |/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For libminui static and shared libraries. Test: build Change-Id: Ib30dc5e2ef4a3c8b3ca3a0cec68cb65e229a0c16
* | | | | | | | | | | | | | | | | | | | | Merge "recovery: Move property_get() to android::base::GetProperty()." am: ebb4e96a71 am: 421d92707d am: 81bffbda89Tao Bao2017-01-142-82/+78
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5f877b01b0 Change-Id: I22e6dca540a9099209d2cf6c74910707ca2fd8fe
| * | | | | | | | | | | | | | | | | | | | Merge "recovery: Move property_get() to android::base::GetProperty()." am: ebb4e96a71 am: 421d92707dTao Bao2017-01-142-82/+78
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 81bffbda89 Change-Id: If10fa9ea7cc0254c3b38eb29c5c309ae761d53f4
| | * | | | | | | | | | | | | | | | | | | Merge "recovery: Move property_get() to android::base::GetProperty()." am: ebb4e96a71Tao Bao2017-01-142-82/+78
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 421d92707d Change-Id: I4f87ad321fba45f98f7adfd12937bf484025873e
| | | * | | | | | | | | | | | | | | | | | Merge "recovery: Move property_get() to android::base::GetProperty()."Tao Bao2017-01-142-82/+78
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ebb4e96a71 Change-Id: I248ed1d7e9099c5e89a758fb8d36fa5e13ab538c
| | | | * | | | | | | | | | | | | | | | | Merge "recovery: Move property_get() to android::base::GetProperty()."Tao Bao2017-01-142-82/+78
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | recovery: Move property_get() to android::base::GetProperty().Tao Bao2017-01-132-82/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: Apply two A/B incremental OTAs with the new recovery image. The one with incorrect pre-build should be blocked, while the other works fine. Change-Id: I94d97eb8798599da1630f66343fb603e87464187
* | | | | | | | | | | | | | | | | | | | | | Merge "Update background text images in recovery" am: f0af02fea6 am: 19e4f627d8 am: e05674f93eTianjie Xu2017-01-1426-2/+20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f92c313723 Change-Id: I36ab3a5d46758ef45854efd16dcf8285166d1dc4
| * | | | | | | | | | | | | | | | | | | | | Merge "Update background text images in recovery" am: f0af02fea6 am: 19e4f627d8Tianjie Xu2017-01-1426-2/+20
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e05674f93e Change-Id: I8ea1c6c8785b7810971de14a0ea61f727ffef765
| | * | | | | | | | | | | | | | | | | | | | Merge "Update background text images in recovery" am: f0af02fea6Tianjie Xu2017-01-1426-2/+20
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 19e4f627d8 Change-Id: Ic16111cc970780090827f3e2851e4df874a5d8cf
| | | * | | | | | | | | | | | | | | | | | | Merge "Update background text images in recovery"Tianjie Xu2017-01-1426-2/+20
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f0af02fea6 Change-Id: I9d287b5d0f5e7b93f77c8c5ea966e800a06a8178
| | | | * | | | | | | | | | | | | | | | | | Merge "Update background text images in recovery"Tianjie Xu2017-01-1426-2/+20
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | Update background text images in recoveryTianjie Xu2017-01-0726-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Locale texts are missing in the recovery log due to an extra empty locale chunk in the png file. Fix the bug in the app and regenerate all the background texts and compress the file with pngcrush + zopflipng. Bug: 34054052 Test: Locale texts logged successfully on angler Change-Id: I89f823a53c1eb69756183e8e11113216d093304f
* | | | | | | | | | | | | | | | | | | | | | Merge "Rename language+country resources to just language"Roozbeh Pournader2017-01-1330-270/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | | | | Rename language+country resources to just languageRoozbeh Pournader2017-01-1130-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 26496609 Test: none Change-Id: I6467c8496478402614fcdb46c5399dfa28162201
* | | | | | | | | | | | | | | | | | | | | | | Merge changes from topic 'host_suffix_cleanup' am: 8031c2d2bb am: f8f1a25850 am: a1e336d548Alex Deymo2017-01-120-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a6adbefa2c Change-Id: Ife8bfd65d7d439fab60cd462fa272912a6fd99bf
| * | | | | | | | | | | | | | | | | | | | | | Merge changes from topic 'host_suffix_cleanup' am: 8031c2d2bb am: f8f1a25850Alex Deymo2017-01-120-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a1e336d548 Change-Id: Ic444b595aba05ccbd4eee3f92c4739fbd7c277fa
| | * | | | | | | | | | | | | | | | | | | | | Merge changes from topic 'host_suffix_cleanup' am: 8031c2d2bbAlex Deymo2017-01-120-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f8f1a25850 Change-Id: I8b112d02b4a718ff258585e84fa4dfb3ba62dddc
| | | * | | | | | | | | | | | | | | | | | | | Merge changes from topic 'host_suffix_cleanup'Alex Deymo2017-01-120-0/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8031c2d2bb Change-Id: Ifcbf0829692fcac31c5246a07994be1ce0f6ba59
| | | | * | | | | | | | | | | | | | | | | | | Merge changes from topic 'host_suffix_cleanup'Alex Deymo2017-01-123-6/+6
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Remove "_static" suffix from libsparse Remove "_static" suffix from libext4_utils.
* | | | | | | | | | | | | | | | | | | | | | | | Remove "_static" suffix from libsparse am: 67f3aa8804 am: 204369ef1a am: 9e93a79f4cAlex Deymo2017-01-123-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3cbb199e24 Change-Id: Ia2447e399bd979402b535e8d7228ab0dad106d78
| * | | | | | | | | | | | | | | | | | | | | | | Remove "_static" suffix from libsparse am: 67f3aa8804 am: 204369ef1aAlex Deymo2017-01-123-3/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9e93a79f4c Change-Id: Ic1f49f4d225086fa7d7a810a6ba4c736ff319e3e
| | * | | | | | | | | | | | | | | | | | | | | | Remove "_static" suffix from libsparse am: 67f3aa8804Alex Deymo2017-01-123-3/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 204369ef1a Change-Id: I614ac38fae44e6cee4a9c2abc35574e6041dc303
| | | * | | | | | | | | | | | | | | | | | | | | Remove "_static" suffix from libsparseAlex Deymo2017-01-123-3/+3
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 67f3aa8804 Change-Id: Id40f2a7335fed5b0669a98eaa0815b129e35432d
| | | | * | | | | | | | | | | | | | | | | | | | Remove "_static" suffix from libsparseAlex Deymo2017-01-113-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 34220783 Change-Id: I358f931f0b29f5bd526e1475180e477e2e90b936
* | | | | | | | | | | | | | | | | | | | | | | | Remove "_static" suffix from libext4_utils. am: 31653660ad am: 4b54093899 am: 9edd655f94Alex Deymo2017-01-123-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 68b7f08b96 Change-Id: Ia98ed0b8e0d50c2256dcacb1a5240e98c68f4adb
| * | | | | | | | | | | | | | | | | | | | | | | Remove "_static" suffix from libext4_utils. am: 31653660ad am: 4b54093899Alex Deymo2017-01-123-3/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9edd655f94 Change-Id: I6191d76d293d4b14e34eaafa227429999707e460
| | * | | | | | | | | | | | | | | | | | | | | | Remove "_static" suffix from libext4_utils. am: 31653660adAlex Deymo2017-01-123-3/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4b54093899 Change-Id: Iec132548bf78f7c076217bda4e7f24b7acf35f33
| | | * | | | | | | | | | | | | | | | | | | | | Remove "_static" suffix from libext4_utils.Alex Deymo2017-01-123-3/+3
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 31653660ad Change-Id: Iae744743d29b3669dd57403a2eb90153e5efbe46
| | | | * | | | | | | | | | | | | | | | | | | | Remove "_static" suffix from libext4_utils.Alex Deymo2017-01-113-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 34220783 Change-Id: I34ccc3b11da0d1b48805967ad75b9ddade569930
* | | | | | | | | | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2017-01-1230-0/+270
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie80a9f0a82341c96343024296b555621ed4de347 Auto-generated-cl: translation import
* | | | | | | | | | | | | | | | | | | | | | | | Merge "Do not inject I/O fault on a retry" am: 37d74f3e20 am: 854ef3b9d1 am: 7d345f27e7Tianjie Xu2017-01-103-4/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4ab40a064d Change-Id: Ibfca4384125a264124a2485f0a69d6e0ea4cafab
| * | | | | | | | | | | | | | | | | | | | | | | Merge "Do not inject I/O fault on a retry" am: 37d74f3e20 am: 854ef3b9d1Tianjie Xu2017-01-103-4/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7d345f27e7 Change-Id: I9ae05b6590af22e98c7cd31a480b4e4c73b67226
| | * | | | | | | | | | | | | | | | | | | | | | Merge "Do not inject I/O fault on a retry" am: 37d74f3e20Tianjie Xu2017-01-103-4/+6
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 854ef3b9d1 Change-Id: Ic3939632a16b54c2b77732c48c1ace8105298e2f
| | | * | | | | | | | | | | | | | | | | | | | | Merge "Do not inject I/O fault on a retry"Tianjie Xu2017-01-103-4/+6
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 37d74f3e20 Change-Id: Ie34000f89b027b79f4161edc7b53b3dd14e51d6a
| | | | * | | | | | | | | | | | | | | | | | | | Merge "Do not inject I/O fault on a retry"Tianjie Xu2017-01-103-4/+6
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | | Do not inject I/O fault on a retryTianjie Xu2017-01-093-4/+6
| | | | | | |/ / / / / / / / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We could inject I/O faults during an OTA update for test purpose. But we should skip the injection if the update is an retry. Otherwise the update test will simply keeps failing. Bug: 34159970 Test: Apply the same package on angler and the update succeeds on the 2nd try. Change-Id: Id274e5475e3bc8d25d50a8cf61a77d2e32c569d6
* | | | | | | | | | | | | | | | | | | | | | | Merge "Address review comment." am: 77ec0071cf am: 3e003ceeda am: ac431948d3Elliott Hughes2017-01-101-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d481352f05 Change-Id: I71a3e6c3c365f1941c94569c4d022e402379459f
| * | | | | | | | | | | | | | | | | | | | | | Merge "Address review comment." am: 77ec0071cf am: 3e003ceedaElliott Hughes2017-01-101-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ac431948d3 Change-Id: Ide8ad96300b13f8cc32717c61fdddfebbf2dd04e
| | * | | | | | | | | | | | | | | | | | | | | Merge "Address review comment." am: 77ec0071cfElliott Hughes2017-01-101-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3e003ceeda Change-Id: I3f984543d2724c26f8720a4eaeea177b94cf0068
| | | * | | | | | | | | | | | | | | | | | | | Merge "Address review comment."Elliott Hughes2017-01-101-1/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 77ec0071cf Change-Id: I0b40813d4c40e104ee111c45e13d6f278e6d705c
| | | | * | | | | | | | | | | | | | | | | | | Merge "Address review comment."Elliott Hughes2017-01-101-1/+1
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | Address review comment.Elliott Hughes2017-01-091-1/+1
| | | | |/ / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: N/A Test: N/A Change-Id: I9467286e57522c6ed640a3599cb678ac10d9e2a4
* | | | | | | | | | | | | | | | | | | | | | | Merge "Move to .md files for even trivial documentation." am: 2fc1ff3b32 am: 61728ff4d8 am: 6ac5db29dbElliott Hughes2017-01-091-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f6d4b1ec09 Change-Id: Ida79628ed3fc418324f32197c77b2d1db787c0fb
| * | | | | | | | | | | | | | | | | | | | | | Merge "Move to .md files for even trivial documentation." am: 2fc1ff3b32 am: 61728ff4d8Elliott Hughes2017-01-091-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6ac5db29db Change-Id: Iad647704a2fc7d7fcfe7ca4c07eec7c1df7e0e02
| | * | | | | | | | | | | | | | | | | | | | | Merge "Move to .md files for even trivial documentation." am: 2fc1ff3b32Elliott Hughes2017-01-091-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 61728ff4d8 Change-Id: I24746abcc64ed7fe89cf82fa844c719912a77d21
| | | * | | | | | | | | | | | | | | | | | | | Merge "Move to .md files for even trivial documentation."Elliott Hughes2017-01-091-0/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2fc1ff3b32 Change-Id: Idb55c0fcfa99fef4a584d48e39b63e45bd598bf3
| | | | * | | | | | | | | | | | | | | | | | | Merge "Move to .md files for even trivial documentation."Elliott Hughes2017-01-091-0/+0
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | Move to .md files for even trivial documentation.Elliott Hughes2017-01-071-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So it's automatically displayed for folks browsing the source. Bug: N/A Test: N/A Change-Id: Ie9b190072ebdf0faf06cc1fd7b3467c031056753
* | | | | | | | | | | | | | | | | | | | | | | | Merge "recovery: Fix the argument parsing." am: 33808f16c5 am: fe0a80184c am: b7ce9c5e00Tao Bao2017-01-091-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 931bc0c3d1 Change-Id: I9fc2dca136b91a8b30bea1bbdd8c5e577750f0e8
| * | | | | | | | | | | | | | | | | | | | | | | Merge "recovery: Fix the argument parsing." am: 33808f16c5 am: fe0a80184cTao Bao2017-01-091-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b7ce9c5e00 Change-Id: Ia85d957754774a4aa9825754339e8745e4d55663
| | * | | | | | | | | | | | | | | | | | | | | | Merge "recovery: Fix the argument parsing." am: 33808f16c5Tao Bao2017-01-091-2/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fe0a80184c Change-Id: Id077e40e0fa27fb94fee942e95430eb02c369333
| | | * | | | | | | | | | | | | | | | | | | | | Merge "recovery: Fix the argument parsing."Tao Bao2017-01-091-2/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 33808f16c5 Change-Id: I9ae6633598262f21cca63f90cd51f6b84e5fead2
| | | | * | | | | | | | | | | | | | | | | | | | Merge "recovery: Fix the argument parsing."Tao Bao2017-01-091-2/+2
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | | recovery: Fix the argument parsing.Tao Bao2017-01-091-2/+2
| | | | | | |/ / / / / / / / / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit f0ed159f488c57c4ede0503443eb62fadfe0a831 unintentionally changed the behavior when parsing the arguments from BCB and command file. It should only parse the command file for arguments if BCB doesn't supply any. As a result, it shows the following from the log: I:Got 2 arguments from boot message I:Got 3 arguments from /cache/recovery/command Test: Set arguments in BCB and command file both. It should only use the arguments from BCB. Change-Id: Idf371137aa9177f1b2dfdfecf0c9f46959d2ee76
* | | | | | | | | | | | | | | | | | | | | | | | Merge "Retry ioctl in uncrypt if it returns block# 0" am: ceafe69fb8 am: 06b4254a70 am: 5ec75851a7Tianjie Xu2017-01-071-1/+40
|\| | | | | | | | | | | | | | | | | | | | | | | | |_|_|_|_|_|/ / / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4536c470f8 Change-Id: I399f35a1bc1575f9e1fcfa5d2bb537390360505e
| * | | | | | | | | | | | | | | | | | | | | | Merge "Retry ioctl in uncrypt if it returns block# 0" am: ceafe69fb8 am: 06b4254a70Tianjie Xu2017-01-071-1/+40
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5ec75851a7 Change-Id: I8fc9a1e148b4b8088a2cd38ef04817c8c5ad99aa
| | * | | | | | | | | | | | | | | | | | | | | Merge "Retry ioctl in uncrypt if it returns block# 0" am: ceafe69fb8Tianjie Xu2017-01-071-1/+40
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 06b4254a70 Change-Id: I09e0b59a433533c84f251a8c32c663a1ca8a8d3b
| | | * | | | | | | | | | | | | | | | | | | | Merge "Retry ioctl in uncrypt if it returns block# 0"Tianjie Xu2017-01-071-1/+40
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ceafe69fb8 Change-Id: I5fa4c97672520c2ec47e2bbb55b55c5f54417dc7
| | | | * | | | | | | | | | | | | | | | | | | Merge "Retry ioctl in uncrypt if it returns block# 0"Tianjie Xu2017-01-071-1/+40
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | Retry ioctl in uncrypt if it returns block# 0Tianjie Xu2016-12-051-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some conditions, ioctl(fd, FIBMAP, &block) returns block number 0.This is a failure to locate the actual block number of the update package and will result in an invalid block.map. This CL retries ioctl a few times if it returns block number as 0. Bug: 31632090 Test: On N9, uncrypt retries ioctl and produces the correct blockmap. Change-Id: I913f98cf5c112915c2e803d0683db273c89053b6
* | | | | | | | | | | | | | | | | | | | | | | Merge "recovery: Clean up try_update_binary() in install.cpp." am: 095675a3eb am: 1bbd9c68af am: af53db6ba0Tao Bao2017-01-061-145/+166
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 31f4bb5a2c Change-Id: Id89a420a1a5ddd4c8d497fe34517b9ed1fb267f9
| * | | | | | | | | | | | | | | | | | | | | | Merge "recovery: Clean up try_update_binary() in install.cpp." am: 095675a3eb am: 1bbd9c68afTao Bao2017-01-061-145/+166
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: af53db6ba0 Change-Id: I2b069e20650758513687a90c4341d2168016b331
| | * | | | | | | | | | | | | | | | | | | | | Merge "recovery: Clean up try_update_binary() in install.cpp." am: 095675a3ebTao Bao2017-01-061-145/+166
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1bbd9c68af Change-Id: Ia502cd3e40fb02ed01e3e91fd0892f952083b1fa
| | | * | | | | | | | | | | | | | | | | | | | Merge "recovery: Clean up try_update_binary() in install.cpp."Tao Bao2017-01-061-145/+166
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 095675a3eb Change-Id: I2fd17d43068359095746c885c0f3c0605eac232e
| | | | * | | | | | | | | | | | | | | | | | | Merge "recovery: Clean up try_update_binary() in install.cpp."Treehugger Robot2017-01-061-145/+166
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | recovery: Clean up try_update_binary() in install.cpp.Tao Bao2017-01-061-145/+166
| | | | | | |/ / / / / / / / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move functions over to android::base versions. - strtok(3) => android::base::Split() - strtol(3) => android::base::ParseInt() - strtof(3) => android::base::ParseDouble() Test: Build recovery image and apply a package that calls ui_print / progress / set_progress commands. Change-Id: I953b4985e0bd9e277362ae53e233d755cf27d80c
* | | | | | | | | | | | | | | | | | | | | | | Merge "tests: Add testcase for show_progress() and set_progress()." am: 478a5ec9c7 am: 179fc8a82b am: ba0dad8828Tao Bao2017-01-061-0/+50
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 485b94f14d Change-Id: I437572556bcbf8110a8d6d7ea00442675297822e
| * | | | | | | | | | | | | | | | | | | | | | Merge "tests: Add testcase for show_progress() and set_progress()." am: 478a5ec9c7 am: 179fc8a82bTao Bao2017-01-061-0/+50
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ba0dad8828 Change-Id: If96d9335809c57629a58411429ff58c720c45ae2
| | * | | | | | | | | | | | | | | | | | | | | Merge "tests: Add testcase for show_progress() and set_progress()." am: 478a5ec9c7Tao Bao2017-01-061-0/+50
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 179fc8a82b Change-Id: I83bea4e1670fe7437e01f3dd232070807c28d77c
| | | * | | | | | | | | | | | | | | | | | | | Merge "tests: Add testcase for show_progress() and set_progress()."Tao Bao2017-01-061-0/+50
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 478a5ec9c7 Change-Id: I06ba1a53e13b1e9cbeaffad63d7b418782527166
| | | | * | | | | | | | | | | | | | | | | | | Merge "tests: Add testcase for show_progress() and set_progress()."Tao Bao2017-01-061-0/+50
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | tests: Add testcase for show_progress() and set_progress().Tao Bao2017-01-061-0/+50
| | | | |/ / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: recovery_component_test passes. Change-Id: I4f00d0171cf86699e9ce747d07d7d44a01906e81
* | | | | | | | | | | | | | | | | | | | | | Merge "updater: Clean up CreateStash()." am: 91f74c82cd am: 719a15b187 am: fbb5dbb471Tao Bao2017-01-051-83/+84
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 36c895d8ae Change-Id: I90eb56702bf528777e89fce04a9a548f5651a9e0
| * | | | | | | | | | | | | | | | | | | | | Merge "updater: Clean up CreateStash()." am: 91f74c82cd am: 719a15b187Tao Bao2017-01-051-83/+84
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fbb5dbb471 Change-Id: If1b1b5c2a52abde1cc6b860413efe935f326a63d
| | * | | | | | | | | | | | | | | | | | | | Merge "updater: Clean up CreateStash()." am: 91f74c82cdTao Bao2017-01-051-83/+84
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 719a15b187 Change-Id: I927826ffeb42053881bf35e5051ca3599205f3ee
| | | * | | | | | | | | | | | | | | | | | | Merge "updater: Clean up CreateStash()."Tao Bao2017-01-051-83/+84
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 91f74c82cd Change-Id: Ie7b92df12edf5bf8dc87806b22daf7ab1683d055
| | | | * | | | | | | | | | | | | | | | | | Merge "updater: Clean up CreateStash()."Tao Bao2017-01-051-83/+84
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | updater: Clean up CreateStash().Tao Bao2016-12-291-84/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the stash size computation from int to size_t. Test: Apply an incremental BBOTA with the new updater. Change-Id: Ib45b71b826fec6aa0ffafc67c17735825634eae0
* | | | | | | | | | | | | | | | | | | | | | | Merge "imgdiff: Fix an edge case that leads to infinite loop." am: 3b828d879b am: 4d37763c69 am: e513c0f2acTao Bao2017-01-043-15/+91
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bcde135fce Change-Id: I91af040f28085b4ab07fe191bee03b50c4c3ffce
| * | | | | | | | | | | | | | | | | | | | | | Merge "imgdiff: Fix an edge case that leads to infinite loop." am: 3b828d879b am: 4d37763c69Tao Bao2017-01-043-15/+91
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e513c0f2ac Change-Id: I24c52efcf8cd5055af9602dd6bc9b40f029816f9
| | * | | | | | | | | | | | | | | | | | | | | Merge "imgdiff: Fix an edge case that leads to infinite loop." am: 3b828d879bTao Bao2017-01-043-15/+91
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4d37763c69 Change-Id: I85fac2fe7a6011dc62b86ed20b3f79650545050f
| | | * | | | | | | | | | | | | | | | | | | | Merge "imgdiff: Fix an edge case that leads to infinite loop."Tao Bao2017-01-043-15/+91
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3b828d879b Change-Id: I810a00367d4ab384b6073a9416f39351e84dec84
| | | | * | | | | | | | | | | | | | | | | | | Merge "imgdiff: Fix an edge case that leads to infinite loop."Tao Bao2017-01-043-15/+91
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | imgdiff: Fix an edge case that leads to infinite loop.Tao Bao2016-12-283-15/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the input image ends with the magic value sequence of 0x1f, 0x8b, 0x0b (optionally with 0x00), the image parsing code will be stuck in an infinite loop. Test: recovery_component_test passes. Change-Id: Ie3629dfdc41360387b19cc3e0359c95ae4fb998e
* | | | | | | | | | | | | | | | | | | | | | | | Merge "Write aliases before ffs mount in recovery" am: 1302ea8725 am: 9f9d50d4ed am: e477a54c8dJerry Zhang2017-01-040-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6bec66849b Change-Id: I65ac28ca11d566fb73288940e954faacd378354c
| * | | | | | | | | | | | | | | | | | | | | | | Merge "Write aliases before ffs mount in recovery" am: 1302ea8725 am: 9f9d50d4edJerry Zhang2017-01-041-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e477a54c8d Change-Id: I2fe7b5ebfea0216808b721a76eb816106b56e0cb
| | * | | | | | | | | | | | | | | | | | | | | | Merge "Write aliases before ffs mount in recovery" am: 1302ea8725Jerry Zhang2017-01-041-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9f9d50d4ed Change-Id: I456a4b44b4a4df7d7752ee66784d26a94249c41c
| | | * | | | | | | | | | | | | | | | | | | | | Merge "Write aliases before ffs mount in recovery"Jerry Zhang2017-01-041-1/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1302ea8725 Change-Id: I90c2fbe1bb0d73ed2dc7ec0dd34edb0c11adf3df
| | | | * | | | | | | | | | | | | | | | | | | | Merge "Write aliases before ffs mount in recovery"Jerry Zhang2017-01-041-1/+1
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | | Write aliases before ffs mount in recoveryJerry Zhang2017-01-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is necessary to support kernel changes that allow for multiple ffs functions. Some kernels require aliases in order to name function instances before mount time. Test: Reboot into recovery, verify adb works Bug: 34070894 Change-Id: I8376304d92af9b3e8c734fdb8cc77f0dc8bc4850
* | | | | | | | | | | | | | | | | | | | | | | | | Merge "recovery: Fix the broken UI text." am: 56fc8fa376 am: 1227f6b841 am: 3806993e25Tao Bao2017-01-049-236/+244
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 74e0ecb25b Change-Id: If03ce22edaee2cf9aa38f3ea90ee992cd06695c3
| * | | | | | | | | | | | | | | | | | | | | | | | Merge "recovery: Fix the broken UI text." am: 56fc8fa376 am: 1227f6b841Tao Bao2017-01-049-236/+244
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3806993e25 Change-Id: I68a27e971d8f786ae669e3bbef4218ea2ca1bbcd
| | * | | | | | | | | | | | | | | | | | | | | | | Merge "recovery: Fix the broken UI text." am: 56fc8fa376Tao Bao2017-01-049-236/+244
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1227f6b841 Change-Id: Idd6c7c84e599b1fcacf4c1601164742144b6e613
| | | * | | | | | | | | | | | | | | | | | | | | | Merge "recovery: Fix the broken UI text."Tao Bao2017-01-049-236/+244
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 56fc8fa376 Change-Id: If83e5bf3b79fd753ad87ea8223ed59883dfcfafe
| | | | * | | | | | | | | | | | | | | | | | | | | Merge "recovery: Fix the broken UI text."Tao Bao2017-01-049-236/+244
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | | | recovery: Fix the broken UI text.Tao Bao2017-01-049-236/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UI text is broken (doesn't show any text during FDR) due to commit d530449e54bd327e9c26209ffa0490c6508afe6c, which reordered the calls to RecoveryUI::SetLocale() and RecoveryUI::Init(). Because Init() uses the locale info to load the localized texts (from images), the locale must be set prior to that via SetLocale(). This CL refactors Init() to take the locale parameter, and removes the odd SetLocale() API. Bug: 34029338 Test: 'Run graphics test' under recovery. Change-Id: I620394a3d4e3705e9af5a1f6299285d143ae1b01
* | | | | | | | | | | | | | | | | | | | | | | | | Merge "Write aliases before ffs mount in recovery"Jerry Zhang2017-01-041-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | | | | | | | Write aliases before ffs mount in recoveryJerry Zhang2017-01-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is necessary to support kernel changes that allow for multiple ffs functions. Some kernels require aliases in order to name function instances before mount time. Test: Reboot into recovery, verify adb works Bug: 34070894 Change-Id: I8376304d92af9b3e8c734fdb8cc77f0dc8bc4850
* | | | | | | | | | | | | | | | | | | | | | | | | | Merge "updater: Refactor parse_range()." am: 466e1b396a am: 6502c50e4b am: cb9c4fc4fbTao Bao2017-01-041-74/+63
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / / / / / / / / / / / |/| / / / / / / / / / / / / / / / / / / / / / / / / | |/ / / / / / / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d9aceb57f6 Change-Id: I259cb9f63ad2b1642429a56478882d879700e224
| * | | | | | | | | | | | | | | | | | | | | | | | Merge "updater: Refactor parse_range()." am: 466e1b396a am: 6502c50e4bTao Bao2017-01-041-74/+63
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cb9c4fc4fb Change-Id: I1f9f9da6e64519bece18e61466c5dd8ead714bcf
| | * | | | | | | | | | | | | | | | | | | | | | | Merge "updater: Refactor parse_range()." am: 466e1b396aTao Bao2017-01-041-74/+63
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6502c50e4b Change-Id: If5bbf6dfa0d23430ce54a9a127346427071e24cc
| | | * | | | | | | | | | | | | | | | | | | | | | Merge "updater: Refactor parse_range()."Tao Bao2017-01-041-74/+63
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 466e1b396a Change-Id: I2d9943062762fd3ac58ae8f5d6253c487e4a82d9
| | | | * | | | | | | | | | | | | | | | | | | | | Merge "updater: Refactor parse_range()."Tao Bao2017-01-041-74/+63
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | | | updater: Refactor parse_range().Tao Bao2017-01-041-74/+63
| | | | |/ / / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Returning the parsed RangeSet directly (as opposed to using some pointer parameter) to make the code cleaner. Test: Apply an incremental with the new updater. Change-Id: I8c99e701f189eb6a3eacc0d647e5a3a85fbeb3eb
* | | | | | | | | | | | | | | | | | | | | | | | Merge "Remove outdated reference to icon_installing.png" am: 71633ebfb0 am: 05e7db3000 am: 83317083c8Tao Bao2017-01-040-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d4506bc0d6 Change-Id: I3cfcff226f7d22bc66ed4f64b7b0b4d8471e077b
| * | | | | | | | | | | | | | | | | | | | | | | Merge "Remove outdated reference to icon_installing.png" am: 71633ebfb0 am: 05e7db3000Tao Bao2017-01-040-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 83317083c8 Change-Id: If366a724c149edf404aa79f5fe54272a7c09b6f0
| | * | | | | | | | | | | | | | | | | | | | | | Merge "Remove outdated reference to icon_installing.png" am: 71633ebfb0Tao Bao2017-01-040-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 05e7db3000 Change-Id: I775376cd1850cd9d1f60d940afbcbbadf4ff8305
| | | * | | | | | | | | | | | | | | | | | | | | Merge "Remove outdated reference to icon_installing.png"Tao Bao2017-01-041-2/+4
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 71633ebfb0 Change-Id: I8e81d0c334e3fd015eda482e2a63dfb49c4f4ec3
| | | | * | | | | | | | | | | | | | | | | | | | Merge "Remove outdated reference to icon_installing.png"Tao Bao2017-01-041-2/+4
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | | Remove outdated reference to icon_installing.pngTim Kryger2017-01-041-2/+4
| | | | | | |/ / / / / / / / / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Wear recovery UI doesn't draw the installing icon but it was still trying to open it. Ever since these images were removed eight months ago, this has resulted in an error printing to the screen at runtime. Since the image wasn't really used, the lines to open it can simply be removed. Bug: 33203397 Change-Id: Id820f6d75e316c51d19b6095df407ecd61c0410e (cherry picked from commit 48be23c8ed0bcceda1abd80e1df4d1abc20f042f)
* | | | | | | | | | | | | | | | | | | | | | | | Merge "updater: Update the header name for bootloader.h." am: f9684c22c1 am: c58f5e73d5 am: c025f145cbTao Bao2017-01-041-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2a8410740c Change-Id: Ic0f8638092c5c3bf2366632ae624095c3faa7ff3
| * | | | | | | | | | | | | | | | | | | | | | | Merge "updater: Update the header name for bootloader.h." am: f9684c22c1 am: c58f5e73d5Tao Bao2017-01-041-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c025f145cb Change-Id: I870949d42264520f3f9863aea07e26118865ac44
| | * | | | | | | | | | | | | | | | | | | | | | Merge "updater: Update the header name for bootloader.h." am: f9684c22c1Tao Bao2017-01-041-2/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c58f5e73d5 Change-Id: I29f95f7e2117f3fbc7a9ffaa241e4c0f1710e268
| | | * | | | | | | | | | | | | | | | | | | | | Merge "updater: Update the header name for bootloader.h."Tao Bao2017-01-041-2/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f9684c22c1 Change-Id: Ide8973e237c9142de4f51351a0db66bb0d157451
| | | | * | | | | | | | | | | | | | | | | | | | Merge "updater: Update the header name for bootloader.h."Tao Bao2017-01-041-2/+2
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | | updater: Update the header name for bootloader.h.Tao Bao2016-12-291-2/+2
| | | | |/ / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We should include "bootloader_message/bootloader_message.h" now. Test: m updater Change-Id: I65b22a8a0bcc5976ff1ba827bd30b46ee9d59c53
* | | | | | | | | | | | | | | | | | | | | | | Merge "applypatch: Don't expose FindMatchingPatch()." am: b8d6523acf am: 29e1b7b4b2 am: 1b29658702Tao Bao2016-12-282-3/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c0044e9f89 Change-Id: Ie84bc3179912a6111cfa0c37c5f14500dbbb7c5e
| * | | | | | | | | | | | | | | | | | | | | | Merge "applypatch: Don't expose FindMatchingPatch()." am: b8d6523acf am: 29e1b7b4b2Tao Bao2016-12-282-3/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1b29658702 Change-Id: I5b20f06908d34b0eba9b27b72cc686a57b52aa11
| | * | | | | | | | | | | | | | | | | | | | | Merge "applypatch: Don't expose FindMatchingPatch()." am: b8d6523acfTao Bao2016-12-282-3/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 29e1b7b4b2 Change-Id: Ica4a7e02c1939065c404f9789941ee9206611643
| | | * | | | | | | | | | | | | | | | | | | | Merge "applypatch: Don't expose FindMatchingPatch()."Tao Bao2016-12-282-3/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b8d6523acf Change-Id: I4a1c4962ee9d78002898b678d88458f323ef5454
| | | | * | | | | | | | | | | | | | | | | | | Merge "applypatch: Don't expose FindMatchingPatch()."Tao Bao2016-12-282-3/+2
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | applypatch: Don't expose FindMatchingPatch().Tao Bao2016-12-282-3/+2
| | | | |/ / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: make Change-Id: Ic77c4669574b6129e06aa6051804f419bcc8196c
* | | | | | | | | | | | | | | | | | | | | | Merge "Add tests for imgdiff." am: 344c8eb453 am: 4fe022c4ed am: 4e2471d6ddTao Bao2016-12-288-266/+812
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e6c1d578bd Change-Id: If99c2af21db684d3874649144f0d1ff780474616
| * | | | | | | | | | | | | | | | | | | | | Merge "Add tests for imgdiff." am: 344c8eb453 am: 4fe022c4edTao Bao2016-12-288-266/+812
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4e2471d6dd Change-Id: I2bad2ab0bf7a4ff180b14dc772adc66e43b5406e
| | * | | | | | | | | | | | | | | | | | | | Merge "Add tests for imgdiff." am: 344c8eb453Tao Bao2016-12-288-266/+812
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4fe022c4ed Change-Id: I80d978c69b389089b9b47aa8170ab5041099ad94
| | | * | | | | | | | | | | | | | | | | | | Merge "Add tests for imgdiff."Tao Bao2016-12-288-266/+812
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 344c8eb453 Change-Id: Iad8cb5e7ef3e3a09c305913a1367af8585d59529
| | | | * | | | | | | | | | | | | | | | | | Merge "Add tests for imgdiff."Tao Bao2016-12-288-266/+812
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | Add tests for imgdiff.Tao Bao2016-12-208-266/+812
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Factor out libimgdiff static library for testing purpose. This CL adds the imgdiff tests on host and on target both (similar to libimgpatch). In practice, we only need imgdiff binary on host, and libimgpatch on target. But they should build and pass tests on both platforms. Test: recovery_host_test passes; recovery_component_test passes. Change-Id: I0eafb7faf727cdf70066310e845af6ee245d4f60
* | | | | | | | | | | | | | | | | | | | | | | Merge "tests: Add test coverage for DirUtil." am: f24d2a6b39 am: 1b83e7e28d am: 7f0f49dd2bTao Bao2016-12-232-0/+151
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f9d1e205eb Change-Id: I2ad7e507c25edeba24e80a3d74f3f3d7352e76c5
| * | | | | | | | | | | | | | | | | | | | | | Merge "tests: Add test coverage for DirUtil." am: f24d2a6b39 am: 1b83e7e28dTao Bao2016-12-232-0/+151
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7f0f49dd2b Change-Id: I2f4dbbb375894fe8695f99718401f2fcc457adb0
| | * | | | | | | | | | | | | | | | | | | | | Merge "tests: Add test coverage for DirUtil." am: f24d2a6b39Tao Bao2016-12-232-0/+151
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1b83e7e28d Change-Id: I630381834ee21d5495859b82707c2c7b4560d97e
| | | * | | | | | | | | | | | | | | | | | | | Merge "tests: Add test coverage for DirUtil."Tao Bao2016-12-232-0/+151
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f24d2a6b39 Change-Id: I624cb64464427d06d2711f3b88ec94cd93ac06d3
| | | | * | | | | | | | | | | | | | | | | | | Merge "tests: Add test coverage for DirUtil."Tao Bao2016-12-232-0/+151
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | tests: Add test coverage for DirUtil.Tao Bao2016-12-222-0/+151
| | | | |/ / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: recovery_unit_test passes. Change-Id: I764c56404c7ccdd57ae5486c946fbc9ac6ae7bc9
* | | | | | | | | | | | | | | | | | | | | | | Merge "tests: Replace the O_RDONLY in access(2)." am: 3b9645288e am: baf422229d am: ef801f9a62Tao Bao2016-12-222-8/+16
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5a108b6e00 Change-Id: Ieae405488b3426364626be481ad2f5a5de5e4618
| * | | | | | | | | | | | | | | | | | | | | | Merge "tests: Replace the O_RDONLY in access(2)." am: 3b9645288e am: baf422229dTao Bao2016-12-222-8/+16
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ef801f9a62 Change-Id: If7d21904a9db6a73a0498d500c12014d9bf1bfcb
| | * | | | | | | | | | | | | | | | | | | | | Merge "tests: Replace the O_RDONLY in access(2)." am: 3b9645288eTao Bao2016-12-222-8/+16
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: baf422229d Change-Id: I444696a344f8b37b852469e36b7cc6a925c9fc80
| | | * | | | | | | | | | | | | | | | | | | | Merge "tests: Replace the O_RDONLY in access(2)."Tao Bao2016-12-222-8/+16
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3b9645288e Change-Id: Ib06f7298797ccd3f945542ecdd5366fb8e8eba6c
| | | | * | | | | | | | | | | | | | | | | | | Merge "tests: Replace the O_RDONLY in access(2)."Tao Bao2016-12-222-8/+16
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | tests: Replace the O_RDONLY in access(2).Tao Bao2016-12-222-8/+16
| | | | | |/ / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Although O_RDONLY gives the same value as F_OK (0), it's not the right friend of access(2). Also clean up the temporary files from ZipTest (TemporaryDir doesn't like non-empty directory). Test: recovery_unit_test passes and has no leftover. Change-Id: I66b90e43c0954c89ce08b36b9e2b4e84183b28f5
* | | | | | | | | | | | | | | | | | | | | | | Merge "tests: Add testcase for ZipUtil." am: aa305e9ce8 am: 6df1c4579e am: 830ab1c482Tao Bao2016-12-222-1/+193
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7720e1ab48 Change-Id: Ia09ba6d6b82a088142a964b8223bb2576d78604c
| * | | | | | | | | | | | | | | | | | | | | | Merge "tests: Add testcase for ZipUtil." am: aa305e9ce8 am: 6df1c4579eTao Bao2016-12-222-1/+193
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 830ab1c482 Change-Id: I253e34414b8fb4be173307ec0dabedb9c7f35380
| | * | | | | | | | | | | | | | | | | | | | | Merge "tests: Add testcase for ZipUtil." am: aa305e9ce8Tao Bao2016-12-222-1/+193
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6df1c4579e Change-Id: I7bcce5428e32bbae889e999bce18c091f552136d
| | | * | | | | | | | | | | | | | | | | | | | Merge "tests: Add testcase for ZipUtil."Tao Bao2016-12-222-1/+193
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: aa305e9ce8 Change-Id: Id12e27ac3db4bcee6aa9de86867f05942cee3645
| | | | * | | | | | | | | | | | | | | | | | | Merge "tests: Add testcase for ZipUtil."Tao Bao2016-12-222-1/+193
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | tests: Add testcase for ZipUtil.Tao Bao2016-12-222-1/+193
| | | | | |/ / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: recovery_unit_test passes. Change-Id: I8ad364e88aaee31579ed7206aad8e5620518d797
* | | | | | | | | | | | | | | | | | | | | | | Merge "Support a "ask before wiping" boot flag." am: 7ec4e6f5a3 am: bc344ba7b9 am: 11e9af909dPaul Crowley2016-12-221-12/+52
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 98631a39ca Change-Id: I71acc0d5e3311cdb2782e9d5979ac75a9a79fe0a
| * | | | | | | | | | | | | | | | | | | | | | Merge "Support a "ask before wiping" boot flag." am: 7ec4e6f5a3 am: bc344ba7b9Paul Crowley2016-12-221-12/+52
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 11e9af909d Change-Id: Ib07bb356ac6fac309716e76b2d9d4b1581518cdf
| | * | | | | | | | | | | | | | | | | | | | | Merge "Support a "ask before wiping" boot flag." am: 7ec4e6f5a3Paul Crowley2016-12-221-12/+52
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bc344ba7b9 Change-Id: I8f10c9fc59dce2954b8473b6eb648abe8d55612a
| | | * | | | | | | | | | | | | | | | | | | | Merge "Support a "ask before wiping" boot flag."Paul Crowley2016-12-221-12/+52
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7ec4e6f5a3 Change-Id: I593eeaabf0f3c44c83d1a516dc05518dbfdd3660
| | | | * | | | | | | | | | | | | | | | | | | Merge "Support a "ask before wiping" boot flag."Treehugger Robot2016-12-221-12/+52
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | Support a "ask before wiping" boot flag.Paul Crowley2016-12-211-12/+52
| | | | |/ / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the event of a catastrophic data error which should never happen, ask the user before wiping the device. Test: Cause an init builtin to fail and generate this error, observe. Bug: 28693324 Change-Id: I38a2b815157d816cba1f30ad37eb4cdcc01db582
* | | | | | | | | | | | | | | | | | | | | | Merge "Add a checker for signature boundary in verifier"Tianjie Xu2016-12-193-1/+8
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | | | | Add a checker for signature boundary in verifierTianjie Xu2016-12-173-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'signature_start' variable marks the location of the signature from the end of a zip archive. And a boundary check is missing where 'signature_start' should be within the EOCD comment field. This causes problems when sideloading a malicious package. Also add a corresponding test. Bug: 31914369 Test: Verification fails correctly when sideloading recovery_test.zip on angler. Change-Id: I6ea96bf04dac5d8d4d6719e678d504f957b4d5c1
* | | | | | | | | | | | | | | | | | | | | | | Merge "Bugfix:updater always retry apply patch failed,when memcpy failed." am: e81719dde3 am: b0337774b2 am: 88bd5d59deTao Bao2016-12-191-0/+11
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / / / / / / / / |/| / / / / / / / / / / / / / / / / / / / / / | |/ / / / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 794075c575 Change-Id: Ic26d6041fb77e1969ad37a691b7d7cd422e9e9e9
| * | | | | | | | | | | | | | | | | | | | | Merge "Bugfix:updater always retry apply patch failed,when memcpy failed." am: e81719dde3 am: b0337774b2Tao Bao2016-12-191-0/+11
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 88bd5d59de Change-Id: Ia1127521eb2d1730f82be920886337c8d73635ff
| | * | | | | | | | | | | | | | | | | | | | Merge "Bugfix:updater always retry apply patch failed,when memcpy failed." am: e81719dde3Tao Bao2016-12-191-0/+11
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b0337774b2 Change-Id: I8a874f491f6a6ee452a3a18ae53920903ec11a44
| | | * | | | | | | | | | | | | | | | | | | Merge "Bugfix:updater always retry apply patch failed,when memcpy failed."Tao Bao2016-12-191-0/+11
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e81719dde3 Change-Id: I1a833b07b4baa45f23930b4231c35fba2c2ac6ef
| | | | * | | | | | | | | | | | | | | | | | Merge "Bugfix:updater always retry apply patch failed,when memcpy failed."Tao Bao2016-12-191-0/+11
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | Bugfix:updater always retry apply patch failed,when memcpy failed.katao2016-12-191-0/+11
| | | | |/ / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://code.google.com/p/android/issues/detail?id=230602 On the second attempt, open the file with O_RDONLY, which causing a write failure。 Change-Id: If89165b8c7619fe25722073a46b3cc7c61530a71 Signed-off-by: katao <ustckato@gmail.com>
* | | | | | | | | | | | | | | | | | | | | | Remove outdated reference to icon_installing.png am: 48be23c8ed am: 14bdbb6c77 -s oursTim Kryger2016-12-160-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fe98435fa9 Change-Id: I23742456b33d6b41bed0efcd521bbc747ea46be0
| * | | | | | | | | | | | | | | | | | | | | Remove outdated reference to icon_installing.png am: 48be23c8edTim Kryger2016-12-160-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 14bdbb6c77 -s ours Change-Id: I9c0a42e3d13b33edcd01de3cee7ad5ca1dfc947f
| | * | | | | | | | | | | | | | | | | | | | Remove outdated reference to icon_installing.pngTim Kryger2016-12-151-2/+3
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|/ / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 48be23c8ed Change-Id: I84d5539f61694a5ae9299775f2ede0a7310512a0
* | | | | | | | | | | | | | | | | | | | | | Merge "resolve merge conflicts of 48be23c to nyc-mr1-dev-plus-aosp" into nyc-mr1-dev-plus-aosp am: 910c83b915Tim Kryger2016-12-160-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5ade8ae26c Change-Id: I217cc8a412abe2fe8e3714b816096cd62d5bdb13
| * | | | | | | | | | | | | | | | | | | | | Merge "resolve merge conflicts of 48be23c to nyc-mr1-dev-plus-aosp" into nyc-mr1-dev-plus-aospTim Kryger2016-12-160-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 910c83b915 Change-Id: I3ddcf068bea9ae723e6609e4c599fb34b0e7090b
| | * | | | | | | | | | | | | | | | | | | | Merge "resolve merge conflicts of 48be23c to nyc-mr1-dev-plus-aosp" into nyc-mr1-dev-plus-aospTreeHugger Robot2016-12-161-2/+4
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
* | | | | | | | | | | | | | | | | | | | | | | resolve merge conflicts of 48be23c to nyc-mr1-dev-plus-aosp am: a5876e43f7Tim Kryger2016-12-161-2/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a3e2f0b082 Change-Id: Ief76f7544f942f88e058fd9784c152583bc73290
| * | | | | | | | | | | | | | | | | | | | | | resolve merge conflicts of 48be23c to nyc-mr1-dev-plus-aospTim Kryger2016-12-161-2/+4
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a5876e43f7 Change-Id: I16d8e6bdfa1401b534a2ac53b2fb3c2a41d0ef58
| | * | | | | | | | | | | | | | | | | | | | | resolve merge conflicts of 48be23c to nyc-mr1-dev-plus-aospTim Kryger2016-12-151-2/+4
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ia6c502d22d7fc42b5fc13b625f14643f3d7ddf44
| | | * | | | | | | | | | | | | | | | | | | | Remove outdated reference to icon_installing.pngTim Kryger2016-11-291-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Wear recovery UI doesn't draw the installing icon but it was still trying to open it. Ever since these images were removed eight months ago, this has resulted in an error printing to the screen at runtime. Since the image wasn't really used, the lines to open it can simply be removed. Bug: 33203397 Change-Id: Id820f6d75e316c51d19b6095df407ecd61c0410e
* | | | | | | | | | | | | | | | | | | | | | | Merge "Add update_bootloader_message() to fix two-step OTAs." am: 26d972c9d2 am: 9a707b08ef am: cb15594696Tao Bao2016-12-164-12/+65
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5c13ade64c Change-Id: I8dc01cc4a2b8d0585eacbec1a1fc0235951ebea6
| * | | | | | | | | | | | | | | | | | | | | | Merge "Add update_bootloader_message() to fix two-step OTAs." am: 26d972c9d2 am: 9a707b08efTao Bao2016-12-164-12/+65
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cb15594696 Change-Id: I75415b9fef5209f0b55859c4ca921544c4a338c1
| | * | | | | | | | | | | | | | | | | | | | | Merge "Add update_bootloader_message() to fix two-step OTAs." am: 26d972c9d2Tao Bao2016-12-164-12/+65
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9a707b08ef Change-Id: Ia42e91fd952b99bd5631ee419cbc402902a867f4
| | | * | | | | | | | | | | | | | | | | | | | Merge "Add update_bootloader_message() to fix two-step OTAs."Tao Bao2016-12-154-12/+65
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|/ / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 26d972c9d2 Change-Id: I9e06f70030f0226549c07a24fc088c0804bfd3a1
| | | | * | | | | | | | | | | | | | | | | | | Merge "Add update_bootloader_message() to fix two-step OTAs."Tao Bao2016-12-154-12/+65
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | Add update_bootloader_message() to fix two-step OTAs.Tao Bao2016-12-154-12/+65
| | | | |/ / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a retry of commit 7e31f421a514da09b90e46dbd642a5e9b16e0003. Commit bd56f1590c967205dc45eb2ec298aa8d2aacb740 switches to calling write_bootloader_message(<options>) in get_args(), which unintentionally resets the stage field thus breaks two-step OTAs. This CL adds update_bootloader_message(<options>), which only sets the command field (to "boot-recovery") and the recovery field (with the specified options). Bug: 33534933 Test: Apply a two-step package. Test: recovery_component_test passes. Change-Id: Ie0b1ed4053d2d3c97d9cb84310d616b28fcfc72e
* | | | | | | | | | | | | | | | | | | | | | | Merge "tests: Add tests for bootloader_message." am: 07d985b75b am: 7f3ada54ec am: 870b87dfc8Tao Bao2016-12-162-0/+140
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 280c863eb9 Change-Id: Ibd2039547facfc8ab1f0cf4ed39987f5193aca2c
| * | | | | | | | | | | | | | | | | | | | | | Merge "tests: Add tests for bootloader_message." am: 07d985b75b am: 7f3ada54ecTao Bao2016-12-162-0/+140
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 870b87dfc8 Change-Id: I01b841a436df45f845e1ec4cde903ec0e102f5ec
| | * | | | | | | | | | | | | | | | | | | | | Merge "tests: Add tests for bootloader_message." am: 07d985b75bTao Bao2016-12-162-0/+140
| | |\| | | | | | | | | | | | | | | | | | | | | | | |_|/ / / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7f3ada54ec Change-Id: Ib421ff42e543ee97b0db4b5ca478e21f13825cd1
| | | * | | | | | | | | | | | | | | | | | | Merge "tests: Add tests for bootloader_message."Tao Bao2016-12-152-0/+140
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 07d985b75b Change-Id: I9ef1def5d3f2a3d28151dfefb9accf677795b535
| | | | * | | | | | | | | | | | | | | | | | Merge "tests: Add tests for bootloader_message."Tao Bao2016-12-152-0/+140
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | tests: Add tests for bootloader_message.Tao Bao2016-12-152-0/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: recovery_component_test passes. Change-Id: Ib9aa2ffd6b018546223c76b7424f4ba355f5b088
* | | | | | | | | | | | | | | | | | | | | | | Merge "Add a stub recovery UI." am: 8c1584feaf am: 2f8f6ec0fc am: ef45a88680Sen Jiang2016-12-149-17/+102
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b29f25888a Change-Id: I32cdf7fb4a467b16a9d1c746d6c90539740cd211
| * | | | | | | | | | | | | | | | | | | | | | Merge "Add a stub recovery UI." am: 8c1584feaf am: 2f8f6ec0fcSen Jiang2016-12-149-17/+102
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ef45a88680 Change-Id: I22e054d7fa4ca9986d6b9b3e625a2cbd8449aaa1
| | * | | | | | | | | | | | | | | | | | | | | Merge "Add a stub recovery UI." am: 8c1584feafSen Jiang2016-12-149-17/+102
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2f8f6ec0fc Change-Id: I8acb01933efe7d8d69a608cc9801bf717fae4486
| | | * | | | | | | | | | | | | | | | | | | | Merge "Add a stub recovery UI."Sen Jiang2016-12-149-17/+102
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8c1584feaf Change-Id: I88c79576a1c700509bb844936dbd8ef3784b1b13
| | | | * | | | | | | | | | | | | | | | | | | Merge "Add a stub recovery UI."Sen Jiang2016-12-149-17/+102
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | Add a stub recovery UI.Sen Jiang2016-12-139-17/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows recovery to work on devices without screen. The stub recovery UI does nothing except print to stdout. Test: write 'recovery\n--wipe_data\n--reason=wipe_data_from_ota\n' to misc and boot to recovery on a device without screen. Bug: 33175036 Change-Id: Icde698aa2e2e29f4b3d0532dfd3c6a939ac2bc63
* | | | | | | | | | | | | | | | | | | | | | | Merge "updater: Fix the operator order." am: 2bb3a2270e am: f7f3f821a8 am: e97575e7aeTao Bao2016-12-141-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9c5655a4e4 Change-Id: I23a0d7d4028243e141f89adc9857349602a10b15
| * | | | | | | | | | | | | | | | | | | | | | Merge "updater: Fix the operator order." am: 2bb3a2270e am: f7f3f821a8Tao Bao2016-12-141-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e97575e7ae Change-Id: Ibfdda0d1ff43a0143acd8fd60c911f18da9f00a7
| | * | | | | | | | | | | | | | | | | | | | | Merge "updater: Fix the operator order." am: 2bb3a2270eTao Bao2016-12-141-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f7f3f821a8 Change-Id: I346ad87013e6ebfb06b825ae541fabe7be87649e
| | | * | | | | | | | | | | | | | | | | | | | Merge "updater: Fix the operator order."Tao Bao2016-12-141-1/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2bb3a2270e Change-Id: I3b558413b92062cfa6c8858f7083f68796a8da0a
| | | | * | | | | | | | | | | | | | | | | | | Merge "updater: Fix the operator order."Treehugger Robot2016-12-141-1/+1
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | updater: Fix the operator order.Tao Bao2016-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Shift operator ("<<") has a higher precedence level than ternary operator ("?"). Test: BBOTA update log says "performing update" as opposed to "performing 0". Change-Id: I0cf60cbfc11415e94f1f9f6effe75f14d13a1874
* | | | | | | | | | | | | | | | | | | | | | | | Merge "Remove the obsolete comments for firmware update." am: 833ecb03f2 am: 527f08ed0b am: 1871a2feebTao Bao2016-12-143-26/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 27f58282b1 Change-Id: I49c7aff726bdc5839e8b2a6e48d0926358a32b6d
| * | | | | | | | | | | | | | | | | | | | | | | Merge "Remove the obsolete comments for firmware update." am: 833ecb03f2 am: 527f08ed0bTao Bao2016-12-143-26/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1871a2feeb Change-Id: I3ed12603ef1dfc3f72a1fe7e28840c6ba3f939b3
| | * | | | | | | | | | | | | | | | | | | | | | Merge "Remove the obsolete comments for firmware update." am: 833ecb03f2Tao Bao2016-12-143-26/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 527f08ed0b Change-Id: I93716c3c455f118b0bac88d18c7c0e157031834b
| | | * | | | | | | | | | | | | | | | | | | | | Merge "Remove the obsolete comments for firmware update."Tao Bao2016-12-143-26/+4
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 833ecb03f2 Change-Id: I3a52452d5e3fb6df7f85c39f7ad5fbcc2f5949ee
| | | | * | | | | | | | | | | | | | | | | | | | Merge "Remove the obsolete comments for firmware update."Tao Bao2016-12-143-26/+4
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | | Remove the obsolete comments for firmware update.Tao Bao2016-12-143-26/+4
| | | | |/ / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The corresponding code was removed in commit e08991e02a7d678f2574e85289a34b2a9a537c82 in 2010 (Froyo). Test: N/A Change-Id: I2b296e1b07d54232bade79fda7501387d65a4c37
* | | | | | | | | | | | | | | | | | | | | | | Merge "Add tests for setup-bcb and clear-bcb via uncrypt." am: 4e48a6c1a1 am: af62097c08 am: b1e8150c44Tao Bao2016-12-143-1/+177
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 51ccca4b8c Change-Id: Ifa6579a34df60e48ff53689397bb53464a5d15ee
| * | | | | | | | | | | | | | | | | | | | | | Merge "Add tests for setup-bcb and clear-bcb via uncrypt." am: 4e48a6c1a1 am: af62097c08Tao Bao2016-12-143-1/+177
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b1e8150c44 Change-Id: Ie17b122852ad9b17bdeded2da3bca56caa5bf171
| | * | | | | | | | | | | | | | | | | | | | | Merge "Add tests for setup-bcb and clear-bcb via uncrypt." am: 4e48a6c1a1Tao Bao2016-12-143-1/+177
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: af62097c08 Change-Id: Ic892f6317de9c08082beeb508c825c459cbb59d2
| | | * | | | | | | | | | | | | | | | | | | | Merge "Add tests for setup-bcb and clear-bcb via uncrypt."Tao Bao2016-12-143-1/+177
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4e48a6c1a1 Change-Id: Iaec2a0a3edf3354a030fe921e23acbc97babbb16
| | | | * | | | | | | | | | | | | | | | | | | Merge "Add tests for setup-bcb and clear-bcb via uncrypt."Tao Bao2016-12-143-1/+177
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | Add tests for setup-bcb and clear-bcb via uncrypt.Tao Bao2016-12-143-1/+177
| | | | | |/ / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/33534933 Test: recovery_component_test passes (and fails on buggy build due to the CL in [1]). [1]: commit 7e31f421a514da09b90e46dbd642a5e9b16e0003 Change-Id: I120498048ec1db8f9fcbb3cf135c05d3a48cfcdf
* | | | | | | | | | | | | | | | | | | | | | | Merge "recovery: Clean up the log saving while wiping." am: 28bbe029b6 am: 7294a8830b am: 495478e853Tao Bao2016-12-141-95/+85
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b851fd3907 Change-Id: Iac4b8ea08171fdf7cf5a70cd07e998a81c478ab8
| * | | | | | | | | | | | | | | | | | | | | | Merge "recovery: Clean up the log saving while wiping." am: 28bbe029b6 am: 7294a8830bTao Bao2016-12-131-95/+85
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 495478e853 Change-Id: I6d64980838979f65a6240e5e95d54ea733e8cc58
| | * | | | | | | | | | | | | | | | | | | | | Merge "recovery: Clean up the log saving while wiping." am: 28bbe029b6Tao Bao2016-12-131-95/+85
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7294a8830b Change-Id: I07bad38eb7c81a66c43be759bc13af85b00446c7
| | | * | | | | | | | | | | | | | | | | | | | Merge "recovery: Clean up the log saving while wiping."Tao Bao2016-12-131-95/+85
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 28bbe029b6 Change-Id: I0dfd2815874940624bbee2e02a506549fc68e070
| | | | * | | | | | | | | | | | | | | | | | | Merge "recovery: Clean up the log saving while wiping."Tao Bao2016-12-131-95/+85
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | recovery: Clean up the log saving while wiping.Tao Bao2016-12-131-95/+85
| | | | |/ / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: Wipe /cache and check the logs. Wipe /data and check the logs. Change-Id: I1968e3a0a9ed80134811a91508c4473f1dcdf953
* | | | | | | | | | | | | | | | | | | | | | Merge "clang-format: Adjust short functions / if settings." am: d6a5005fcb am: 3541850a9a am: 01afbb8f29Tao Bao2016-12-131-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 59c917aa02 Change-Id: Ie85a2315272e009ad43b29728b080d890348a0b8
| * | | | | | | | | | | | | | | | | | | | | Merge "clang-format: Adjust short functions / if settings." am: d6a5005fcb am: 3541850a9aTao Bao2016-12-131-1/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 01afbb8f29 Change-Id: I60bd86901647ada3debee5ec4314c2b8287afefb
| | * | | | | | | | | | | | | | | | | | | | Merge "clang-format: Adjust short functions / if settings." am: d6a5005fcbTao Bao2016-12-131-1/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3541850a9a Change-Id: Iae26e512af03094e6f38864241e79eeff32fbb6b
| | | * | | | | | | | | | | | | | | | | | | Merge "clang-format: Adjust short functions / if settings."Tao Bao2016-12-131-1/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d6a5005fcb Change-Id: I2d8d58e4361207656e883cf21116eef9f35bf521
| | | | * | | | | | | | | | | | | | | | | | Merge "clang-format: Adjust short functions / if settings."Tao Bao2016-12-131-1/+2
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | clang-format: Adjust short functions / if settings.Tao Bao2016-12-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://clang.llvm.org/docs/ClangFormatStyleOptions.html AllowShortFunctionsOnASingleLine: Empty Empty functions like "int f() {}" can be put on a single line. AllowShortIfStatementsOnASingleLine: true If true, "if (a) return;" can be put on a single line. Test: N/A Change-Id: Ia4f411a958235ab18d16972f2c9d0f55b645b4ba
* | | | | | | | | | | | | | | | | | | | | | | Merge "Revert "write_bootloader_message(<options>) should not reset stage field."" am: c908f4f0e3 am: 09197c47e2 am: 1b321e43e1Tao Bao2016-12-132-9/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 29dbb70e6a Change-Id: I07235ae26d9e4d894c47cefd6e652a1f6202c34d
| * | | | | | | | | | | | | | | | | | | | | | Merge "Revert "write_bootloader_message(<options>) should not reset stage field."" am: c908f4f0e3 am: 09197c47e2Tao Bao2016-12-132-9/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1b321e43e1 Change-Id: I8fc5e4d8a55bd67625bc679bc59c323a35f0a4a1
| | * | | | | | | | | | | | | | | | | | | | | Merge "Revert "write_bootloader_message(<options>) should not reset stage field."" am: c908f4f0e3Tao Bao2016-12-132-9/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 09197c47e2 Change-Id: Ic9156da53b0f07ecd794e4a5c4f948387d76e701
| | | * | | | | | | | | | | | | | | | | | | | Merge "Revert "write_bootloader_message(<options>) should not reset stage field.""Tao Bao2016-12-132-9/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c908f4f0e3 Change-Id: Ia24a7db9ee7dd655e1aa0eabfbe3cdf47b011d40
| | | | * | | | | | | | | | | | | | | | | | | Merge "Revert "write_bootloader_message(<options>) should not reset stage field.""Tao Bao2016-12-132-9/+2
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | Revert "write_bootloader_message(<options>) should not reset stage field."Tao Bao2016-12-132-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 7e31f421a514da09b90e46dbd642a5e9b16e0003. Bug: 33534933 Change-Id: Ib173f6b1e36a79deafc3592785195693a6779471
* | | | | | | | | | | | | | | | | | | | | | | Merge "recovery: Remove obsolete code that supports "CACHE:foo" format." am: 594dc4f5be am: cbb044239a am: ff77b42d66Tao Bao2016-12-101-21/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: be2a9bfe45 Change-Id: I01edd15f6b68b6a3520a78d904239fe8d0d36eb1
| * | | | | | | | | | | | | | | | | | | | | | Merge "recovery: Remove obsolete code that supports "CACHE:foo" format." am: 594dc4f5be am: cbb044239aTao Bao2016-12-101-21/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ff77b42d66 Change-Id: I0b071ffabf1456c84d7438cb1c6e13d53d012bf7
| | * | | | | | | | | | | | | | | | | | | | | Merge "recovery: Remove obsolete code that supports "CACHE:foo" format." am: 594dc4f5beTao Bao2016-12-101-21/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cbb044239a Change-Id: Ia6b73bac53888b399ca7c0696373b177e5726098
| | | * | | | | | | | | | | | | | | | | | | | Merge "recovery: Remove obsolete code that supports "CACHE:foo" format."Tao Bao2016-12-101-21/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 594dc4f5be Change-Id: I290bcbe38e8aea9f296ddd0e0263e6e02cf92885
| | | | * | | | | | | | | | | | | | | | | | | Merge "recovery: Remove obsolete code that supports "CACHE:foo" format."Tao Bao2016-12-101-21/+1
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | recovery: Remove obsolete code that supports "CACHE:foo" format.Tao Bao2016-12-101-21/+1
| | | | |/ / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The passing of "--update_package=CACHE:foo" format has been removed in Gingerbread, with commit 4baf641e7d96375eba3f9a3aff5400b9e3d28cd6 in frameworks/base (core/java/android/os/RecoverySystem.java). Test: Recovery image with --update_package still works. Change-Id: I37b56ccf98f62cadf2a3975bbc38b16fea6fe9a1
* | | | | | | | | | | | | | | | | | | | | | | Merge "write_bootloader_message(<options>) should not reset stage field." am: f28afc191d am: f4fabe254c am: d8ce8fa609Tao Bao2016-12-092-2/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d0ecbfb729 Change-Id: Ib79be43f638a5389181bce5d983b2e406ed36511
| * | | | | | | | | | | | | | | | | | | | | | Merge "write_bootloader_message(<options>) should not reset stage field." am: f28afc191d am: f4fabe254cTao Bao2016-12-092-2/+9
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d8ce8fa609 Change-Id: Ia16ca3c82b3b7c5d88419a7719fce5355227958c
| | * | | | | | | | | | | | | | | | | | | | | Merge "write_bootloader_message(<options>) should not reset stage field." am: f28afc191dTao Bao2016-12-092-2/+9
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f4fabe254c Change-Id: I8cde0f335ff2c2a496f497d744ffc6a94ea832b7
| | | * | | | | | | | | | | | | | | | | | | | Merge "write_bootloader_message(<options>) should not reset stage field."Tao Bao2016-12-092-2/+9
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f28afc191d Change-Id: I267a7130f70fef654e0cd5209d32ff4115250e45
| | | | * | | | | | | | | | | | | | | | | | | Merge "write_bootloader_message(<options>) should not reset stage field."Tao Bao2016-12-092-2/+9
| | | | |\| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | write_bootloader_message(<options>) should not reset stage field.Tao Bao2016-12-062-2/+9
| | | | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit bd56f1590c967205dc45eb2ec298aa8d2aacb740 switches to calling write_bootloader_message(<options>) in get_args(), which unintentionally resets the stage field thus breaks two-step OTAs. This CL changes write_bootloader_message(<options>) to only set the command field (to "boot-recovery") and the recovery field (with the specified options). Test: Apply a two-step package. Change-Id: I6905918812c7d3402cc1524688079066a4d22d29
* | | | | | | | | | | | | | | | | | | | | | Merge "recovery: Fix the argument parsing from COMMAND_FILE." am: 332af25b7c am: 6be6680109 am: d4ceb1fb64Tao Bao2016-12-091-2/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3ab15c4dd8 Change-Id: Ia18dda35e4995596e9775a8a8ae65eeb20e74d6e
| * | | | | | | | | | | | | | | | | | | | | Merge "recovery: Fix the argument parsing from COMMAND_FILE." am: 332af25b7c am: 6be6680109Tao Bao2016-12-091-2/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d4ceb1fb64 Change-Id: I0be84193224de80faf8ca32b62bb75180fa03d1f
| | * | | | | | | | | | | | | | | | | | | | Merge "recovery: Fix the argument parsing from COMMAND_FILE." am: 332af25b7cTao Bao2016-12-091-2/+5
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6be6680109 Change-Id: I3cd516e8bb86f685143847e11624df4791183437
| | | * | | | | | | | | | | | | | | | | | | Merge "recovery: Fix the argument parsing from COMMAND_FILE."Tao Bao2016-12-091-2/+5
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 332af25b7c Change-Id: Ib7cdd050d4f20c61ac35c1fb1ad469c5b1c72262
| | | | * | | | | | | | | | | | | | | | | | Merge "recovery: Fix the argument parsing from COMMAND_FILE."Tao Bao2016-12-091-2/+5
| | | |/| | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | recovery: Fix the argument parsing from COMMAND_FILE.Tao Bao2016-12-091-2/+5
| | | | |/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit f0ed159f488c57c4ede0503443eb62fadfe0a831 didn't ensure mounting COMMAND_FILE (i.e. /cache) prior to reading. Also the first argument in COMMAND_FILE should not be dropped (unlike the first "recovery" argument in BCB message). Bug: 33431888 Test: Push /cache/recovery/command and recovery imag parses the arguments successfully. Change-Id: Ica3157a0bb03a2355315123354617eaf3fff15a4
* | | | | | | | | | | | | | | | | | | | | Merge "recovery: Clean up get_args()." am: 3aadbbac39 am: c3ab25c237 am: dd9c5674dfTao Bao2016-12-061-80/+70
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 93c92baa8e Change-Id: I866f5d48224d004928c39e6fd75486db90fa5e1c
| * | | | | | | | | | | | | | | | | | | | Merge "recovery: Clean up get_args()." am: 3aadbbac39 am: c3ab25c237Tao Bao2016-12-061-80/+70
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dd9c5674df Change-Id: I1e3c26c8179cf6039d8ac801a9a4d6f6be59bbca
| | * | | | | | | | | | | | | | | | | | | Merge "recovery: Clean up get_args()." am: 3aadbbac39Tao Bao2016-12-061-80/+70
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c3ab25c237 Change-Id: I29a01238bba2cd35e48a03275e3ada4d4fee2888
| | | * | | | | | | | | | | | | | | | | | Merge "recovery: Clean up get_args()."Tao Bao2016-12-061-80/+70
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3aadbbac39 Change-Id: I8dd8003433ae2a33da51d69c25fe1b51628c8f97
| | | | * | | | | | | | | | | | | | | | | Merge "recovery: Clean up get_args()."Tao Bao2016-12-061-80/+70
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|/ / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | recovery: Clean up get_args().Tao Bao2016-12-051-80/+70
| | | | |/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: Boot into new recovery image, verify the parsed parameters. Change-Id: Ieefafb26cc4147ce4cb9ced4297cdb3b5d1d3789
* | | | | | | | | | | | | | | | | | | | Revert "Import translations. DO NOT MERGE"Bill Yi2016-12-0581-0/+729
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 6ecd63e459f7e9eab062c172122e319aff8b7042. Change-Id: I66c34fc72c1e8f6a0c11e12fd7e21864f4437977
* | | | | | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-12-0381-729/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ibe3698aabd36cca6e053ca099b87f09e8ad05c93 Auto-generated-cl: translation import
* | | | | | | | | | | | | | | | | | | | Merge "updater: Switch to libbase logging." am: d2c56629ab am: 1d9779b57b am: 997ccbc5a4Tao Bao2016-12-023-993/+994
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dd570b59ad Change-Id: Idd86b944b6ce8577f992435853259badd90d5101
| * | | | | | | | | | | | | | | | | | | Merge "updater: Switch to libbase logging." am: d2c56629ab am: 1d9779b57bTao Bao2016-12-023-993/+994
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 997ccbc5a4 Change-Id: Ic5a9d53af6e59c1e0ba16dd6275f941a21e4b98d
| | * | | | | | | | | | | | | | | | | | Merge "updater: Switch to libbase logging." am: d2c56629abTao Bao2016-12-023-993/+994
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1d9779b57b Change-Id: I92e782fc5b4df4a952f0759fb15f80754dce7802
| | | * | | | | | | | | | | | | | | | | Merge "updater: Switch to libbase logging."Tao Bao2016-12-023-993/+994
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d2c56629ab Change-Id: Iadb27da225c4b0c7c6bc80d177d36bdf87296a5b
| | | | * | | | | | | | | | | | | | | | Merge "updater: Switch to libbase logging."Tao Bao2016-12-023-993/+994
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | updater: Switch to libbase logging.Tao Bao2016-12-013-993/+994
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: Build an updater into a package and apply it on device. Change-Id: I289b5768e9b1e44ef78e0479c64dbaa36fb1a685
* | | | | | | | | | | | | | | | | | | | | Merge "bootable/recovery: cleanup compiler warnings (unused value)" am: ef3bea15b8 am: 80cd188162 am: bd8f34190cTao Bao2016-12-011-0/+16
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 65383535a7 Change-Id: I792f9455b9ee89c3272b3cec52c1ca3146354280
| * | | | | | | | | | | | | | | | | | | | Merge "bootable/recovery: cleanup compiler warnings (unused value)" am: ef3bea15b8 am: 80cd188162Tao Bao2016-12-011-0/+16
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bd8f34190c Change-Id: I8d5eb7a5abff461df9620bdef598797be0033f87
| | * | | | | | | | | | | | | | | | | | | Merge "bootable/recovery: cleanup compiler warnings (unused value)" am: ef3bea15b8Tao Bao2016-12-011-0/+16
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 80cd188162 Change-Id: I14483f9a2272767d0f7fec426875b8dbb2fcd350
| | | * | | | | | | | | | | | | | | | | | Merge "bootable/recovery: cleanup compiler warnings (unused value)"Tao Bao2016-12-011-0/+16
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ef3bea15b8 Change-Id: I401597b9d7bad8a13c98093019cd6ad915d325f3
| | | | * | | | | | | | | | | | | | | | | Merge "bootable/recovery: cleanup compiler warnings (unused value)"Tao Bao2016-12-011-0/+16
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | bootable/recovery: cleanup compiler warnings (unused value)Rahul Chaudhry2016-11-301-0/+16
| | | | | |/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bootable/recovery/applypatch/imgdiff.cpp:322:11: warning: Value stored to 'ret' during its initialization is never read [clang-analyzer-deadcode.DeadStores] bootable/recovery/applypatch/imgdiff.cpp:447:11: warning: Value stored to 'ret' during its initialization is never read [clang-analyzer-deadcode.DeadStores] bootable/recovery/applypatch/imgdiff.cpp:553:3: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores] Bug: 26936282 Test: WITH_TIDY=1 WITH_STATIC_ANALYZER=1 mm Change-Id: I3f865e3e9b9d19e5ea5e8dfd2fe2c644254ffbb5
* | | | | | | | | | | | | | | | | | | | | Merge "updater: Fix inconsistent code."Tao Bao2016-12-011-1/+3
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | | | updater: Fix inconsistent code.Tao Bao2016-12-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 81e54eddd4132895d70ab8b2307c693311799e05 introduced the inconsistency when resolving the merge conflict into master. Test: mmma bootable/recovery Change-Id: I43b7ec76a7eee000708cdca60bd372173e1fac2f
* | | | | | | | | | | | | | | | | | | | | | Merge "bootable/recovery: cleanup compiler warnings (potential leak of memory)" am: d255b661a1 am: be54feda58 am: 83b649ee1dTao Bao2016-11-301-0/+4
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / / / / / / / |/| / / / / / / / / / / / / / / / / / / / / | |/ / / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1bb63f0dc2 Change-Id: Idc9ae978354eb3376f69beb65c926a4d2365a4f9
| * | | | | | | | | | | | | | | | | | | | Merge "bootable/recovery: cleanup compiler warnings (potential leak of memory)" am: d255b661a1 am: be54feda58Tao Bao2016-11-301-0/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 83b649ee1d Change-Id: I785c6ec399ee2695af9276b47559f93d7d010a48
| | * | | | | | | | | | | | | | | | | | | Merge "bootable/recovery: cleanup compiler warnings (potential leak of memory)" am: d255b661a1Tao Bao2016-11-301-0/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: be54feda58 Change-Id: I2ba381a2c142df54122009bdcec539afca800824
| | | * | | | | | | | | | | | | | | | | | Merge "bootable/recovery: cleanup compiler warnings (potential leak of memory)"Tao Bao2016-11-301-0/+4
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d255b661a1 Change-Id: I700b0591b9e67ff7932598da1e48c9fa793bb763
| | | | * | | | | | | | | | | | | | | | | Merge "bootable/recovery: cleanup compiler warnings (potential leak of memory)"Tao Bao2016-11-301-0/+4
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | bootable/recovery: cleanup compiler warnings (potential leak of memory)Rahul Chaudhry2016-11-161-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bootable/recovery/applypatch/imgdiff.cpp:1065:3: warning: Potential leak of memory pointed to by 'patch_data' bootable/recovery/applypatch/imgdiff.cpp:1065:3: warning: Potential leak of memory pointed to by 'patch_size' bootable/recovery/applypatch/imgdiff.cpp:226:7: warning: Potential leak of memory pointed to by 'temp_entries' Bug: 26936282 Test: WITH_TIDY=1 WITH_STATIC_ANALYZER=1 mm Change-Id: I3cac945d7677d367934d5619ef7419daf6f48d6f
* | | | | | | | | | | | | | | | | | | | | | Merge "Switch update verifier to HIDL HAL" am: 1528def46e am: ae2463bb35 am: 95beb966e2Connor O'Brien2016-11-302-15/+21
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 848519fcfa Change-Id: I0ba4c571f91601227343ab9e8f7c8a232e75f9ef
| * | | | | | | | | | | | | | | | | | | | | Merge "Switch update verifier to HIDL HAL" am: 1528def46e am: ae2463bb35Connor O'Brien2016-11-302-15/+21
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 95beb966e2 Change-Id: I55f81ecdf29f79736f111bd54b0e38e476a2e0c6
| | * | | | | | | | | | | | | | | | | | | | Merge "Switch update verifier to HIDL HAL" am: 1528def46eConnor O'Brien2016-11-302-15/+21
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ae2463bb35 Change-Id: I92b714794116eb2bc07689995a9ac90932f2e30f
| | | * | | | | | | | | | | | | | | | | | | Merge "Switch update verifier to HIDL HAL"Connor O'Brien2016-11-302-15/+21
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1528def46e Change-Id: I77f12c0c865b04e191039de4b15482c02d5d5d9e
| | | | * | | | | | | | | | | | | | | | | | Merge "Switch update verifier to HIDL HAL"Connor O'Brien2016-11-302-15/+21
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|/ / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | Switch update verifier to HIDL HALConnor O'Brien2016-11-212-15/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: UV logs show success in both binderized and passthrough modes. Bug: 31864052 Change-Id: Ied67a52c458dba7fe600e0fe7eca84db1a9f2587 Signed-off-by: Connor O'Brien <connoro@google.com>
* | | | | | | | | | | | | | | | | | | | | | Merge "Remove ota_close(int) and ota_fclose(FILE*)." am: 7b59b45b08 am: 1f934beedd am: 8762a560fcTao Bao2016-11-294-89/+93
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6478f3804d Change-Id: I655dafe50fcb19f60270c37206409ca52655499a
| * | | | | | | | | | | | | | | | | | | | | Merge "Remove ota_close(int) and ota_fclose(FILE*)." am: 7b59b45b08 am: 1f934beeddTao Bao2016-11-294-89/+93
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8762a560fc Change-Id: Icb260caeb155cbd6db7b8810816b237ade3ed49f
| | * | | | | | | | | | | | | | | | | | | | Merge "Remove ota_close(int) and ota_fclose(FILE*)." am: 7b59b45b08Tao Bao2016-11-294-89/+93
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1f934beedd Change-Id: I8b6c56b88212b7e4b3095371a34aa5313a0a8cf2
| | | * | | | | | | | | | | | | | | | | | | Merge "Remove ota_close(int) and ota_fclose(FILE*)."Tao Bao2016-11-294-89/+93
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7b59b45b08 Change-Id: I5d325de48d99c8056bdf95381537ba6b938822f0
| | | | * | | | | | | | | | | | | | | | | | Merge "Remove ota_close(int) and ota_fclose(FILE*)."Tao Bao2016-11-294-89/+93
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | Remove ota_close(int) and ota_fclose(FILE*).Tao Bao2016-11-284-89/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We should always use unique_fd or unique_file to hold the FD or FILE* pointer when opening via ota_(f)open functions. This CL avoids accidentally closing raw FDs or FILE* pointers that are managed by unique_fd/unique_file. Test: recovery_component_test passes. Change-Id: If58eb8b5c5da507563f85efd5d56276472a1c957
* | | | | | | | | | | | | | | | | | | | | | | Merge "Add ota_close(unique_fd&) and ota_fclose(std::unique_ptr<FILE>&)." am: eed7f607cf am: 839fbbdad3 am: 6a8e0eb164Tao Bao2016-11-293-9/+25
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f14a5ecbcf Change-Id: I5a63912bf26e0665d24dde687458cbd8c1a674a1
| * | | | | | | | | | | | | | | | | | | | | | Merge "Add ota_close(unique_fd&) and ota_fclose(std::unique_ptr<FILE>&)." am: eed7f607cf am: 839fbbdad3Tao Bao2016-11-293-9/+25
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6a8e0eb164 Change-Id: I481327e831b2748d6dfa1b347ede324fdd2b9629
| | * | | | | | | | | | | | | | | | | | | | | Merge "Add ota_close(unique_fd&) and ota_fclose(std::unique_ptr<FILE>&)." am: eed7f607cfTao Bao2016-11-293-9/+25
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 839fbbdad3 Change-Id: I20241752ad6de90c0db0dea41d7af791c75dec4b
| | | * | | | | | | | | | | | | | | | | | | | Merge "Add ota_close(unique_fd&) and ota_fclose(std::unique_ptr<FILE>&)."Tao Bao2016-11-293-9/+25
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: eed7f607cf Change-Id: Ib570d0f548cc680e9c8f38c43573f71c52494ee9
| | | | * | | | | | | | | | | | | | | | | | | Merge "Add ota_close(unique_fd&) and ota_fclose(std::unique_ptr<FILE>&)."Tao Bao2016-11-293-9/+25
| | | | |\| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | Add ota_close(unique_fd&) and ota_fclose(std::unique_ptr<FILE>&).Tao Bao2016-11-233-9/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were using the below sequence prior to the CL in [1]. unique_fd fd(ota_open(...)); ota_close(fd); fd.reset(ota_open(...)); fd.reset() may unintentionally close the newly opened FD if it has the same value as the early ota_open. The CL in [1] changed to "ota_close(fd.release())" to avoid the issue. This CL adds a new overloaded function ota_close(unique_fd&) to handle the release automatically. Similarly add ota_fclose(std::unique_ptr<FILE>&). [1] commit 48cf770471ef53fbf0a1837196220862a0bdb18d. Bug: 33034669 Test: recovery_component_test passes. Change-Id: Ief91edc590e95a7426e33364b28754173efb1056
* | | | | | | | | | | | | | | | | | | | | | | Merge "tests: Add testcases for EMMC targets." am: d226f28e87 am: fcfdda98da am: 5e52ac31d4Tao Bao2016-11-291-31/+144
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5e5555d6c7 Change-Id: I757b9caa22c4293899dda128d88cc0e05a751a6f
| * | | | | | | | | | | | | | | | | | | | | | Merge "tests: Add testcases for EMMC targets." am: d226f28e87 am: fcfdda98daTao Bao2016-11-291-31/+144
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5e52ac31d4 Change-Id: If3d7b3363f1fb92fb0cc47006c659facf1615db7
| | * | | | | | | | | | | | | | | | | | | | | Merge "tests: Add testcases for EMMC targets." am: d226f28e87Tao Bao2016-11-291-31/+144
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fcfdda98da Change-Id: If516f2b4b970fb1ef4688983cb890df8043dc704
| | | * | | | | | | | | | | | | | | | | | | | Merge "tests: Add testcases for EMMC targets."Tao Bao2016-11-291-31/+144
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d226f28e87 Change-Id: Ifadb3608e4856e5b4075b717cdb9c21c04162548
| | | | * | | | | | | | | | | | | | | | | | | Merge "tests: Add testcases for EMMC targets."Tao Bao2016-11-291-31/+144
| | | | |\| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | tests: Add testcases for EMMC targets.Tao Bao2016-11-221-31/+144
| | | | |/ / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There're two types of targets in applypatch: regular files and EMMC targets. We have two sets of functions to handle them respectively. This CL adds testcases to use "EMMC:filename:size:sha1" as the target name, which triggers the code path for patching EMMC targets. Bug: 33034669 Test: recovery_component_test passes. Change-Id: I8f10c6c8d2c1fb083f06a83de91d9e23cb41fb6d
* | | | | | | | | | | | | | | | | | | | | | DO NOT MERGE ANYWHERE init: move healthd to late-init am: 195ff7f79e -s ours am: 7ceb371048 -s ours am: b8c1788e7b -s ours am: 8837b0d25d -s ours am: 3fdf1fd515 -s ours am: 67bc0b9573 -s ours am: b7d4d77b3e -s oursAndriy Naborskyy2016-11-230-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 59590f325b -s ours Change-Id: I70bbb4c55073edcbba502357d378112b934c0551
| * | | | | | | | | | | | | | | | | | | | | DO NOT MERGE ANYWHERE init: move healthd to late-init am: 195ff7f79e -s ours am: 7ceb371048 -s ours am: b8c1788e7b -s ours am: 8837b0d25d -s ours am: 3fdf1fd515 -s ours am: 67bc0b9573 -s oursAndriy Naborskyy2016-11-230-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b7d4d77b3e -s ours Change-Id: Iae68e9050b51755d1d33ad9834beadc696402d32
| | * | | | | | | | | | | | | | | | | | | | DO NOT MERGE ANYWHERE init: move healthd to late-init am: 195ff7f79e -s ours am: 7ceb371048 -s ours am: b8c1788e7b -s ours am: 8837b0d25d -s ours am: 3fdf1fd515 -s oursAndriy Naborskyy2016-11-230-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|/ / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 67bc0b9573 -s ours Change-Id: Id74374ae2d659ebc50a7612c80a81f53abff77f0
* | | | | | | | | | | | | | | | | | | | | | DO NOT MERGE updater: Add "write_value()" function. am: 1bf1772625 -s oursTao Bao2016-11-220-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: eb718e1c99 -s ours Change-Id: I533d20a296982651d513393112b1464cdc926b35
| * | | | | | | | | | | | | | | | | | | | | DO NOT MERGE updater: Add "write_value()" function.Tao Bao2016-11-220-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1bf1772625 -s ours Change-Id: I91141b6af02c5146e41eccf66a6700b44dc8cfb1
| | * | | | | | | | | | | | | | | | | | | | DO NOT MERGE updater: Add "write_value()" function.Tao Bao2016-11-181-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | write_value(value, filename) writes 'value' to 'filename'. It can be used to tune device settings when applying an OTA package. For example, write_value("960000", "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"). Bug: 32463933 Test: recovery_component_test passes. Test: Apply an OTA package that contains a call to write_value(), and check the result. Change-Id: Ib009ecb8a45a94353f10c59e2383fe1f49796e35 (cherry picked from commit d0f3088aa95e255b39ed4b83da6b08866c2c3e0c)
* | | | | | | | | | | | | | | | | | | | | | Merge "applypatch: Release FD when explicitly calling close." am: a511a3c407 am: 1aa41a106d am: b4aae79230Tao Bao2016-11-211-5/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d8e4f12ae0 Change-Id: Icf7f9cb775213862641183f9d0c335c8276dd889
| * | | | | | | | | | | | | | | | | | | | | Merge "applypatch: Release FD when explicitly calling close." am: a511a3c407 am: 1aa41a106dTao Bao2016-11-211-5/+5
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b4aae79230 Change-Id: Ifc6f913352d60e663fa5e1b7547938220167ea67
| | * | | | | | | | | | | | | | | | | | | | Merge "applypatch: Release FD when explicitly calling close." am: a511a3c407Tao Bao2016-11-211-5/+5
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1aa41a106d Change-Id: I802d7ceb8cd6288d6c85e3faa15c4e2cb57a9865
| | | * | | | | | | | | | | | | | | | | | | Merge "applypatch: Release FD when explicitly calling close."Tao Bao2016-11-211-5/+5
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|/ / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a511a3c407 Change-Id: Ie4188abf0d9a9dec56ae162f7bd6d1cd35aacb0f
| | | | * | | | | | | | | | | | | | | | | | Merge "applypatch: Release FD when explicitly calling close."Treehugger Robot2016-11-211-5/+5
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | applypatch: Release FD when explicitly calling close.Tao Bao2016-11-211-5/+5
| | | | | | |_|/ / / / / / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We use android::base::unique_fd() to avoid leaking FD. We also want to call close (or ota_close) to explicitly check the close result. When combining the two together, we need to release the unique_fd to avoid closing the same FD twice. Bug: 33034669 Test: Trigger applypatch with install-recovery.sh. Change-Id: I1a4f5d5fba7a23ef98d8bd7b7b07e87ae6f705c5
* | | | | | | | | | | | | | | | | | | | | | Merge "Fail gracefully when we fail to fork the update binary" am: 340a2d364f am: 2a962adc85 am: 5713071c81Tao Bao2016-11-210-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 21a10e2cfa Change-Id: I00b662c9c7bcb0385444d4e548dc8e7f56f01735
| * | | | | | | | | | | | | | | | | | | | | Merge "Fail gracefully when we fail to fork the update binary" am: 340a2d364f am: 2a962adc85Tao Bao2016-11-210-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5713071c81 Change-Id: I881011efc5449f5cedcbe395b82a8d58e024c6da
| | * | | | | | | | | | | | | | | | | | | | Merge "Fail gracefully when we fail to fork the update binary" am: 340a2d364fTao Bao2016-11-210-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2a962adc85 Change-Id: Ifad227336cc3a0db254a9bfef0de2678d8dd86bd
| | | * | | | | | | | | | | | | | | | | | | Merge "Fail gracefully when we fail to fork the update binary"Tao Bao2016-11-210-0/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 340a2d364f Change-Id: If68e5c3b97e01186804076caf516512d8b9977b3
| | | | * | | | | | | | | | | | | | | | | | Merge "Fail gracefully when we fail to fork the update binary"Tao Bao2016-11-211-0/+8
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | Fail gracefully when we fail to fork the update binaryMatthew Bouyack2016-11-211-0/+8
| | | | |/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change was original made in cw-f-dev but caused failures in nyc-mr1-dev-plus-aosp due to lack of support for 'LOGE' This version of the change uses the new 'LOG(ERROR)' style logging instead. See bug b/31395655 Test: attempt a memory intensive incremental OTA on a low-memory device Change-Id: Ia87d989a66b0ce3f48e862abf9b9d6943f70e554 (cherry picked from commit c8db4817809e163d887f7955a03ad0f97159f12b)
* | | | | | | | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: cf589f523a -s ours am: 92ac9041c1 -s oursBill Yi2016-11-210-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5c11172849 -s ours Change-Id: Id9c2265610d23811927d4cdd0c394e62d5130afd
| * | | | | | | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: cf589f523a -s oursBill Yi2016-11-210-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 92ac9041c1 -s ours Change-Id: I905cc7cc9acbf5cc97d35cea376c0a5d83fcd335
| | * | | | | | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE" into stage-aosp-masterBill Yi2016-11-210-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cf589f523a -s ours Change-Id: Ibfec2c461c31264dd31ffddbf938be364056eb50
| | | * | | | | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE" into stage-aosp-masterTreeHugger Robot2016-11-2178-312/+390
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
* | | | | | | | | | | | | | | | | | | | | | Import translations. DO NOT MERGE am: 9a4ff5a900 -s ours am: 8d7399f553 -s oursBill Yi2016-11-210-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e988840a88 -s ours Change-Id: Ic1043352cf85cfda24ba42a3bb03810704ef165b
| * | | | | | | | | | | | | | | | | | | | | Import translations. DO NOT MERGE am: 9a4ff5a900 -s oursBill Yi2016-11-210-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8d7399f553 -s ours Change-Id: I361b0acc015358c220c3288305efb9a3115f2f62
| | * | | | | | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-11-210-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9a4ff5a900 -s ours Change-Id: I19ed28ded9e92d54b060d0a944cf318a0f1a4984
| | | * | | | | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-11-2178-312/+390
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 32177112 Change-Id: I4d68cd0c69b40d1765cd74dfa730f56be01b5b23
* | | | | | | | | | | | | | | | | | | | | | Merge "Call update_engine_sideload from recovery." am: 1d77c93bcc am: fa62ae6d0b am: 4cbedcc679Tao Bao2016-11-200-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 073408a943 Change-Id: I16a939d0d70bb816f42b05e846433ee3da80a0e2
| * | | | | | | | | | | | | | | | | | | | | Merge "Call update_engine_sideload from recovery." am: 1d77c93bcc am: fa62ae6d0bTao Bao2016-11-200-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4cbedcc679 Change-Id: I37af5d1ae1be07d6c1b233f5cf25896339db51cd
| | * | | | | | | | | | | | | | | | | | | | Merge "Call update_engine_sideload from recovery." am: 1d77c93bccTao Bao2016-11-200-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fa62ae6d0b Change-Id: I516b0a177f66b6a3c1e51b2f470a29c8d2913780
| | | * | | | | | | | | | | | | | | | | | | Merge "Call update_engine_sideload from recovery."Tao Bao2016-11-200-0/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / / / | | | |/| / / / / / / / / / / / / / / / / / | | | | |/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1d77c93bcc Change-Id: I110237afa38d616138e2ec8eec17b9c46b009a13
| | | | * | | | | | | | | | | | | | | | | Merge "Call update_engine_sideload from recovery."Tao Bao2016-11-202-39/+186
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | Call update_engine_sideload from recovery.Alex Deymo2016-11-202-39/+186
| | | | |/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch enables sideloading an OTA on A/B devices while running from recovery. Recovery accepts the same OTA package format as recent versions of GMS, which consists of .zip file with the payload in it. Bug: 27178350 TEST=`adb sideload` successfully a full OTA (*) TEST=Failed to take several invalid payloads (wrong product, fingerprint, update type, serial, etc). <small>(*) with no postinstall script.</small> Change-Id: I951869340100feb5a37e41fac0ee59c10095659e (cherry picked from commit 4344d636d4f8687054593f88ddd7509ff8581419)
* | | | | | | | | | | | | | | | | | | | | Merge "updater: Refactor set_stage() and get_stage() functions." am: c627cd6486 am: 146f92ab3e am: 062a2cffb3Tao Bao2016-11-206-91/+193
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 953851cb97 Change-Id: Id7348d0011cd4f9112948a421c8d62843e436433
| * | | | | | | | | | | | | | | | | | | | Merge "updater: Refactor set_stage() and get_stage() functions." am: c627cd6486 am: 146f92ab3eTao Bao2016-11-206-91/+193
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 062a2cffb3 Change-Id: I4673e6b160fcf9e2b6069af91eeae97d4e4a17ed
| | * | | | | | | | | | | | | | | | | | | Merge "updater: Refactor set_stage() and get_stage() functions." am: c627cd6486Tao Bao2016-11-206-91/+193
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 146f92ab3e Change-Id: I37b91e4f05ad19bafa464a7e30ff8bf61830763d
| | | * | | | | | | | | | | | | | | | | | Merge "updater: Refactor set_stage() and get_stage() functions."Tao Bao2016-11-206-91/+193
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c627cd6486 Change-Id: Ie4ff6fa512c875c6be65b02908eadb498d3f9644
| | | | * | | | | | | | | | | | | | | | | Merge "updater: Refactor set_stage() and get_stage() functions."Tao Bao2016-11-206-91/+193
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | updater: Refactor set_stage() and get_stage() functions.Tao Bao2016-11-186-91/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add read_bootloader_message_from() and write_bootloader_message_to() to allow specifying the BCB device (/misc). Also add testcases for set_stage() and get_stage(). Test: recovery_component_test passes. Test: Build a recovery image and apply a two-step OTA package. Change-Id: If5ab06a1aaaea168d2a9e5dd63c07c0a3190e4ae
* | | | | | | | | | | | | | | | | | | | | | Merge "update_verifier: Sync Android.mk with aosp-master." into stage-aosp-master am: ad57e2ca2c am: 9f4d385704Tao Bao2016-11-200-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 723b5d505f Change-Id: I7fed34988f078c6136bb0c028b7cc14b63ca31f6
| * | | | | | | | | | | | | | | | | | | | | Merge "update_verifier: Sync Android.mk with aosp-master." into stage-aosp-master am: ad57e2ca2cTao Bao2016-11-200-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9f4d385704 Change-Id: If6d2231e486ba91398ff8bef8d4f118e57c3324d
| | * | | | | | | | | | | | | | | | | | | | Merge "update_verifier: Sync Android.mk with aosp-master." into stage-aosp-masterTao Bao2016-11-200-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ad57e2ca2c Change-Id: I5ad7c0763284e32952c9b7953e526ec2d8e1aed9
| | | * | | | | | | | | | | | | | | | | | | Merge "update_verifier: Sync Android.mk with aosp-master." into stage-aosp-masterTao Bao2016-11-201-2/+6
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
* | | | | | | | | | | | | | | | | | | | | | | update_verifier: Sync Android.mk with aosp-master. am: 5422d80961 am: ca64fa7bb9Tao Bao2016-11-201-2/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8024278b58 Change-Id: I1cf75d7b5dd2da532971feef94b2558db40404b4
| * | | | | | | | | | | | | | | | | | | | | | update_verifier: Sync Android.mk with aosp-master. am: 5422d80961Tao Bao2016-11-201-2/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ca64fa7bb9 Change-Id: I8ddc76d026d64b22fd8cbda8d9a312afd975c54c
| | * | | | | | | | | | | | | | | | | | | | | update_verifier: Sync Android.mk with aosp-master.Tao Bao2016-11-201-2/+6
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5422d80961 Change-Id: Iac281a5f7a1a771282cdbf4503fe7e0991073624
| | | * | | | | | | | | | | | | | | | | | | | update_verifier: Sync Android.mk with aosp-master.Tao Bao2016-11-191-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's out of sync due to the cherry-pick in commit d007cf2da29f05eee002dd33e6c04262f709b274. Test: mmma bootable/recovery Change-Id: I286fe89c4c7d09de3a06d09f9a2b0cdecef326f5
* | | | | | | | | | | | | | | | | | | | | | | bootloader_message: Remove the no-op blank line. am: fbde508ace am: 52b4d869b0Tao Bao2016-11-191-1/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 009455b313 Change-Id: Ic850c843300409341cde46e8178195c4db770649
| * | | | | | | | | | | | | | | | | | | | | | bootloader_message: Remove the no-op blank line. am: fbde508aceTao Bao2016-11-191-1/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 52b4d869b0 Change-Id: I1586aae053d9c9b503c55e5e1122bb6c37aacc21
| | * | | | | | | | | | | | | | | | | | | | | bootloader_message: Remove the no-op blank line.Tao Bao2016-11-191-1/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fbde508ace Change-Id: Ia3f298ef61fbeed0a80b8d85366ee27358a3320f
| | | * | | | | | | | | | | | | | | | | | | | bootloader_message: Remove the no-op blank line.Tao Bao2016-11-191-1/+0
| | | |/ / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This single blank line was introduced by some cherry-pick, which is causing merge conflicts. Test: N/A Change-Id: Ida527b76fca7cc916499c5f888476c8e51ba3eaa
* | | | | | | | | | | | | | | | | | | | | | Merge "Revert "Convert update_verifier to boot HIDL HAL"" into nyc-mr1-dev-plus-aosp am: 692e95aa87Connor O'Brien2016-11-180-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7ad875cc81 Change-Id: I1ef3d7c5b0da9e8ddceaf2a09aa7e6ece848d0a6
| * | | | | | | | | | | | | | | | | | | | | Merge "Revert "Convert update_verifier to boot HIDL HAL"" into nyc-mr1-dev-plus-aospConnor O'Brien2016-11-180-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 692e95aa87 Change-Id: Ic30a3fb13abda71cd6317760f41058728ead4cf0
| | * | | | | | | | | | | | | | | | | | | | Merge "Revert "Convert update_verifier to boot HIDL HAL"" into nyc-mr1-dev-plus-aospConnor O'Brien2016-11-182-25/+15
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
* | | | | | | | | | | | | | | | | | | | | | | Revert "Convert update_verifier to boot HIDL HAL" am: 7206ec7a1dConnor O'Brien2016-11-180-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7d17f64275 Change-Id: Ibb5145cd760cd90455ac833662fbf9acb91dfe62
| * | | | | | | | | | | | | | | | | | | | | | Revert "Convert update_verifier to boot HIDL HAL"Connor O'Brien2016-11-182-25/+15
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7206ec7a1d Change-Id: Id9fa374c3f979f39fb32a1d82c9e2d18e38b0efa
| | * | | | | | | | | | | | | | | | | | | | | Revert "Convert update_verifier to boot HIDL HAL"Connor O'Brien2016-11-182-25/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 86199a47e18942c49423b04eb1f3deacd6072849. Bug: 32973182 Change-Id: If3eab18cc2e810446da447fadfd0fb44c02b771b
* | | | | | | | | | | | | | | | | | | | | | | Merge "Revert "Convert update_verifier to boot HIDL HAL"" am: fc6e8cae9c -s ours am: 6fd51ffdaa am: b5cf492040Connor O'Brien2016-11-180-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1d5bf16cf0 Change-Id: Icf6a1c5c6b99c1945c67ef03fc3c6a3fda8ebfb9
| * | | | | | | | | | | | | | | | | | | | | | Merge "Revert "Convert update_verifier to boot HIDL HAL"" am: fc6e8cae9c -s ours am: 6fd51ffdaaConnor O'Brien2016-11-180-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b5cf492040 Change-Id: I8aca5c87a0786cc897a4a674f10952a60d816ca3
| | * | | | | | | | | | | | | | | | | | | | | Merge "Revert "Convert update_verifier to boot HIDL HAL"" am: fc6e8cae9c -s oursConnor O'Brien2016-11-180-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6fd51ffdaa Change-Id: I5db9f43be5c7fb6375dc8f0b1964796112a7eef1
| | | * | | | | | | | | | | | | | | | | | | | Merge "Revert "Convert update_verifier to boot HIDL HAL""Connor O'Brien2016-11-180-0/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fc6e8cae9c -s ours Change-Id: I767f58a16ec318d760c64782a2215e0bac60a283
| | | | * | | | | | | | | | | | | | | | | | | Merge "Revert "Convert update_verifier to boot HIDL HAL""Connor O'Brien2016-11-182-21/+15
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|/ / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | Revert "Convert update_verifier to boot HIDL HAL"Connor O'Brien2016-11-182-21/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit f50593c447faf8415615b5dea2666d7f0f24a0fb. Bug: 32973182 Change-Id: I5b14a812671ea02575cb452242ff1a6f05edb9c1
* | | | | | | | | | | | | | | | | | | | | | | Skip this change on AOSP.Yifan Hong2016-11-180-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 32756130 Test: mma Change-Id: Ia1f762b4916aef7fc093552ecb2ecc49ddec6b05
* | | | | | | | | | | | | | | | | | | | | | | Merge "updater: Add testcase for package_extract_dir()." am: 23e785935e am: d109c788ad am: 9b1a791e3cTao Bao2016-11-183-17/+119
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1ae9f22d6e Change-Id: Icbc8520976841c1fcfcebd20fb05e2031370983c
| * | | | | | | | | | | | | | | | | | | | | | Merge "updater: Add testcase for package_extract_dir()." am: 23e785935e am: d109c788adTao Bao2016-11-183-17/+119
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9b1a791e3c Change-Id: Ifdd250d55ad59887d92591858a820dc5e36d141b
| | * | | | | | | | | | | | | | | | | | | | | Merge "updater: Add testcase for package_extract_dir()." am: 23e785935eTao Bao2016-11-183-17/+119
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d109c788ad Change-Id: Ia682f518ef8f2a651d0ecbef37a87b52d40a0f35
| | | * | | | | | | | | | | | | | | | | | | | Merge "updater: Add testcase for package_extract_dir()."Tao Bao2016-11-183-17/+119
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 23e785935e Change-Id: I9827d196b8cccd138e244a1aad64202baa1dd600
| | | | * | | | | | | | | | | | | | | | | | | Merge "updater: Add testcase for package_extract_dir()."Tao Bao2016-11-183-17/+119
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | updater: Add testcase for package_extract_dir().Tao Bao2016-11-183-17/+119
| | | | |/ / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: recovery_component_test passes. Change-Id: I3af4707bc42c7331ca961be8b967a53de82ea25b
* | | | | | | | | | | | | | | | | | | | | | | Merge "Revert "Convert update_verifier to boot HIDL HAL""Connor O'Brien2016-11-182-25/+15
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | | | | | Revert "Convert update_verifier to boot HIDL HAL"Connor O'Brien2016-11-182-25/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 13716c29c9e222045eab1edcc944eb23c8198e6a. Change-Id: Ib8d23e3e7ab0e3870d1b007fa8abd91a3980c287
* | | | | | | | | | | | | | | | | | | | | | | | Merge "applypatch: Use unique_fd to avoid leaking FDs." am: 2e5cf3c0bc am: d2cd8b4d30 am: 776ea9b464Tao Bao2016-11-182-282/+280
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7028ab255f Change-Id: I3f3ef2970c41be3f616055cdac2664c7f82ac119
| * | | | | | | | | | | | | | | | | | | | | | | Merge "applypatch: Use unique_fd to avoid leaking FDs." am: 2e5cf3c0bc am: d2cd8b4d30Tao Bao2016-11-182-282/+280
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 776ea9b464 Change-Id: I97cf01e270fab31e0859b8fce5a1889d9ae3d2c3
| | * | | | | | | | | | | | | | | | | | | | | | Merge "applypatch: Use unique_fd to avoid leaking FDs." am: 2e5cf3c0bcTao Bao2016-11-182-282/+280
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d2cd8b4d30 Change-Id: I57228be65dfc37f853c3902ad8c5f65c0e3f1018
| | | * | | | | | | | | | | | | | | | | | | | | Merge "applypatch: Use unique_fd to avoid leaking FDs."Tao Bao2016-11-182-282/+280
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2e5cf3c0bc Change-Id: I4e4cabf7b58a691236ea193f5b11962b2bb740bd
| | | | * | | | | | | | | | | | | | | | | | | | Merge "applypatch: Use unique_fd to avoid leaking FDs."Tao Bao2016-11-182-282/+280
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | | applypatch: Use unique_fd to avoid leaking FDs.Tao Bao2016-11-172-282/+280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add unique_fd that calls ota_close() instead of the default closer. Test: recovery_component_test passes. Test: Apply a package that calls apply_patch(). Change-Id: I0c19921731757934f76cf7d5215916673a8f2777
* | | | | | | | | | | | | | | | | | | | | | | | | Merge "updater: Add "write_value()" function." am: d00046b691 am: 100dba35f9 am: 29dc892c07Tao Bao2016-11-182-3/+64
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1906efab60 Change-Id: I4773541c2ba82ce2080ead5bca1e8d88057bc60d
| * | | | | | | | | | | | | | | | | | | | | | | | Merge "updater: Add "write_value()" function." am: d00046b691 am: 100dba35f9Tao Bao2016-11-182-3/+64
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 29dc892c07 Change-Id: Id1c8869ef4e8efe47159d22341888bcd41b78f66
| | * | | | | | | | | | | | | | | | | | | | | | | Merge "updater: Add "write_value()" function." am: d00046b691Tao Bao2016-11-182-3/+64
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 100dba35f9 Change-Id: I00b0dfd4856e0b20fae778389cfd6e4e220d4d0d
| | | * | | | | | | | | | | | | | | | | | | | | | Merge "updater: Add "write_value()" function."Tao Bao2016-11-182-3/+64
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d00046b691 Change-Id: I016c1e2fda1fd0d2e85d07c79f36c27f3c8a8a22
| | | | * | | | | | | | | | | | | | | | | | | | | Merge "updater: Add "write_value()" function."Tao Bao2016-11-182-3/+64
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | | | updater: Add "write_value()" function.Tao Bao2016-11-172-3/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | write_value(value, filename) writes 'value' to 'filename'. It can be used to tune device settings when applying an OTA package. For example, write_value("960000", "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"). Bug: 32463933 Test: recovery_component_test passes. Test: Apply an OTA package that contains a call to write_value(), and check the result. Change-Id: Ib009ecb8a45a94353f10c59e2383fe1f49796e35
* | | | | | | | | | | | | | | | | | | | | | | | | | Merge "applypatch: Clean up LoadPartitionContents()." am: c6ee8cf8df am: 9e4ba70b7f am: c43acc9938Tao Bao2016-11-171-283/+257
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d065686007 Change-Id: I288f95abf1b00ce2dd73a6b9292ee2959ad7714c
| * | | | | | | | | | | | | | | | | | | | | | | | | Merge "applypatch: Clean up LoadPartitionContents()." am: c6ee8cf8df am: 9e4ba70b7fTao Bao2016-11-171-283/+257
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c43acc9938 Change-Id: I8d99f72d4d9a7bbed80537ced27f3481ad69ceff
| | * | | | | | | | | | | | | | | | | | | | | | | | Merge "applypatch: Clean up LoadPartitionContents()." am: c6ee8cf8dfTao Bao2016-11-171-283/+257
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9e4ba70b7f Change-Id: I18284f42cda54ef23dee4f2615083733c50fe493
| | | * | | | | | | | | | | | | | | | | | | | | | | Merge "applypatch: Clean up LoadPartitionContents()."Tao Bao2016-11-171-283/+257
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c6ee8cf8df Change-Id: I2c20eb8b2c8f5bba40e71f6b267152f3bfab0316
| | | | * | | | | | | | | | | | | | | | | | | | | | Merge "applypatch: Clean up LoadPartitionContents()."Tao Bao2016-11-171-283/+257
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | |/ / / / / / / / / / / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | | | | applypatch: Clean up LoadPartitionContents().Tao Bao2016-11-171-283/+257
| | | | | |/ / / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't need three vectors to sort the (size, SHA-1) pairs. Test: recovery_component_test passes. Test: Apply a package that calls apply_patch_check() to patch EMMC partitions. Change-Id: I4a6620630a6711f490822cf30f1e7fe5cea6ce49
* | | | | | | | | | | | | | | | | | | | | | | | | Merge "Convert update_verifier to boot HIDL HAL" am: 5b171d30ab -s ours am: b9d1cd7713 -s ours am: 97f6af8d34 -s oursConnor O'Brien2016-11-170-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 80d0044fb0 -s ours Change-Id: I732c25cfc0d477223745765fdc8453d393149434
| * | | | | | | | | | | | | | | | | | | | | | | | Merge "Convert update_verifier to boot HIDL HAL" am: 5b171d30ab -s ours am: b9d1cd7713 -s oursConnor O'Brien2016-11-170-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 97f6af8d34 -s ours Change-Id: I6f7657c8cde63cff8859e8ef3e07891751571849
| | * | | | | | | | | | | | | | | | | | | | | | | Merge "Convert update_verifier to boot HIDL HAL" am: 5b171d30ab -s oursConnor O'Brien2016-11-170-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | |_|_|_|_|/ / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b9d1cd7713 -s ours Change-Id: Ibce6da9d3d3cbf74d4754a629f2f6fe832fc2982
| | | * | | | | | | | | | | | | | | | | | | | | Merge "Convert update_verifier to boot HIDL HAL"Connor O'Brien2016-11-170-0/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5b171d30ab -s ours Change-Id: I30f99aae371bf51c161c482e53c3032d321fb53a
| | | | * | | | | | | | | | | | | | | | | | | | Merge "Convert update_verifier to boot HIDL HAL"Connor O'Brien2016-11-172-15/+21
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / / | | | | |/| | / / / / / / / / / / / / / / / / / | | | | | | |/ / / / / / / / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | Convert update_verifier to boot HIDL HALConnor O'Brien2016-11-162-15/+21
| | | | | | |_|_|/ / / / / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: Flashed device and confirmed update_verifier runs successfully Change-Id: I5bce4ece1e3ba98f57299c9cf469a5e2a5226ff2 Merged-In: I5bce4ece1e3ba98f57299c9cf469a5e2a5226ff2 Signed-off-by: Connor O'Brien <connoro@google.com>
* | | | | | | | | | | | | | | | | | | | | | Convert update_verifier to boot HIDL HAL am: 86199a47e1Connor O'Brien2016-11-170-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e1a0adc2b5 Change-Id: I37baa1675ac98398419319f302d773034ac23476
| * | | | | | | | | | | | | | | | | | | | | Convert update_verifier to boot HIDL HALConnor O'Brien2016-11-172-15/+25
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 86199a47e1 Change-Id: Iac542175e8662a1795aa50e9e67b9acf301b760b
| | * | | | | | | | | | | | | | | | | | | | Convert update_verifier to boot HIDL HALConnor O'Brien2016-11-172-15/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: Flashed device and confirmed update_verifier runs successfully Change-Id: I5bce4ece1e3ba98f57299c9cf469a5e2a5226ff2 Signed-off-by: Connor O'Brien <connoro@google.com>
* | | | | | | | | | | | | | | | | | | | | | Merge "Remove unnecessary uses of reinterpret_cast." am: c470dc8681 am: 849a911dee am: 6a6e54da04Rahul Chaudhry2016-11-162-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8ef4c38abe Change-Id: I795ab2874d6fc8c6087c89df72e7a2341e97e387
| * | | | | | | | | | | | | | | | | | | | | Merge "Remove unnecessary uses of reinterpret_cast." am: c470dc8681 am: 849a911deeRahul Chaudhry2016-11-162-3/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6a6e54da04 Change-Id: Ia0783f4d936d844284cf488481318e8b96133066
| | * | | | | | | | | | | | | | | | | | | | Merge "Remove unnecessary uses of reinterpret_cast." am: c470dc8681Rahul Chaudhry2016-11-162-3/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 849a911dee Change-Id: Ia7ef00388123d70cc01cfcb499120096cf103983
| | | * | | | | | | | | | | | | | | | | | | Merge "Remove unnecessary uses of reinterpret_cast."Rahul Chaudhry2016-11-162-3/+3
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c470dc8681 Change-Id: I44081a387bfc60ce9f9cacf5b8db0b9248c84c4d
| | | | * | | | | | | | | | | | | | | | | | Merge "Remove unnecessary uses of reinterpret_cast."Treehugger Robot2016-11-162-3/+3
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | Remove unnecessary uses of reinterpret_cast.Rahul Chaudhry2016-11-162-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Discovered while looking at compiler warnings (b/26936282). Test: WITH_TIDY=1 WITH_STATIC_ANALYZER=1 mma Change-Id: I66f8f6026ed732a504504ade93ff196dc8b727ca
* | | | | | | | | | | | | | | | | | | | | | | Merge "Convert update_verifier to boot HIDL HAL"Connor O'Brien2016-11-162-15/+25
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|/ / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | | Convert update_verifier to boot HIDL HALConnor O'Brien2016-11-162-15/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: Flashed device and confirmed update_verifier runs successfully Change-Id: I5bce4ece1e3ba98f57299c9cf469a5e2a5226ff2 Signed-off-by: Connor O'Brien <connoro@google.com>
* | | | | | | | | | | | | | | | | | | | | | | Merge "Use static_cast to cast pointers returned by malloc/calloc/realloc/mmap." am: 0bedc8e14c am: 0c15140dad am: b8c4ae9f80Tao Bao2016-11-160-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 120076ea51 -s ours Change-Id: Ie0824192d770e7dbc97e3e6918b2e2a1cb2b5f5e
| * | | | | | | | | | | | | | | | | | | | | | Merge "Use static_cast to cast pointers returned by malloc/calloc/realloc/mmap." am: 0bedc8e14c am: 0c15140dadTao Bao2016-11-166-29/+29
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b8c4ae9f80 Change-Id: I14dcce3a6b967fdbe33854f325a89f7a4963a630
| | * | | | | | | | | | | | | | | | | | | | | Merge "Use static_cast to cast pointers returned by malloc/calloc/realloc/mmap." am: 0bedc8e14cTao Bao2016-11-166-29/+29
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0c15140dad Change-Id: I916ad0504f5ceacfe4634a3cd518eddb91cebf64
| | | * | | | | | | | | | | | | | | | | | | | Merge "Use static_cast to cast pointers returned by malloc/calloc/realloc/mmap."Tao Bao2016-11-166-29/+29
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0bedc8e14c Change-Id: I5bd86a0ee1a87d75c99d2c9e88412f8c1fbd82d1
| | | | * | | | | | | | | | | | | | | | | | | Merge "Use static_cast to cast pointers returned by malloc/calloc/realloc/mmap."Tao Bao2016-11-166-29/+29
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | |/ / / / / / / / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | Use static_cast to cast pointers returned by malloc/calloc/realloc/mmap.Rahul Chaudhry2016-11-166-29/+29
| | | | |/ / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | static_cast is preferable to reinterpret_cast when casting from void* pointers returned by malloc/calloc/realloc/mmap calls. Discovered while looking at compiler warnings (b/26936282). Test: WITH_TIDY=1 WITH_STATIC_ANALYZER=1 mma Change-Id: Iaffd537784aa857108f6981fdfd82d0496eb5592 Merged-In: I151642d5a60c94f312d0611576ad0143c249ba3d
* | | | | | | | | | | | | | | | | | | | | | resolve merge conflicts of 4f86f26 to stage-aosp-master am: f83101a911 am: 7563bad2acTao Bao2016-11-160-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3972ce8ab3 Change-Id: I6eeab248bdeb83e5672a8861ce82743f92780f37
| * | | | | | | | | | | | | | | | | | | | | resolve merge conflicts of 4f86f26 to stage-aosp-master am: f83101a911Tao Bao2016-11-160-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7563bad2ac Change-Id: Ief61d93f6e448da66a61052a180e650e15210e3e
| | * | | | | | | | | | | | | | | | | | | | resolve merge conflicts of 4f86f26 to stage-aosp-masterTao Bao2016-11-160-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f83101a911 Change-Id: Icf9b616752ae66802823599ffe9f9d700d47fa04
| | | * | | | | | | | | | | | | | | | | | | resolve merge conflicts of 4f86f26 to stage-aosp-masterTao Bao2016-11-166-137/+197
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I3ee609df70c60e16a610913b2c95892c9d74cb3e
| | | | * | | | | | | | | | | | | | | | | | Merge "updater: Fix the wrong return value for package_extract_file()."Tao Bao2016-11-166-137/+197
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | updater: Fix the wrong return value for package_extract_file().Tao Bao2016-11-156-137/+197
| | | | | | |/ / / / / / / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'bool success = ExtractEntryToFile()' gives opposite result. Fix the issue and add testcases. Change the one-argument version of package_extract_file() to explicitly abort for non-existent zip entry. Note that this is NOT changing the behavior. Prior to this CL, it aborts from Evaluate() function, by giving a general cause code. Now it returns kPackageExtractFileFailure. BUg: 32903624 Test: recovery_component_test works. Change-Id: I7a273e9c0d9aaaf8c472b2c778f7b8d90362c24f
* | | | | | | | | | | | | | | | | | | | | | Merge changes from topic 'minui-cherrypick' am: d6137a2ae0 am: 38236d0f35 am: 2e55280df2Tao Bao2016-11-160-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7e612db065 Change-Id: Ifd99004890da01f89c4012645bb42a06f0cbb28a
| * | | | | | | | | | | | | | | | | | | | | Merge changes from topic 'minui-cherrypick' am: d6137a2ae0 am: 38236d0f35Tao Bao2016-11-160-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2e55280df2 Change-Id: I293fcb31472db3d2aaa91df7ec17b0e5e8f6e461
| | * | | | | | | | | | | | | | | | | | | | Merge changes from topic 'minui-cherrypick' am: d6137a2ae0Tao Bao2016-11-160-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 38236d0f35 Change-Id: Ie197bb6e5ef67732be162c9cd2edb696576530d1
| | | * | | | | | | | | | | | | | | | | | | Merge changes from topic 'minui-cherrypick'Tao Bao2016-11-160-0/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d6137a2ae0 Change-Id: Ieac34e2de3334f66b99e50b88e1d51adbb649603
| | | | * | | | | | | | | | | | | | | | | | Merge changes from topic 'minui-cherrypick'Tao Bao2016-11-165-67/+93
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Have gr_init_font alloc memory for the font Support use of custom fonts in miniui
* | | | | | | | | | | | | | | | | | | | | | Have gr_init_font alloc memory for the font am: 97eda9db70 am: c2f6ebf15b am: 9c29567c67Damien Bargiacchi2016-11-160-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1b6584340e Change-Id: I0b437d2dca6c926fe8daf2ac0c07d0c93577fa2e
| * | | | | | | | | | | | | | | | | | | | | Have gr_init_font alloc memory for the font am: 97eda9db70 am: c2f6ebf15bDamien Bargiacchi2016-11-160-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9c29567c67 Change-Id: I43d4ab1e219db77061c496734f3241542e42a7a9
| | * | | | | | | | | | | | | | | | | | | | Have gr_init_font alloc memory for the font am: 97eda9db70Damien Bargiacchi2016-11-160-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c2f6ebf15b Change-Id: I9764325fff6520bbe5ba6697b39a070aa1280cef
| | | * | | | | | | | | | | | | | | | | | | Have gr_init_font alloc memory for the fontDamien Bargiacchi2016-11-160-0/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 97eda9db70 Change-Id: Id4a82973e13383f450fe908776024e8329b930f2
| | | | * | | | | | | | | | | | | | | | | | Have gr_init_font alloc memory for the fontDamien Bargiacchi2016-11-162-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8ccf369d52011bc5d07d8e041fe558ce734a78fc (cherry picked from commit d00f5eb63a8e4690f9bef1e943d539d052444d9b)
* | | | | | | | | | | | | | | | | | | | | | resolve merge conflicts of d5d34d7 to stage-aosp-master am: 03eb766a56 am: 7f0a56dbf1Tao Bao2016-11-160-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 821d5d2397 Change-Id: Iba601cb5be9f10ceea003e620c7b319da3f04788
| * | | | | | | | | | | | | | | | | | | | | resolve merge conflicts of d5d34d7 to stage-aosp-master am: 03eb766a56Tao Bao2016-11-160-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7f0a56dbf1 Change-Id: Ic484035e3e1f020d0e96dca64bd0d9339d27d398
| | * | | | | | | | | | | | | | | | | | | | resolve merge conflicts of d5d34d7 to stage-aosp-masterTao Bao2016-11-160-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 03eb766a56 Change-Id: Iabf3c81f0ad98143cfac56ecfa00a93008a31318
| | | * | | | | | | | | | | | | | | | | | | resolve merge conflicts of d5d34d7 to stage-aosp-masterTao Bao2016-11-160-0/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2871dafbd293dbbbb538da84fa857dd8972e2eb8
| | | | * | | | | | | | | | | | | | | | | | Support use of custom fonts in miniuiDamien Bargiacchi2016-11-155-65/+83
| | | | |/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 29547343 Change-Id: I398160c85daac90ffab2fa9bb2e96795b9e9885a (cherry picked from commit 35fff61b1c0d736d090a1cd1bb4e99141cc88ad8)
* | | | | / / / / / / / / / / / / / / / / updater: Fix the wrong return value for package_extract_file(). am: 2274e57f67Tao Bao2016-11-166-137/+197
|\| | | | | | | | | | | | | | | | | | | | | |_|_|_|/ / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7e3d156b86 Change-Id: Id550cd00fd2fa60f8882c45d0e830f514718c71f
| * | | | | | | | | | | | | | | | | | | updater: Fix the wrong return value for package_extract_file().Tao Bao2016-11-166-137/+197
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2274e57f67 Change-Id: I137c7d4e4194e8b334e85c57dddbdbc28d445146
| | * | | | | | | | | | | | | | | | | | updater: Fix the wrong return value for package_extract_file().Tao Bao2016-11-166-137/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'bool success = ExtractEntryToFile()' gives opposite result. Fix the issue and add testcases. Change the one-argument version of package_extract_file() to explicitly abort for non-existent zip entry. Note that this is NOT changing the behavior. Prior to this CL, it aborts from Evaluate() function, by giving a general cause code. Now it returns kPackageExtractFileFailure. BUg: 32903624 Test: recovery_component_test works. Change-Id: I7a273e9c0d9aaaf8c472b2c778f7b8d90362c24f (cherry picked from commit ef0eb3b01b66fbbc97908667a3dd1e02d710cbb7)
* | | | | | | | | | | | | | | | | | | | Merge "Add .clang-format style file." am: b76960c984 am: 1f0af0c2ea am: db50f8863aTao Bao2016-11-141-0/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 656501323a Change-Id: I93ec723cf57169026f3a5ebefcb95140daab32e5
| * | | | | | | | | | | | | | | | | | | Merge "Add .clang-format style file." am: b76960c984 am: 1f0af0c2eaTao Bao2016-11-141-0/+14
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: db50f8863a Change-Id: Ie27fd48f1a0b815e902e689bb79a4d65fab08bf6
| | * | | | | | | | | | | | | | | | | | Merge "Add .clang-format style file." am: b76960c984Tao Bao2016-11-141-0/+14
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1f0af0c2ea Change-Id: I836abea8c0319cfe0b45c29fb6856195fe4b0f1e
| | | * | | | | | | | | | | | | | | | | Merge "Add .clang-format style file."Tao Bao2016-11-141-0/+14
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b76960c984 Change-Id: I38d670b4d2fb799e12e70f10d6cd7a0e3914369e
| | | | * | | | | | | | | | | | | | | | Merge "Add .clang-format style file."Tao Bao2016-11-141-0/+14
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | Add .clang-format style file.Tao Bao2016-11-071-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The file is forked from bionic project. It's mostly in Google style, with some tweaks (e.g. 100 column limit). New CLs can be formatted with `git clang-format --style=file`. Test: N/A Change-Id: I6fbd0ab851c03aa6de9987777c7da8cdca8964ed
* | | | | | | | | | | | | | | | | | | | | Merge "Fix "ordered comparison between pointer and zero"." am: a844bc9649 am: 08c4130493 am: 0f81984970Tao Bao2016-11-141-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c6bed0ab3f Change-Id: I95702aa4777ac1a8b85b8458c7ab4d1f3a1d365d
| * | | | | | | | | | | | | | | | | | | | Merge "Fix "ordered comparison between pointer and zero"." am: a844bc9649 am: 08c4130493Tao Bao2016-11-141-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0f81984970 Change-Id: I1a5b82fc1c48237b0100cf57f3e2fdd49fe30b23
| | * | | | | | | | | | | | | | | | | | | Merge "Fix "ordered comparison between pointer and zero"." am: a844bc9649Tao Bao2016-11-141-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 08c4130493 Change-Id: I27e56f2771c2f618c81b31bf8f36ccd5dc859a27
| | | * | | | | | | | | | | | | | | | | | Merge "Fix "ordered comparison between pointer and zero"."Tao Bao2016-11-141-1/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a844bc9649 Change-Id: If12e825a23c17730a35a2875c14d1d25d9d41038
| | | | * | | | | | | | | | | | | | | | | Merge "Fix "ordered comparison between pointer and zero"."Tao Bao2016-11-141-1/+1
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | Fix "ordered comparison between pointer and zero".MinSeong Kim2016-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From Clang 4.x releases, DR583 and DR1512 will be addressed. This patch, in advance, fixes the error(s). Test: `mmma bootable/recovery` Change-Id: I29dc85ae681307c322ab3a698c3f3bbad1c784ee Signed-off-by: MinSeong Kim <minseong.kim@linaro.org>
* | | | | | | | | | | | | | | | | | | | | | Merge "Allow uncrypt to work without socket communication" am: 4c1f3eda98 am: f2574b8206 am: 91f736fe1aTianjie Xu2016-11-120-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0b2be22f01 -s ours Change-Id: Idc136f347d98f852f6c0bf0cedb7071f7209338c
| * | | | | | | | | | | | | | | | | | | | | Merge "Allow uncrypt to work without socket communication" am: 4c1f3eda98 am: f2574b8206Tianjie Xu2016-11-121-2/+18
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 91f736fe1a Change-Id: I43824dc487e506423d3b54638665bd51edf870ed
| | * | | | | | | | | | | | | | | | | | | | Merge "Allow uncrypt to work without socket communication" am: 4c1f3eda98Tianjie Xu2016-11-121-2/+18
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f2574b8206 Change-Id: I81b174662c620a4af2f7992f37ffd402e92657e7
| | | * | | | | | | | | | | | | | | | | | | Merge "Allow uncrypt to work without socket communication"Tianjie Xu2016-11-121-2/+18
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4c1f3eda98 Change-Id: I8e86d4201d2fac0293e70df54e0816c96e85a9b7
| | | | * | | | | | | | | | | | | | | | | | Merge "Allow uncrypt to work without socket communication"Tianjie Xu2016-11-121-2/+18
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | Allow uncrypt to work without socket communicationTianjie Xu2016-11-111-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was inconvenient to uncrypt a update package under adb shell because the uncrypt executable required a socket to start its job. Add a workaround to allow uncrypt executes without socket communication. Test: run uncrypt under adb shell, and the block map generates successfully Bug: 29906218 Change-Id: Ibc328b31636d925dc429ede8dcec7392a721dd53 (cherry picked from commit 28c1e5d3aa9610db6e141380b1435937fc7f07db)
* | | | | | | | | | | | | | | | | | | | | | Merge "Add 'reboot bootloader' to bootloader_message." am: a5538b87e8 am: 118e814bfe am: 62aaba5a3fVineela Tummalapalli2016-11-102-0/+22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9128e5f85a Change-Id: I8bb780f90c5f90219d4e4d6c72dd67dce40040c7
| * | | | | | | | | | | | | | | | | | | | | Merge "Add 'reboot bootloader' to bootloader_message." am: a5538b87e8 am: 118e814bfeVineela Tummalapalli2016-11-102-0/+22
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 62aaba5a3f Change-Id: Iff0eca5ba1522c3e51afc439d8008c7ad781b871
| | * | | | | | | | | | | | | | | | | | | | Merge "Add 'reboot bootloader' to bootloader_message." am: a5538b87e8Vineela Tummalapalli2016-11-102-0/+22
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 118e814bfe Change-Id: I2b57d683afce0cb40925187f8a4369a300129a8c
| | | * | | | | | | | | | | | | | | | | | | Merge "Add 'reboot bootloader' to bootloader_message."Vineela Tummalapalli2016-11-102-0/+22
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a5538b87e8 Change-Id: I432f48453d2627e165fda7cda1945157ff0e83ae
| | | | * | | | | | | | | | | | | | | | | | Merge "Add 'reboot bootloader' to bootloader_message."Treehugger Robot2016-11-102-0/+22
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | Add 'reboot bootloader' to bootloader_message.Vineela Tummalapalli2016-11-102-0/+22
| | | | | |/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add 'reboot bootloader' capability to the bootloader_message. BUG: https://issuetracker.google.com/issues/32474515 Change-Id: I01e8b2fad978bf7c8fc96ff6b08ad3e52533f504 Author: Vineela Tummalapalli <vineela.tummalapalli@intel.com> Signed-off-by: Vineela Tummalapalli <vineela.tummalapalli@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com> Reviewed-on: https://android.intel.com/548519
* | | | | | | | | | | | | | | | | | | | | | Merge "Use static_cast to cast pointers returned by malloc/calloc/realloc/mmap."TreeHugger Robot2016-11-106-30/+30
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | | | | Use static_cast to cast pointers returned by malloc/calloc/realloc/mmap.Rahul Chaudhry2016-11-096-30/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | static_cast is preferable to reinterpret_cast when casting from void* pointers returned by malloc/calloc/realloc/mmap calls. Discovered while looking at compiler warnings (b/26936282). Test: WITH_TIDY=1 WITH_STATIC_ANALYZER=1 mma Change-Id: I151642d5a60c94f312d0611576ad0143c249ba3d
* | | | | | | | | | | | | | | | | | | | | | | Merge "Touch blocks in care_map in update_verifier" am: 3605a072bc -s ours am: 96c3c32b66 am: b86af2577cTianjie Xu2016-11-100-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e10ff54e90 Change-Id: I8750814a16e8c3cb98c8c722b2211798b3a7e439
| * | | | | | | | | | | | | | | | | | | | | | Merge "Touch blocks in care_map in update_verifier" am: 3605a072bc -s ours am: 96c3c32b66Tianjie Xu2016-11-100-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b86af2577c Change-Id: I21b7f6df6facfcdb547e2aef3d4d8e19492c8e2d
| | * | | | | | | | | | | | | | | | | | | | | Merge "Touch blocks in care_map in update_verifier" am: 3605a072bc -s oursTianjie Xu2016-11-100-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 96c3c32b66 Change-Id: I94c50d0c24b1d0d2331b1c5fd117c06542c85533
| | | * | | | | | | | | | | | | | | | | | | | Merge "Touch blocks in care_map in update_verifier"Tianjie Xu2016-11-100-0/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3605a072bc -s ours Change-Id: Ie19a8ebf3f575599a5ed9ddcd80ab99e06f6cf77
| | | | * | | | | | | | | | | | | | | | | | | Merge "Touch blocks in care_map in update_verifier"Tianjie Xu2016-11-102-12/+128
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | Touch blocks in care_map in update_verifierTianjie Xu2016-11-092-12/+128
| | | | | | |/ / / / / / / / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Read all blocks in system and vendor partition during boot time so that dm-verity could verify this partition is properly flashed. Bug: 27175949 Change-Id: I38ff7b18ee4f2733e639b89633d36f5ed551c989 Test: mma (cherry picked from commit 03ca853a1c8b974152b7c56cb887ac2f36cfd833) (cherry picked from commit 4bbe0c93c80789891d54a74424731caffda0d0db) (Fix a typo when comparing the verity mode) (cherry picked from commit da654af606d700c0a467c27025fb7f6ef745936d) (Skip update verification if care_map is not found)
* | | | | | | | | | | | | | | | | | | | | | | Merge "updater: Add more testcase for symlink()." am: 1b74e8cea8 am: 2c175c302c am: 7da0c7e439Tao Bao2016-11-092-26/+56
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7e62f22d78 Change-Id: Ic5668c046cc51f0a16e98cdb12f3e264d9d8bc39
| * | | | | | | | | | | | | | | | | | | | | | Merge "updater: Add more testcase for symlink()." am: 1b74e8cea8 am: 2c175c302cTao Bao2016-11-092-26/+56
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7da0c7e439 Change-Id: I2e106e5f804be4e7f69d2642cb88249ec0bffaca
| | * | | | | | | | | | | | | | | | | | | | | Merge "updater: Add more testcase for symlink()." am: 1b74e8cea8Tao Bao2016-11-092-26/+56
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2c175c302c Change-Id: I0e739c4585088ac2b88809924c16ea1bf18e8794
| | | * | | | | | | | | | | | | | | | | | | | Merge "updater: Add more testcase for symlink()."Tao Bao2016-11-092-26/+56
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1b74e8cea8 Change-Id: I67f19e5992d755f08109ccad4feed2ac3f9dffde
| | | | * | | | | | | | | | | | | | | | | | | Merge "updater: Add more testcase for symlink()."Tao Bao2016-11-092-26/+56
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | updater: Add more testcase for symlink().Tao Bao2016-11-092-26/+56
| | | | | |/ / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up SymlinkFn() a bit. Also clean up the temp files created when running the tests; otherwise non-empty TemporaryDir won't be removed. Test: recovery_component_test passes. Change-Id: Id3844abebd168c40125c4dcec54e6ef680a83c3a
* | | | | | | | | | | | | | | | | | | | | | | Merge "otautil: Clean up obsolete includes." am: b80d136dca am: b50fa1fc23 am: d9d435cd83Tao Bao2016-11-090-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4917a8cf62 Change-Id: Ieb092da172224dc669191943886957adc87dfd65
| * | | | | | | | | | | | | | | | | | | | | | Merge "otautil: Clean up obsolete includes." am: b80d136dca am: b50fa1fc23Tao Bao2016-11-092-12/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d9d435cd83 Change-Id: I5b1882758ae438cc6dd6a4926d20a04ece594032
| | * | | | | | | | | | | | | | | | | | | | | Merge "otautil: Clean up obsolete includes." am: b80d136dcaTao Bao2016-11-092-12/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b50fa1fc23 Change-Id: I297e91af6b5cdcf9bec524764e5dbe6a879fd4a7
| | | * | | | | | | | | | | | | | | | | | | | Merge "otautil: Clean up obsolete includes."Tao Bao2016-11-092-12/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b80d136dca Change-Id: I374d678fe6636284d6ab9238418266fac355e14e
| | | | * | | | | | | | | | | | | | | | | | | Merge "otautil: Clean up obsolete includes."Tao Bao2016-11-092-12/+1
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | otautil: Clean up obsolete includes.Tao Bao2016-11-082-12/+1
| | | | |/ / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | external/zlib and external/safe-iop/include were used by Zip.c, which became obsolete after [1]. Removing - <assert.h>: we no longer call assert(3); - <limits.h>: we no longer use PATH_MAX; - <stdio.h>: we don't need FILE anymore; - <stdlib.h>: no more malloc(3)/calloc(3); - <unistd.h>: was once needed for lseek(2); - <string.h>: no more memset(3). Adding - <stdint.h> for SIZE_MAX. [1] commit 8cf5c8f60f51049278b08ae4cbc31df397b651fd: "Replace minzip with libziparchive". Test: `mmma bootable/recovery` Change-Id: I349e909ba83d0f6ade5f92856ce3934f29fdca6c
* | | | | | | | | | | | | | | | | | | | | | Merge "otautil: Clean up obsolete includes."Tao Bao2016-11-092-12/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | | | | otautil: Clean up obsolete includes.Tao Bao2016-11-082-12/+0
| | |_|_|_|/ / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | external/zlib and external/safe-iop/include were used by Zip.c, which became obsolete after [1]. Removing - <assert.h>: we no longer call assert(3); - <limits.h>: we no longer use PATH_MAX; - <stdio.h>: we don't need FILE anymore; - <stdlib.h>: no more malloc(3)/calloc(3); - <unistd.h>: was once needed for lseek(2); - <string.h>: no more memset(3). Adding - <stdint.h> for SIZE_MAX. [1] commit 8cf5c8f60f51049278b08ae4cbc31df397b651fd: "Replace minzip with libziparchive". Test: `mmma bootable/recovery` Change-Id: I349e909ba83d0f6ade5f92856ce3934f29fdca6c (cherry picked from commit 14b61e7b961bb49787ec9ec8f8f7a95c8d12b71c)
* | | | | | | | | | | | | | | | | | | | | | Merge "healthd: change how charger is launched in recovery."Sandeep Patil2016-11-091-2/+2
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | healthd: change how charger is launched in recovery.Sandeep Patil2016-11-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is triggered by changes in healthd which spits out 2 binaries. Recovery needs to use static binary which is now renamed to 'charger'. So, change the .rc file to match the rename. Update the seclable according to new healthd-charger split Test: Tested recovery on angler using 'reboot recovery' to ensure healthd is working as before Change-Id: I9e6018156e677e7224dd2e5894941ed2a7cac1d0 Signed-off-by: Sandeep Patil <sspatil@google.com>
* | | | | | | | | | | | | | | | | | | | | | Merge "Make make_parent() to take const argument" am: 52e2a97aa7 am: 1fd9f0aff7 am: 260573b3c2Tianjie Xu2016-11-082-19/+49
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cd3513c8dd Change-Id: I3244b7ff4f67a04b34c3531caae49bb50dc4917f
| * | | | | | | | | | | | | | | | | | | | | Merge "Make make_parent() to take const argument" am: 52e2a97aa7 am: 1fd9f0aff7Tianjie Xu2016-11-082-19/+49
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 260573b3c2 Change-Id: Icc898211217bf9ecfcefba02ecc96be17b636579
| | * | | | | | | | | | | | | | | | | | | | Merge "Make make_parent() to take const argument" am: 52e2a97aa7Tianjie Xu2016-11-082-19/+49
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1fd9f0aff7 Change-Id: I5ce1d09108c90e3a800942653777c374a302449a
| | | * | | | | | | | | | | | | | | | | | | Merge "Make make_parent() to take const argument"Tianjie Xu2016-11-082-19/+49
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 52e2a97aa7 Change-Id: Ia4d597510cf99ade837a9c6a33b19788b8cf2291
| | | | * | | | | | | | | | | | | | | | | | Merge "Make make_parent() to take const argument"Treehugger Robot2016-11-082-19/+49
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | Make make_parent() to take const argumentTianjie Xu2016-11-082-19/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch to use const std::string; and add corresponding tests. Bug: 32649858 Test: Component tests pass Change-Id: I640f3ec81f1481fa91aa310f8d4d96dac9649cb9
* | | | | | | | | | | | | | | | | | | | | | | Merge "Move recovery_test.cpp out of unit test" am: 8bfd96c0f8 am: e9390679c9 am: a1c121e034Tianjie Xu2016-11-084-92/+112
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e04fd5375c Change-Id: I0592b6ca98fd7ca598139165b198314623f69dfa
| * | | | | | | | | | | | | | | | | | | | | | Merge "Move recovery_test.cpp out of unit test" am: 8bfd96c0f8 am: e9390679c9Tianjie Xu2016-11-084-92/+112
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a1c121e034 Change-Id: I42cc7e9246516b7f6f9feff6f58187cee3b4b89e
| | * | | | | | | | | | | | | | | | | | | | | Merge "Move recovery_test.cpp out of unit test" am: 8bfd96c0f8Tianjie Xu2016-11-084-92/+112
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e9390679c9 Change-Id: Ie5be9db1d0d01f90181dba071df69e24f802c29d
| | | * | | | | | | | | | | | | | | | | | | | Merge "Move recovery_test.cpp out of unit test"Tianjie Xu2016-11-084-92/+112
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8bfd96c0f8 Change-Id: I34ecca789d64dda77bec85d577ff0b7320a2b128
| | | | * | | | | | | | | | | | | | | | | | | Merge "Move recovery_test.cpp out of unit test"Treehugger Robot2016-11-084-92/+112
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | | Move recovery_test.cpp out of unit testTianjie Xu2016-11-084-92/+112
| | | | |/ / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move recovery-refresh/persist tests out because these tests need special steps to run. Also switch the constants to std::string. Test: recovery_manual_test passed on an A/B device Change-Id: I60b3ec6f094044945c3aafc1fae540896a6ddea6
* | | | | | | | | | | | | | | | | | | | | | | resolve merge conflicts of 70172d7 to stage-aosp-master am: 55883f660d am: 5d52303488Tao Bao2016-11-080-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5fee534a8a -s ours Change-Id: Ibcb8796c73d236442e49285659ce04bc563e7932
| * | | | | | | | | | | | | | | | | | | | | | resolve merge conflicts of 70172d7 to stage-aosp-master am: 55883f660dTao Bao2016-11-084-200/+349
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5d52303488 Change-Id: I15771163a003a498dbe7d9731f90e29171b97d7d
| | * | | | | | | | | | | | | | | | | | | | | resolve merge conflicts of 70172d7 to stage-aosp-masterTao Bao2016-11-084-200/+349
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 55883f660d Change-Id: I5946acb7c1c83061ae84b16d6b94ff502007d981
| | | * | | | | | | | | | | | | | | | | | | | resolve merge conflicts of 70172d7 to stage-aosp-masterTao Bao2016-11-084-200/+349
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I7626b57f9c8fd722708862ff1ae09c4fc0def51c
| | | | * | | | | | | | | | | | | | | | | | | Merge "otautil: Clean up SysUtil.cpp."Tao Bao2016-11-084-195/+344
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | otautil: Clean up SysUtil.cpp.Tao Bao2016-11-074-195/+344
| | | | |/ / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add unit testcases for sysMapFile(). Test: recovery_unit_test passes. Test: Build and use the new recovery image to sideload a package. Test: Build and use the new recovery image to install an update. Change-Id: I77d8f1ea151ab513865d992c256ba93a1fcb51a4
* | | | | | | | | | | | | | | | | | | | | | otautil: Clean up SysUtil.cpp.Tao Bao2016-11-084-201/+350
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add unit testcases for sysMapFile(). Test: recovery_unit_test passes. Test: Build and use the new recovery image to sideload a package. Test: Build and use the new recovery image to install an update. Change-Id: I77d8f1ea151ab513865d992c256ba93a1fcb51a4 (cherry picked from commit c3292f3fcbb3cd608cc19b7459751fa5bb64ab84)
* | | | | | | | | | | | | | | | | | | | | | Merge "tests: Fix unit/zip_test.cpp." am: ba41fba9e4 am: f46041a7d4 am: a99c6eab22Tao Bao2016-11-071-59/+50
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d447124c00 Change-Id: I9d7520a555e50dd756a53a5dbec38ed8bd91873f
| * | | | | | | | | | | | | | | | | | | | | Merge "tests: Fix unit/zip_test.cpp." am: ba41fba9e4 am: f46041a7d4Tao Bao2016-11-071-59/+50
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a99c6eab22 Change-Id: Ib4204eb664a918f333f1603dd3789d9ef0478a60
| | * | | | | | | | | | | | | | | | | | | | Merge "tests: Fix unit/zip_test.cpp." am: ba41fba9e4Tao Bao2016-11-071-59/+50
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f46041a7d4 Change-Id: Ib53eeab18ca2f3e2c1032846e99c96c4f0fd5017
| | | * | | | | | | | | | | | | | | | | | | Merge "tests: Fix unit/zip_test.cpp."Tao Bao2016-11-071-59/+50
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ba41fba9e4 Change-Id: Ie756b132205a3602cdec4062fc84a725b9086479
| | | | * | | | | | | | | | | | | | | | | | Merge "tests: Fix unit/zip_test.cpp."Tao Bao2016-11-071-59/+50
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|/ / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | tests: Fix unit/zip_test.cpp.Tao Bao2016-11-041-59/+50
| | | | |/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's accidentally broken when refactoring the testdata path. Also clean up the testcase a bit by simplying the file reading. Test: recovery_unit_test passes. Change-Id: I592a1cf5a4eb9a7a5f4eecbc6426baeedeb02781
* | | | | | | | | | | | | | | | | | | | | Merge "updater: Add a testcase for RenameFn()." am: d0daf7f7df am: 05a801ca8e am: 8269eb0d1fTao Bao2016-11-042-1/+33
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 63ae92ded4 Change-Id: Ia4558618507770ff9324883c917b8cc8d09792dd
| * | | | | | | | | | | | | | | | | | | | Merge "updater: Add a testcase for RenameFn()." am: d0daf7f7df am: 05a801ca8eTao Bao2016-11-042-1/+33
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8269eb0d1f Change-Id: I6d8211ab3825c34e8945a249fb2151a01a3ac371
| | * | | | | | | | | | | | | | | | | | | Merge "updater: Add a testcase for RenameFn()." am: d0daf7f7dfTao Bao2016-11-042-1/+33
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 05a801ca8e Change-Id: Ib6e162dd08ecb4f97a06beb54c26c5348a6782d1
| | | * | | | | | | | | | | | | | | | | | Merge "updater: Add a testcase for RenameFn()."Tao Bao2016-11-042-1/+33
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d0daf7f7df Change-Id: I606b95f3d164063a271cd8faac8c5bfe42e2ef60
| | | | * | | | | | | | | | | | | | | | | Merge "updater: Add a testcase for RenameFn()."Tao Bao2016-11-042-1/+33
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | updater: Add a testcase for RenameFn().Tao Bao2016-11-042-1/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: recovery_component_test passes. Change-Id: Iba5a0fdf6c79e2bed6b30b8fc19a306c1ab29d8a
* | | | | | | | | | | | | | | | | | | | | | Merge "Cleanup the duplicates of logs rotation functions" am: e2d05c5658 am: 99adda9d67 am: 92097726efTianjie Xu2016-11-046-182/+178
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7770c6f93e Change-Id: I384dc5295997963cc88231adad7a533f1ee9ef98
| * | | | | | | | | | | | | | | | | | | | | Merge "Cleanup the duplicates of logs rotation functions" am: e2d05c5658 am: 99adda9d67Tianjie Xu2016-11-046-182/+178
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 92097726ef Change-Id: I714039a80d738392c6c1d967ae4e17c0fadce8bd
| | * | | | | | | | | | | | | | | | | | | | Merge "Cleanup the duplicates of logs rotation functions" am: e2d05c5658Tianjie Xu2016-11-046-182/+178
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 99adda9d67 Change-Id: I66a74981f5e7432aaa49ae74a38fc87e17acc02f
| | | * | | | | | | | | | | | | | | | | | | Merge "Cleanup the duplicates of logs rotation functions"Tianjie Xu2016-11-046-182/+178
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e2d05c5658 Change-Id: Ia63785d846ab05eca45ec1e548f7265d7feffdbb
| | | | * | | | | | | | | | | | | | | | | | Merge "Cleanup the duplicates of logs rotation functions"Tianjie Xu2016-11-046-182/+178
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | | Cleanup the duplicates of logs rotation functionsTianjie Xu2016-11-046-182/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 32067516 Test: Logs rotated successfully on angler, recovery-refresh/persist tests passed on an a/b device. Change-Id: Ie80adf0fa958ad3d7869d2d17f49489666b86c29
* | | | | | | | | | | | | | | | | | | | | | | Merge "updater: Fix a bug in DeleteFn()." am: 529032f4a0 am: 4f91ca78b9 am: 786b083b8eTao Bao2016-11-042-9/+46
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: afd1d3af5a Change-Id: I91d664cdbe14b4b7d70090ba5aebab5a46b57c1c
| * | | | | | | | | | | | | | | | | | | | | | Merge "updater: Fix a bug in DeleteFn()." am: 529032f4a0 am: 4f91ca78b9Tao Bao2016-11-042-9/+46
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 786b083b8e Change-Id: I835b4c749747b705cb78441b8e405b21a2198f56
| | * | | | | | | | | | | | | | | | | | | | | Merge "updater: Fix a bug in DeleteFn()." am: 529032f4a0Tao Bao2016-11-042-9/+46
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4f91ca78b9 Change-Id: I00c70a6343e6cb8e62e27b4a0a3ee6da3934fc9c
| | | * | | | | | | | | | | | | | | | | | | | Merge "updater: Fix a bug in DeleteFn()."Tao Bao2016-11-042-9/+46
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 529032f4a0 Change-Id: I77054ec63705d4e8f72ce7232db5f394f7de420e
| | | | * | | | | | | | | | | | | | | | | | | Merge "updater: Fix a bug in DeleteFn()."Tao Bao2016-11-042-9/+46
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | |/ / / / / / / / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | updater: Fix a bug in DeleteFn().Tao Bao2016-11-042-9/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add a testcase for delete() function. Test: recovery_component_test passes. Change-Id: I064d1ad4693c3ed339d0a69eabadd08a61a2ea86
* | | | | | | | | | | | | | | | | | | | | | | Merge "Revert "Revert "Some cleanups to recovery.""" am: a7a8262944 am: cb3cbaffac am: b9c3411de7Tao Bao2016-11-047-70/+69
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 48745fbc41 Change-Id: I14e485e0125a8473d580fb58510761f2a2337fb5
| * | | | | | | | | | | | | | | | | | | | | | Merge "Revert "Revert "Some cleanups to recovery.""" am: a7a8262944 am: cb3cbaffacTao Bao2016-11-047-70/+69
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b9c3411de7 Change-Id: I630bea739f6f5e49b57a007b69e0bfed5ca4a7ae
| | * | | | | | | | | | | | | | | | | | | | | Merge "Revert "Revert "Some cleanups to recovery.""" am: a7a8262944Tao Bao2016-11-047-70/+69
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cb3cbaffac Change-Id: I2536156317b0bcb4a272ce13db251af791bd67be
| | | * | | | | | | | | | | | | | | | | | | | Merge "Revert "Revert "Some cleanups to recovery."""Tao Bao2016-11-047-70/+69
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a7a8262944 Change-Id: Iab6de4788c4dbecd33d076144f8324fde53b4024
| | | | * | | | | | | | | | | | | | | | | | | Merge "Revert "Revert "Some cleanups to recovery."""Tao Bao2016-11-047-70/+69
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | Revert "Revert "Some cleanups to recovery.""Tao Bao2016-11-037-70/+69
| | | | | |/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 8584fcf677dd45b30121bd0490b06297e6be1871. This CL re-lands commit c0319b60f56d445c2d1c74f551e01f069b028fe6. The "stage" and "reason" variables are now declared as global by dropping the static qualifier, because they may be used by vendor recovery libraries. Test: lunch aosp_angler-userdebug; mmma bootable/recovery Test: lunch aosp_dragon-userdebug; mmma bootable/recovery Change-Id: I252c346f450079478cff22bbff01590b8ab2e2b3
* | | | | | | | | | | | | | | | | | | | | | Merge "updater: Fix an off-by-1 bug in file_getprop()." am: da2b34b5d0 am: 917be35f0f am: 4098285e8cTao Bao2016-11-042-6/+59
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 00c7b6112a Change-Id: Id05ce102be21b9a045a3dac5fa9967914a7e6377
| * | | | | | | | | | | | | | | | | | | | | Merge "updater: Fix an off-by-1 bug in file_getprop()." am: da2b34b5d0 am: 917be35f0fTao Bao2016-11-042-6/+59
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4098285e8c Change-Id: I0fa36336948867b75dc8226244ee25ba8e6987e0
| | * | | | | | | | | | | | | | | | | | | | Merge "updater: Fix an off-by-1 bug in file_getprop()." am: da2b34b5d0Tao Bao2016-11-042-6/+59
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 917be35f0f Change-Id: I5b26c0bf7f7b156e91f66cffde0b64a5708b7eee
| | | * | | | | | | | | | | | | | | | | | | Merge "updater: Fix an off-by-1 bug in file_getprop()."Tao Bao2016-11-042-6/+59
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: da2b34b5d0 Change-Id: Ib5d4f50a42465648bb6a5213f6676b11427b4278
| | | | * | | | | | | | | | | | | | | | | | Merge "updater: Fix an off-by-1 bug in file_getprop()."Tao Bao2016-11-042-6/+59
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | updater: Fix an off-by-1 bug in file_getprop().Tao Bao2016-11-032-6/+59
| | | | |/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add a testcase for file_getprop(). Test: recovery_component_test passes. Change-Id: I8eb2f9a5702b43997ac9f4b29665eea087b1c146
* | | | | | | | | | | | | | | | | | | | | Merge "tests: Set up testdata path for continuous native tests." am: 4011bb161a am: a98b4e4bef am: f35ce240a1Tao Bao2016-11-034-31/+23
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6ba75c1843 Change-Id: Id5afea4a7ff5b20a711ada00f98467397f17f020
| * | | | | | | | | | | | | | | | | | | | Merge "tests: Set up testdata path for continuous native tests." am: 4011bb161a am: a98b4e4befTao Bao2016-11-034-31/+23
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f35ce240a1 Change-Id: I7ba1d49da3c8078dd4e613ab6ba0f100d109d35f
| | * | | | | | | | | | | | | | | | | | | Merge "tests: Set up testdata path for continuous native tests." am: 4011bb161aTao Bao2016-11-034-31/+23
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a98b4e4bef Change-Id: I7d360dd0446fa055c8810bd0c989b79e4a1dbaee
| | | * | | | | | | | | | | | | | | | | | Merge "tests: Set up testdata path for continuous native tests."Tao Bao2016-11-034-31/+23
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4011bb161a Change-Id: I9ca5ab5081cc1f08fe1caa0d0d9baac4f2447efb
| | | | * | | | | | | | | | | | | | | | | Merge "tests: Set up testdata path for continuous native tests."Tao Bao2016-11-034-31/+23
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | tests: Set up testdata path for continuous native tests.Tao Bao2016-11-034-31/+23
| | | | |/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | continuous_native_tests expects the testdata under DATA/ in continuous_native_tests.zip. This CL packs a copy of the testdata into continuous_native_tests.zip as DATA/nativetest/recovery/testdata (via LOCAL_PICKUP_FILES). This CL also removes the extra copy for nativetest64. Testdata will always stay at /data/nativetest/recovery/testdata, even for 64-bit version. Otherwise we will unnecessarily get four copies (two for data/ and another two for DATA/). Bug: 32123241 Test: mmma bootable/recovery && adb sync data. On bullhead, /data/nativetest/recovery_component_test/recovery_component_test works; /data/nativetest64/recovery_component_test/recovery_component_test works. Test: m continuous_native_test; DATA/nativetest/recovery/testdata exists. Change-Id: Ifefa0309de7af23c77654e8e450848ca2da218c2
* | | | | | | | | | | | | | | | | | | | | Merge "applypatch: Add testcases for applypatch executable." am: 5696526ba4 am: 4fc42365ac am: 24356d778fTao Bao2016-11-0211-287/+426
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8172cddc82 Change-Id: I38a4f6b0e9d0627fa78782b6b0744af9989ccf77
| * | | | | | | | | | | | | | | | | | | | Merge "applypatch: Add testcases for applypatch executable." am: 5696526ba4 am: 4fc42365acTao Bao2016-11-0211-287/+426
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 24356d778f Change-Id: I6d95162b39478f0ea90676bf3635e2afa0b1536e
| | * | | | | | | | | | | | | | | | | | | Merge "applypatch: Add testcases for applypatch executable." am: 5696526ba4Tao Bao2016-11-0211-287/+426
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4fc42365ac Change-Id: I11edb4c0a9299c9824c1e82c7f996ec32be7a0c9
| | | * | | | | | | | | | | | | | | | | | Merge "applypatch: Add testcases for applypatch executable."Tao Bao2016-11-0211-287/+426
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5696526ba4 Change-Id: I923ed0311335a798965cd83f0ba070223a0963b2
| | | | * | | | | | | | | | | | | | | | | Merge "applypatch: Add testcases for applypatch executable."Treehugger Robot2016-11-0211-287/+426
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | | applypatch: Add testcases for applypatch executable.Tao Bao2016-11-0111-287/+426
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor applypatch/main.cpp into libapplypatch_modes so that we can add testcases. Some changes to applypatch/main.cpp: - Replace char** argv with const char**; - Use android::base::Split() to split ":"; - Use android::base::ParseUInt(). Bug: 32383590 Test: Unit tests pass, install-recovery.sh works. Change-Id: I44e7bfa5ab717d439ea1d0ee9ddb7b2c40bb95a4
* | | | | | | | | | | | | | | | | | | | | | Merge "Cleanup ReadArgs & ReadValueArgs usage" am: a9b252887c am: 88fc75ee54 am: 0b6085a341Tianjie Xu2016-11-024-632/+424
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c81ef65828 Change-Id: I245bea4f9fd484e7e22422835139b040efa33519
| * | | | | | | | | | | | | | | | | | | | | Merge "Cleanup ReadArgs & ReadValueArgs usage" am: a9b252887c am: 88fc75ee54Tianjie Xu2016-11-024-632/+424
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0b6085a341 Change-Id: I9b76ca015f94677775cc8dd75b755dd4b226183d
| | * | | | | | | | | | | | | | | | | | | | Merge "Cleanup ReadArgs & ReadValueArgs usage" am: a9b252887cTianjie Xu2016-11-024-632/+424
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 88fc75ee54 Change-Id: Ie167a4fef7f877c0cb40715aa3bbb95a08e9926d
| | | * | | | | | | | | | | | | | | | | | | Merge "Cleanup ReadArgs & ReadValueArgs usage"Tianjie Xu2016-11-024-632/+424
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a9b252887c Change-Id: I2bf575fbb14165e7904d01b01b71ec6e3f24f068
| | | | * | | | | | | | | | | | | | | | | | Merge "Cleanup ReadArgs & ReadValueArgs usage"Tianjie Xu2016-11-024-632/+424
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | Cleanup ReadArgs & ReadValueArgs usageTianjie Xu2016-11-014-632/+424
| | | | |/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ReadArgs will switch to using std::string and std::unique_ptr. Also cleanup the callers. Test: mma & component test passed. Change-Id: I4724406ae6c0c134a27bbd1cdd24ad5d343b2a3b
* | | | | / / / / / / / / / / / / / / / / Merge "applypatch: Switch the parameter of Value** to std::vector." am: 3f4030e0ef am: bc48de6bf0 am: edf2928edfTao Bao2016-11-015-152/+162
|\| | | | | | | | | | | | | | | | | | | | | |_|_|_|/ / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 492bd8ca71 Change-Id: Icc5e01085004386771175bda66a9eba9ed76d703
| * | | | | | | | | | | | | | | | | | | Merge "applypatch: Switch the parameter of Value** to std::vector." am: 3f4030e0ef am: bc48de6bf0Tao Bao2016-11-015-152/+162
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: edf2928edf Change-Id: I475d65b39824734260cad5921f02a6eaad80bd4b
| | * | | | | | | | | | | | | | | | | | Merge "applypatch: Switch the parameter of Value** to std::vector." am: 3f4030e0efTao Bao2016-11-015-152/+162
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bc48de6bf0 Change-Id: Ibb887acf4d2afe46fbbe1193daddcf73eff3423e
| | | * | | | | | | | | | | | | | | | | Merge "applypatch: Switch the parameter of Value** to std::vector."Tao Bao2016-11-015-152/+162
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3f4030e0ef Change-Id: I741638c51e9c3fe57cc874e6af86ea6a65d5aa71
| | | | * | | | | | | | | | | | | | | | Merge "applypatch: Switch the parameter of Value** to std::vector."Tao Bao2016-11-015-152/+162
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | applypatch: Switch the parameter of Value** to std::vector.Tao Bao2016-10-295-152/+162
| | | | |/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: Unit tests and install-recovery.sh pass on angler and dragon. Change-Id: I328e6554edca667cf850f5584ebf1ac211e3d4d1
* | | | | | | | | | | | | | | | | | | | DO NOT MERGE ANYWHERE init: move healthd to late-init am: 195ff7f79e -s ours am: 7ceb371048 -s ours am: b8c1788e7b -s ours am: 8837b0d25d -s ours am: 3fdf1fd515 -s ours am: 67bc0b9573 -s ours am: 9ab6af5a61 -s oursAndriy Naborskyy2016-10-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8b1840799e -s ours Change-Id: I3ae4272d78e9e9490c50cc5dfd7174996533e0ca
| * | | | | | | | | | | | | | | | | | | DO NOT MERGE ANYWHERE init: move healthd to late-init am: 195ff7f79e -s ours am: 7ceb371048 -s ours am: b8c1788e7b -s ours am: 8837b0d25d -s ours am: 3fdf1fd515 -s ours am: 67bc0b9573 -s oursAndriy Naborskyy2016-10-270-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9ab6af5a61 -s ours Change-Id: Ib10f137a0f23752ebc1d0090f9b90ba22504703b
| | * | | | | | | | | | | | | | | | | | DO NOT MERGE ANYWHERE init: move healthd to late-init am: 195ff7f79e -s ours am: 7ceb371048 -s ours am: b8c1788e7b -s ours am: 8837b0d25d -s ours am: 3fdf1fd515 -s oursAndriy Naborskyy2016-10-270-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 67bc0b9573 -s ours Change-Id: Id648e49a1e81d7cc22a273fbd209c18ffe1ea0b0
| | | * | | | | | | | | | | | | | | | | DO NOT MERGE ANYWHERE init: move healthd to late-init am: 195ff7f79e -s ours am: 7ceb371048 -s ours am: b8c1788e7b -s ours am: 8837b0d25d -s oursAndriy Naborskyy2016-10-270-0/+0
| | |/| | | | | | | | | | | | | | | | | | | | | |_|_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3fdf1fd515 -s ours Change-Id: I8cfd3782a8cac351057b258d44caaa987397201d
| | | * | | | | | | | | | | | | | | | DO NOT MERGE ANYWHERE init: move healthd to late-init am: 195ff7f79e -s ours am: 7ceb371048 -s ours am: b8c1788e7b -s oursAndriy Naborskyy2016-10-270-0/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|/ / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8837b0d25d -s ours Change-Id: I7ecada4bf93f79a8b308064c417e85d4e7f9ecc3
| | | | * | | | | | | | | | | | | | | DO NOT MERGE ANYWHERE init: move healthd to late-init am: 195ff7f79e -s ours am: 7ceb371048 -s oursAndriy Naborskyy2016-10-270-0/+0
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | |_|_|/ / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b8c1788e7b -s ours Change-Id: I14de8cfdef94dfcb2d3f0760daf519537fa796d5
| | | | | * | | | | | | | | | | | | | DO NOT MERGE ANYWHERE init: move healthd to late-init am: 195ff7f79e -s oursAndriy Naborskyy2016-10-270-0/+0
| | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | |_|_|/ / / / / / / / / / | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7ceb371048 -s ours Change-Id: I5c36f2e8ee5e410e9027376c32e86baa7fa2e65a
| | | | | | * | | | | | | | | | | | | DO NOT MERGE ANYWHERE init: move healthd to late-initAndriy Naborskyy2016-10-270-0/+0
| | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | |_|_|/ / / / / / / / / | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 195ff7f79e -s ours Change-Id: Ibf16373a783458fd91284254156d5a9a0d70252d
| | | | | | | * | | | | | | | | | | | DO NOT MERGE ANYWHERE init: move healthd to late-initAndriy Naborskyy2016-10-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Starting healthd in early-init can cause SELinux denials if healthd or any device-specific libraries try to log. Now healthd is starting at boot as usual service. Bug: 30292927 Change-Id: I367d022f5885122da49181db3db536012e83f564
* | | | | | | | | | | | | | | | | | | Merge "Revert "Some cleanups to recovery."" am: 9514eb1934 am: 0c571e5923 am: 3456ee19f9Dan Albert2016-10-277-63/+70
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ec31f732c3 Change-Id: Ib1aa18ed40bdafac182e90c66160a4951db4797d
| * | | | | | | | | | | | | | | | | | Merge "Revert "Some cleanups to recovery."" am: 9514eb1934 am: 0c571e5923Dan Albert2016-10-277-63/+70
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3456ee19f9 Change-Id: Ia3b0e970555a256d0576a2b94c2f6825f279de7c
| | * | | | | | | | | | | | | | | | | Merge "Revert "Some cleanups to recovery."" am: 9514eb1934Dan Albert2016-10-277-63/+70
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|_|_|/ / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0c571e5923 Change-Id: I1a5b89905f24c2f20250a288345b6dbdea486cc1
| | | * | | | | | | | | | | | | | | | Merge "Revert "Some cleanups to recovery.""Dan Albert2016-10-277-63/+70
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|_|_|_|/ / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9514eb1934 Change-Id: Id96135ffde5adaebd45811b9c3d319a99fe28ecd
| | | | * | | | | | | | | | | | | | | Merge "Revert "Some cleanups to recovery.""Treehugger Robot2016-10-277-63/+70
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | Revert "Some cleanups to recovery."Dan Albert2016-10-277-63/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit c0319b60f56d445c2d1c74f551e01f069b028fe6. Reason for revert: Broke builds. Change-Id: I82aa880b83de5ae6c36fd7567cb001920559a972
* | | | | | | | | | | | | | | | | | | | Merge "Some cleanups to recovery." am: 46fb0a6a6f am: 00f893fe23 am: 05c68a8775Tao Bao2016-10-277-70/+63
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: aa2e4ddc30 Change-Id: I4c795abf9a8bfd8d59cf2d03af6fdd60f85264dc
| * | | | | | | | | | | | | | | | | | | Merge "Some cleanups to recovery." am: 46fb0a6a6f am: 00f893fe23Tao Bao2016-10-277-70/+63
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 05c68a8775 Change-Id: Id4a669bfce4f12a25ed78919d61de8c16a12fd27
| | * | | | | | | | | | | | | | | | | | Merge "Some cleanups to recovery." am: 46fb0a6a6fTao Bao2016-10-277-70/+63
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 00f893fe23 Change-Id: Iea4884c8ea12f8edfdd7e39e8ec6e4cfff26f3a5
| | | * | | | | | | | | | | | | | | | | Merge "Some cleanups to recovery."Tao Bao2016-10-277-70/+63
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 46fb0a6a6f Change-Id: Ic247a408b1bd3e2eab1db34eb4b14423d9fd16d6
| | | | * | | | | | | | | | | | | | | | Merge "Some cleanups to recovery."Treehugger Robot2016-10-277-70/+63
| | | | |\| | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | Some cleanups to recovery.Tao Bao2016-10-267-70/+63
| | | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove the duplicate gCurrentUI variable in recovery.cpp; - Refactor the load/save of locale functions; - Clean up ui_print() to get rid of 256-byte buffer limit; - Declare ui in common.h; - Move the typedef of Volume into roots.h. Test: Build and boot into recovery image. Change-Id: Ia28c116858ca754133127a5ff9c722af67ad55b7
* | | | | | | | | | | | | | | | | | | Merge "Skip update-on-boot for bootreason in blacklist" am: ebc141dff2 am: 750bb46305 am: 74851d8191Tao Bao2016-10-260-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 408edfafc5 Change-Id: I6d90c9822cf1ac5c440ab703c476b6b3bab42610
| * | | | | | | | | | | | | | | | | | Merge "Skip update-on-boot for bootreason in blacklist" am: ebc141dff2 am: 750bb46305Tao Bao2016-10-260-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 74851d8191 Change-Id: I2f0e2871182541bc64879b86abfcb98306b9c35e
| | * | | | | | | | | | | | | | | | | Merge "Skip update-on-boot for bootreason in blacklist" am: ebc141dff2Tao Bao2016-10-260-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 750bb46305 Change-Id: I619c61797e4a37419daa6b9e03c61b12e1c502cc
| | | * | | | | | | | | | | | | | | | Merge "Skip update-on-boot for bootreason in blacklist"Tao Bao2016-10-260-0/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ebc141dff2 Change-Id: Ia87fd539f6e18cea47fb3aeec6434f5b25da0eb0
| | | | * | | | | | | | | | | | | | | Merge "Skip update-on-boot for bootreason in blacklist"Tao Bao2016-10-262-14/+41
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | Skip update-on-boot for bootreason in blacklistTianjie Xu2016-10-262-14/+41
| | | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Skip the OTA installation when bootreason is 'kernel_panic', 'Panic' etc. Change-Id: Ic1202492bffefa1a9d8d0e691b5af979285e552c Test: On angler, ota installation skips for one bootreason in the blacklist. Bug: 29978689 (cherry picked from commit 27b9fc8a36757235ac3386d66db7d35820c2eb04)
* | | | | | | | | | | | | | | | | | | Merge "tests: Generate testdata for 2nd arch." am: 16e88679dc am: 8f9672c0db am: ab526b1246Tao Bao2016-10-261-1/+12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 86487d6855 Change-Id: If5ee190b0a1bc65bc048fadf77346405452adedf
| * | | | | | | | | | | | | | | | | | Merge "tests: Generate testdata for 2nd arch." am: 16e88679dc am: 8f9672c0dbTao Bao2016-10-261-1/+12
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ab526b1246 Change-Id: I5ce8de6c1bb15f30570428ee106b83356ef3bd90
| | * | | | | | | | | | | | | | | | | Merge "tests: Generate testdata for 2nd arch." am: 16e88679dcTao Bao2016-10-261-1/+12
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8f9672c0db Change-Id: I4d7dc8bf4a2bda409d02bfa458d365668f3f1576
| | | * | | | | | | | | | | | | | | | Merge "tests: Generate testdata for 2nd arch."Tao Bao2016-10-261-1/+12
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 16e88679dc Change-Id: I9804a4fe55aa9eb1002d279bb2dc286a0409782d
| | | | * | | | | | | | | | | | | | | Merge "tests: Generate testdata for 2nd arch."Tao Bao2016-10-261-1/+12
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | tests: Generate testdata for 2nd arch.Tao Bao2016-10-261-1/+12
| | | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We currently only copy the testdata to $(TARGET_OUT_DATA_NATIVE_TESTS)/recovery, which fails the tests generated for 2nd arch (TARGET_2ND_ARCH). For example, on angler /data/nativetest/recovery_component_test/recovery_component_test fails due to missing testdata. Bug: 32123241 Test: Both of /data/nativetest/recovery... and /data/nativetest64/recovery... work on angler. Change-Id: Ib76264b4408d01c08b2619c8ac84b2476ea5a8bc
* | | | | | | | | | | | | | | | | | | Merge "applypatch: Fix the bug when constructing VAL_BLOB." am: e1991428ba am: 565273839e am: 6d9f8993b0Tao Bao2016-10-251-2/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 776651cc5b Change-Id: I73d5e1ad85a7850a7ceebe2a62ba1f2824591bfc
| * | | | | | | | | | | | | | | | | | Merge "applypatch: Fix the bug when constructing VAL_BLOB." am: e1991428ba am: 565273839eTao Bao2016-10-251-2/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6d9f8993b0 Change-Id: I900afd26eb8767ce4a8f2362b6674af8d4a7f212
| | * | | | | | | | | | | | | | | | | Merge "applypatch: Fix the bug when constructing VAL_BLOB." am: e1991428baTao Bao2016-10-251-2/+3
| |/| | | | | | | | | | | | | | | | | | | |/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 565273839e Change-Id: I1c235a75e711a9859831cab9b311ea3304ee8e61
| | * | | | | | | | | | | | | | | | Merge "applypatch: Fix the bug when constructing VAL_BLOB."Tao Bao2016-10-251-2/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e1991428ba Change-Id: I354b9535077cf4dfbda78c731ac41cba015e8805
| | | * | | | | | | | | | | | | | | Merge "applypatch: Fix the bug when constructing VAL_BLOB."Tao Bao2016-10-251-2/+3
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | applypatch: Fix the bug when constructing VAL_BLOB.Tao Bao2016-10-251-2/+3
| | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When constructing std::string from C-string, the string may be truncated at null char. Use range constructor instead. Bug: 32380016 Test: Use applypatch to install a previously failed recovery image. Change-Id: Id3e2afb4a810594243cd21db526933d1fea5044b
* | | | | | | | | | | | | | | | | | Shrink all recovery loop images with zopflipng am: 2f2c723d1bDamien Bargiacchi2016-10-20455-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5e0b587896 Change-Id: I400322d293037a3bdf15c7389621f553c26113eb
| * | | | | | | | | | | | | | | | | Shrink all recovery loop images with zopflipngDamien Bargiacchi2016-10-20455-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2f2c723d1b Change-Id: I1f7e0a91ba39841a7ea26161191178593ff944d0
| | * | | | | | | | | | | | | | | | Shrink all recovery loop images with zopflipngDamien Bargiacchi2016-10-20455-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduces recovery image size 800k - 2.8MB depending on device type Change-Id: Ib703c8f17394759fb9bad068525737188a4e8965
* | | | | | | | | | | | | | | | | | Merge "Verify wipe package when wiping A/B device in recovery." am: fd796317c3 am: a866b12c2dYabin Cui2016-10-190-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1d4e798e76 Change-Id: Ie6ea0b8d85d64dcbc90b5fad84a02a0637e47607
| * | | | | | | | | | | | | | | | | Merge "Verify wipe package when wiping A/B device in recovery." am: fd796317c3Yabin Cui2016-10-190-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a866b12c2d Change-Id: Ibf6f8ef6353a84eef8fc6f79c0b62757b90c6c29
| | * | | | | | | | | | | | | | | | Merge "Verify wipe package when wiping A/B device in recovery."Yabin Cui2016-10-190-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fd796317c3 Change-Id: Iac90d4e641c171e5134ebba5e33556713c7aa4d7
| | | * | | | | | | | | | | | | | | Merge "Verify wipe package when wiping A/B device in recovery."Treehugger Robot2016-10-196-204/+140
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | Verify wipe package when wiping A/B device in recovery.Yabin Cui2016-10-196-204/+140
| | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To increase the security of wiping A/B devices, let uncrypt write wipe package in misc partition. Then recovery verifies the wipe package before wiping the device. Based on the original cherrypick, this CL also has additional changes to address the LOG statements and libziparchive changes. Bug: 29159185 Test: Build and boot into recovery. Change-Id: I186691bab1928d3dc036bc5542abd64a81bc2168 (cherry picked from commit 6faf0265c9b58db2c15b53f6d29025629d52f882)
* | | | | | | | | | | | | | | | | | Merge "Add a unit test for applypatch_check" am: 06603c76c5 am: d7d7f3c792Tianjie Xu2016-10-191-0/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 54278f4047 Change-Id: I0c1f06c2521305283514c9a199d5d715b1813edb
| * | | | | | | | | | | | | | | | | Merge "Add a unit test for applypatch_check" am: 06603c76c5Tianjie Xu2016-10-191-0/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d7d7f3c792 Change-Id: I91189e4dfbb05d2b98ce3eab0f147949cce6c4c9
| | * | | | | | | | | | | | | | | | Merge "Add a unit test for applypatch_check"Tianjie Xu2016-10-191-0/+5
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 06603c76c5 Change-Id: Ieb8dd72e88d01d2067ba35369791d038260a4d49
| | | * | | | | | | | | | | | | | | Merge "Add a unit test for applypatch_check"Treehugger Robot2016-10-191-0/+5
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | Add a unit test for applypatch_checkTianjie Xu2016-10-191-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If no sha1 is specified, applypatch_check should pass as long as the file content loads successfully. Add a unit case acccordingly. Test: Unit tests passed Bug: 32243751 Change-Id: I8c013be67c197d2935e11cf6acc59fb9b943cfd9
* | | | | | | | | | | | | | | | | | | Merge "Clean up bootloader_message usage in recovery" am: 94f4494613 am: 7691800c2eTianjie Xu2016-10-191-29/+13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0ddd07b0bd Change-Id: I2a58c6a62e79e2d1fce00281755b34610489b474
| * | | | | | | | | | | | | | | | | | Merge "Clean up bootloader_message usage in recovery" am: 94f4494613Tianjie Xu2016-10-191-29/+13
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7691800c2e Change-Id: I4ef47383d9da3a6aef72fdb689e2aa2cfbeeb963
| | * | | | | | | | | | | | | | | | | Merge "Clean up bootloader_message usage in recovery"Tianjie Xu2016-10-191-29/+13
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 94f4494613 Change-Id: Idda16fe41dc644ef12fe12706e5d61b8c3a9fa62
| | | * | | | | | | | | | | | | | | | Merge "Clean up bootloader_message usage in recovery"Treehugger Robot2016-10-191-29/+13
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | Clean up bootloader_message usage in recoveryTianjie Xu2016-10-191-29/+13
| | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch to using vector and string. Test: bootloader message writes correctly on angler. Change-Id: I95d5a1e584630db326bb4400f3a149b59ad30a9e
* | | | | | | | | | | | | | | | | | Merge "Fix applypatch_check failure when applying update on angler" am: 7df1850d37 am: ece0b68ca6Tianjie Xu2016-10-191-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 502e34c301 Change-Id: I64648714a96a2d9b734441c15557eb2b1f268f69
| * | | | | | | | | | | | | | | | | Merge "Fix applypatch_check failure when applying update on angler" am: 7df1850d37Tianjie Xu2016-10-191-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ece0b68ca6 Change-Id: I94f84db1cc053fa583adefc2ea69b3d4c0547de4
| | * | | | | | | | | | | | | | | | Merge "Fix applypatch_check failure when applying update on angler"Tianjie Xu2016-10-191-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7df1850d37 Change-Id: I5d5509d15df4ec42077b68bac7977b56cfab9097
| | | * | | | | | | | | | | | | | | Merge "Fix applypatch_check failure when applying update on angler"Tianjie Xu2016-10-191-1/+1
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | Fix applypatch_check failure when applying update on anglerTianjie Xu2016-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Applypatch_check should be skipped if no sha is specified. As the comments said: "It's okay to specify no sha1s; the check will pass if the LoadFileContents is successful. Useful for reading partitions, where the filename encodes the sha1s." Test: The update package applied on angler successfully. Bug: 32243751 Change-Id: Ib8f3dadf19f745c2dbd350d60da46ab12d75bc87
* | | | | | | | | | | | | | | | | | | Merge "Fix bootloader_message." am: 7c95fe10de am: 83e4e6d35cYabin Cui2016-10-190-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f258f601a0 Change-Id: I72376cae20beeae2ee4aa13f6d28f5a61ffdce49
| * | | | | | | | | | | | | | | | | | Merge "Fix bootloader_message." am: 7c95fe10deYabin Cui2016-10-190-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 83e4e6d35c Change-Id: I2e3986837c7a1daaa6fa4a8c1031f619efb8b361
| | * | | | | | | | | | | | | | | | | Merge "Fix bootloader_message."Yabin Cui2016-10-190-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7c95fe10de Change-Id: I102d5b27dcb295e82b7ec094a641a43efca793dc
| | | * | | | | | | | | | | | | | | | Merge "Fix bootloader_message."Treehugger Robot2016-10-191-1/+1
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | | Fix bootloader_message.Yabin Cui2016-10-191-1/+1
| | | |/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 29945717 Change-Id: I934fd6c52b0111937fa75455de2fa4157fb30f6f (cherry picked from commit 9da04d595fe01e4c0ac1baf39186ac090bf234b3)
* | | | | | | | | | | | | | | | | | | resolve merge conflicts of e89bf25 to stage-aosp-master am: 69c117c2ffTao Bao2016-10-191-5/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2a576e2097 Change-Id: Iee6000f594a04a0862b3687f1d87daa809fb3804
| * | | | | | | | | | | | | | | | | | resolve merge conflicts of e89bf25 to stage-aosp-masterTao Bao2016-10-191-5/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 69c117c2ff Change-Id: I668395a8f8ec5d004755ed39f8b7517be1e3527d
| | * | | | | | | | | | | | | | | | | resolve merge conflicts of e89bf25 to stage-aosp-masterTao Bao2016-10-191-5/+6
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I3b0ddb23daf264d407370cd8ace31eceb230a11a
| | | * | | | | | | | | | | | | | | | Merge "Create bootloader_message static library."Tao Bao2016-10-188-207/+354
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | | Create bootloader_message static library.Yabin Cui2016-10-188-207/+354
| | | |/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bootloader_messages merges bootloader_message_writer and bootloader.cpp, so we can use the same library to manage bootloader_message in normal boot and recovery mode. Bug: 29582118 Change-Id: I9efdf776ef8f02b53911ff43a518e035e0c29618 (cherry picked from commit 2f272c0551f984e83bc5abaf240e0dddb38a3326)
* | | | | | | | | | | | | | | | | | | resolve merge conflicts of 434697f to masterTianjie Xu2016-10-1934-2342/+472
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I0fea3d33b97065a3bf50f8e3669c2b50166a14ed
| * | | | | | | | | | | | | | | | | | resolve merge conflicts of 6fba98c to stage-aosp-masterTianjie Xu2016-10-1934-2345/+476
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8176cf232e Change-Id: I01b34cb31604ea5caffe96ad69ab4d4d21bfe28e
| | * | | | | | | | | | | | | | | | | resolve merge conflicts of 6fba98c to stage-aosp-masterTianjie Xu2016-10-1834-2345/+476
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2fa8b85109309ec88c1f8d8def593aa65ab885d7
| | | * | | | | | | | | | | | | | | | Merge "Replace minzip with libziparchive"Tianjie Xu2016-10-1833-2322/+448
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | Replace minzip with libziparchiveTianjie Xu2016-10-1833-2322/+448
| | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up the duplicated codes that handle the zip files in bootable/recovery; and rename the library of the remaining utility functions to libotautil. Test: Update package installed successfully on angler. Bug: 19472796 Change-Id: Iea8962fcf3004473cb0322b6bb3a9ea3ca7f679e
* | | | | | | | | | | | | | | | | | Merge "Change StringValue to use std::string" am: 2b17b24ae5 am: 430b7ae469Tianjie Xu2016-10-1816-528/+505
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 13d8ee8c72 Change-Id: Ib8730f1656dfea01cb8dcb5a3ee50a40d13179ac
| * | | | | | | | | | | | | | | | | Merge "Change StringValue to use std::string" am: 2b17b24ae5Tianjie Xu2016-10-1816-528/+505
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 430b7ae469 Change-Id: Ife83f67a57629747b9804ca332265344a8350d2a
| | * | | | | | | | | | | | | | | | Merge "Change StringValue to use std::string"Tianjie Xu2016-10-1816-528/+505
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2b17b24ae5 Change-Id: Ie3c7e6993848f53893e9079bb5cffa11d9c2a3f0
| | | * | | | | | | | | | | | | | | Merge "Change StringValue to use std::string"Treehugger Robot2016-10-1816-528/+505
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | Change StringValue to use std::stringTianjie Xu2016-10-1516-528/+505
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changing the field of 'Value' in edify to std::string from char*. Meanwhile cleaning up the users of 'Value' and switching them to cpp style. Test: compontent tests passed. Bug: 31713288 Change-Id: Iec5a7d601b1e4ca40935bf1c70d325dafecec235
* | | | | | | | | | | | | | | | | | | Merge "init: move healthd to late-init" am: a01ffc73ef am: 4de11bb370Tao Bao2016-10-171-1/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f194cb3b99 Change-Id: Ib2df5497cc9e113eacbbbe92b61f7e6608055767
| * | | | | | | | | | | | | | | | | | Merge "init: move healthd to late-init" am: a01ffc73efTao Bao2016-10-171-1/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4de11bb370 Change-Id: I81b584ea1f60f7495afc85d38b5e91fae4769b98
| | * | | | | | | | | | | | | | | | | Merge "init: move healthd to late-init"Tao Bao2016-10-171-1/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a01ffc73ef Change-Id: Iab786297c3dd19c61b11364d6fb49d52fcf007a4
| | | * | | | | | | | | | | | | | | | Merge "init: move healthd to late-init"Tao Bao2016-10-171-1/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | | init: move healthd to late-initAndriy Naborskyy2016-10-111-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Starting healthd in early-init is not needed and can delay coldboot done Now healthd is starting at boot as usual service. Test: check kmsg that healthd starting after /dev/.coldboot_done Bug: 30292927 Change-Id: I367d022f5885122da49181db3db536012e83f564
* | | | | | | | | | | | | | | | | | | | resolve merge conflicts of 08d0ae9 to stage-aosp-master am: ddf293aa0cTao Bao2016-10-150-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 36415acf6a Change-Id: I8b71b0d55971f6d94ef6af59b6efa1300fe17df4
| * | | | | | | | | | | | | | | | | | | resolve merge conflicts of 08d0ae9 to stage-aosp-masterTao Bao2016-10-150-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ddf293aa0c Change-Id: Ia4fb968c0b45b584a69f28401507826f837a978d
| | * | | | | | | | | | | | | | | | | | resolve merge conflicts of 08d0ae9 to stage-aosp-masterTao Bao2016-10-150-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I4d0cc04fd5853cabdd950691dfb2e7115cb1ff17
| | | * | | | | | | | | | | | | | | | | Merge "Fix the prefix matching for uncrypt status."Treehugger Robot2016-10-151-2/+2
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | Fix the prefix matching for uncrypt status.Tao Bao2016-10-141-2/+2
| | | |/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also change its logging statement from PLOG to LOG, since android::base::StartsWith() doesn't set errno. Test: Build and reboot into recovery image. Check last_log. Change-Id: I55ac7eec24228db76a13580958b4a4330b06cf57
* | | | | | | | | | | | | | | | | | | Fix the prefix matching for uncrypt status.Tao Bao2016-10-140-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1709d22b4e Change-Id: I4d48fddb7698f45413543f806ab6ccfac350832d
| * | | | | | | | | | | | | | | | | | Fix the prefix matching for uncrypt status.Tao Bao2016-10-141-1/+1
| |/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also change its logging statement from PLOG to LOG, since android::base::StartsWith() doesn't set errno. Test: Build and reboot into recovery image. Check last_log. Change-Id: I55ac7eec24228db76a13580958b4a4330b06cf57 (cherry picked from commit ee9b95544a7af548e98f2b7a080e2eb7abaaf981) (cherry picked from commit e30a5b3a44c6c2134750e28a88efd5876a28bfac)
* | | | | | | | | | | | | | | | | | Fix the prefix matching for uncrypt status.Tao Bao2016-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also change its logging statement from PLOG to LOG, since android::base::StartsWith() doesn't set errno. Test: Build and reboot into recovery image. Check last_log. Change-Id: I55ac7eec24228db76a13580958b4a4330b06cf57 (cherry picked from commit ee9b95544a7af548e98f2b7a080e2eb7abaaf981)
* | | | | | | | | | | | | | | | | | Merge "edify: Some clean-ups to libedify." am: c5b4b71913 am: 039e9dc5ca am: bd16939bbfTao Bao2016-10-138-98/+70
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1b1a4edb4b Change-Id: Idc74e9e549fe61c8b3bb566579821660ecf459c4
| * | | | | | | | | | | | | | | | | Merge "edify: Some clean-ups to libedify." am: c5b4b71913 am: 039e9dc5caTao Bao2016-10-138-98/+70
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bd16939bbf Change-Id: Ibbbe5b4b202263e4f3a5d3e802210baf81347708
| | * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Merge "edify: Some clean-ups to libedify." am: c5b4b71913Tao Bao2016-10-138-98/+70
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 039e9dc5ca Change-Id: I0188f978c2ef1497ffbad1c3e3125fa61d11ddf5
| | | * | | | | | | | | | | | | | | | | Merge "edify: Some clean-ups to libedify."Tao Bao2016-10-138-98/+70
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c5b4b71913 Change-Id: I6ac4dfc514dfa917698268a999d8435987790302
| | | | * | | | | | | | | | | | | | | | Merge "edify: Some clean-ups to libedify."Tao Bao2016-10-138-98/+70
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | edify: Some clean-ups to libedify.Tao Bao2016-10-138-98/+70
| | | | |/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove dead declarations in expr.h: SetError(), GetError(), ClearError(). - Remove the declaration of Build() out of expr.h. - Use std::unordered_map to implement RegisterFunction() and FindFunction(); kill FinishRegistration(). - Add a testcase for calling unknown functions. Test: mmma bootable/recovery; recovery_component_test passes. Change-Id: I9af6825ae677f92b22d716a4a5682f58522af03b
* | | | | | | | | | | | | | | | | | | | Merge "updater: Kill the duplicate PrintSha1() in install.cpp." am: 19bb05dfc7 am: 3ac1995cfd am: aa9f017cebTao Bao2016-10-122-43/+55
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 998c6debca Change-Id: Ifb2e1a950c685816a70e4edfb2514319a4b03cc1
| * | | | | | | | | | | | | | | | | | | Merge "updater: Kill the duplicate PrintSha1() in install.cpp." am: 19bb05dfc7 am: 3ac1995cfdTao Bao2016-10-122-43/+55
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: aa9f017ceb Change-Id: I713aa645bdff6ff6c73f28d15b46cd642e23d1a0
| | * | | | | | | | | | | | | | | | | | Merge "updater: Kill the duplicate PrintSha1() in install.cpp." am: 19bb05dfc7Tao Bao2016-10-122-43/+55
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3ac1995cfd Change-Id: I431110e967af930aaed0e684dc9b3b7c91a25c25
| | | * | | | | | | | | | | | | | | | | Merge "updater: Kill the duplicate PrintSha1() in install.cpp."Tao Bao2016-10-122-43/+55
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 19bb05dfc7 Change-Id: I04198ff3cdfca583334eb532f83a6ecd0bfd0ad8
| | | | * | | | | | | | | | | | | | | | Merge "updater: Kill the duplicate PrintSha1() in install.cpp."Tao Bao2016-10-122-43/+55
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | | updater: Kill the duplicate PrintSha1() in install.cpp.Tao Bao2016-10-112-43/+55
| | | | |/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add a testcase for sha1_check(). Test: mmma bootable/recovery; recovery_component_test passes. Change-Id: I4d06d551a771aec84e460148544f68b247a7e721
* | | | | | | | | | | | | | | | | | | | Merge "Refactor libupdater into a seperate module." am: a7995d7581 am: f2cbf0fbe0 am: 44864a75edTao Bao2016-10-110-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 40677619d2 Change-Id: I17030f19ba6970c7943681b9f705e686ff56acfc
| * | | | | | | | | | | | | | | | | | | Merge "Refactor libupdater into a seperate module." am: a7995d7581 am: f2cbf0fbe0Tao Bao2016-10-110-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 44864a75ed Change-Id: I14f5e027f8905163100d4d5bd25855544aae787d
| | * | | | | | | | | | | | | | | | | | Merge "Refactor libupdater into a seperate module." am: a7995d7581Tao Bao2016-10-110-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f2cbf0fbe0 Change-Id: I0123851b44800e34b12e428df79259d656f960df
| | | * | | | | | | | | | | | | | | | | Merge "Refactor libupdater into a seperate module."Tao Bao2016-10-110-0/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a7995d7581 Change-Id: Ie3b643513c44abfc2a42f5544638057a903a5070
| | | | * | | | | | | | | | | | | | | | Merge "Refactor libupdater into a seperate module."Tao Bao2016-10-119-85/+196
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | Refactor libupdater into a seperate module. am: 0c7839ac14 am: cf1dbfa854 am: 8ff7cd20baTao Bao2016-10-119-85/+196
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3a01338332 Change-Id: I1d03d8107d354122edbb88a817b76c490e35210c
| * | | | | | | | | | | | | | | | | | | Refactor libupdater into a seperate module. am: 0c7839ac14 am: cf1dbfa854Tao Bao2016-10-119-85/+196
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8ff7cd20ba Change-Id: I421800ada6015970dae038ecd58c1d985f8b4b8f
| | * | | | | | | | | | | | | | | | | | Refactor libupdater into a seperate module. am: 0c7839ac14Tao Bao2016-10-119-85/+196
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cf1dbfa854 Change-Id: Ifb2c199bc32e164e5bd53f3910a35801237c4ef3
| | | * | | | | | | | | | | | | | | | | Refactor libupdater into a seperate module.Tao Bao2016-10-119-85/+196
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0c7839ac14 Change-Id: I5ff4c438daa6df248cee38b62251c78baac67a76
| | | | * | | | | | | | | | | | | | | | Refactor libupdater into a seperate module.Tao Bao2016-10-119-85/+196
| | | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So that we can write native tests for updater functions. This CL adds a testcase for getprop() function. Test: mmma bootable/recovery; Run recovery_component_test on device. Change-Id: Iff4c1ff63c5c71aded2f9686fed6b71cc298c228
* | | | | | | | | | | | | | | | | | | Merge "Update the header path for ext4_utils." am: 2bd94433f8 am: 00a9050815 am: 514dc15399Tao Bao2016-10-110-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c26e3770f6 Change-Id: Ibcf7ed88599cd997a0b240ee85900f87d88b041e
| * | | | | | | | | | | | | | | | | | Merge "Update the header path for ext4_utils." am: 2bd94433f8 am: 00a9050815Tao Bao2016-10-114-11/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 514dc15399 Change-Id: I38332f7eab24a49375ef0f410a3cd3d552749e06
| | * | | | | | | | | | | | | | | | | Merge "Update the header path for ext4_utils." am: 2bd94433f8Tao Bao2016-10-104-11/+5
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 00a9050815 Change-Id: Id897069e1ea0ad04ee7f1096c9ae36fb2b9d7974
| | | * | | | | | | | | | | | | | | | Merge "Update the header path for ext4_utils."Tao Bao2016-10-104-11/+5
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2bd94433f8 Change-Id: I6a8dbfcecbabbba26acc81ca0c704b9a7f3c63db
| | | | * | | | | | | | | | | | | | | Merge "Update the header path for ext4_utils."Tao Bao2016-10-104-11/+5
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | Update the header path for ext4_utils.Tao Bao2016-10-094-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: `mmma bootable/recovery` Change-Id: I70ccddb3ddf46bb012fdc5f632afc46ebdd5473e
* | | | | | | | | | | | | | | | | | | | Merge "Update the header path for ext4_utils."Tao Bao2016-10-104-11/+5
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | | Update the header path for ext4_utils.Tao Bao2016-10-074-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: `mmma bootable/recovery` Change-Id: I70ccddb3ddf46bb012fdc5f632afc46ebdd5473e (cherry picked from commit 3cbe1d20978dc488272e2b1ba10890a006fdfab9)
* | | | | | | | | | | | | | | | | | | | | Merge "No longer need android/log.h" am: b330559fb6 am: 7bf11aadfd am: 5ceada5beaMark Salyzyn2016-10-101-1/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b2ee79101b Change-Id: Ie1a96c43737fb4b78d79cbb28a0d43ad3bfba6e6
| * | | | | | | | | | | | | | | | | | | | Merge "No longer need android/log.h" am: b330559fb6 am: 7bf11aadfdMark Salyzyn2016-10-101-1/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5ceada5bea Change-Id: Id48d36a1a61171aa199e85f50a454229c50b72e9
| | * | | | | | | | | | | | | | | | | | | Merge "No longer need android/log.h" am: b330559fb6Mark Salyzyn2016-10-101-1/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7bf11aadfd Change-Id: I2399e35aacb6703aedf21bf352f47638720b7d1a
| | | * | | | | | | | | | | | | | | | | | Merge "No longer need android/log.h"Mark Salyzyn2016-10-101-1/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b330559fb6 Change-Id: Ie2b65008349d874eb96f40da24b1333e7e62e7da
| | | | * | | | | | | | | | | | | | | | | Merge "No longer need android/log.h"Mark Salyzyn2016-10-101-1/+0
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|/ / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | No longer need android/log.hMark Salyzyn2016-10-071-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: compile Bug: 31992412 Change-Id: I5156590bfc94e46e9d282c197c3dd8c4bbd9e855
* | | | | | | | | | | | | | | | | | | | | resolve merge conflicts of 09ab9a6 to nyc-mr1-dev-plus-aospTao Bao2016-10-090-0/+0
|\| | | | | | | | | | | | | | | | | | | | | |_|_|_|_|/ / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e708954c8c Change-Id: I06343fdf7d7173e689d136bacb382fde3e3873b9
| * | | | | | | | | | | | | | | | | | | resolve merge conflicts of 09ab9a6 to nyc-mr1-dev-plus-aospTao Bao2016-10-090-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ifc0b085d8384f373ffffc14abd907227961efdf9
| | * | | | | | | | | | | | | | | | | | Merge "Disable the meaningless parts of the UI for A/B." am: aa4924cab1Tao Bao2016-10-092-14/+44
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8477a03a4a Change-Id: I55c5febd094ada3a1147ab3ebefc866108ce33e8
| | | * | | | | | | | | | | | | | | | | Merge "Disable the meaningless parts of the UI for A/B."Tao Bao2016-10-092-14/+44
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: aa4924cab1 Change-Id: Iaba41f4d5a4581053813beb99366cac4068725bb
| | | | * | | | | | | | | | | | | | | | Merge "Disable the meaningless parts of the UI for A/B."Tao Bao2016-10-092-14/+44
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | Disable the meaningless parts of the UI for A/B.Elliott Hughes2016-10-092-14/+44
| | | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/28748484 Test: mmma bootable/recovery Change-Id: Ie86a265f4699503471e7c717d65677a916dbd25b (cherry picked from commit 01fcbe160bd49891c0680b80c5688cd4feb2adbc)
* | | | | | | | | | | | | | | | | | | resolve merge conflicts of 713ad36 to masterTao Bao2016-10-050-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I493df6f84005af600d92c6cb3df58de53a5c2d55
| * | | | | | | | | | | | | | | | | | Merge "edify: Move State.script and State.errmsg to std::string." am: 8810634773 am: 6674f22a2fTao Bao2016-10-055-86/+55
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e68d829f74 Change-Id: I8d9b94ca96b68a80f1418287bde4bef26ce0068a
| | * | | | | | | | | | | | | | | | | Merge "edify: Move State.script and State.errmsg to std::string." am: 8810634773Tao Bao2016-10-055-86/+55
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6674f22a2f Change-Id: I7da4df259a8155fbdab6e696fab4ddfb45cb0fbc
| | | * | | | | | | | | | | | | | | | Merge "edify: Move State.script and State.errmsg to std::string."Tao Bao2016-10-055-86/+55
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8810634773 Change-Id: Id8e786de6fe76287b598dfcfbf962eba5d9ebde2
| | | | * | | | | | | | | | | | | | | Merge "edify: Move State.script and State.errmsg to std::string."Treehugger Robot2016-10-055-86/+55
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | edify: Move State.script and State.errmsg to std::string.Tao Bao2016-10-045-86/+55
| | | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This way we kill a few strdup() and free() calls. Test: 1. recovery_component_test still passes; 2. Applying an update with the new updater works; 3. The error code in a script with abort("E310: xyz") is recorded into last_install correctly. Change-Id: Ibda4da5937346e058a0d7cc81764d6f02920010a
* | | | | | | | | | | | | | | | | | | edify: Move State.script and State.errmsg to std::string.Tao Bao2016-10-055-86/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This way we kill a few strdup() and free() calls. Test: 1. recovery_component_test still passes; 2. Applying an update with the new updater works; 3. The error code in a script with abort("E310: xyz") is recorded into last_install correctly. Change-Id: Ibda4da5937346e058a0d7cc81764d6f02920010a (cherry picked from commit 59dcb9cbea8fb70ab933fd10d35582b08cd13f37)
* | | | | | | | | | | | | | | | | | | Merge "recovery: drop log/logger.h" am: 38b923ff6c am: 7cf7e6ce4f am: 0467a905ccMark Salyzyn2016-10-042-2/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 04f3fad29a Change-Id: I69945b52c9889884bf356a7693947a489a1ae382
| * | | | | | | | | | | | | | | | | | Merge "recovery: drop log/logger.h" am: 38b923ff6c am: 7cf7e6ce4fMark Salyzyn2016-10-042-2/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0467a905cc Change-Id: Idf6e3b08ac2f6209856bbad010a5f48197124597
| | * | | | | | | | | | | | | | | | | Merge "recovery: drop log/logger.h" am: 38b923ff6cMark Salyzyn2016-10-042-2/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7cf7e6ce4f Change-Id: Ic62c9145a6d891b2e9acd871c0e21007e2ecb6f6
| | | * | | | | | | | | | | | | | | | Merge "recovery: drop log/logger.h"Mark Salyzyn2016-10-042-2/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 38b923ff6c Change-Id: I92ddb6d9adef3f4a25588c76bade058914952b06
| | | | * | | | | | | | | | | | | | | Merge "recovery: drop log/logger.h"Mark Salyzyn2016-10-042-2/+0
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | recovery: drop log/logger.hMark Salyzyn2016-10-042-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | private/android_logger.h contains all we need. Test: compile Bug: 26552300 Bug: 31289077 Bug: 31456426 Change-Id: I6714d730372dc81f784e7f9dfee8a33848643a5d
* | | | | | | | | | | | | | | | | | | | Merge "edify: Move the testcases to gtest." am: 0bc2df1696 am: 6fbed10fa5 am: bace857dbbTao Bao2016-10-045-227/+267
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1f19e82930 Change-Id: Iced6882f71a74d3e65045f8ced73edb58493555d
| * | | | | | | | | | | | | | | | | | | Merge "edify: Move the testcases to gtest." am: 0bc2df1696 am: 6fbed10fa5Tao Bao2016-10-045-227/+267
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bace857dbb Change-Id: I181613c85d81366fb517ce4851256cb1a637af15
| | * | | | | | | | | | | | | | | | | | Merge "edify: Move the testcases to gtest." am: 0bc2df1696Tao Bao2016-10-045-227/+267
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6fbed10fa5 Change-Id: I1966d1fff2972fae1b4c9a1fe6fdbc07c34dcd65
| | | * | | | | | | | | | | | | | | | | Merge "edify: Move the testcases to gtest."Tao Bao2016-10-045-227/+267
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0bc2df1696 Change-Id: I6c61d04cb7d2b47ef903d838ead453f51eb91ea7
| | | | * | | | | | | | | | | | | | | | Merge "edify: Move the testcases to gtest."Tao Bao2016-10-045-227/+267
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | edify: Move the testcases to gtest.Tao Bao2016-10-045-227/+267
| | | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now they live in tests/component/edify_test.cpp. Also rename edify/main.cpp to edify/edify_parser.cpp. It becomes a host-side debugging tool that validates the input edify script. However, it supports edify builtin functions only and doesn't recognize the ones defined via updater. Test: recovery_component_test passes on device. Change-Id: Ib94a787bf15098a9cc078d256b6a6dc96ff12b2e
* | | | | | | | | | | | | | | | | | | Merge "Turn on -Werror for recovery" into nyc-mr1-dev-plus-aospTianjie Xu2016-09-300-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 209e5acf4a Change-Id: Ie13be805792a3433d58c2805f8325dfe78795bd4
| * | | | | | | | | | | | | | | | | | Merge "Turn on -Werror for recovery" into nyc-mr1-dev-plus-aospTianjie Xu2016-09-3011-13/+27
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
* | \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Turn on -Werror for recoveryTianjie Xu2016-09-3011-13/+27
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 17e316cce0 Change-Id: Ia0e1948491edf7cca8b64d7e7f0cac91314c2025
| * | | | | | | | | | | | | | | | | | | Turn on -Werror for recoveryTianjie Xu2016-09-3011-13/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also remove the 0xff comparison when validating the bootloader message fields. As the fields won't be erased to 0xff after we remove the MTD support. Bug: 28202046 Test: The recovery folder compiles for aosp_x86-eng Change-Id: Ibb30ea1b2b28676fb08c7e92a1e5f7b6ef3247ab (cherry picked from commit 7aa88748f6ec4e53333d1a15747bc44826ccc410)
* | | | | | | | | | | | | | | | | | | | Merge "Turn on -Werror for recovery" am: 695ef7cacc am: 5269808bb0 am: dbde5cf1d5 -s oursTianjie Xu2016-09-300-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8c403082d6 Change-Id: I546d2fd12e3c57fee7ebcf8d3e3a5b56b57f1163
| * | | | | | | | | | | | | | | | | | | Merge "Turn on -Werror for recovery" am: 695ef7cacc am: 5269808bb0Tianjie Xu2016-09-300-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / | |/| / / / / / / / / / / / / / / / / / | | |/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dbde5cf1d5 -s ours Change-Id: I0649c3db276212804118ab4a6d7ced150585af91
| | * | | | | | | | | | | | | | | | | Merge "Turn on -Werror for recovery" am: 695ef7caccTianjie Xu2016-09-3010-13/+28
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5269808bb0 Change-Id: I84ce95dc0365925535da0d5bfb9397c5b23bd1af
| | | * | | | | | | | | | | | | | | | Merge "Turn on -Werror for recovery"Tianjie Xu2016-09-3010-13/+28
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 695ef7cacc Change-Id: If8cb1fd9470c4ae6798dc4ecf1707c5eb40b877e
| | | | * | | | | | | | | | | | | | | Merge "Turn on -Werror for recovery"Tianjie Xu2016-09-3010-13/+28
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | Turn on -Werror for recoveryTianjie Xu2016-09-3010-13/+28
| | | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also remove the 0xff comparison when validating the bootloader message fields. As the fields won't be erased to 0xff after we remove the MTD support. Bug: 28202046 Test: The recovery folder compiles for aosp_x86-eng Change-Id: Ibb30ea1b2b28676fb08c7e92a1e5f7b6ef3247ab
* | | | | | | | | | | | | | | | | | | Merge "Report uncrypt errors in details" into nyc-mr1-dev-plus-aospTianjie Xu2016-09-290-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4c3f6ab8f7 Change-Id: I50e5c8484768c10604bd78ce7bba5c2e83bc6f04
| * | | | | | | | | | | | | | | | | | Merge "Report uncrypt errors in details" into nyc-mr1-dev-plus-aospTreeHugger Robot2016-09-293-25/+14
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
* | \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Report uncrypt errors in detailsTianjie Xu2016-09-293-25/+14
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 68fc81e860 Change-Id: I57eff7b0aaa388c32dc8e99318e68ca25ff5c02d
| * | | | | | | | | | | | | | | | | | | Report uncrypt errors in detailsTianjie Xu2016-09-293-25/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the error codes for uncrypt and report the failure details in uncrypt_status. Test: uncrypt_error logs correctly in last_install Bug: 31603820 Change-Id: I8e0de845ce1707b6f8f5ae84564c5e93fd5f5ef5 (cherry picked from commit 0c68675f5ae80cd669e0bf014a69689b6fe08eee)
* | | | | | | | | | | | | | | | | | | | DO NOT MERGE Report uncrypt errors in details am: 37d7d67ca2 am: 4c53af080d -s oursTianjie Xu2016-09-290-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2eea42f723 -s ours Change-Id: Ie6d9a47705e023565ff9fed8676be0ca63df68a8
| * | | | | | | | | | | | | | | | | | | DO NOT MERGE Report uncrypt errors in details am: 37d7d67ca2Tianjie Xu2016-09-290-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / | |/| | | | / / / / / / / / / / / / / / | | | |_|_|/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4c53af080d -s ours Change-Id: I16ccd19d5b430c1854e5544c9c7d50be534b970f
| | * | | | | | | | | | | | | | | | | DO NOT MERGE Report uncrypt errors in detailsTianjie Xu2016-09-293-40/+75
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 37d7d67ca2 Change-Id: I4da910cde3f1a84b9dfb5839a43b00818a942dbd
| | | * | | | | | | | | | | | | | | | DO NOT MERGE Report uncrypt errors in detailsTianjie Xu2016-09-293-40/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the error codes for uncrypt and report the failure details in uncrypt_status. Test: uncrypt_error logs correctly in last_install Bug: 31603820 Change-Id: I8e0de845ce1707b6f8f5ae84564c5e93fd5f5ef5 (cherry picked from commit da44cf18f3ce4bbffa85ad0a50bb25e9cb54a86d)
* | | | | | | | | | | | | | | | | | | Merge "Report uncrypt errors in details" am: af8b9363c6 am: 7582609d61 am: fc887a8fbaTianjie Xu2016-09-273-41/+88
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b0d0ee3c7d Change-Id: Ie44169accea9196457d7cae696836c3a6fe14c8e
| * | | | | | | | | | | | | | | | | | Merge "Report uncrypt errors in details" am: af8b9363c6 am: 7582609d61Tianjie Xu2016-09-273-41/+88
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fc887a8fba Change-Id: I5e83be10f4443c8b107821975b3506381fcbdf0c
| | * | | | | | | | | | | | | | | | | Merge "Report uncrypt errors in details" am: af8b9363c6Tianjie Xu2016-09-273-41/+88
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7582609d61 Change-Id: Idbaf422f605c690fe2f2ea120d10e4e37342b5e9
| | | * | | | | | | | | | | | | | | | Merge "Report uncrypt errors in details"Tianjie Xu2016-09-273-41/+88
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|/ / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: af8b9363c6 Change-Id: I5790f1c3ce902edf7bf9025e445b043c93036a30
| | | | * | | | | | | | | | | | | | | Merge "Report uncrypt errors in details"Treehugger Robot2016-09-273-41/+88
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | Report uncrypt errors in detailsTianjie Xu2016-09-273-41/+88
| | | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the error codes for uncrypt and report the failure details in uncrypt_status. Test: uncrypt_error logs correctly in last_install Bug: 31603820 Change-Id: I8e0de845ce1707b6f8f5ae84564c5e93fd5f5ef5
* | | | | | | | | | | | | | | | | | | resolve merge conflicts of 64b92df to nyc-mr1-dev-plus-aospTao Bao2016-09-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 772153b3c7 Change-Id: I1fcc0375b08dc776a9cc3f122b071d34241e29c8
| * | | | | | | | | | | | | | | | | | resolve merge conflicts of 64b92df to nyc-mr1-dev-plus-aospTao Bao2016-09-270-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I1b076d3f9b82380c74e66fe95ee8e8cf5b6eebf7
| | * | | | | | | | | | | | | | | | | DO NOT MERGE Duplicate the last_install content into last_log.Tao Bao2016-09-272-39/+41
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a8c0d0b43a Change-Id: I6ba873dcf7b833daaf6ca74d49a6410be3e4fbcb
| | | * | | | | | | | | | | | | | | | DO NOT MERGE Duplicate the last_install content into last_log.Tao Bao2016-09-272-39/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently we save the OTA metrics in last_install, which keeps the data for the _last_ install only. This CL logs the same content into last_log so that we keep the metrics for every install. Bug: 31607469 Test: Apply an update (via OTA and sideload) and check last_log and last_install. Change-Id: Id8f174d79534fddc9f06d72a4e69b2b1d8ab186c (cherry picked from commit f4885adc189f246ac3c651aa5cb2e74a240f3f1e)
* | | | | | | | | | | | | | | | | | | Merge "Duplicate the last_install content into last_log." am: 95afc912fb am: 5ac819a51f am: c064b01898Tao Bao2016-09-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4b17a18f11 Change-Id: I723858e18b516f0b77fa6d5c78dec73556c23e13
| * | | | | | | | | | | | | | | | | | Merge "Duplicate the last_install content into last_log." am: 95afc912fb am: 5ac819a51fTao Bao2016-09-270-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c064b01898 Change-Id: Ibf8e3f164edf4cf90d87a4c608f269ca697d3ca4
| | * | | | | | | | | | | | | | | | | Merge "Duplicate the last_install content into last_log." am: 95afc912fbTao Bao2016-09-270-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5ac819a51f Change-Id: I9449ecabc6b367fe71244fc8751993d89e2b1dc7
| | | * | | | | | | | | | | | | | | | Merge "Duplicate the last_install content into last_log."Tao Bao2016-09-270-0/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|/ / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 95afc912fb Change-Id: Ib3838e9d2f3d6a9a15872e9a5163bf140ff2f3d5
| | | | * | | | | | | | | | | | | | | Merge "Duplicate the last_install content into last_log."Tao Bao2016-09-272-38/+42
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
* | | | | | | | | | | | | | | | | | | | resolve merge conflicts of bfee61b to nyc-mr1-dev-plus-aospTao Bao2016-09-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b0aea15c03 Change-Id: I827025338d03359e4202233cc072829655b7c2b3
| * | | | | | | | | | | | | | | | | | | resolve merge conflicts of bfee61b to nyc-mr1-dev-plus-aospTao Bao2016-09-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I30660f468c9b4d99ec51d5973e3733d892cb763c
| | * | | | | | | | | | | | | | | | | | Duplicate the last_install content into last_log. am: f4885adc18Tao Bao2016-09-272-38/+42
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 87f4edf467 Change-Id: I7c28f25f07d0f1c1df41e771c28baaa813b0a44a
| | | * | | | | | | | | | | | | | | | | Duplicate the last_install content into last_log.Tao Bao2016-09-272-38/+42
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f4885adc18 Change-Id: I8f197d09af405254a0b07f0ace4e5149736ca0ad
| | | | * | | | | | | | | | | | | | | | Duplicate the last_install content into last_log.Tao Bao2016-09-262-38/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently we save the OTA metrics in last_install, which keeps the data for the _last_ install only. This CL logs the same content into last_log so that we keep the metrics for every install. Bug: 31607469 Test: Apply an update (via OTA and sideload) and check last_log and last_install. Change-Id: Id8f174d79534fddc9f06d72a4e69b2b1d8ab186c
* | | | | | | | | | | | | | | | | | | | Merge "Duplicate the last_install content into last_log." into nyc-mr1-dev-plus-aospTao Bao2016-09-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e8d7b84a25 Change-Id: Ic9a32d066ce0abbb4e895624bc977d311fe2cdb5
| * | | | | | | | | | | | | | | | | | | Merge "Duplicate the last_install content into last_log." into nyc-mr1-dev-plus-aospTao Bao2016-09-272-38/+41
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
* | \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Duplicate the last_install content into last_log.Tao Bao2016-09-272-38/+41
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: badaac45fe Change-Id: Iabe0a6f9530e671159e64dbacf455b57ac9eda32
| * | | | | | | | | | | | | | | | | | | | Duplicate the last_install content into last_log.Tao Bao2016-09-262-38/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently we save the OTA metrics in last_install, which keeps the data for the _last_ install only. This CL logs the same content into last_log so that we keep the metrics for every install. Bug: 31607469 Test: Apply an update (via OTA and sideload) and check last_log and last_install. Change-Id: Id8f174d79534fddc9f06d72a4e69b2b1d8ab186c (cherry picked from commit f4885adc189f246ac3c651aa5cb2e74a240f3f1e)
* | | | | | | | | | | | | | | | | | | | | resolve merge conflicts of d5c7d6b to nyc-mr1-dev-plus-aospElliott Hughes2016-09-260-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 130f6c86f5 Change-Id: I78fc8627c3fc3701f1a34ae1038d96a7df2e6e18
| * | | | | | | | | | | | | | | | | | | | resolve merge conflicts of d5c7d6b to nyc-mr1-dev-plus-aospElliott Hughes2016-09-268-49/+40
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / / | |/| / / / / / / / / / / / / / / / / / / | | |/ / / / / / / / / / / / / / / / / / Change-Id: Ia041044547351a3e65b647bb9913aa18c7d2c97c
| | * | | | | | | | | | | | | | | | | | Merge "Switch to <android-base/properties.h>." am: cc02f9652fElliott Hughes2016-09-268-49/+40
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: be9a94fd17 Change-Id: Ib5e4fb8d20e04df7b592af96d898afbbc6846620
| | | * | | | | | | | | | | | | | | | | Merge "Switch to <android-base/properties.h>."Elliott Hughes2016-09-268-49/+40
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cc02f9652f Change-Id: I5f0d55f980055cee3c7ae477d1bdbd1d05b97dc1
| | | | * | | | | | | | | | | | | | | | Merge "Switch to <android-base/properties.h>."Elliott Hughes2016-09-268-49/+40
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | Switch to <android-base/properties.h>.Elliott Hughes2016-09-268-49/+40
| | | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/23102347 Test: boot into recovery. Change-Id: Ib2ca560f1312961c21fbaa294bb068de19cb883e Merged-In: Ib2ca560f1312961c21fbaa294bb068de19cb883e
* | | | | | | | | | | | | | | | | | | Fail gracefully when we fail to fork the update binaryMatthew Bouyack2016-09-261-0/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c8db481780 Change-Id: I68691fb591b5819afe39e4792f9c26cc08eb87da
| * | | | | | | | | | | | | | | | | | Fail gracefully when we fail to fork the update binaryMatthew Bouyack2016-09-211-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change was original made in cw-f-dev but caused failures in nyc-mr1-dev-plus-aosp due to lack of support for 'LOGE' This version of the change uses the new 'LOG(ERROR)' style logging instead. See bug b/31395655 Test: attempt a memory intensive incremental OTA on a low-memory device Change-Id: Ia87d989a66b0ce3f48e862abf9b9d6943f70e554
* | | | | | | | | | | | | | | | | | | Switch to <android-base/properties.h>.Elliott Hughes2016-09-248-49/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/23102347 Test: boot into recovery. Change-Id: Ib2ca560f1312961c21fbaa294bb068de19cb883e
* | | | | | | | | | | | | | | | | | | Revert "DO NOT MERGE Fail gracefully when we fail to fork the update binary am: de1b53d067"Matthew Bouyack2016-09-210-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 54881abb52 -s ours Change-Id: I376f9d0d81dbe2304a7582fd3643307c0a19e3f7
| * | | | | | | | | | | | | | | | | | Revert "DO NOT MERGE Fail gracefully when we fail to fork the update binary am: de1b53d067"Matthew Bouyack2016-09-211-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 78563fdf78861884f300a6a874d2a0306f1eb002. Change-Id: I1ea4956a9843130aa41f2f7bc011c72e64fd7b62
* | | | | | | | | | | | | | | | | | | DO NOT MERGE Fail gracefully when we fail to fork the update binary am: de1b53d067Matthew Bouyack2016-09-210-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 78563fdf78 -s ours Change-Id: I884f148f0c1e18281c4ed394b1b6be8e7a0a7f78
| * | | | | | | | | | | | | | | | | | DO NOT MERGE Fail gracefully when we fail to fork the update binaryMatthew Bouyack2016-09-201-0/+8
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: de1b53d067 Change-Id: Ic7a42220ed7e842dad1d5d2aacdd12253bd5ad84
| | * | | | | | | | | | | | | | | | | DO NOT MERGE Fail gracefully when we fail to fork the update binaryMatthew Bouyack2016-09-201-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See bug b/31395655 Change-Id: Ic5a046bc80ea88d7eb52755838bdbf4e1e47da50
* | | | | | | | | | | | | | | | | | | Check corruption when reading uncrypt_status file am: 41a3fd4e20 am: 914f39d2d3Tianjie Xu2016-09-140-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cc94f81436 Change-Id: I8e1df8a6483f6afdf6a2be4cadd7fcd0a3ba1bfc
| * | | | | | | | | | | | | | | | | | Check corruption when reading uncrypt_status file am: 41a3fd4e20Tianjie Xu2016-09-140-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 914f39d2d3 Change-Id: Ie8056fe4dfccfd44e740f6f3ba4621fbc8f5142b
| | * | | | | | | | | | | | | | | | | Check corruption when reading uncrypt_status fileTianjie Xu2016-09-141-0/+2
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 41a3fd4e20 Change-Id: I19d9b6605d75d636eef0c770979b9f71c2e6a7f2
| | | * | | | | | | | | | | | | | | | Check corruption when reading uncrypt_status fileTianjie Xu2016-09-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 31383361 Change-Id: I0de920916da213528d73b742e4823b4a98c63ea1 (cherry picked from commit 1c1864f321b129c81883ed527b1da8c69661e51f)
* | | | | | | | | | | | | | | | | | | Merge "Check corruption when reading uncrypt_status file" am: 3cf815a6a9 am: 40bae5e1c6 am: 1d55666106Tianjie Xu2016-09-141-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8dd5b2a2cc Change-Id: I0e82c7d7e914055df504a5293aedd49db47d9d22
| * | | | | | | | | | | | | | | | | | Merge "Check corruption when reading uncrypt_status file" am: 3cf815a6a9 am: 40bae5e1c6Tianjie Xu2016-09-141-0/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1d55666106 Change-Id: I2081d6803377a7bf26175a55b3b5defb7c9d09d1
| | * | | | | | | | | | | | | | | | | Merge "Check corruption when reading uncrypt_status file" am: 3cf815a6a9Tianjie Xu2016-09-141-0/+2
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 40bae5e1c6 Change-Id: I098148f53065e7420e500db66f1ada0d0730a0d6
| | | * | | | | | | | | | | | | | | | Merge "Check corruption when reading uncrypt_status file"Tianjie Xu2016-09-141-0/+2
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|/ / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3cf815a6a9 Change-Id: Ic7404abd3026a8faffaac14a20c90ebf2ef10106
| | | | * | | | | | | | | | | | | | | Merge "Check corruption when reading uncrypt_status file"Treehugger Robot2016-09-141-0/+2
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | Check corruption when reading uncrypt_status fileTianjie Xu2016-09-131-0/+2
| | | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 31383361 Change-Id: I0de920916da213528d73b742e4823b4a98c63ea1
* | | | | | | | | | | | | | | | | | | Merge "Have gr_init_font alloc memory for the font" into cw-f-dev am: 7a97733f7aDamien Bargiacchi2016-09-130-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b3d92f0cf6 Change-Id: Ic1e4374330bfa376746574f0977bf0dfbb7937ab
| * | | | | | | | | | | | | | | | | | Merge "Have gr_init_font alloc memory for the font" into cw-f-devDamien Bargiacchi2016-09-130-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7a97733f7a Change-Id: I24e0dae51d531adf51d8727d42ac69dd37290a03
| | * | | | | | | | | | | | | | | | | Merge "Have gr_init_font alloc memory for the font" into cw-f-devDamien Bargiacchi2016-09-132-8/+16
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
* | | | | | | | | | | | | | | | | | | | Have gr_init_font alloc memory for the font am: d00f5eb63aDamien Bargiacchi2016-09-132-8/+16
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8568d7e558 Change-Id: I9a554afd7d8c9481d3273a5585e66bc9214f4592
| * | | | | | | | | | | | | | | | | | | Have gr_init_font alloc memory for the fontDamien Bargiacchi2016-09-132-8/+16
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d00f5eb63a Change-Id: Ic5394da1aff31adb7dda5160414a4831204fddc2
| | * | | | | | | | | | | | | | | | | | Have gr_init_font alloc memory for the fontDamien Bargiacchi2016-09-092-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8ccf369d52011bc5d07d8e041fe558ce734a78fc
* | | | | | | | | | | | | | | | | | | | save uncrypt status to last_install am: e16e799dfd am: 4769f209dcTianjie Xu2016-09-132-0/+34
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 707583a4ab Change-Id: I22b520ceaea408cad4e267d5a87c21ec80cd5e1d
| * | | | | | | | | | | | | | | | | | | save uncrypt status to last_install am: e16e799dfdTianjie Xu2016-09-132-0/+34
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4769f209dc Change-Id: Ic9056d4af518df3747743ec6b2886fa437029395
| | * | | | | | | | | | | | | | | | | | save uncrypt status to last_installTianjie Xu2016-09-132-0/+34
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e16e799dfd Change-Id: I0cac4258690c9ab6a6122a9e67c8453050aabcfc
| | | * | | | | | | | | | | | | | | | | save uncrypt status to last_installTianjie Xu2016-09-132-0/+34
| | | | |_|_|_|/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Save the uncrypt time cost to /cache/recovery/uncrypt_status. Recovery reads the file and saves its contents to last_install. Bug: 31383361 Test: Tested on angler and uncrypt_time reports correctly. (cherry picked from commit fe16b5ccaf80f6e04d5b722c37c1abd70457ad28) Change-Id: Id69681a35c7eb2f0eb21b48e3616dcda82ce41b8
* | | | | | | | | | | | | | | | | | | Merge "save uncrypt status to last_install" am: cdf509cce2 am: 6048138e10 am: 86ea1724ae -s oursTianjie Xu2016-09-130-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5a6e719176 Change-Id: Ic26c0844a97f25a809c3b413338caff3fa03d641
| * | | | | | | | | | | | | | | | | | Merge "save uncrypt status to last_install" am: cdf509cce2 am: 6048138e10Tianjie Xu2016-09-130-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 86ea1724ae -s ours Change-Id: I5d55f4e63e1ec05e6bb612dd78e9caa731727843
| | * | | | | | | | | | | | | | | | | Merge "save uncrypt status to last_install" am: cdf509cce2Tianjie Xu2016-09-132-1/+34
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6048138e10 Change-Id: I6fa2612bc1ea1fc706a5ded855c9296b4e794009
| | | * | | | | | | | | | | | | | | | Merge "save uncrypt status to last_install"Tianjie Xu2016-09-132-1/+34
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|/ / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cdf509cce2 Change-Id: I4ef51a1d2c75f42c31f419e68ed616838a3f8ead
| | | | * | | | | | | | | | | | | | | Merge "save uncrypt status to last_install"Tianjie Xu2016-09-132-1/+34
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | save uncrypt status to last_installTianjie Xu2016-09-132-1/+34
| | | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Save the uncrypt time cost to /cache/recovery/uncrypt_status. Recovery reads the file and saves its contents to last_install. Bug: 31383361 Test: Tested on angler and uncrypt_time reports correctly. Change-Id: I5cd3f7b6ca069d69086d09acfea8fc4f1215c833 Merged-In: I5cd3f7b6ca069d69086d09acfea8fc4f1215c833
* | | | | | | | | | | | | | | | | | | resolve merge conflicts of ad8b5a6 to nyc-mr1-dev-plus-aospElliott Hughes2016-09-102-54/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bd76bb0aa8 Change-Id: Iff135a00681ab237d81726f884ec6ba007703c9e
| * | | | | | | | | | | | | | | | | | resolve merge conflicts of ad8b5a6 to nyc-mr1-dev-plus-aospElliott Hughes2016-09-092-54/+6
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib1453d1bf3c6b83ef47a383d9d171b1059240477
| | * | | | | | | | | | | | | | | | | Remove duplicate thread loopDamien Bargiacchi2016-09-092-54/+6
| | | |_|_|_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes animation running at 2x speed Change-Id: Ieec353097b6eee1cf40530e6f4f1e69927d2bc98
* | | | | | | | | | | | | | | | | | Remove debug log statement; fix build am: 43d186021aDamien Bargiacchi2016-09-081-2/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a09b65adae Change-Id: I77cb5b4d5262f236a237c5f82a92a7876a9dfccd
| * | | | | | | | | | | | | | | | | Remove debug log statement; fix buildDamien Bargiacchi2016-09-081-2/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 43d186021a Change-Id: Iae1fedc578f243eddb9fa8ad9e86fd82f009a958
| | * | | | | | | | | | | | | | | | Remove debug log statement; fix buildDamien Bargiacchi2016-09-081-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ief92ec99d902ed58a48be9c2486cb99fdb184d7b
* | | | | | | | | | | | | | | | | | Remove duplicate methods and variables from WearRecoveryUI am: 5e7cfb9af6Damien Bargiacchi2016-09-084-334/+148
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 49e2aeb353 Change-Id: I208cec1dad19ae77fda54b17286ba8e115b262df
| * | | | | | | | | | | | | | | | | Remove duplicate methods and variables from WearRecoveryUIDamien Bargiacchi2016-09-084-334/+148
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5e7cfb9af6 Change-Id: I0f4dda0f92dcb6b3a230d2ad5d26f9855acb8c82
| | * | | | | | | | | | | | | | | | Remove duplicate methods and variables from WearRecoveryUIDamien Bargiacchi2016-09-074-334/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Copy pasta is never as delicious as ones hopes. Also fix the Pike not rendering recovery bug. Change-Id: I903da7da436e3347a22ff51633e8a0f28fea2c46
* | | | | | | | | | | | | | | | | | Merge "Switch recovery to libbase logging" am: 61590bbf0d am: c5becf0ef8 am: ec6a47ae46 -s oursTianjie Xu2016-09-020-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ef674454a1 Change-Id: I0eba33f1c585254315cdcf4bbad0a6e70d4c4024
| * | | | | | | | | | | | | | | | | Merge "Switch recovery to libbase logging" am: 61590bbf0d am: c5becf0ef8Tianjie Xu2016-09-020-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ec6a47ae46 -s ours Change-Id: Ib30bcd792f0519dc92b56d90e19adfaa71ecb5b9
| | * | | | | | | | | | | | | | | | Merge "Switch recovery to libbase logging" am: 61590bbf0dTianjie Xu2016-09-0222-512/+323
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c5becf0ef8 Change-Id: I4c856d31d30173e2a97edbe3ecaa14cb7279c567
| | | * | | | | | | | | | | | | | | Merge "Switch recovery to libbase logging"Tianjie Xu2016-09-0222-512/+323
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 61590bbf0d Change-Id: I246ff0e75b0610abeedf21d3c3b1a9849a68856b
| | | | * | | | | | | | | | | | | | Merge "Switch recovery to libbase logging"Tianjie Xu2016-09-0222-512/+323
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | Switch recovery to libbase loggingTianjie Xu2016-09-0122-512/+323
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up the recovery image and switch to libbase logging. Bug: 28191554 Change-Id: Icd999c3cc832f0639f204b5c36cea8afe303ad35 Merged-In: Icd999c3cc832f0639f204b5c36cea8afe303ad35
* | | | | | | | | | | | | | | | | | | Fix a typo of variable name in install.cppTianjie Xu2016-09-021-6/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 073451ae21 Change-Id: I3ff8bcdac3829508e6a6887f237ce032ae761784
| * | | | | | | | | | | | | | | | | | Fix a typo of variable name in install.cppTianjie Xu2016-09-021-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I42057bc2fb5096ce009fe6e4b787bc9082cd572f
* | | | | | | | | | | | | | | | | | | Switch recovery to libbase loggingTianjie Xu2016-09-020-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c21edd4654 Change-Id: I957b5e33274a3fdaf3ba83be28c8505dd07da1e2
| * | | | | | | | | | | | | | | | | | Switch recovery to libbase loggingTianjie Xu2016-09-0120-546/+352
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up the recovery image and switch to libbase logging. Bug: 28191554 Change-Id: Icd999c3cc832f0639f204b5c36cea8afe303ad35 (cherry picked from commit 747781433fb01f745529c7e9dd97c5599070ad0d)
* | | | | | | | | | | | | | | | | | | Merge "Check an edge case when read(2) returns 0" am: 3202b8faf4 am: 852ae8d0fb am: 0ae9d80082Tianjie Xu2016-09-013-8/+12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 28f6c43db5 Change-Id: I8fb1470e0f7e675c205bffe95c4fb9d0f202e4ed
| * | | | | | | | | | | | | | | | | | Merge "Check an edge case when read(2) returns 0" am: 3202b8faf4 am: 852ae8d0fbTianjie Xu2016-09-013-8/+12
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0ae9d80082 Change-Id: Ia1fbd7e0352bb34a835e2e68593c464b555f41df
| | * | | | | | | | | | | | | | | | | Merge "Check an edge case when read(2) returns 0" am: 3202b8faf4Tianjie Xu2016-09-013-8/+12
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 852ae8d0fb Change-Id: I1ff21b583748136119ee98137c13fa3ee7a0ecc7
| | | * | | | | | | | | | | | | | | | Merge "Check an edge case when read(2) returns 0"Tianjie Xu2016-09-013-8/+12
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3202b8faf4 Change-Id: I7d748b9f13c0f03f195f943cb3f5afa57c80296e
| | | | * | | | | | | | | | | | | | | Merge "Check an edge case when read(2) returns 0"Treehugger Robot2016-09-013-8/+12
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | Check an edge case when read(2) returns 0Tianjie Xu2016-09-013-8/+12
| | | | |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We might end up in an infinite loop if read(2) reached EOF unexpectedly. The problematic code in uncrypt mentioned in the bug has been fixed by switching to libbase ReadFully(). So I grepped through the recovery code and fixed some other occurences of the issue. Bug: 31073201 Change-Id: Ib867029158ba23363b8f85d61c25058a635c5a6b
* | | | | | | | | | | | | | | | | | Switch recovery to libbase loggingTianjie Xu2016-09-0120-545/+351
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up the recovery image and switch to libbase logging. Bug: 28191554 Change-Id: Icd999c3cc832f0639f204b5c36cea8afe303ad35
* | | | | | | | | | | | | | | | | | Merge "minadbd: rename adb_server_main to minadbd_main." am: 818394869d am: aad4cef0f3 am: a331d85806Josh Gao2016-08-304-3/+28
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1d873510ff Change-Id: Ibd3e787d8593b0a484ffa46ee5f7292828a9d128
| * | | | | | | | | | | | | | | | | Merge "minadbd: rename adb_server_main to minadbd_main." am: 818394869d am: aad4cef0f3Josh Gao2016-08-304-3/+28
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a331d85806 Change-Id: Iff2e4199993338425af704dfb885e35884e2bf4f
| | * | | | | | | | | | | | | | | | Merge "minadbd: rename adb_server_main to minadbd_main." am: 818394869dJosh Gao2016-08-304-3/+28
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: aad4cef0f3 Change-Id: I6ef1ef45fd598e12629a5bb5a28e9dca74e954fe
| | | * | | | | | | | | | | | | | | Merge "minadbd: rename adb_server_main to minadbd_main."Josh Gao2016-08-304-3/+28
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 818394869d Change-Id: I7a8fe351a8bfa0b7bdc48c89d56647a98018af51
| | | | * | | | | | | | | | | | | | Merge "minadbd: rename adb_server_main to minadbd_main."Josh Gao2016-08-304-3/+28
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | minadbd: rename adb_server_main to minadbd_main.Josh Gao2016-08-304-3/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adb_server_main in adb refers to the adb server on the host, not adbd. Since there doesn't seem to be a good reason to reuse the declaration from adb's headers, give minadbd a main function of its own. Change-Id: I748f1a6822dc14c726cb73ef3b533c57a6615608
* | | | | | | | | | | | | | | | | | | Merge "Fix clang-tidy warnings in bootable/recovery." am: 89bf2bdc85 am: 9968866e86 am: d987fe1d57Chih-Hung Hsieh2016-08-273-4/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a50d7faff0 Change-Id: I6e1478dd95dae7491f6a6d5999b06469fa2a8d89
| * | | | | | | | | | | | | | | | | | Merge "Fix clang-tidy warnings in bootable/recovery." am: 89bf2bdc85 am: 9968866e86Chih-Hung Hsieh2016-08-273-4/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d987fe1d57 Change-Id: Idd53009ad61bb4a0b573febdbedc5dc0eee8265f
| | * | | | | | | | | | | | | | | | | Merge "Fix clang-tidy warnings in bootable/recovery." am: 89bf2bdc85Chih-Hung Hsieh2016-08-273-4/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9968866e86 Change-Id: Id888e91546d18d5ed0054e1fbac2823a6e31c6a1
| | | * | | | | | | | | | | | | | | | Merge "Fix clang-tidy warnings in bootable/recovery."Chih-Hung Hsieh2016-08-273-4/+4
| | | |\| | | | | | | | | | | | | | | | | | | |/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 89bf2bdc85 Change-Id: I7748981badcbcdfe24d0cbe1c41007c67f611b14
| | | | * | | | | | | | | | | | | | Merge "Fix clang-tidy warnings in bootable/recovery."Treehugger Robot2016-08-273-4/+4
| | | |/| | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | Fix clang-tidy warnings in bootable/recovery.Chih-Hung Hsieh2016-08-263-4/+4
| | | |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use const reference type for read-only parameters. Bug: 30407689 * Use faster overloaded string find function. Bug: 30411878 * Add parentheses around macro parameters. Bug: 28705665 Test: build with WITH_TIDY=1 Change-Id: I4e8e5748bfa4ae89871f1fb5fa4624d372530d75
* | | | | | | | | | | | | | | | | Merge "Support use of custom fonts in miniui" into cw-f-dev am: 929ffefdccDamien Bargiacchi2016-08-240-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bdaee896a6 Change-Id: I723bcfb54cfc80d3b34707eff174f495e2374532
| * | | | | | | | | | | | | | | | Merge "Support use of custom fonts in miniui" into cw-f-devDamien Bargiacchi2016-08-240-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 929ffefdcc Change-Id: I5723771eb4d0716b120b7f682b47661a0ce48c67
| | * | | | | | | | | | | | | | | Merge "Support use of custom fonts in miniui" into cw-f-devDamien Bargiacchi2016-08-245-65/+83
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
* | | | | | | | | | | | | | | | | | Support use of custom fonts in miniui am: 35fff61b1cDamien Bargiacchi2016-08-245-65/+83
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e3c7184911 Change-Id: I92105784e928d69154d184aa9a514660405cc90f
| * | | | | | | | | | | | | | | | | Support use of custom fonts in miniuiDamien Bargiacchi2016-08-245-65/+83
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 35fff61b1c Change-Id: Iac50e95c15c0b4337435d47d3666c2aaf5eb203d
| | * | | | | | | | | | | | | | | | Support use of custom fonts in miniuiDamien Bargiacchi2016-08-195-65/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 29547343 Change-Id: I398160c85daac90ffab2fa9bb2e96795b9e9885a
* | | | | | | | | | | | | | | | | | resolve merge conflicts of 7f8dc84 to nyc-mr1-dev-plus-aospTao Bao2016-08-180-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9de20d4a7c Change-Id: Ib79151c746f36a056a8236fedf5afb1cdc0dfcce
| * | | | | | | | | | | | | | | | | resolve merge conflicts of 7f8dc84 to nyc-mr1-dev-plus-aospTao Bao2016-08-180-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I56d8af5552758dae44c1030c684448e621d226c5
| | * | | | | | | | | | | | | | | | Merge "Free mmaped area if keys fail to load" am: f599414aecTao Bao2016-08-181-0/+1
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b3ddc0a4bf Change-Id: I204d7fedd2f950da41c3a481231c459fc32d0056
| | | * | | | | | | | | | | | | | | Merge "Free mmaped area if keys fail to load"Tao Bao2016-08-181-0/+1
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f599414aec Change-Id: Id96153c211ca1fcc1cd78d6e662b0b48795c0d76
| | | | * \ \ \ \ \ \ \ \ \ \ \ \ \ \ Merge "Free mmaped area if keys fail to load"Tao Bao2016-08-181-0/+1
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | Free mmaped area if keys fail to loadWiZarD2016-08-181-0/+1
| | | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keys for package verification is loaded after the update package is mmaped into memory. This mmaped area needs to be freed when exiting the function. Another approach would be to mmap after loading the keys. Change-Id: Ib77711a8acd5c363b5517da12dc311fb8f9f4605 Signed-off-by: WiZarD <WiZarD.Devel@gmail.com>
* | | | | | | | | | | | | | | | | | | "view recovery logs" will show /tmp/recovery.log am: 62ab2a0fbc am: a44d4355baTianjie Xu2016-08-180-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cc34bf13ef Change-Id: Ic0243ec1db8713cf796b9a37f45a2ef1e5b5010a
| * | | | | | | | | | | | | | | | | | "view recovery logs" will show /tmp/recovery.log am: 62ab2a0fbcTianjie Xu2016-08-180-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a44d4355ba Change-Id: I0c3211372fb282da76fbcbcd6c56524fcfffa816
| | * | | | | | | | | | | | | | | | | "view recovery logs" will show /tmp/recovery.logTianjie Xu2016-08-181-31/+36
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 62ab2a0fbc Change-Id: I6acbbfd21b370df044413c4d15414b612b5654bb
| | | * | | | | | | | | | | | | | | | "view recovery logs" will show /tmp/recovery.logTianjie Xu2016-08-181-31/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For A/B devices, "view recovery logs" doesn't work due to the lack of cache partition. To help debugging, we'll show /tmp/recovery.log instead if /cache is not found. Change-Id: Idb77c3a4c30388148a210b38d732a7b27e757bba Test: Tested on an A/B device and /tmp/recovery.log showed up. Bug: 30905700 (cherry picked from commit a54f75ede8f5404c2c55b4f928e73fe9c908298e)
* | | | | | | | | | | | | | | | | | | Merge ""view recovery logs" will show /tmp/recovery.log" am: c158cf0a14 am: 4e4474c9c5 am: e254b4e9e4Tianjie Xu2016-08-181-31/+36
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d93f541679 Change-Id: I4832afe30fb536bcb8cc043c5c04a2f521ac1136
| * | | | | | | | | | | | | | | | | | Merge ""view recovery logs" will show /tmp/recovery.log" am: c158cf0a14 am: 4e4474c9c5Tianjie Xu2016-08-181-31/+36
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e254b4e9e4 Change-Id: Iedaed39a62f9756c0dc8122a40ea7db2c21f1c30
| | * | | | | | | | | | | | | | | | | Merge ""view recovery logs" will show /tmp/recovery.log" am: c158cf0a14Tianjie Xu2016-08-181-31/+36
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4e4474c9c5 Change-Id: Iaca861be960a271c09c07deeaf4f98850edc4f71
| | | * | | | | | | | | | | | | | | | Merge ""view recovery logs" will show /tmp/recovery.log"Tianjie Xu2016-08-181-31/+36
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|/ / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c158cf0a14 Change-Id: I1485c1c84a7caa20b11da4fd2561e0dba95fc39b
| | | | * | | | | | | | | | | | | | | Merge ""view recovery logs" will show /tmp/recovery.log"Tianjie Xu2016-08-181-31/+36
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | "view recovery logs" will show /tmp/recovery.logTianjie Xu2016-08-171-31/+36
| | | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For A/B devices, "view recovery logs" doesn't work due to the lack of cache partition. To help debugging, we'll show /tmp/recovery.log instead if /cache is not found. Change-Id: Idb77c3a4c30388148a210b38d732a7b27e757bba Test: Tested on an A/B device and /tmp/recovery.log showed up. Bug: 30905700
* | | | | | | | | | | | | | | | | | | Merge "Format formattable partitions if mount fails" am: cb76857147 am: 2f5cfdbb9d am: d7865e81f1Johan Harvyl2016-08-151-1/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 63e4cc1d16 Change-Id: Ib6533e78255613f4b608aa976cd3221a998b0644
| * | | | | | | | | | | | | | | | | | Merge "Format formattable partitions if mount fails" am: cb76857147 am: 2f5cfdbb9dJohan Harvyl2016-08-151-1/+14
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d7865e81f1 Change-Id: I391ec86730d409d0d6c51e003d57f4f3f0a4a3e3
| | * | | | | | | | | | | | | | | | | Merge "Format formattable partitions if mount fails" am: cb76857147Johan Harvyl2016-08-151-1/+14
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2f5cfdbb9d Change-Id: I7c0848776028caf766f33895a010349ccabf13bf
| | | * | | | | | | | | | | | | | | | Merge "Format formattable partitions if mount fails"Johan Harvyl2016-08-151-1/+14
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cb76857147 Change-Id: I50c2045f56693e445922d30af72867e7ac55b61f
| | | | * | | | | | | | | | | | | | | Merge "Format formattable partitions if mount fails"Treehugger Robot2016-08-151-1/+14
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | Format formattable partitions if mount failsJohan Harvyl2016-08-121-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If mount fails and the partition has the formattable flag set in fstab it is formatted and another attempt at the mount is made. Change-Id: I44edafac7d7ff663489072c66b7e210466316b14
* | | | | | | | | | | | | | | | | | | | Add inttypes.h for PRIu64. am: 53c107f068 am: 0d345b6731Alex Deymo2016-08-130-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 30f1ad1169 Change-Id: Ia3ea7a02b91cb7d99340886639f496a22c50886f
| * | | | | | | | | | | | | | | | | | | Add inttypes.h for PRIu64. am: 53c107f068Alex Deymo2016-08-130-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0d345b6731 Change-Id: Idaa1aaeac69c91474500d093322ecf01ab6a49eb
| | * | | | | | | | | | | | | | | | | | Add inttypes.h for PRIu64.Alex Deymo2016-08-131-0/+1
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 53c107f068 Change-Id: I2c84d557d7ee32508eded49b2061bf80fecc35ae
| | | * | | | | | | | | | | | | | | | | Add inttypes.h for PRIu64.Alex Deymo2016-08-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This missing header is needed to use PRIu64 macros. Bug: 27178350 TEST=`mma bootable/recovery` on the failing branch. Change-Id: I165701e8019256426d3f6a4168db52c6a0197c4d
* | | | | | | | | | | | | | | | | | | | Merge "Add inttypes.h for PRIu64." into nyc-mr1-dev-plus-aospAlex Deymo2016-08-120-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 567a7326c2 Change-Id: Ie3987944e259dea1d9a154fe7412fc81d382d158
| * | | | | | | | | | | | | | | | | | | Merge "Add inttypes.h for PRIu64." into nyc-mr1-dev-plus-aospAlex Deymo2016-08-121-0/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
* | \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Add inttypes.h for PRIu64.Alex Deymo2016-08-121-0/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4e29ce0b88 Change-Id: I48a4b0aba107f81fd5ea59b76c7fc658df30c3b0
| * | | | | | | | | | | | | | | | | | | | Add inttypes.h for PRIu64.Alex Deymo2016-08-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This missing header is needed to use PRIu64 macros. Bug: 27178350 TEST=`mma bootable/recovery` on the failing branch. Change-Id: I165701e8019256426d3f6a4168db52c6a0197c4d
* | | | | | | | | | | | | | | | | | | | | Merge "adb headers now refer to openssl headers." am: e4cf854dbf am: c687a72d9f am: d7067c7feaJosh Gao2016-08-121-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 01e9b56154 Change-Id: Ibb976fc8846afc9b39ef7bb5e5a535f8581aa28d
| * | | | | | | | | | | | | | | | | | | | Merge "adb headers now refer to openssl headers." am: e4cf854dbf am: c687a72d9fJosh Gao2016-08-121-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / / | |/| | | / / / / / / / / / / / / / / / / | | | |_|/ / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d7067c7fea Change-Id: I40a1e90bcbab27caa4b2ddc117a201387620f988
| | * | | | | | | | | | | | | | | | | | Merge "adb headers now refer to openssl headers." am: e4cf854dbfJosh Gao2016-08-121-1/+1
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c687a72d9f Change-Id: I03330b8b93d9ac0262c2556018720689035b8d8f
| | | * | | | | | | | | | | | | | | | | Merge "adb headers now refer to openssl headers."Josh Gao2016-08-121-1/+1
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|/ / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e4cf854dbf Change-Id: I8cb4f4fe840d45bf4ea09f864dee53130aee1144
| | | | * | | | | | | | | | | | | | | | Merge "adb headers now refer to openssl headers."Josh Gao2016-08-121-1/+1
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|/ / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | adb headers now refer to openssl headers.Elliott Hughes2016-08-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Icddc4a4f226595338fafbcb14ee9338c58b4a80f
* | | | | | | | | | | | | | | | | | | | resolve merge conflicts of 66940b9 to nyc-mr1-dev-plus-aospAlex Deymo2016-08-122-42/+189
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9eaffca358 Change-Id: I10332a4634111b6a3cd39ef65e9b0d9392f95d64
| * | | | | | | | | | | | | | | | | | | resolve merge conflicts of 66940b9 to nyc-mr1-dev-plus-aospAlex Deymo2016-08-122-42/+189
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Icd879395a88ff1de0fcf0c754c0633d8fb6cf208
| | * | | | | | | | | | | | | | | | | | Call update_engine_sideload from recovery.Alex Deymo2016-08-122-42/+189
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|/ / / / / / / / / / / / / | | | |/| | | | / / / / / / / / / / / / | | | |_|_|_|_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4344d636d4 Change-Id: Ic9586cb3176bf608d2044e37b89e570c71130dcc
| | | * | | | | | | | | | | | | | | | Call update_engine_sideload from recovery.Alex Deymo2016-08-122-42/+189
| | |/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch enables sideloading an OTA on A/B devices while running from recovery. Recovery accepts the same OTA package format as recent versions of GMS, which consists of .zip file with the payload in it. Bug: 27178350 TEST=`adb sideload` successfully a full OTA (*) TEST=Failed to take several invalid payloads (wrong product, fingerprint, update type, serial, etc). <small>(*) with no postinstall script.</small> Change-Id: I951869340100feb5a37e41fac0ee59c10095659e
* | | | | | | | | | | | | | | | | | Merge "Handle error from fopen_path in finish_recovery" am: 8a4333f3b9 am: a550ee0df7 am: b33a6f8342Johan Harvyl2016-08-091-4/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d38ddde181 Change-Id: I8f21fc8895f5bc2bb714ce64aad137052e825464
| * | | | | | | | | | | | | | | | | Merge "Handle error from fopen_path in finish_recovery" am: 8a4333f3b9 am: a550ee0df7Johan Harvyl2016-08-091-4/+6
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b33a6f8342 Change-Id: I24871e2d2259cb3444082ae89e4a59979ad5e197
| | * | | | | | | | | | | | | | | | Merge "Handle error from fopen_path in finish_recovery" am: 8a4333f3b9Johan Harvyl2016-08-091-4/+6
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a550ee0df7 Change-Id: I291b2cdad02e2cd4b823b0d2c3e74c19f156bb67
| | | * | | | | | | | | | | | | | | Merge "Handle error from fopen_path in finish_recovery"Johan Harvyl2016-08-091-4/+6
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8a4333f3b9 Change-Id: I9225bcbe1ed82a63f70c7c6a984fd043ac77100b
| | | | * | | | | | | | | | | | | | Merge "Handle error from fopen_path in finish_recovery"Treehugger Robot2016-08-091-4/+6
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|/ / / / / / / / / / / / | | | | |/| | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | Handle error from fopen_path in finish_recoveryJohan Harvyl2016-08-081-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fopen_path will fail here e.g. if /cache is corrupt and could not be mounted. Not properly handling an error code from fopen_path() results in a boot loop into recovery as fwrite() on a NULL FILE object will crash the recovery app. Change-Id: I1ccff5a8cb620a32f32adfe97a3fae8e5e908f39
* | | | | | | | | | | | | | | | | | Merge "Fix references to libcrypto_utils_static." am: b97da5e0f0 am: dc97404346 am: e6a4195bf7Josh Gao2016-08-084-12/+12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 66571856a1 Change-Id: Ibae209f6fba7adb549cdf2fd9e0323c42240df19
| * | | | | | | | | | | | | | | | | Merge "Fix references to libcrypto_utils_static." am: b97da5e0f0 am: dc97404346Josh Gao2016-08-084-12/+12
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e6a4195bf7 Change-Id: Ib497de2a8e38d60cf6be058de919bd8f5e5871cb
| | * | | | | | | | | | | | | | | | Merge "Fix references to libcrypto_utils_static." am: b97da5e0f0Josh Gao2016-08-084-12/+12
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dc97404346 Change-Id: Ica1f4616c87c81e24b7e4b2dfa0778557dae4a6a
| | | * | | | | | | | | | | | | | | Merge "Fix references to libcrypto_utils_static."Josh Gao2016-08-084-12/+12
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b97da5e0f0 Change-Id: Ia935df84e5ea36dfc6605b41872c36db69a114a0
| | | | * | | | | | | | | | | | | | Merge "Fix references to libcrypto_utils_static."Josh Gao2016-08-084-12/+12
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | Fix references to libcrypto_utils_static.Josh Gao2016-08-064-12/+12
| | | | | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/30708454 Change-Id: I7a5048beff1d8b783a9683dcb4a79606a77f20ee
* | | | | | | | | | | | | | | | | | Merge "Recovery mode UI flicker" am: 629bde8c6c am: a5734c2ad8 am: 1e324fa459xinglong.zhu2016-08-082-1/+24
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4c4323254e Change-Id: I49e9da06bd509668c70b3f3cebb505a2a4868bfb
| * | | | | | | | | | | | | | | | | Merge "Recovery mode UI flicker" am: 629bde8c6c am: a5734c2ad8xinglong.zhu2016-08-082-1/+24
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1e324fa459 Change-Id: Idae46562d2b8d1db76f7b75fcef58b00fa6c3790
| | * | | | | | | | | | | | | | | | Merge "Recovery mode UI flicker" am: 629bde8c6cxinglong.zhu2016-08-082-1/+24
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a5734c2ad8 Change-Id: I11e00d7502d32db5567a6fa99106d8983c048c24
| | | * | | | | | | | | | | | | | | Merge "Recovery mode UI flicker"xinglong.zhu2016-08-082-1/+24
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 629bde8c6c Change-Id: I2d9c2a88e8df9d5a096aa70a4a420754c668de26
| | | | * | | | | | | | | | | | | | Merge "Recovery mode UI flicker"Treehugger Robot2016-08-082-1/+24
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | Recovery mode UI flickerxinglong.zhu2016-08-062-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [root cause ] miniui has no mechanism to protect the buffer which is displaying [changes ] recovery [side effects] ui show [self test ] sc9850-2 general operation has not display abnormal [reviewers ] xinglong.zhu Signed-off-by: xinglong.zhu <xinglong.zhu@spreadtrum.com> [change_type ] AOB --> google_original [tag_product ] common Change-Id: I989a0b2943ff6070a0e98718cfbe95144510d3a2
* | | | | | | | | | | | | | | | | | Merge "Further compress the text images with zopflipng" am: 61240f88ea am: 3e244dc301 am: 5a84cecd26Tianjie Xu2016-08-0326-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8b36965175 Change-Id: I6aad408e27e8661a83c6d985d080c0ae8637eec9
| * | | | | | | | | | | | | | | | | Merge "Further compress the text images with zopflipng" am: 61240f88ea am: 3e244dc301Tianjie Xu2016-08-0326-0/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5a84cecd26 Change-Id: I3e4e1ad53e3f61584b7668cf215eb0d34e668f71
| | * | | | | | | | | | | | | | | | Merge "Further compress the text images with zopflipng" am: 61240f88eaTianjie Xu2016-08-0326-0/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3e244dc301 Change-Id: Id651a94190d91c508b55d3745816253160b84284
| | | * | | | | | | | | | | | | | | Merge "Further compress the text images with zopflipng"Tianjie Xu2016-08-0326-0/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 61240f88ea Change-Id: Ib3b28e84ee331a0e9d613d3761ff4d657c23088d
| | | | * | | | | | | | | | | | | | Merge "Further compress the text images with zopflipng"Tianjie Xu2016-08-0326-0/+2
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | Further compress the text images with zopflipngTianjie Xu2016-08-0326-0/+2
| | | | |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug:30415666 Test: Graphic tests pass on angler with new image files Change-Id: I8716f53cb2f9fc6598fdc84f84e9626994faaa5e
* | | | | | | | | | | | | | | | | | Merge \\\"Clean up verifier testcases.\\\" am: e91aef0ee9 am: 717b49254b am: 73d3acf50eTao Bao2016-08-0121-41/+30
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 91f87bb647 Change-Id: I7bc714c12dd1b88eec264a92e672a6a90496981c
| * | | | | | | | | | | | | | | | | Merge \\\"Clean up verifier testcases.\\\" am: e91aef0ee9 am: 717b49254bTao Bao2016-08-0121-41/+30
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 73d3acf50e Change-Id: I6f225b0bdf9f43020ff2845bf99a0c85dcb8586e
| | * | | | | | | | | | | | | | | | Merge \\"Clean up verifier testcases.\\" am: e91aef0ee9Tao Bao2016-08-0121-41/+30
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 717b49254b Change-Id: Ib72cddc0c9d3a916566fb77d0611aa153f3a6ead
| | | * | | | | | | | | | | | | | | Merge \"Clean up verifier testcases.\"Tao Bao2016-08-0121-41/+30
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e91aef0ee9 Change-Id: Ia130dc2a7f62ecf1ad40ec03d88a331a31800efa
| | | | * | | | | | | | | | | | | | Merge "Clean up verifier testcases."Treehugger Robot2016-08-0121-41/+30
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | Clean up verifier testcases.Tao Bao2016-08-0121-41/+30
| | | | |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A Certificate is a pair of an RSAPublicKey and a particular hash. So v1 and v3 differ in the hash algorithm (SHA-1 vs SHA-256), similarly for v2 and v4. In verifier testcases, we used to load v1/v2 keys with an explicit argument of "sha256" to test the v3/v4 keys. This CL switches to loading v3/v4 keys directly and lets load_keys() to handle that, which is the actual flow we use in practice. Also remove the "fallback to v1 key" in the testcases, which is not the actual behavior. Bug: 30415901 Test: Run the verifier_test component test on device. Change-Id: I3a2baa64826f1b6c4c367a560090df384c4521bb
* | | | | | | | | | | | | | | | | | Merge \\\\"Add docs on regeneration background text image\\\\" am: 5aa2e104c0 am: b02a58740e am: 698f75467aTianjie Xu2016-07-294-2/+35
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0df6011d0f Change-Id: I9bf3d8a5357811700e7e09aec146eaf1969f6eb9
| * | | | | | | | | | | | | | | | | Merge \\\"Add docs on regeneration background text image\\\" am: 5aa2e104c0 am: b02a58740eTianjie Xu2016-07-294-2/+35
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 698f75467a Change-Id: Iec3d77fecaf9edd27ba5e2f217793074db3ff7c9
| | * | | | | | | | | | | | | | | | Merge \\"Add docs on regeneration background text image\\" am: 5aa2e104c0Tianjie Xu2016-07-294-2/+35
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b02a58740e Change-Id: Ib15f443946a97eeb6609b0aab9b91bcd3ca91d4c
| | | * | | | | | | | | | | | | | | Merge \"Add docs on regeneration background text image\"Tianjie Xu2016-07-294-2/+35
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5aa2e104c0 Change-Id: I565fa63de18e0c806f2452c009d97c5ad4ebebc3
| | | | * | | | | | | | | | | | | | Merge "Add docs on regeneration background text image"Tianjie Xu2016-07-294-2/+35
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | Add docs on regeneration background text imageTianjie Xu2016-07-294-2/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add a missing string in the recovery_l10n APP. Bug: 30415666 Change-Id: Ice2a9f7cad4ebe332b427bc0c7a9adccb6cf3af3
* | | | | | | | | | | | | | | | | | | Merge \\\\"Regenerate the background text with pngcrush\\\\" am: 7b6263960f am: c6d607f6ba am: a26823d96dTianjie Xu2016-07-2925-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1cd2fda40b Change-Id: I5f7f0d932c34499438641830e550e7e530433907
| * | | | | | | | | | | | | | | | | | Merge \\\"Regenerate the background text with pngcrush\\\" am: 7b6263960f am: c6d607f6baTianjie Xu2016-07-2925-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a26823d96d Change-Id: I3ce35daebb7c77d9f27e55928c0ab4b8878fc944
| | * | | | | | | | | | | | | | | | | Merge \\"Regenerate the background text with pngcrush\\" am: 7b6263960fTianjie Xu2016-07-2925-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c6d607f6ba Change-Id: Id840cc2ce8a3c50193a72f9083b0f5f65c497dec
| | | * | | | | | | | | | | | | | | | Merge \"Regenerate the background text with pngcrush\"Tianjie Xu2016-07-2925-0/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7b6263960f Change-Id: I73cf37099340d2ea492f0a178813d36d751c8827
| | | | * | | | | | | | | | | | | | | Merge "Regenerate the background text with pngcrush"Tianjie Xu2016-07-2925-0/+0
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | Regenerate the background text with pngcrushTianjie Xu2016-07-2925-0/+0
| | | | |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After process the text images with pngquant, I encountered a image-loading error when doing graphic tests on angler. The command "pngcrush -c 0 $imagename" resolves this error and gives almost the same compression rate. So regenerate all the text images with "pngcrush -c 0" Bug: 30415666 Test: Run graphics test on angler and the background text looks good. Change-Id: I5d989c1230e826407287265fc559349a7bd29303
* | | | | | | | | | | | | | | | | | Resolve merge conflicts of 286848e to stage-aosp-master am: 9da825940d am: 53c34ebdc4Tianjie Xu2016-07-2825-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 03539f5e83 Change-Id: Iea45e9db6cc0719643f9804535916d283843e719
| * | | | | | | | | | | | | | | | | Resolve merge conflicts of 286848e to stage-aosp-master am: 9da825940dTianjie Xu2016-07-2825-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 53c34ebdc4 Change-Id: I54f74a04eb36317bc306fd1db20d4d4fb8a9421e
| | * | | | | | | | | | | | | | | | Resolve merge conflicts of 286848e to stage-aosp-masterTianjie Xu2016-07-2825-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9da825940d Change-Id: Ibbb885ee643e909ff00cd302c62b112c645c68ca
| | | * | | | | | | | | | | | | | | Resolve merge conflicts of 286848e to stage-aosp-masterTianjie Xu2016-07-2825-0/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I3bfe781a215e09ebe162af8522972976c110410f
| | | | * | | | | | | | | | | | | | Merge "Update background text images under recovery"Tianjie Xu2016-07-2825-0/+0
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | Update background text images under recoveryTianjie Xu2016-07-2825-0/+0
| | | | | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the text images according to the new translations of "b+sr+Latn", "be-rBY", and "bs-rBA". Also switch to pngquant which gives a better compression rate. Bug: 30415666 Change-Id: I6eae5dd7be4c7f1f93c50113822caac9868e0f95
* | | | | | | | | | | | | | | | | | Merge \\\\"Fix clang-tidy performance warnings.\\\\" am: 2a3b695168 am: 977903da49 am: fc7cbe465fChih-hung Hsieh2016-07-275-5/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b32823b7e7 Change-Id: If3a8d9d3278711e057c6dc0ac4652374a2f5f985
| * | | | | | | | | | | | | | | | | Merge \\\"Fix clang-tidy performance warnings.\\\" am: 2a3b695168 am: 977903da49Chih-Hung Hsieh2016-07-275-5/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fc7cbe465f Change-Id: I06aef6bf6f2865b2b33f90bf539118c39118b09c
| | * | | | | | | | | | | | | | | | Merge \\"Fix clang-tidy performance warnings.\\" am: 2a3b695168Chih-hung Hsieh2016-07-275-5/+5
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 977903da49 Change-Id: Id3e48c6cf66c6f81ead25dd468bb109ce260f377
| | | * | | | | | | | | | | | | | | Merge \"Fix clang-tidy performance warnings.\"Chih-Hung Hsieh2016-07-275-5/+5
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2a3b695168 Change-Id: I55cadf517ec612f1b03de71ce7ca5cff69bc80d0
| | | | * | | | | | | | | | | | | | Merge "Fix clang-tidy performance warnings."Chih-hung Hsieh2016-07-275-5/+5
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | Fix clang-tidy performance warnings.Chih-Hung Hsieh2016-07-275-5/+5
| | | | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use const reference parameter type to avoid unnecessary copy. * Use more efficient overloaded string methods. Bug: 30407689 Bug: 30411878 Change-Id: Iefab05c077367f272abf545036b853e8a295c8cd Test: build with WITH_TIDY=1
* | | | | | | | | | | | | | | | | Import translations. DO NOT MERGE am: e49c0d6406 -s oursBill Yi2016-07-210-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8281767f34 -s ours Change-Id: I8f3d4f4d397bfcd2d0a76d99eefb037343beb593
| * | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-07-210-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e49c0d6406 -s ours Change-Id: I63088d0308aacfce14c75c7508bb04e587014217
| | * | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-07-213-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: If24c94c20f8e4c37c119dcaff765e9ee59e48ef4 Auto-generated-cl: translation import
* | | | | | | | | | | | | | | | | Skip update verification if care_map is not found am: da654af606Tianjie Xu2016-07-161-2/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 831c3e2ac1 Change-Id: I06fed102c6126881e4bc89c67d7e09e92998ad6b
| * | | | | | | | | | | | | | | | Skip update verification if care_map is not foundTianjie Xu2016-07-161-2/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: da654af606 Change-Id: I67af9ecde49f72cbf4044ac1d5a9e10b911e8a93
| | * | | | | | | | | | | | | | | Skip update verification if care_map is not foundTianjie Xu2016-07-161-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recently flashed devices may not have care_map.txt in /data/ota_package. This leads to a failure of update-verifier and prevents boot success flag from being set. So, we need to skip verification in case the file is not found. Error message: ... I update_verifier: Started with arg 1: nonencrypted ... I update_verifier: Booting slot 1: isSlotMarkedSuccessful=0 ... E update_verifier: Care map /data/ota_package/care_map.txt not found. ... E update_verifier: Failed to verify all blocks in care map file Bug: 30156449 Change-Id: Ia15f5f3e7ca2ea6981d49678e799b9f70d134faa
* | | | | | | | | | | | | | | | | Fix a typo when comparing the verity mode am: 4bbe0c93c8Tianjie Xu2016-07-151-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fe6014ecca Change-Id: I849f869a4ee2614fe3a6b5af03617e3d40374f65
| * | | | | | | | | | | | | | | | Fix a typo when comparing the verity modeTianjie Xu2016-07-151-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4bbe0c93c8 Change-Id: I734ac0c1124e2459bb64defe16386ee1ee1c534f
| | * | | | | | | | | | | | | | | Fix a typo when comparing the verity modeTianjie Xu2016-07-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The veritymode string used by the bootloader should be lowercase 'eio' instead of 'EIO'. Fix the typo and change to strcasecmp. Bug: 27175949 Change-Id: I376dacc70eef7364e2b9931a7c940adedcdb1929
* | | | | | | | | | | | | | | | | Merge \\"Touch blocks in care_map in update_verifier\\" into nyc-mr1-dev am: 13f44939b1Tianjie Xu2016-07-152-14/+122
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6c0a2dec21 Change-Id: Ifab3a0507000b6970df9d58a0193deefbaadb5ba
| * | | | | | | | | | | | | | | | Merge \"Touch blocks in care_map in update_verifier\" into nyc-mr1-devTianjie Xu2016-07-152-14/+122
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 13f44939b1 Change-Id: I217e2883e45979b8cbdd7f0ce138d4b66f2e2b5d
| | * | | | | | | | | | | | | | | Merge "Touch blocks in care_map in update_verifier" into nyc-mr1-devTianjie Xu2016-07-152-14/+122
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | | | | Touch blocks in care_map in update_verifierTianjie Xu2016-07-142-14/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Read all blocks in system and vendor partition during boot time so that dm-verity could verify this partition is properly flashed. Bug: 27175949 Change-Id: I38ff7b18ee4f2733e639b89633d36f5ed551c989
* | | | | | | | | | | | | | | | | | Skip update-on-boot for bootreason in blacklist am: 27b9fc8a36Tianjie Xu2016-07-132-10/+38
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7831762308 Change-Id: Iafe4715d3a859b2d4367583662b2ff31650ca18f
| * | | | | | | | | | | | | | | | | Skip update-on-boot for bootreason in blacklistTianjie Xu2016-07-132-10/+38
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 27b9fc8a36 Change-Id: Icb5c2cfb2430e767f81506b20912f52d74d719d5
| | * | | | | | | | | | | | | | | | Skip update-on-boot for bootreason in blacklistTianjie Xu2016-07-122-10/+38
| | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Skip the OTA installation when bootreason is 'kernel_panic', 'Panic' etc. Change-Id: Ic1202492bffefa1a9d8d0e691b5af979285e552c Test: On angler, ota installation skips for one bootreason in the blacklist. Bug: 29978689
* | | | | | | | | | | | | | | | | Support landscape layouts. am: 6d089a955fElliott Hughes2016-07-092-15/+31
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b0728a3c2a Change-Id: Ib93ecc5fd9538456585154814c2979533acb1213
| * | | | | | | | | | | | | | | | Support landscape layouts.Elliott Hughes2016-07-092-15/+31
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6d089a955f Change-Id: Iebdce4fe859984257cef027ec6de1aeae51b8d69
| | * | | | | | | | | | | | | | | Support landscape layouts.Elliott Hughes2016-07-092-15/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for landscape layouts to the existing portrait support. Bug: http://b/29418855 Test: tested manually with "Run graphics test" on flounder/fugu/ryu. Change-Id: Ib4a62bf5f2b8a1cef6028a01f05145104660560a
* | | | | | | | | | | | | | | | | Merge "Allow uncrypt to work without socket communication"Tianjie Xu2016-07-081-2/+18
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | Allow uncrypt to work without socket communicationTianjie Xu2016-07-011-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was inconvenient to uncrypt a update package under adb shell because the uncrypt executable required a socket to start its job. Add a workaround to allow uncrypt executes without socket communication. Test: run uncrypt under adb shell, and the block map generates successfully Bug: 29906218 Change-Id: Ibc328b31636d925dc429ede8dcec7392a721dd53
* | | | | | | | | | | | | | | | | | Fix bootloader_message. am: 9da04d595fYabin Cui2016-07-061-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 159ca9b0ac Change-Id: I0a72622b551b581301aa8de12896dd00723f0568
| * | | | | | | | | | | | | | | | | Fix bootloader_message.Yabin Cui2016-07-061-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9da04d595f Change-Id: I684c6afa25ce1dccad06920eee8a3bd6b7da96b1
| | * | | | | | | | | | | | | | | | Fix bootloader_message.Yabin Cui2016-07-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 29945717 Change-Id: I934fd6c52b0111937fa75455de2fa4157fb30f6f
* | | | | | | | | | | | | | | | | | Import translations. DO NOT MERGE am: 34e2854786 -s ours am: 93d2e08ef2 -s oursBill Yi2016-07-010-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9fe8b8b663 -s ours Change-Id: I07911aae8d7c9dbe1383072917ab52d314dfff20
| * | | | | | | | | | | | | | | | | Import translations. DO NOT MERGE am: 34e2854786 -s oursBill Yi2016-07-010-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 93d2e08ef2 -s ours Change-Id: Icfba2b987aae40dd9f9cebfb7299cc5319d4bc68
| | * | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-07-010-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 34e2854786 -s ours Change-Id: Ib1e3c37805d1457a00e84c4e0d11d2775714d7f6
| | | * | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-07-0178-312/+390
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 29390361 Change-Id: Ie1d01357ef53bd977da8188825dd744801ae58ad
* | | | | | | | | | | | | | | | | | updater: Fix the broken ReadFileFn. am: ccb0ba908aTao Bao2016-07-010-0/+0
|\| | | | | | | | | | | | | | | | | | |_|_|_|/ / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 90a0dace8e Change-Id: I292d3cb4febde3e3064ae205795492a85cdb7a3c
| * | | | | | | | | | | | | | | | updater: Fix the broken ReadFileFn.Tao Bao2016-07-010-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ccb0ba908a Change-Id: I693ebeed98863b9ce06ca2704e05abe41ec2b5c2
| | * | | | | | | | | | | | | | | updater: Fix the broken ReadFileFn.Tao Bao2016-07-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Was accidentally broken by the CL in [1]. [1]: commit d6c93afcc28cc65217ba65eeb646009c4f15a2ad Bug: 29767315 Change-Id: I851e13ccea6f5be6fcd47f712cc95867245f9934 (cherry picked from commit efacd80364c7ed42d56310949790d89febaf3444)
* | | | | | | | | | | | | | | | | resolve merge conflicts of 2f272c0 to nyc-mr1-dev-plus-aospYabin Cui2016-07-0110-397/+328
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9b15ba8269 Change-Id: Idca52296ddcb318a23f1fb279435a1f71751afec
| * | | | | | | | | | | | | | | | resolve merge conflicts of 2f272c0 to nyc-mr1-dev-plus-aospYabin Cui2016-07-0110-397/+328
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I889d94a723415ad2e660b8c99e66935142918bc4
| | * | | | | | | | | | | | | | | Create bootloader_message static library.Yabin Cui2016-06-3010-381/+227
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bootloader_messages merges bootloader_message_writer and bootloader.cpp, so we can use the same library to manage bootloader_message in normal boot and recovery mode. Bug: 29582118 Change-Id: I9efdf776ef8f02b53911ff43a518e035e0c29618
* | | | | | | | | | | | | | | | | Merge \\\\"Fix install.h\\\\'s use of attribute printf.\\\\" am: a82ee456bb am: 691db7ba77 am: 7c4a34195fElliott Hughes2016-06-302-4/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 937ca850ec Change-Id: I4c496ee69e554f9616b5da98e3e708880060da0e
| * | | | | | | | | | | | | | | | Merge \\\"Fix install.h\\\'s use of attribute printf.\\\" am: a82ee456bb am: 691db7ba77Elliott Hughes2016-06-302-4/+3
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7c4a34195f Change-Id: I82d801da1ce7507efe6bb22edb39c28a17b168c0
| | * | | | | | | | | | | | | | | Merge \\"Fix install.h\\'s use of attribute printf.\\" am: a82ee456bbElliott Hughes2016-06-302-4/+3
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 691db7ba77 Change-Id: Ia5d26790412bc6d45fd73ec3c2e56b9ddbd37c06
| | | * | | | | | | | | | | | | | Merge \"Fix install.h\'s use of attribute printf.\"Elliott Hughes2016-06-302-4/+3
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a82ee456bb Change-Id: Ibcfabbb0e044d503f889f1afea271cf73ad93f45
| | | | * | | | | | | | | | | | | Merge "Fix install.h's use of attribute printf."Treehugger Robot2016-06-302-4/+3
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | Fix install.h's use of attribute printf.Elliott Hughes2016-06-302-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And move off the bionic __nonnull macro, which I'm removing. Change-Id: I40b4424f4fd7bd8076e0eee3ec35de36c3ded8de
* | | | | | | | | | | | | | | | | | Merge \\\\"Fix google-explicit-constructor warnings in bootable/recovery.\\\\" am: a9f648f010 am: 8e6e4bc979 am: a4cd854625Chih-Hung Hsieh2016-06-301-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 34edfe173e Change-Id: Ic8019b8497dce005caefd921b114749a5ec300a7
| * | | | | | | | | | | | | | | | | Merge \\\"Fix google-explicit-constructor warnings in bootable/recovery.\\\" am: a9f648f010 am: 8e6e4bc979Chih-Hung Hsieh2016-06-301-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a4cd854625 Change-Id: I9a96354f55fc2594826f9e54ae9567a02ee4bc95
| | * | | | | | | | | | | | | | | | Merge \\"Fix google-explicit-constructor warnings in bootable/recovery.\\" am: a9f648f010Chih-Hung Hsieh2016-06-301-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8e6e4bc979 Change-Id: Ie8f8df0583cda672e8467c6ed8dadeee888342b8
| | | * | | | | | | | | | | | | | | Merge \"Fix google-explicit-constructor warnings in bootable/recovery.\"Chih-Hung Hsieh2016-06-301-1/+1
| | |/| | | | | | | | | | | | | | | | | | |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a9f648f010 Change-Id: I7912c46384c2acef90fcd517d709449148f0b9db
| | | * | | | | | | | | | | | | | Merge "Fix google-explicit-constructor warnings in bootable/recovery."Treehugger Robot2016-06-301-1/+1
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | Fix google-explicit-constructor warnings in bootable/recovery.Chih-Hung Hsieh2016-06-301-1/+1
| | | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 28341362 Change-Id: I4c3ab0ad0f62f8f3a6f3b30771010533a2739381 Test: build with clang-tidy
* | | | | | | | | | | | | | | | Increase EIO retry count am: c37c5c3410 am: e5c6d47f52Tianjie Xu2016-06-240-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 21b1a2a051 Change-Id: I4eb31e3957e33b6ecd9ed626f7a24d38178890ca
| * | | | | | | | | | | | | | | Increase EIO retry count am: c37c5c3410Tianjie Xu2016-06-240-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e5c6d47f52 Change-Id: Idf3c00f5c8a3bea6993ebf888ebc22ee0097177d
| | * | | | | | | | | | | | | | Increase EIO retry countTianjie Xu2016-06-241-1/+2
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c37c5c3410 Change-Id: Idfc957d24e6f5efe32cf68dc696355c456ffde34
* | | | | | | | | | | | | | | | Increase EIO retry count am: c37c5c3410 am: 6074099cb9Tianjie Xu2016-06-241-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3afc54c007 Change-Id: I79361b71429be13490c66fb037f9261adbed6ecf
| * | | | | | | | | | | | | | | Increase EIO retry count am: c37c5c3410Tianjie Xu2016-06-241-1/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6074099cb9 Change-Id: I8ca63b936530c156cb465fc1f0791253996b5fe2
| | * | | | | | | | | | | | | | Increase EIO retry countTianjie Xu2016-06-241-1/+2
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c37c5c3410 Change-Id: I163541137bf8c421276383855d36ab127d2ddf95
| | | * | | | | | | | | | | | | Increase EIO retry countTianjie Xu2016-06-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Increase the number of attempts of an OTA update from 3 to 5 in case an I/O error happened. This should increase the success rate of the update. Bug: 29619468 Change-Id: I88a067d9debd55a07be22ed981f395f6e47ec28f
* | | | | | | | | | | | | | | | resolve merge conflicts of ed4c49c to nyc-mr1-dev-plus-aospYabin Cui2016-06-218-77/+232
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bf049bffe2 Change-Id: Ie5f358c52a894ed76a71c7684dee5350d7636c40
| * | | | | | | | | | | | | | | resolve merge conflicts of ed4c49c to nyc-mr1-dev-plus-aospYabin Cui2016-06-218-77/+232
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8788cc80473dc77bfa0cd2682f3acb6e17ac36df
| | * | | | | | | | | | | | | | Merge "Verify wipe package when wiping A/B device in recovery." into nyc-mr1-devYabin Cui2016-06-218-76/+231
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | | | Verify wipe package when wiping A/B device in recovery.Yabin Cui2016-06-218-76/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To increase the security of wiping A/B devices, let uncrypt write wipe package in misc partition. Then recovery verifies the wipe package before wiping the device. Bug: 29159185 Change-Id: I186691bab1928d3dc036bc5542abd64a81bc2168
* | | | | | | | | | | | | | | | | Merge \\\"Import translations. DO NOT MERGE\\\" into stage-aosp-master am: 2c709ccef9 -s ours am: bf44cb7363 -s oursBill Yi2016-06-170-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 23af9abbc8 -s ours Change-Id: I1e37deb000da296fbdde8add2d5ab3243bb3953a
| * | | | | | | | | | | | | | | | Merge \\"Import translations. DO NOT MERGE\\" into stage-aosp-master am: 2c709ccef9 -s oursBill Yi2016-06-170-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bf44cb7363 -s ours Change-Id: Idab1e4edff135cf0f426aa6150e30f612e43937b
| | * | | | | | | | | | | | | | | Merge \"Import translations. DO NOT MERGE\" into stage-aosp-masterBill Yi2016-06-170-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2c709ccef9 -s ours Change-Id: I36aaa841cc349605f0c2403f650ce2bcfa8f7e53
| | | * \ \ \ \ \ \ \ \ \ \ \ \ \ \ Merge "Import translations. DO NOT MERGE" into stage-aosp-masterBill Yi2016-06-1778-312/+390
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-06-1678-312/+390
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 29390361 Change-Id: I50fc8ab0611b65c43066331a7f9622a969d10080
* | | | | | | | | | | | | | | | | | | Merge \\\\"Minor minadbd cleanup.\\\\" am: a49c8a19da am: 98c97c8932 am: aaa7c08cfaElliott Hughes2016-06-174-8/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 62bd0a9cb1 Change-Id: I292fd31cebd3df14fedf83bc591a0a602bf40128
| * | | | | | | | | | | | | | | | | | Merge \\\"Minor minadbd cleanup.\\\" am: a49c8a19da am: 98c97c8932Elliott Hughes2016-06-174-8/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: aaa7c08cfa Change-Id: I331002cbe7a01841600cfd2162772f9f343b4fdf
| | * | | | | | | | | | | | | | | | | Merge \\"Minor minadbd cleanup.\\" am: a49c8a19daElliott Hughes2016-06-174-8/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 98c97c8932 Change-Id: I416ad29724fa5975195ea55c17e4fe1e1495285f
| | | * | | | | | | | | | | | | | | | Merge \"Minor minadbd cleanup.\"Elliott Hughes2016-06-174-8/+3
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / | | | |/| | | | / / / / / / / / / / / | | | | | |_|_|/ / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a49c8a19da Change-Id: Ie69f3c7d96292ad16f888fc63ee40bcd7c900a09
| | | | * | | | | | | | | | | | | | Merge "Minor minadbd cleanup."Treehugger Robot2016-06-174-8/+3
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | Minor minadbd cleanup.Elliott Hughes2016-06-174-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Distinguish our "services.cpp" more clearly from the regular adbd "services.cpp", and remove a few useless includes of "sysdeps.h". Change-Id: Ided4945a3ac5916133322ca7e95fa51add9abaa4
* | | | | | | | | | | | | | | | | | | Check the results from applypatch am: 31f8cc84cf am: 93110c767fTianjie Xu2016-06-160-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 51265b64a0 Change-Id: I43a63035dc106d70736a9d0aca85ec6e0cedffa4
| * | | | | | | | | | | | | | | | | | Check the results from applypatch am: 31f8cc84cfTianjie Xu2016-06-160-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 93110c767f Change-Id: I77be6c0fb2d26e5af1eef5cb3c14df20f964f7fa
| | * | | | | | | | | | | | | | | | | Check the results from applypatchTianjie Xu2016-06-161-4/+10
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|_|/ / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 31f8cc84cf Change-Id: I2ea241fb3e688f5f8b0558d638dd3ed502223f97
* | | | | | | | | | | | | | | | | | | Check the results from applypatch am: 31f8cc84cf am: d0dcbddd31Tianjie Xu2016-06-161-4/+10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 24488eb7db Change-Id: I27ebbde5a6a013152b2595ff4bcd372b55afefee
| * | | | | | | | | | | | | | | | | | Check the results from applypatch am: 31f8cc84cfTianjie Xu2016-06-161-4/+10
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d0dcbddd31 Change-Id: I00439aae8f79b0e2a5f7de6566110240492b526a
| | * | | | | | | | | | | | | | | | | Check the results from applypatchTianjie Xu2016-06-161-4/+10
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 31f8cc84cf Change-Id: Ie50652158b65d723346ffff18c85cbaab11820e1
| | | * | | | | | | | | | | | | | | | Check the results from applypatchTianjie Xu2016-06-161-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check the results from applypatch in PerformCommandDiff; and abort the update on failure. Bug:29339536 Change-Id: I5087d79ba532b54250f4c17560524255c8a4fabc
* | | | | | | | | | | | | | | | | | | tests: Remove obsolete MTD support. am: 7eb60efa8d am: 28a425aa1fTao Bao2016-06-160-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7676a9cb58 Change-Id: I95c5b912bedbf8392c1d8acaa330571817cb8de8
| * | | | | | | | | | | | | | | | | | tests: Remove obsolete MTD support. am: 7eb60efa8dTao Bao2016-06-160-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 28a425aa1f Change-Id: Ib6cd24a3ac5a5f36d625e18ad2ae597a2aa4cf96
| | * | | | | | | | | | | | | | | | | tests: Remove obsolete MTD support.Tao Bao2016-06-160-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7eb60efa8d Change-Id: I87843f8c1b99aa3c5c64ff46f7ab86fde6a5e25a
| | | * | | | | | | | | | | | | | | | tests: Remove obsolete MTD support.Tao Bao2016-06-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Track the change in commit 63a319201fc0f5c34c1c62b446527e06f57f8d40 and fix builds. Bug: http://b/29250988 Change-Id: Iad5be953e102020931649629afc980d585ed2931 (cherry picked from commit ab2fb94bf48483d761ba3aa85e0acf851895566f)
* | | | | | | | | | | | | | | | | | | tests: Remove obsolete MTD support. am: ab2fb94bf4Tao Bao2016-06-160-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c485b9ce37 Change-Id: I229479fe01dd7e0dcee4a873f5833c1738301f8f
| * | | | | | | | | | | | | | | | | | tests: Remove obsolete MTD support.Tao Bao2016-06-161-1/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ab2fb94bf4 Change-Id: I12728b0c3f9b4f276b031a16b94080822f6e5f63
| | * | | | | | | | | | | | | | | | | tests: Remove obsolete MTD support.Tao Bao2016-06-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Track the change in commit 63a319201fc0f5c34c1c62b446527e06f57f8d40 and fix builds. Bug: http://b/29250988 Change-Id: Iad5be953e102020931649629afc980d585ed2931
* | | | | | | | | | | | | | | | | | | tests: Remove obsolete MTD support.Tao Bao2016-06-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Track the change in commit 63a319201fc0f5c34c1c62b446527e06f57f8d40 and fix builds. Bug: http://b/29250988 Change-Id: Iad5be953e102020931649629afc980d585ed2931 (cherry picked from commit ab2fb94bf48483d761ba3aa85e0acf851895566f)
* | | | | | | | | | | | | | | | | | | Merge \\\\"Remove an abused global so we can actually see logging.\\\\" am: 37450d7f42 am: 4692e5d8c8 am: d71cf2eee3Elliott Hughes2016-06-161-19/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2ccce05244 Change-Id: I03e970256bb58a9a4f7004dae4f5fa29b09e8a3c
| * | | | | | | | | | | | | | | | | | Merge \\\"Remove an abused global so we can actually see logging.\\\" am: 37450d7f42 am: 4692e5d8c8Elliott Hughes2016-06-161-19/+11
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d71cf2eee3 Change-Id: Iffce8a8df482812bce158179df5af6914195d940
| | * | | | | | | | | | | | | | | | | Merge \\"Remove an abused global so we can actually see logging.\\" am: 37450d7f42Elliott Hughes2016-06-161-19/+11
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4692e5d8c8 Change-Id: Idf78bf71a0670997da754d0de93691db313aed57
| | | * | | | | | | | | | | | | | | | Merge \"Remove an abused global so we can actually see logging.\"Elliott Hughes2016-06-161-19/+11
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|/ / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 37450d7f42 Change-Id: Id9c78be08f2822ec92d54ba11693d3e5adb7b5aa
| | | | * | | | | | | | | | | | | | | Merge "Remove an abused global so we can actually see logging."Treehugger Robot2016-06-161-19/+11
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | Remove an abused global so we can actually see logging.Elliott Hughes2016-06-161-19/+11
| | | | | | |_|/ / / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib97440bc0542003b84c45cb05f194ba20104dad6
* | | | | | | | | | | | | | | | | | | Merge \\\\"init now uses libprocessgroup, so set up /acct.\\\\" am: 279876c932 am: c58d7dda8c am: a087302da7Elliott Hughes2016-06-161-0/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1777eb7cf5 Change-Id: I1a01d5307cd5e0bc00fa79ba4b045c81e9005ead
| * | | | | | | | | | | | | | | | | | Merge \\\"init now uses libprocessgroup, so set up /acct.\\\" am: 279876c932 am: c58d7dda8cElliott Hughes2016-06-161-0/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a087302da7 Change-Id: I3f27534e7677de790c4ea931bfabf429add49132
| | * | | | | | | | | | | | | | | | | Merge \\"init now uses libprocessgroup, so set up /acct.\\" am: 279876c932Elliott Hughes2016-06-161-0/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c58d7dda8c Change-Id: I8398a7b4b95979d6502545dcfd931a5ce0d28069
| | | * | | | | | | | | | | | | | | | Merge \"init now uses libprocessgroup, so set up /acct.\"Elliott Hughes2016-06-161-0/+3
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 279876c932 Change-Id: I32a89d5d0b41311775dacea1f7d44fe1f6654d2d
| | | | * | | | | | | | | | | | | | | Merge "init now uses libprocessgroup, so set up /acct."Elliott Hughes2016-06-161-0/+3
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | init now uses libprocessgroup, so set up /acct.Elliott Hughes2016-06-161-0/+3
| | | | | |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iec1492dfaf2ceae6f4d8618dd725d07316ee960b
* | | | | | | | | | | | | | | | | | | resolve merge conflicts of 179c0d8 to stage-aosp-master am: 274d17dc0f am: eaddde6888Elliott Hughes2016-06-1616-1490/+242
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b36980cc09 Change-Id: I1ebaa7e62c774f08a07360df7d8498872aaf4e9d
| * | | | | | | | | | | | | | | | | | resolve merge conflicts of 179c0d8 to stage-aosp-master am: 274d17dc0fElliott Hughes2016-06-1616-1490/+242
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: eaddde6888 Change-Id: I10d484d02389fa30cc8d8398bcf5b276de31432e
| | * | | | | | | | | | | | | | | | | resolve merge conflicts of 179c0d8 to stage-aosp-masterElliott Hughes2016-06-1616-1490/+242
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 274d17dc0f Change-Id: I356adf332d5749a6d3f3e29b99bf3fca35de349a
| | | * | | | | | | | | | | | | | | | resolve merge conflicts of 179c0d8 to stage-aosp-masterElliott Hughes2016-06-1616-1490/+242
| | |/| | | | | | | | | | | | | | | | | | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iba5aec266444cabf83f600f2bdb45a3c027e5995
| | | * | | | | | | | | | | | | | | Merge "Remove obsolete MTD support."Elliott Hughes2016-06-1516-1490/+242
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | Remove obsolete MTD support.Elliott Hughes2016-06-1016-1490/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/29250988 Change-Id: Ia97ba9082a165c37f74d6e1c3f71a367adc59945
* | | | | | | | | | | | | | | | | | Merge \\\\"Add bootloader_message_ab struct.\\\\" am: 59f04b9982 am: f57d7f02c9 am: 2fc7cd69fdTao Bao2016-06-141-13/+58
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ef9718483b Change-Id: Ie39b3347eae4710993f210e01aded2098b09b0f7
| * | | | | | | | | | | | | | | | | Merge \\\"Add bootloader_message_ab struct.\\\" am: 59f04b9982 am: f57d7f02c9Tao Bao2016-06-141-13/+58
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2fc7cd69fd Change-Id: If4dce87bc57f0a305538507844c96084bec45d0c
| | * | | | | | | | | | | | | | | | Merge \\"Add bootloader_message_ab struct.\\" am: 59f04b9982Tao Bao2016-06-141-13/+58
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f57d7f02c9 Change-Id: Ie2407db5b16f90cbd07ada2d96441aba4055e6c9
| | | * | | | | | | | | | | | | | | | Merge \"Add bootloader_message_ab struct.\"Tao Bao2016-06-141-13/+58
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 59f04b9982 Change-Id: I9c3a816243a03dc2723679ef6efa241361446b96
| | | | * | | | | | | | | | | | | | | Merge "Add bootloader_message_ab struct."Tao Bao2016-06-141-13/+58
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | Add bootloader_message_ab struct.Tao Bao2016-06-101-13/+58
| | | | | |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move A/B-specific fields, effectively slot_suffix as in this CL, out of bootloader_message struct. Those A/B-specific fields are expected to be managed by the A/B-bootloader or boot control HAL, which shouldn't be cleared by recovery or uncrypt. Round up the bootloader_message struct to 2-KiB. Round up the bootloader_message_ab struct to 4-KiB. Bug: 29193360 Change-Id: I5740a612456da6d4d3b00e49a202d8f689d32690
* | | | | | | | | | | | | | | | | | | resolve merge conflicts of 490fad6 to nyc-dev-plus-aosp am: 38afad46d8Tao Bao2016-06-140-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 21793c32be Change-Id: I0656e3b6863fad36654b030b9bbdf05724969a29
| * | | | | | | | | | | | | | | | | | resolve merge conflicts of 490fad6 to nyc-dev-plus-aospTao Bao2016-06-140-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 38afad46d8 Change-Id: I597370534ef1bd4d65fea9e6054a499f88b282e9
| | * | | | | | | | | | | | | | | | | resolve merge conflicts of 490fad6 to nyc-dev-plus-aospTao Bao2016-06-141-57/+66
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I299fe15977c1a59d0c784728872c3a7f63c95e56
* | | | | | | | | | | | | | | | | | | resolve merge conflicts of 2a4386f to nyc-mr1-dev-plus-aospTao Bao2016-06-141-57/+66
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ff38526b22 Change-Id: I1f1edea0e6bfae1540e84867a4401fdeb543b879
| * | | | | | | | | | | | | | | | | | resolve merge conflicts of 2a4386f to nyc-mr1-dev-plus-aospTao Bao2016-06-141-57/+66
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I70eef6efaba6990fdae2b58b3bbca03407b6676e
| | * | | | | | | | | | | | | | | | | applypatch: Don\'t call inflate() when it expects zero-length output.Tao Bao2016-06-141-57/+66
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / | | | |/| | | | / / / / / / / / / / / | | | |_|_|_|_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 490fad6791 Change-Id: Id4df6fd73edf70ce88d3df4a5ebaeb665f38eef3
| | | * | | | | | | | | | | | | | | applypatch: Don't call inflate() when it expects zero-length output.Tao Bao2016-06-141-57/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We may have expanded_len == 0 when calling inflate(). After switching to using std::vector, it passes a nullptr buffer to inflate() and leads to Z_STREAM_ERROR. Bug: 29312140 Change-Id: Iab7c6c07a9e8488e844e7cdda76d02bd60d2ea98
* | | | | | | | | | | | | | | | | | Merge \\"recovery: Track the name change for wipe_ab.\\" into nyc-mr1-dev am: dc1393d09bTao Bao2016-06-131-12/+12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0146b37256 Change-Id: Idfea28dc1824394b60ea5c9ddb8ee77834c2d86a
| * | | | | | | | | | | | | | | | | Merge \"recovery: Track the name change for wipe_ab.\" into nyc-mr1-devTao Bao2016-06-131-12/+12
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dc1393d09b Change-Id: I7ec8d93bb41d0bd7f921fbb97c5b8639798e3bec
| | * | | | | | | | | | | | | | | | Merge "recovery: Track the name change for wipe_ab." into nyc-mr1-devTao Bao2016-06-131-12/+12
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | | | | | recovery: Track the name change for wipe_ab.Tao Bao2016-06-101-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 27253717 Change-Id: I6e63b2a80b7b2948c16e1b57dedc856d52456ac9
* | | | | | | | | | | | | | | | | | | Merge \\\\"updater: Fix the broken ReadFileFn.\\\\" am: 4ddd5edf31 am: 89dfe730d4 am: 1e67422f37Tao Bao2016-06-111-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d241c85cd0 Change-Id: Id5d0de845b101668ff30d19cc257d78e0575e58d
| * | | | | | | | | | | | | | | | | | Merge \\\"updater: Fix the broken ReadFileFn.\\\" am: 4ddd5edf31 am: 89dfe730d4Tao Bao2016-06-111-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1e67422f37 Change-Id: I3beade52bfaeea0e84055d007d82ff2ef5c07dbb
| | * | | | | | | | | | | | | | | | | Merge \\"updater: Fix the broken ReadFileFn.\\" am: 4ddd5edf31Tao Bao2016-06-111-1/+1
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 89dfe730d4 Change-Id: Ia465c92d341da4681d3490151a20e1e117271e52
| | | * | | | | | | | | | | | | | | | Merge \"updater: Fix the broken ReadFileFn.\"Tao Bao2016-06-111-1/+1
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|/ / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4ddd5edf31 Change-Id: Id73ccb86a3869198baf84b7978054b174c281c79
| | | | * | | | | | | | | | | | | | | Merge "updater: Fix the broken ReadFileFn."Tao Bao2016-06-111-1/+1
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | updater: Fix the broken ReadFileFn.Tao Bao2016-06-111-1/+1
| | | | | | |_|_|/ / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Was accidentally broken by the CL in [1]. [1]: commit d6c93afcc28cc65217ba65eeb646009c4f15a2ad Change-Id: I851e13ccea6f5be6fcd47f712cc95867245f9934
* | | | | | | | | | | | | | | | | | | Log source/target build version to last_install am: b0ddae55e5 am: dcf1089771Tianjie Xu2016-06-100-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d8f519607c Change-Id: I1be3af313d27eb87b7c1864ba6e657b196a8c04b
| * | | | | | | | | | | | | | | | | | Log source/target build version to last_install am: b0ddae55e5Tianjie Xu2016-06-100-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dcf1089771 Change-Id: Iec992f05f0721b4509d996bbacdbcb7cdd397e5c
| | * | | | | | | | | | | | | | | | | Log source/target build version to last_installTianjie Xu2016-06-101-0/+55
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|/ / / / / / / / / / / / | | |/| | | | | / / / / / / / / / / / | | | | |_|_|_|/ / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b0ddae55e5 Change-Id: I8be36165769d4159e4578f9fea54f332e4e77c6c
* | | | | | | | | | | | | | | | | | Log source/target build version to last_install am: b0ddae55e5 am: 9d2657fbb7Tianjie Xu2016-06-101-0/+55
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 32027d8438 Change-Id: I8691365a80aaa9cf2c138dcaae005970dba44a1b
| * | | | | | | | | | | | | | | | | Log source/target build version to last_install am: b0ddae55e5Tianjie Xu2016-06-101-0/+55
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9d2657fbb7 Change-Id: I3bb89e59b0e21d415fa1b5681f08803ffd787169
| | * | | | | | | | | | | | | | | | Log source/target build version to last_installTianjie Xu2016-06-101-0/+55
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b0ddae55e5 Change-Id: Ifd9e006588de8bea233a4e90a5c80ed6b894054a
| | | * | | | | | | | | | | | | | | Log source/target build version to last_installTianjie Xu2016-06-101-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Parse the build.version.incremental from the metadata of the update package; and log it to last_install. Example: In metadata we read: post-build-incremental=2951741 pre-build-incremental=2943039 In last install we log: source_build: 2943039 target_build: 2951741 Bug: 28658632 Change-Id: I0a9cc2d01644846e18bda31f4193ff40e8924486
* | | | | | | | | | | | | | | | | | Merge \\\\"Remove etc/META-INF/com/google/android/update-script.\\\\" am: 5b2191a9d6 am: 5be6ae12b5 am: 21c4f4e6e6Elliott Hughes2016-06-101-8/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fc29db992a Change-Id: I9e530f8a40c600fe00c2bff26dbe99c5d07bb195
| * | | | | | | | | | | | | | | | | Merge \\\"Remove etc/META-INF/com/google/android/update-script.\\\" am: 5b2191a9d6 am: 5be6ae12b5Elliott Hughes2016-06-101-8/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 21c4f4e6e6 Change-Id: I62527d8d5217384c1524090da3428fea31d03615
| | * | | | | | | | | | | | | | | | Merge \\"Remove etc/META-INF/com/google/android/update-script.\\" am: 5b2191a9d6Elliott Hughes2016-06-101-8/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5be6ae12b5 Change-Id: Ia2aace34275d4ef517b0bf47a8c9ae04f47a3f05
| | | * | | | | | | | | | | | | | | Merge \"Remove etc/META-INF/com/google/android/update-script.\"Elliott Hughes2016-06-101-8/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|/ / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5b2191a9d6 Change-Id: Ie27f4c9d78de710eb45a87fed9c0aaf6b71404b6
| | | | * | | | | | | | | | | | | | Merge "Remove etc/META-INF/com/google/android/update-script."Elliott Hughes2016-06-101-8/+0
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|/ / / / / / / / / / / | | | | |/| | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | Remove etc/META-INF/com/google/android/update-script.Elliott Hughes2016-06-101-8/+0
| | | | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/29250988 Change-Id: I61f8c6717b38de2242e4ea8e0913237c1ce5bfea
* | | | | | | | | | | | | | | | | Merge \"resolve merge conflicts of 6aa6ddb to nyc-dev am: 771b6eb8d9 am: 91d78acbd3\" into nyc-mr1-dev-plus-aospAlain Vongsouvanh2016-06-080-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ab380fd77d Change-Id: I7c96593906f26e71eae8760e3f474ac2e8115f38
| * | | | | | | | | | | | | | | | Merge "resolve merge conflicts of 6aa6ddb to nyc-dev am: 771b6eb8d9 am: 91d78acbd3" into nyc-mr1-dev-plus-aospAndroid Build Merger (Role)2016-06-080-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ resolve merge conflicts of 6aa6ddb to nyc-dev am: 771b6eb8d9Alain Vongsouvanh2016-06-081-1/+1
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|/ / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 91d78acbd3 Change-Id: Ib2c1caa0a5f43d708634aaa69b8b1a9fc094edeb
| | | * | | | | | | | | | | | | | | resolve merge conflicts of 6aa6ddb to nyc-devAlain Vongsouvanh2016-06-081-1/+1
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|/ / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 771b6eb8d9 Change-Id: Icc7290bbdf7b7420bab34b56f4e368f93b007053
* | | | | | | | | | | | | | | | | | resolve merge conflicts of 6aa6ddb to nyc-dev am: 771b6eb8d9 am: 2a697feb39Alain Vongsouvanh2016-06-081-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 61da13a57f Change-Id: I38702eb8b5e7a8455cc2a531e5c0fffaa4d955cc
| * | | | | | | | | | | | | | | | | resolve merge conflicts of 6aa6ddb to nyc-dev am: 771b6eb8d9Alain Vongsouvanh2016-06-081-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / | |/| | | / / / / / / / / / / / / / | | | |_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2a697feb39 Change-Id: Id1dcd42164121b4c31089c47fb56fb317da19896
| | * | | | | | | | | | | | | | | resolve merge conflicts of 6aa6ddb to nyc-devAlain Vongsouvanh2016-06-081-1/+1
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 771b6eb8d9 Change-Id: Ie0dabf5fb0930b75117193ae31e73df62d885903
| | | * | | | | | | | | | | | | | resolve merge conflicts of 6aa6ddb to nyc-devAlain Vongsouvanh2016-06-081-1/+1
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|/ / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I3696fe3e86e0222c7c26b0aa2bf1dd8e03ac5315
| | | | * | | | | | | | | | | | | recovery: Make wear recovery more customizable.Alain Vongsouvanh2016-06-082-3/+4
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | |_|_|/ / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5b00110e3d Change-Id: I88ab75e875cea8813ab4bdc9f099c31609ace6fd
| | | | | * | | | | | | | | | | | recovery: Make wear recovery more customizable.Alain Vongsouvanh2016-06-072-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Making animation_fps protected and adding support for 0 frames intro. BUG: 29085786 Change-Id: I07b44570022bad89661973178d453592c01f3f10
* | | | | | | | | | | | | | | | | resolve merge conflicts of 1afa4d7 to nyc-mr1-dev-plus-aospTao Bao2016-06-040-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: df956eceef * commit 'df956eceefb6bf7addc0057572741237cacdfa12': recovery: Add support to brick a device. Change-Id: Ib918b66e3ba07f09da34781cc36307acac0a23e7
| * | | | | | | | | | | | | | | | resolve merge conflicts of 1afa4d7 to nyc-mr1-dev-plus-aospTao Bao2016-06-040-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8fca64ebdbafe27f02d359619aa60ab82618114a
| | * | | | | | | | | | | | | | | Merge "recovery: Add support to brick a device." into nyc-mr1-devTao Bao2016-06-041-1/+91
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | | | | recovery: Add support to brick a device.Tao Bao2016-06-031-1/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When recovery starts with --brick, it tries to brick the device by securely wiping all the partitions as listed in /etc/recovery.brick. This is designed to support bricking lost devices. Bug: 27253717 Change-Id: Ib0bd4f0a3bdaca4febc91fce6b682e3ec74354e2 (cherry picked from commit 862a4c11190d72851a72a2b97375ec2698078358)
* | | | | | | | | | | | | | | | | | resolve merge conflicts of 7ce287d to nyc-dev-plus-aosp am: 64f46fb16cTianjie Xu2016-06-040-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3295d1993a * commit '3295d1993a1ddbfe17c5d5750f2ca975359662b2': Change-Id: Id26f893567cdb867322de9f745aaf78510e2cd5c
| * | | | | | | | | | | | | | | | | resolve merge conflicts of 7ce287d to nyc-dev-plus-aospTianjie Xu2016-06-040-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 64f46fb16c * commit '64f46fb16ccae69f7a826585c5eaba48fe1b05da': Change-Id: I2385636728c2d1f874d8c8b72f38237b2f8d5be9
| | * | | | | | | | | | | | | | | | resolve merge conflicts of 7ce287d to nyc-dev-plus-aospTianjie Xu2016-06-044-14/+76
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2194d1170281f58eb508f2ef63b39c8729125f76
* | | | | | | | | | | | | | | | | | resolve merge conflicts of 57ad046 to nyc-mr1-dev-plus-aospTianjie Xu2016-06-044-14/+76
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 894176632c * commit '894176632c7295875d01cfdc273b706996c483a4': Call ioctl before each write on retry Change-Id: I814e7c9409d94aed8733a9e1fc562394f8da1e76
| * | | | | | | | | | | | | | | | | resolve merge conflicts of 57ad046 to nyc-mr1-dev-plus-aospTianjie Xu2016-06-044-14/+76
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I98502950a0882050f5ed1acb0549b218b2cd06e4
| | * | | | | | | | | | | | | | | | Call ioctl before each write on retryTianjie Xu2016-06-044-14/+76
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / | | | |/| / / / / / / / / / / / / / | | | |_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7ce287d432 * commit '7ce287d432dd3a4dc8841fc59e11ee1a0b7808a1': Call ioctl before each write on retry Change-Id: Iae05ceca190c253d0be3ae9e4054abf4d0dbe751
| | | * | | | | | | | | | | | | | Call ioctl before each write on retryTianjie Xu2016-06-034-14/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the update is a retry, ioctl(BLKDISCARD) the destination blocks before writing to these blocks. Bug: 28990135 Change-Id: I1e703808e68ebb1292cd66afd76be8fd6946ee59
* | | | | | | | | | | | | | | | | resolve merge conflicts of fe8e356 to nyc-dev-plus-aosp am: ba33da2884Tao Bao2016-06-041-1/+91
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8dc1909901 * commit '8dc190990154e8fff483084e4b44a1fdce507f0f': recovery: Add support to brick a device. Change-Id: I314215e1230d0167b27602c387df517e244b7455
| * | | | | | | | | | | | | | | | resolve merge conflicts of fe8e356 to nyc-dev-plus-aospTao Bao2016-06-041-1/+91
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ba33da2884 * commit 'ba33da288418387234637c6806e103936530cb53': recovery: Add support to brick a device. Change-Id: I44c667f8eb0d003a9cc84ea457f91b44263af7df
| | * | | | | | | | | | | | | | | resolve merge conflicts of fe8e356 to nyc-dev-plus-aospTao Bao2016-06-031-1/+91
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|/ / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I18ecc333a76860405028b90b0baf2fba78d3942e
| | | * | | | | | | | | | | | | | Merge "recovery: Add support to brick a device."Tao Bao2016-06-031-1/+91
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|_|/ / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0ab866b354 * commit '0ab866b3544ff999293b2c296908e969d72b5799': recovery: Add support to brick a device. Change-Id: I4a106a6780b48f32d2776a436cc6445b3746fcc0
| | | | * | | | | | | | | | | | | Merge "recovery: Add support to brick a device."Tao Bao2016-06-031-1/+91
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | recovery: Add support to brick a device.Tao Bao2016-06-031-1/+91
| | | | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When recovery starts with --brick, it tries to brick the device by securely wiping all the partitions as listed in /etc/recovery.brick. This is designed to support bricking lost devices. Bug: 27253717 Change-Id: Ib0bd4f0a3bdaca4febc91fce6b682e3ec74354e2
* | | | | | | | | | | | | | | | | Merge "Revert "Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector."" am: c96c9881a6 am: a7fca9402d am: e13a690c16Tao Bao2016-06-020-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 68fe0be25e * commit '68fe0be25e277668ebd60a034dd46e3be6f3a837': Revert "Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector." Change-Id: I11c76ffe7bc4ed7892315619490aea8c3750e86b
| * | | | | | | | | | | | | | | | Merge "Revert "Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector."" am: c96c9881a6 am: a7fca9402dTao Bao2016-06-011-38/+40
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e13a690c16 * commit 'e13a690c16a08fbcbcb13c4f271f24fc259f49b3': Revert "Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector." Change-Id: If1998189bb093906b97e41d3e2f4e10f89f92540
| | * | | | | | | | | | | | | | | Merge "Revert "Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector."" am: c96c9881a6Tao Bao2016-06-011-38/+40
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a7fca9402d * commit 'a7fca9402d9ee6dae80cae8bdafe9f7e0ed5e5e1': Revert "Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector." Change-Id: I4075fd84e12f48c2178ab21b78dc3efc7621a6c8
| | | * | | | | | | | | | | | | | Merge "Revert "Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector.""Tao Bao2016-06-011-38/+40
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c96c9881a6 * commit 'c96c9881a628caea9cc88d1c1fbf4d2988999712': Revert "Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector." Change-Id: Ie4f6b07f8526232b77e240fff37d73b3e35642cd
| | | | * | | | | | | | | | | | | Merge "Revert "Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector.""Tao Bao2016-06-011-38/+40
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | Revert "Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector."Tao Bao2016-06-011-38/+40
| | | | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 50a6f8c8335be920833d06e5dabd37de279c98a9. A mix of new and free leads to memory corruptions.
* | | | | | | | | | | | | | | | | Merge "Revert "Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector.""Tao Bao2016-06-011-38/+40
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | Revert "Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector."Tao Bao2016-06-011-38/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 51dc9444bcf8d8900a521795e873d07f6cd445ef. A new/free mismatch may lead to memory corruptions. Change-Id: I3e10ae9e514abe59c351d2f27bedd3f8fcd1d137
* | | | | | | | | | | | | | | | | | Merge "Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector." am: a8850710e5 am: 11c794b1a7 am: 23bb1d210dAdam Buchbinder2016-06-010-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 150c500641 * commit '150c500641a835153f6e707d451001cb122b6019': Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector. Change-Id: I9e3a208ca982be5332e4e05cb2985593b336c9a4
| * | | | | | | | | | | | | | | | | Merge "Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector." am: a8850710e5 am: 11c794b1a7Adam Buchbinder2016-06-011-40/+38
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 23bb1d210d * commit '23bb1d210d2f08d6789fefa69aa3b70714164983': Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector. Change-Id: Id3e7bd4462b2676e9a5927dd1b3466d9aa539e19
| | * | | | | | | | | | | | | | | | Merge "Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector." am: a8850710e5Adam Buchbinder2016-06-011-40/+38
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 11c794b1a7 * commit '11c794b1a7b02d074367f4c8d1f2017f8ac7d8e9': Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector. Change-Id: Ie3b21e9b2288011bcf9d3bac12aed3db831b410e
| | | * | | | | | | | | | | | | | | Merge "Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector."Adam Buchbinder2016-06-011-40/+38
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a8850710e5 * commit 'a8850710e588e7c6c0003066bae6edd426558059': Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector. Change-Id: I8363d2f5adbabc5c4a43d23aa7c2e6979ffd1bb5
| | | | * | | | | | | | | | | | | | Merge "Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector."Treehugger Robot2016-06-011-40/+38
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector.Adam Buchbinder2016-06-011-40/+38
| | | | |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following cppcheck reports: [imgdiff.cpp:197]: (error) Memory leak: img [imgdiff.cpp:386]: (error) Memory leak: img [imgdiff.cpp:656]: (error) Memory leak: data [imgdiff.cpp:664]: (error) Memory leak: data [imgdiff.cpp:668]: (error) Memory leak: data [imgdiff.cpp:668]: (error) Resource leak: f [imgdiff.cpp:820]: (error) Memory leak: bonus_data [imgdiff.cpp:824]: (error) Memory leak: bonus_data [imgdiff.cpp:824]: (error) Resource leak: f [imgdiff.cpp:847]: (error) Memory leak: bonus_data [imgdiff.cpp:851]: (error) Memory leak: bonus_data [imgdiff.cpp:856]: (error) Memory leak: bonus_data [imgdiff.cpp:860]: (error) Memory leak: bonus_data [imgdiff.cpp:227]: (error) Memory leak: temp_entries Change-Id: I06f878d0b677a25328e0deb84f65f3b7212e24b1 (cherry picked from commit 51dc9444bcf8d8900a521795e873d07f6cd445ef)
* | | | | | | | | | | | | | | | | | Merge "Revert "imgdiff: Generate statically linked imgdiff."" am: 59203510eb am: fd49adbdaf am: d8a518d711Tao Bao2016-06-011-2/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 50b793e139 * commit '50b793e139cc2b1d479fd3d50ec86975d3b6b19b': Revert "imgdiff: Generate statically linked imgdiff." Change-Id: I0043d779a4a035774a5ff4c6845c31d6c7b500a3
| * | | | | | | | | | | | | | | | | Merge "Revert "imgdiff: Generate statically linked imgdiff."" am: 59203510eb am: fd49adbdafTao Bao2016-06-011-2/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d8a518d711 * commit 'd8a518d711f6958c04c28e4ee767121c201f2d9a': Revert "imgdiff: Generate statically linked imgdiff." Change-Id: I47db6e16750e4f4c0cfa56b076871fd6729bce48
| | * | | | | | | | | | | | | | | | Merge "Revert "imgdiff: Generate statically linked imgdiff."" am: 59203510ebTao Bao2016-06-011-2/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fd49adbdaf * commit 'fd49adbdaf3639b7e4565c6ef67bb060612e26c4': Revert "imgdiff: Generate statically linked imgdiff." Change-Id: Id391b970b3f7cda5ead0cb469b2d09379059e89d
| | | * | | | | | | | | | | | | | | Merge "Revert "imgdiff: Generate statically linked imgdiff.""Tao Bao2016-06-011-2/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 59203510eb * commit '59203510eb5827ec36078e54076c809f82641821': Revert "imgdiff: Generate statically linked imgdiff." Change-Id: I5671a20ed1f01a61dfb36ecd0ad4db3002ca5045
| | | | * | | | | | | | | | | | | | Merge "Revert "imgdiff: Generate statically linked imgdiff.""Tao Bao2016-06-011-2/+1
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | Revert "imgdiff: Generate statically linked imgdiff."Tao Bao2016-06-011-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b4422bd76952be4321cfbce3220bcb4fd41b5154. Bug: 28941046 Change-Id: Ic3c7439c64b8e55832252850514f721a944993d6
* | | | | | | | | | | | | | | | | | | Merge "imgdiff: Generate statically linked imgdiff." am: 680d783ecc am: a83b798c57 am: f90090d429Tao Bao2016-06-011-1/+2
|\| | | | | | | | | | | | | | | | | | | |_|_|_|_|/ / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 197e4afea4 * commit '197e4afea4600599ee18c83428cc25d2ce5fc6ca': imgdiff: Generate statically linked imgdiff. Change-Id: I7ac7ab9d25cb95ced69d98d4c33349a2590a446a
| * | | | | | | | | | | | | | | | | Merge "imgdiff: Generate statically linked imgdiff." am: 680d783ecc am: a83b798c57Tao Bao2016-06-011-1/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f90090d429 * commit 'f90090d4298e3a3a89f24a76199a93838b08db89': imgdiff: Generate statically linked imgdiff. Change-Id: I38e6ba8e896d7bfe97351673a1f5e5da1ff4708f
| | * | | | | | | | | | | | | | | | Merge "imgdiff: Generate statically linked imgdiff." am: 680d783eccTao Bao2016-06-011-1/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a83b798c57 * commit 'a83b798c57e10301bca4486ca42e0cabaee5d188': imgdiff: Generate statically linked imgdiff. Change-Id: Ib51333ea8a0d3d533777198a58ea987af31ebed4
| | | * | | | | | | | | | | | | | | Merge "imgdiff: Generate statically linked imgdiff."Tao Bao2016-06-011-1/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 680d783ecc * commit '680d783eccbc6b1154495a5040e6483f1f42bb89': imgdiff: Generate statically linked imgdiff. Change-Id: Icdf693eacf655d38e1dcceb76ea9e2742e965b2f
| | | | * | | | | | | | | | | | | | Merge "imgdiff: Generate statically linked imgdiff."Tao Bao2016-06-011-1/+2
| | | | |\| | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | imgdiff: Generate statically linked imgdiff.Tao Bao2016-05-311-1/+2
| | | | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 28941046 Change-Id: If3019d8cff91fd4f6fa4516bef5a0f51c2ddebc7
* | | | | | | | | | | | | | | | | Fix memory/resource handling in imgdiff.cpp, using unique_ptr and vector.Adam Buchbinder2016-05-261-40/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following cppcheck reports: [imgdiff.cpp:197]: (error) Memory leak: img [imgdiff.cpp:386]: (error) Memory leak: img [imgdiff.cpp:656]: (error) Memory leak: data [imgdiff.cpp:664]: (error) Memory leak: data [imgdiff.cpp:668]: (error) Memory leak: data [imgdiff.cpp:668]: (error) Resource leak: f [imgdiff.cpp:820]: (error) Memory leak: bonus_data [imgdiff.cpp:824]: (error) Memory leak: bonus_data [imgdiff.cpp:824]: (error) Resource leak: f [imgdiff.cpp:847]: (error) Memory leak: bonus_data [imgdiff.cpp:851]: (error) Memory leak: bonus_data [imgdiff.cpp:856]: (error) Memory leak: bonus_data [imgdiff.cpp:860]: (error) Memory leak: bonus_data [imgdiff.cpp:227]: (error) Memory leak: temp_entries Change-Id: I06f878d0b677a25328e0deb84f65f3b7212e24b1
* | | | | | | | | | | | | | | | | Disable the meaningless parts of the UI for A/B. am: 01fcbe160bElliott Hughes2016-05-242-14/+44
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 994bacf549 * commit '994bacf5496ba07240f70611b6c565f0dc24ca0c': Disable the meaningless parts of the UI for A/B. Change-Id: Iee8df4e288d3909612a71e6af062af7fa8c4b934
| * | | | | | | | | | | | | | | | Disable the meaningless parts of the UI for A/B.Elliott Hughes2016-05-242-14/+44
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 01fcbe160b * commit '01fcbe160bd49891c0680b80c5688cd4feb2adbc': Disable the meaningless parts of the UI for A/B. Change-Id: I86466cac3623b62db07bf48a38428be715ac3d3a
| | * | | | | | | | | | | | | | | Disable the meaningless parts of the UI for A/B.Elliott Hughes2016-05-242-14/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/28748484 Change-Id: Ie86a265f4699503471e7c717d65677a916dbd25b
* | | | | | | | | | | | | | | | | resolve merge conflicts of 50f6417 am: 3f6eb86390Tianjie Xu2016-05-240-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f51e507fa7 * commit 'f51e507fa714c7e00c70539d9c57723fc2ea060a': resolve merge conflicts of 50f6417 Change-Id: I2f44ff16dd4471d7944371f94508637171b80a6e
| * | | | | | | | | | | | | | | | resolve merge conflicts of 50f6417Tianjie Xu2016-05-240-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3f6eb86390 * commit '3f6eb86390e27707d1204e60e33b6a41e88f0dc8': resolve merge conflicts of 50f6417 Change-Id: Id8410b617d811dccfa0979cf82859c4880d216d5
| | * | | | | | | | | | | | | | | resolve merge conflicts of 50f6417Tianjie Xu2016-05-231-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a typo for ota_fclose(). Change-Id: Ia93e911aa5391afc604874fc3a09c5a45c094c80
* | | | | | | | | | | | | | | | | Merge "slot_metadata: add verity_corrupted field" am: 3788001b2c am: 1ae2434c11 am: f5e2831bf3Jeremy Compostella2016-05-241-1/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1afd591a09 * commit '1afd591a09cee35d0cafac3c1d7f236fe28cf274': slot_metadata: add verity_corrupted field Change-Id: Ic61d0514a8f224f35fe172b1056c6adb8bbc253c
| * | | | | | | | | | | | | | | | Merge "slot_metadata: add verity_corrupted field" am: 3788001b2c am: 1ae2434c11Jeremy Compostella2016-05-241-1/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f5e2831bf3 * commit 'f5e2831bf32fe1c0069c3c7bbeda876dbb83fe0a': slot_metadata: add verity_corrupted field Change-Id: I3a2c24a80e53a28fa7b56c64df5fc10ee7414f24
| | * | | | | | | | | | | | | | | Merge "slot_metadata: add verity_corrupted field" am: 3788001b2cJeremy Compostella2016-05-231-1/+4
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1ae2434c11 * commit '1ae2434c117a3cd0b504e3f3ad24730577836a69': slot_metadata: add verity_corrupted field Change-Id: I8c7bca4f0bb41268904d09309ef1b94215c24bc8
| | | * | | | | | | | | | | | | | Merge "slot_metadata: add verity_corrupted field"Jeremy Compostella2016-05-231-1/+4
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3788001b2c * commit '3788001b2c8a37e4111c9bc584a18a52664c2a88': slot_metadata: add verity_corrupted field Change-Id: Ib8c0ad4f7bb605b1b7420affcd102bf1eb9f47db
| | | | * | | | | | | | | | | | | Merge "slot_metadata: add verity_corrupted field"Treehugger Robot2016-05-231-1/+4
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | slot_metadata: add verity_corrupted fieldJeremy Compostella2016-05-231-1/+4
| | | | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In rootfs context, the verity mode must be supplied by the bootloader to the kernel. This patch creates a new verity_corrupted field in the slot metadata structure to remind that this slot is corrupted from a dm-verity point of view. If the bootloader receives the "dm-verity device corrupted" reboot target, it should set this bit to 1. If this bit value is 1, the bootloader should set the veritymode to "eio". Change-Id: I9335a39d7d009200318c58c53a3139d542788a9b Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
* | | | | | | | | | | | | | | | | resolve merge conflicts of 84478e8 to nyc-mr1-dev-plus-aospTianjie Xu2016-05-240-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 79c13cee26 * commit '79c13cee260ebca72752439353fa739aa6f3230f': Change-Id: Ie0322322b0ff1768bb6b4c85c4d0c638a1a850ab
| * | | | | | | | | | | | | | | | resolve merge conflicts of 84478e8 to nyc-mr1-dev-plus-aospTianjie Xu2016-05-240-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I84ed9e14d3103e5497a6d57fde0abafe9265a148
| | * | | | | | | | | | | | | | | resolve merge conflicts of 50f6417 to nyc-dev-plus-aospTianjie Xu2016-05-2311-105/+267
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I42c127f7946e678acf6596f6352f090abc0ca019
* | | | | | | | | | | | | | | | | resolve merge conflicts of 3aabd77 to nyc-mr1-dev-plus-aospTianjie Xu2016-05-2311-105/+266
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 549745cc87 * commit '549745cc8778f806e46809e472fbcf3c7f066b83': Allow recovery to return error codes Change-Id: I474bc0afb4e92ffafec9de60e1665e3aa3c2cf10
| * | | | | | | | | | | | | | | | resolve merge conflicts of 3aabd77 to nyc-mr1-dev-plus-aospTianjie Xu2016-05-2311-105/+266
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I834aba65cb29102055ff9e70969973a7870d0e60
| | * | | | | | | | | | | | | | | Merge "Allow recovery to return error codes" into nyc-devTianjie Xu2016-05-2311-104/+265
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 50f6417317 * commit '50f6417317f9e327ed76abaf34512370f8376245': Allow recovery to return error codes Change-Id: I4613291b3b4a0c34d5e6999f240465237472302e
| | | * | | | | | | | | | | | | | Merge "Allow recovery to return error codes" into nyc-devTianjie Xu2016-05-2311-104/+265
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | Allow recovery to return error codesTianjie Xu2016-05-2011-104/+265
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Write error code, cause code, and retry count into last_install. So we can have more information about the reason of a failed OTA. Example of new last_install: @/cache/recovery/block.map package name 0 install result retry: 1 retry count (new) error: 30 error code (new) cause: 12 error cause (new) Details in: go/android-ota-errorcode Bug: 28471955 Change-Id: I00e7153c821e7355c1be81a86c7f228108f3dc37
* | | | | | | | | | | | | | | | | | resolve merge conflicts of 86a28d0 to klp-modular-dev am: a5bc59620f am: 36acff7d7e am: 1f814d7630 am: ca45737e27 am: 8a1d4e97ad am: aa02888e55 am: 300af0779d am: fc1d9a49d1 am: b02b2fe392 am: 75dea9ca3a am: bd43d7e92bMatt Sarett2016-05-200-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9ca6bac199 * commit '9ca6bac1996e2210f35202b0d05738e8d0d951c0': Change-Id: I965414ad387bffd703e8c3bedc523beee43456c4
| * | | | | | | | | | | | | | | | | resolve merge conflicts of 86a28d0 to klp-modular-dev am: a5bc59620f am: 36acff7d7e am: 1f814d7630 am: ca45737e27 am: 8a1d4e97ad am: aa02888e55 am: 300af0779d am: fc1d9a49d1 am: b02b2fe392 am: 75dea9ca3aMatt Sarett2016-05-200-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bd43d7e92b * commit 'bd43d7e92bec3b69f8318d74cd11936a622efef4': Change-Id: I4c8ed47e3a5ca4dba3e423332bc6252e9ec92e43
| | * | | | | | | | | | | | | | | | resolve merge conflicts of 86a28d0 to klp-modular-dev am: a5bc59620f am: 36acff7d7e am: 1f814d7630 am: ca45737e27 am: 8a1d4e97ad am: aa02888e55 am: 300af0779d am: fc1d9a49d1 am: b02b2fe392Matt Sarett2016-05-200-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 75dea9ca3a * commit '75dea9ca3aabe23bed2d9f15b70dbdd5efb18cd1': DO NOT MERGE Use updated libpng API Change-Id: I75e0414350115ec133d9905263c01c3b385512b3
* | | | | | | | | | | | | | | | | | resolve merge conflicts of 86a28d0 to klp-modular-dev am: a5bc59620f am: 36acff7d7e am: 1f814d7630 am: ca45737e27 am: 8a1d4e97ad am: aa02888e55 am: 300af0779d am: fc1d9a49d1 am: b02b2fe392 am: 75dea9ca3a am: 8a55c65345Matt Sarett2016-05-200-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b898481de7 * commit 'b898481de7f2d3d7617da04a58aa320e58aa72a4': DO NOT MERGE Use updated libpng API Change-Id: I5cdfad96ed0a6ffde2c197ef7957192d9b0c1a16
| * | | | | | | | | | | | | | | | | resolve merge conflicts of 86a28d0 to klp-modular-dev am: a5bc59620f am: 36acff7d7e am: 1f814d7630 am: ca45737e27 am: 8a1d4e97ad am: aa02888e55 am: 300af0779d am: fc1d9a49d1 am: b02b2fe392 am: 75dea9ca3aMatt Sarett2016-05-200-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8a55c65345 * commit '8a55c653458c2d33af506b193e658faf8f88bfa3': DO NOT MERGE Use updated libpng API Change-Id: Id8a3a6a56edc5fbc9a10e08d9c09f47850964612
| | * | | | | | | | | | | | | | | | resolve merge conflicts of 86a28d0 to klp-modular-dev am: a5bc59620f am: 36acff7d7e am: 1f814d7630 am: ca45737e27 am: 8a1d4e97ad am: aa02888e55 am: 300af0779d am: fc1d9a49d1 am: b02b2fe392Matt Sarett2016-05-200-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 75dea9ca3a * commit '75dea9ca3aabe23bed2d9f15b70dbdd5efb18cd1': DO NOT MERGE Use updated libpng API Change-Id: Id23a9528e6413e40cd3249e0143c02798dcec4cc
| | | * | | | | | | | | | | | | | | resolve merge conflicts of 86a28d0 to klp-modular-dev am: a5bc59620f am: 36acff7d7e am: 1f814d7630 am: ca45737e27 am: 8a1d4e97ad am: aa02888e55 am: 300af0779d am: fc1d9a49d1Matt Sarett2016-05-200-0/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / | | | |/| | | | / / / / / / / / / / | | | | | |_|_|/ / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b02b2fe392 * commit 'b02b2fe392827a423c7783522edc5b9ad3d4f130': DO NOT MERGE Use updated libpng API Change-Id: Ie6e8c5118687f0d34fc4acffdcb1d784e71e411f
| | | | * | | | | | | | | | | | | resolve merge conflicts of 86a28d0 to klp-modular-dev am: a5bc59620f am: 36acff7d7e am: 1f814d7630 am: ca45737e27 am: 8a1d4e97ad am: aa02888e55 am: 300af0779dMatt Sarett2016-05-200-0/+0
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | |_|_|/ / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fc1d9a49d1 * commit 'fc1d9a49d1e33c133c96cf6b04d6f47d3cfaa496': DO NOT MERGE Use updated libpng API Change-Id: Id9da4d3980f394bf19032581629d0baf9c30e0fc
| | | | | * | | | | | | | | | | | resolve merge conflicts of 86a28d0 to klp-modular-dev am: a5bc59620f am: 36acff7d7e am: 1f814d7630 am: ca45737e27 am: 8a1d4e97ad am: aa02888e55Matt Sarett2016-05-200-0/+0
| | | | | |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | |_|_|/ / / / / / / / | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 300af0779d * commit '300af0779de3c2658f32e3de40adc41dae92df1e': DO NOT MERGE Use updated libpng API Change-Id: Iac60caa51e747fcde2c08ddf06323e8b1e98f36a
| | | | | | * | | | | | | | | | | resolve merge conflicts of 86a28d0 to klp-modular-dev am: a5bc59620f am: 36acff7d7e am: 1f814d7630 am: ca45737e27 am: 8a1d4e97adMatt Sarett2016-05-200-0/+0
| | | | | | |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | |_|_|/ / / / / / / | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: aa02888e55 * commit 'aa02888e55147ec78fa5636a87e2447bda136d68': DO NOT MERGE Use updated libpng API Change-Id: I10705dd579623e4b208093cfc4839aad496081c8
| | | | | | | * | | | | | | | | | resolve merge conflicts of 86a28d0 to klp-modular-dev am: a5bc59620f am: 36acff7d7e am: 1f814d7630 am: ca45737e27Matt Sarett2016-05-200-0/+0
| | | | | | | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8a1d4e97ad * commit '8a1d4e97ad3b748a06db618f9d7ccf5114ea16d0': DO NOT MERGE Use updated libpng API Change-Id: I09e8917976c05beec8bf881140539948c323ce58
| | | | | | | | * \ \ \ \ \ \ \ \ \ resolve merge conflicts of 86a28d0 to klp-modular-dev am: a5bc59620f am: 36acff7d7e am: 1f814d7630Matt Sarett2016-05-200-0/+0
| | | | | | | | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | |_|_|/ / / / / / | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ca45737e27 * commit 'ca45737e272aeefd657451a6faaa088d1903378c': DO NOT MERGE Use updated libpng API Change-Id: Ia9c36583c9d60d01fec7ee9aefc973dabb1c07d3
| | | | | | | | | * | | | | | | | | resolve merge conflicts of 86a28d0 to klp-modular-dev am: a5bc59620f am: 36acff7d7eMatt Sarett2016-05-200-0/+0
| | | | | | | | | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | |_|_|/ / / / / | | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1f814d7630 * commit '1f814d7630c56cc9e825ed411e068414c97acb6c': DO NOT MERGE Use updated libpng API Change-Id: Ib381e8ccefe9181911a2144d7255ecadefb42b5c
| | | | | | | | | | * | | | | | | | resolve merge conflicts of 86a28d0 to klp-modular-dev am: a5bc59620fMatt Sarett2016-05-200-0/+0
| | | | | | | | | |/| | | | | | | | | | | | | | | | | | | |_|_|/ / / / | | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 36acff7d7e * commit '36acff7d7e88549bbeab6a08488ab48596d7fbc5': DO NOT MERGE Use updated libpng API Change-Id: I7f01d932235ef69640ed4859d0e62344b3b774de
| | | | | | | | | | * | | | | | | resolve merge conflicts of 86a28d0 to klp-modular-devMatt Sarett2016-05-200-0/+0
| | | | | | | | | | |\ \ \ \ \ \ \ | | | | | | | | | | | | |_|_|/ / / | | | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a5bc59620f * commit 'a5bc59620fd43c99621eb98ac84cbeea867d0c93': DO NOT MERGE Use updated libpng API Change-Id: I3d8d27b08fd1fd89c6b8d9c39b883a45aecb83ce
| | | | | | | | | | | * | | | | | resolve merge conflicts of 86a28d0 to klp-modular-devMatt Sarett2016-05-190-0/+0
| | | | | | | | | | | |\ \ \ \ \ \ | | | | | | | | | | | | | |_|_|/ / | | | | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | Change-Id: Ic0b085e008155da3718dab8fd5a36be6d4059aee
| | | | | | | | | | | | * | | | | DO NOT MERGE Use updated libpng APIMatt Sarett2016-05-191-10/+10
| | | | | | | | | | | | |\ \ \ \ \ | | | | | | | | | | | | | | |_|_|/ | | | | | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 839b4e592a * commit '839b4e592a7c81bdebe08fae4eef6e909c89acd6': DO NOT MERGE Use updated libpng API Change-Id: I7bbece70a4129554d953fd22c71527b2ca11262e
| | | | | | | | | | | | | * | | | DO NOT MERGE Use updated libpng APIMatt Sarett2016-05-171-10/+10
| | | | | | | | | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG:23265085 Change-Id: Ibc521fae11dad22283d8469329326ef79525b414
* | | | | | | | | | | | | | | | Add time and I/O info to last_install am: dd874b1c87 am: 142b864ba1Tianjie Xu2016-05-180-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 46aa5911d8 * commit '46aa5911d810e09e2a90492dd5865cfe25c31b6d': Change-Id: Idd29ee0695656527fff8d8eda32f777e84b42193
| * | | | | | | | | | | | | | | Add time and I/O info to last_install am: dd874b1c87Tianjie Xu2016-05-180-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 142b864ba1 * commit '142b864ba1121365f8bc95075cb05495c351194e': Change-Id: I5b817e54c97bd67109e8269c93c3a1c14c0a3b86
| | * | | | | | | | | | | | | | Add time and I/O info to last_installTianjie Xu2016-05-182-4/+35
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dd874b1c87 * commit 'dd874b1c87eb04f28db0db2629df0adde568a74c': Add time and I/O info to last_install Change-Id: I02aa858d5ce488d3acbf5400811e2565cf7d9c75
* | | | | | | | | | | | | | | | Add time and I/O info to last_install am: dd874b1c87 am: 027b403e8aTianjie Xu2016-05-182-4/+35
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fb5d7f6172 * commit 'fb5d7f6172f88a9e26ef554ef56717798f83522d': Add time and I/O info to last_install Change-Id: I3e80f862aff97a2fbbd2324cbbc5d16aede196f3
| * | | | | | | | | | | | | | | Add time and I/O info to last_install am: dd874b1c87Tianjie Xu2016-05-182-4/+35
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|_|_|_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 027b403e8a * commit '027b403e8aa90ddc533e39e623df09fc319bb6ee': Add time and I/O info to last_install Change-Id: I04c368dd551946427f683df906eb42e0f2f740e9
| | * | | | | | | | | | | | | | Add time and I/O info to last_installTianjie Xu2016-05-182-4/+35
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dd874b1c87 * commit 'dd874b1c87eb04f28db0db2629df0adde568a74c': Add time and I/O info to last_install Change-Id: I487bdc54897816fe8ed24b441a848cac1dc29389
| | | * | | | | | | | | | | | | Add time and I/O info to last_installTianjie Xu2016-05-162-4/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One example of last_install is: /sideload/package.zip 1 time_total: 101 bytes_written_system: 14574000 bytes_stashed_system: 100 bytes_written_vendor: 5107400 bytes_stashed_vendor: 0 Bug: 28658632 Change-Id: I4bf79ea71a609068d38fbce6b41bcb892524aa7a
* | | | | | | | | | | | | | | | Merge "Keep ADF device alive for the lifetime of the minui backend" am: 14352497f0 am: 32c2e78726 am: 0cc7e28ffdJonathan Hamilton2016-05-121-6/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 856ba940b7 * commit '856ba940b75cf4cf0ab81319443d82fef40ada2f': Keep ADF device alive for the lifetime of the minui backend Change-Id: Ic43fc26c107b99b4caf1bd18832ee03e00f1799c
| * | | | | | | | | | | | | | | Merge "Keep ADF device alive for the lifetime of the minui backend" am: 14352497f0 am: 32c2e78726Jonathan Hamilton2016-05-121-6/+8
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0cc7e28ffd * commit '0cc7e28ffd00cff661d0120e9365b7bfa9bec533': Keep ADF device alive for the lifetime of the minui backend Change-Id: I3ff57ca546aa6d88a73d9ccf986af8e08fa4ee6e
| | * | | | | | | | | | | | | | Merge "Keep ADF device alive for the lifetime of the minui backend" am: 14352497f0Jonathan Hamilton2016-05-121-6/+8
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|_|_|_|_|_|_|_|/ / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 32c2e78726 * commit '32c2e78726fe9c7cdc927c8435352b2f8e824735': Keep ADF device alive for the lifetime of the minui backend Change-Id: If28a4b4c7098f1a5fcf8e46e03d0df575fc68fce
| | | * | | | | | | | | | | | | Merge "Keep ADF device alive for the lifetime of the minui backend"Jonathan Hamilton2016-05-121-6/+8
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|_|_|_|_|_|_|_|_|/ | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 14352497f0 * commit '14352497f02c38d4f9df46820284c100a1fb58d3': Keep ADF device alive for the lifetime of the minui backend Change-Id: I454b5dcae5bd2ee2e17d607ba70c6c020c76f387
| | | | * | | | | | | | | | | | Merge "Keep ADF device alive for the lifetime of the minui backend"Treehugger Robot2016-05-121-6/+8
| | | | |\ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | Keep ADF device alive for the lifetime of the minui backendJonathan Hamilton2016-05-061-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some ADF drivers do some amount of state cleanup when the ADF device node is closed, making and attempts to draw using it fail. This changes the minui ADF backend to keep the adf_device open until it is exited, fixing issues on such devices.
* | | | | | | | | | | | | | | | | Merge "updater, minzip: Remove unnecessary O_SYNC flags." am: c7d7eb2225 am: d03ee52eb7 am: eef053fda1Tao Bao2016-05-082-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: aec86d3692 * commit 'aec86d3692a9271db027e4478178c02451c558cc': updater, minzip: Remove unnecessary O_SYNC flags. Change-Id: I21018c49066f9bb69d21f358f1b684da5bd53add
| * | | | | | | | | | | | | | | | Merge "updater, minzip: Remove unnecessary O_SYNC flags." am: c7d7eb2225 am: d03ee52eb7Alistair Strachan2016-05-082-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: eef053fda1 * commit 'eef053fda1ed84b71f245dfe2890fd35c2ffe3bc': updater, minzip: Remove unnecessary O_SYNC flags. Change-Id: I013b5ea0bff4a8ac9f1b9ed1c4a1d18a67bb3b2c
| | * | | | | | | | | | | | | | | Merge "updater, minzip: Remove unnecessary O_SYNC flags." am: c7d7eb2225Tao Bao2016-05-082-2/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d03ee52eb7 * commit 'd03ee52eb77d9339b6445d3b4ee5ab7678007c7c': updater, minzip: Remove unnecessary O_SYNC flags. Change-Id: If20abd466bc7e6e918491e168bc00447d36f33da
| | | * | | | | | | | | | | | | | Merge "updater, minzip: Remove unnecessary O_SYNC flags."Alistair Strachan2016-05-082-2/+2
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c7d7eb2225 * commit 'c7d7eb2225c58034d7632ad00bd7269425e7b071': updater, minzip: Remove unnecessary O_SYNC flags. Change-Id: I3c2d0f95d658aab52d88f44999484590b09ea4cd
| | | | * | | | | | | | | | | | | Merge "updater, minzip: Remove unnecessary O_SYNC flags."Tao Bao2016-05-082-2/+2
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | updater, minzip: Remove unnecessary O_SYNC flags.Alistair Strachan2016-05-062-2/+2
| | | | | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove O_SYNC from mzExtractRecursive() and PackageExtractFileFn(). These functions deal with extracting whole files from the update package onto a filesystem. If run on ext4 on a rotating disk, for example, the O_SYNC flag will cause serious performance problems and the extraction proecss can take over 30 minutes, with no obvious benefits. This API function already calls fsync(fd) after each file is extracted to ensure data and metadata is written to the underlying block device, so the O_SYNC calls should be superfluous and safely removable. This change does not affect the OTA patch paths or any modification of the bootloader partition or writes to other 'emmc' partitions. Signed-off-by: Alistair Strachan <alistair.strachan@imgtec.com> Change-Id: I9cbb98a98e6278bf5c0d7efaae340773d1fbfcd2
* | | | | | | | | | | | | | | | | Merge "applypatch: Use bsdiff from external/bsdiff." am: 704cac2f99 am: 7caebae682 am: 22431741ceSen Jiang2016-05-063-425/+10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 24fdd7fbe7 * commit '24fdd7fbe7cda79a6d15a4cb1714286c18828135': applypatch: Use bsdiff from external/bsdiff. Change-Id: I1d43301f9dda77537880a425d008784d3c8ba6bf
| * | | | | | | | | | | | | | | | Merge "applypatch: Use bsdiff from external/bsdiff." am: 704cac2f99 am: 7caebae682Sen Jiang2016-05-063-425/+10
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 22431741ce * commit '22431741cec2255fa7d539d8f0903a180c66c53c': applypatch: Use bsdiff from external/bsdiff. Change-Id: Ic15b9f27df79a7a61a72c8bc3901337c0fa5c688
| | * | | | | | | | | | | | | | | Merge "applypatch: Use bsdiff from external/bsdiff." am: 704cac2f99Sen Jiang2016-05-063-425/+10
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7caebae682 * commit '7caebae6826c23b9d51a8d74fa6ab6a7d57c61c9': applypatch: Use bsdiff from external/bsdiff. Change-Id: Ie8e8288550d511cee78bf8747dc40e1cedc54800
| | | * | | | | | | | | | | | | | Merge "applypatch: Use bsdiff from external/bsdiff."Sen Jiang2016-05-063-425/+10
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 704cac2f99 * commit '704cac2f997dd45573593b00e2a266b06e2cc318': applypatch: Use bsdiff from external/bsdiff. Change-Id: Icd23009cb9dd48b119dcf0f67ecb335b6d79e020
| | | | * | | | | | | | | | | | | Merge "applypatch: Use bsdiff from external/bsdiff."Treehugger Robot2016-05-063-425/+10
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / | | | | |/| | | | | | | | | | | |
| | | | | * | | | | | | | | | | | applypatch: Use bsdiff from external/bsdiff.Sen Jiang2016-05-043-425/+10
| | | | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | external/bsdiff uses divsufsort which is much faster, and also include some bug fixes. Bug: 26982501 Test: ./imgdiff_test.sh Change-Id: I089a301c291ee55d79938c7a3ca6d509895440d1
* | | | | | | | | | | | | | | | Merge "recovery: Always log the update attempt." am: ecd6e2af50 am: 88234ad84b am: c66a83dac0Tao Bao2016-05-030-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fe36a2d0bd * commit 'fe36a2d0bd312c7edfefa5da098d400d664187a3': recovery: Always log the update attempt. Change-Id: I85e13bee2fa0c503392f9ea36f1676b8d09276e2
| * | | | | | | | | | | | | | | Merge "recovery: Always log the update attempt." am: ecd6e2af50 am: 88234ad84bTao Bao2016-05-030-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c66a83dac0 * commit 'c66a83dac049b1cbeda9e68cd2dcdacf581d0583': recovery: Always log the update attempt. Change-Id: Iec2dc942e8fb9aa138fb8b55842a0c7290fa69b0
| | * | | | | | | | | | | | | | Merge "recovery: Always log the update attempt." am: ecd6e2af50Tao Bao2016-05-030-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 88234ad84b * commit '88234ad84b9d1cd4b9360a7835bdf5e37044bec6': recovery: Always log the update attempt. Change-Id: I270b07d487b560f4b8dcc2fdc3df2fd2dccec468
| | | * | | | | | | | | | | | | Merge "recovery: Always log the update attempt."Tao Bao2016-05-031-0/+4
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ecd6e2af50 * commit 'ecd6e2af5060ba3f7d5c978be6d617d1242f231c': recovery: Always log the update attempt. Change-Id: I40c1f6f85c4aa0f1c12d4b0c47f937612669c6c8
| | | | * | | | | | | | | | | | Merge "recovery: Always log the update attempt."Treehugger Robot2016-05-031-0/+4
| | | | |\ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | recovery: Always log the update attempt.Tao Bao2016-05-031-0/+4
| | | | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An OTA may be skipped due to low battery. But we should always log it to understand why an update _fails_ to apply. Bug: 27893175 Change-Id: I50a3fbbb3e51035e0ac5f1cca150e283852825c3 (cherry picked from commit 568700189528c69a6cdd7a246127ce01463e033d)
* | | | | | | | | | | | | | | | Merge "Make text for recovery larger on angler am: 087c5edd8d am: 26f5ab0e9c" into nyc-mr1-dev-plus-aospTianjie Xu2016-05-020-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 805292f764 * commit '805292f76435b0ca14fcfcd192884bbbaf77a424': Change-Id: I31c9407e924503371ca97208a7592fb617a4dd98
| * | | | | | | | | | | | | | | Merge "Make text for recovery larger on angler am: 087c5edd8d am: 26f5ab0e9c" into nyc-mr1-dev-plus-aospAndroid Build Merger (Role)2016-05-020-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | | | | Make text for recovery larger on angler am: 087c5edd8dTianjie Xu2016-05-021-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 26f5ab0e9c * commit '26f5ab0e9c4ca93ae461b7284d15bb25da18f084': Make text for recovery larger on angler Change-Id: I5e34aa115fc1c3f82a8d40146286bf52dc31fc2e
| | | * | | | | | | | | | | | | | Make text for recovery larger on anglerTianjie Xu2016-05-021-1/+1
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|/ / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 087c5edd8d * commit '087c5edd8dc1e7d46a38ff2df220c29e96b17a1b': Make text for recovery larger on angler Change-Id: I3b56dff9acced0b355643042a0dffb28bd88d6d2
* | | | | | | | | | | | | | | | | Make text for recovery larger on angler am: 087c5edd8d am: ba4e7977e4Tianjie Xu2016-05-021-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1c93e2e6cf * commit '1c93e2e6cf15eabb4d23deaa0738b92252f31816': Make text for recovery larger on angler Change-Id: I49bdc07f496f13d292b8d0256a0fb805ec49fe8e
| * | | | | | | | | | | | | | | | Make text for recovery larger on angler am: 087c5edd8dTianjie Xu2016-05-021-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / | |/| | | | | / / / / / / / / / / | | | |_|_|_|/ / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ba4e7977e4 * commit 'ba4e7977e4bcf382eb0cd4e6fa6ca44febe13f83': Make text for recovery larger on angler Change-Id: I2ae25767e5d3fec45068f04398a8052c9b8cb821
| | * | | | | | | | | | | | | | Make text for recovery larger on anglerTianjie Xu2016-05-021-1/+1
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 087c5edd8d * commit '087c5edd8dc1e7d46a38ff2df220c29e96b17a1b': Make text for recovery larger on angler Change-Id: I54421156aa6c261e9aa8a68fade71eebb5ed95fa
| | | * | | | | | | | | | | | | Make text for recovery larger on anglerTianjie Xu2016-05-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the link for 560dpi to xxxhdpi from xxhdpi. Bug: 22465983 Change-Id: I7141ee568cf3e73cdc7e0de986d705c19ac53b1f
* | | | | | | | | | | | | | | | resolve merge conflicts of 5823dd4 to nyc-dev-plus-aosp am: cacb47b2a3Tianjie Xu2016-05-020-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b5de6a20a7 * commit 'b5de6a20a71bc39f9e48535fb7c351e91561bf87': Change-Id: I62f47baf6c146879270de240c619c59cff8261ee
| * | | | | | | | | | | | | | | resolve merge conflicts of 5823dd4 to nyc-dev-plus-aospTianjie Xu2016-05-020-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cacb47b2a3 * commit 'cacb47b2a38a84eaae94dd10857a83b7c6b1885e': Change-Id: Icdaf7e9132e807ae9a7076b92b91bae8632269ec
| | * | | | | | | | | | | | | | resolve merge conflicts of 5823dd4 to nyc-dev-plus-aospTianjie Xu2016-05-025-1/+23
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I4ec33904a6af38d81b422c7be6f40b828fbc7525
* | | | | | | | | | | | | | | | resolve merge conflicts of 23c7af7 to nyc-mr1-dev-plus-aospTianjie Xu2016-05-025-1/+23
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 70b5353274 * commit '70b5353274a72109b7cb8b259f40075f073f35a0': Add ability to show "installing security update" Change-Id: I6d6a5e0bdaedb7c02ff81a7761b03d7781e71ced
| * | | | | | | | | | | | | | | resolve merge conflicts of 23c7af7 to nyc-mr1-dev-plus-aospTianjie Xu2016-05-025-1/+23
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I04a73db90ddb059dbb5b44fafd8e82d03ea90ca5
| | * | | | | | | | | | | | | | Merge "Add ability to show "installing security update"" into nyc-devTianjie Xu2016-05-025-1/+23
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5823dd46df * commit '5823dd46df9667c43e8fc3f5ff79987b7432da3f': Add ability to show "installing security update" Change-Id: Ibe1667e9bd721d73a972f9c21a322c8ea088dc63
| | | * | | | | | | | | | | | | Merge "Add ability to show "installing security update"" into nyc-devTianjie Xu2016-05-025-1/+23
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | Add ability to show "installing security update"Tianjie Xu2016-04-295-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new command "--security" to boot commands. If this command is observed as part of BCB, choose a different background text picture for installing stage in recovery UI. As a result, users will see "installing security update" instead of "installing system update" when applying a security update package. Bug: 27837319 Change-Id: I2e2253a124993ecc24804fa1ee0b918ac96837c5
* | | | | | | | | | | | | | | | | Merge "recovery: Always log the update attempt. am: 5687001895 am: f13662a349" into nyc-mr1-dev-plus-aospTao Bao2016-05-020-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ce7c6ff48e * commit 'ce7c6ff48ea95304d0013e3856fd939082d526ac': Change-Id: I029717857d934b998d4f81eacb725548646fefe2
| * | | | | | | | | | | | | | | | Merge "recovery: Always log the update attempt. am: 5687001895 am: f13662a349" into nyc-mr1-dev-plus-aospAndroid Build Merger (Role)2016-05-020-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | | | | | recovery: Always log the update attempt. am: 5687001895Tao Bao2016-05-021-0/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f13662a349 * commit 'f13662a349cd625504bacfe82a9696a3ead726ec': recovery: Always log the update attempt. Change-Id: I8d111ff9bf410d87e957d6a475c319abba5c7489
| | | * | | | | | | | | | | | | | | recovery: Always log the update attempt.Tao Bao2016-05-021-0/+4
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5687001895 * commit '568700189528c69a6cdd7a246127ce01463e033d': recovery: Always log the update attempt. Change-Id: I48f3199c4640a17ae022879082f8de9948d94925
* | | | | | | | | | | | | | | | | | recovery: Always log the update attempt. am: 5687001895 am: e0c8a9bb02Tao Bao2016-05-021-0/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 41584111b5 * commit '41584111b56bab9c8503db56d9acc6f9b198f50c': recovery: Always log the update attempt. Change-Id: I61352e48b54f1348c4334dbf34bbca95b20ddf19
| * | | | | | | | | | | | | | | | | recovery: Always log the update attempt. am: 5687001895Tao Bao2016-05-021-0/+4
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / | |/| | | | / / / / / / / / / / / / | | | |_|_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e0c8a9bb02 * commit 'e0c8a9bb02d4518c0723ea56b02da51373ddb5e9': recovery: Always log the update attempt. Change-Id: I02178398bd8bbee8c106320a9e9564bedd19c97a
| | * | | | | | | | | | | | | | | recovery: Always log the update attempt.Tao Bao2016-05-021-0/+4
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5687001895 * commit '568700189528c69a6cdd7a246127ce01463e033d': recovery: Always log the update attempt. Change-Id: Ibf0d564c26bb5045fe24466a415dea13cd3a5a18
| | | * | | | | | | | | | | | | | recovery: Always log the update attempt.Tao Bao2016-04-301-0/+4
| | | | |/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An OTA may be skipped due to low battery. But we should always log it to understand why an update _fails_ to apply. Bug: 27893175 Change-Id: I50a3fbbb3e51035e0ac5f1cca150e283852825c3
* | | | | | | | | | | | | | | | Merge "Fix google-explicit-constructor warnings." am: fafa6a6531 am: 77d7cb1d0a am: 8d3b85a320Chih-hung Hsieh2016-04-301-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ac7d8f278b * commit 'ac7d8f278b65142ddd84bc15331e3daef5946059': Fix google-explicit-constructor warnings. Change-Id: I333dd160ccee076431e5accc51d91646c5ead1ac
| * | | | | | | | | | | | | | | Merge "Fix google-explicit-constructor warnings." am: fafa6a6531 am: 77d7cb1d0aChih-Hung Hsieh2016-04-301-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8d3b85a320 * commit '8d3b85a32005df441ae0afde7b9f924824f1446e': Fix google-explicit-constructor warnings. Change-Id: I1eac3384574974067701031b952e9a59aac81ba7
| | * | | | | | | | | | | | | | Merge "Fix google-explicit-constructor warnings." am: fafa6a6531Chih-hung Hsieh2016-04-301-1/+1
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 77d7cb1d0a * commit '77d7cb1d0ab56a726af4b8e07753c8d4c4f65c25': Fix google-explicit-constructor warnings. Change-Id: Iccde2abd9bf0c35c36a1856c7a02207314af466f
| | | * | | | | | | | | | | | | Merge "Fix google-explicit-constructor warnings."Chih-Hung Hsieh2016-04-301-1/+1
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|/ / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fafa6a6531 * commit 'fafa6a65314a5550a045c96768f595567db7bc2d': Fix google-explicit-constructor warnings. Change-Id: Ie13217c835f3b092440e913c407ad5b63b2edcb9
| | | | * | | | | | | | | | | | Merge "Fix google-explicit-constructor warnings."Chih-hung Hsieh2016-04-301-1/+1
| | | | |\ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | Fix google-explicit-constructor warnings.Chih-Hung Hsieh2016-04-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 28341362 Change-Id: I5b35ae16c069e7e9229e66963386f322bd808af1
* | | | | | | | | | | | | | | | | Merge "updater: Don\'t zero out CommandParameters with memset(3)." am: df59cee am: 4458d3e am: 6bfe76eTao Bao2016-04-281-2/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 187e7c7 * commit '187e7c7ab027af90409371fd08386e6d1c2eac3b': updater: Don't zero out CommandParameters with memset(3). Change-Id: I0e894b103a5c1a43a24177707fc1190764c1ea45
| * | | | | | | | | | | | | | | | Merge "updater: Don\'t zero out CommandParameters with memset(3)." am: df59cee am: 4458d3eTao Bao2016-04-281-2/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6bfe76e * commit '6bfe76e1fefa7fd4c8f1accb9d8959e382ba7bae': updater: Don't zero out CommandParameters with memset(3). Change-Id: I057454ed02d17b3fec2fbb4a653b4aedeeee2a43
| | * | | | | | | | | | | | | | | Merge "updater: Don\'t zero out CommandParameters with memset(3)." am: df59ceeTao Bao2016-04-281-2/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4458d3e * commit '4458d3e552736facb7b9cd832744d8d47325b4a3': updater: Don't zero out CommandParameters with memset(3). Change-Id: Icc996f7c038a1eb9f861108fffc55e552aa0c42c
| | | * | | | | | | | | | | | | | Merge "updater: Don\'t zero out CommandParameters with memset(3)."Tao Bao2016-04-281-2/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: df59cee * commit 'df59ceecfb939c02593425a89757b54c50cc91cf': updater: Don't zero out CommandParameters with memset(3). Change-Id: I36d1395257da1d122e76f8552bb3a2a8f96f60b7
| | | | * | | | | | | | | | | | | Merge "updater: Don't zero out CommandParameters with memset(3)."Tao Bao2016-04-281-2/+1
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / | | | | |/| | | | | | | | | | | |
| | | | | * | | | | | | | | | | | updater: Don't zero out CommandParameters with memset(3).Tao Bao2016-04-271-2/+1
| | | | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [1] switched a few things to android::base::unique_fd including CommandParameters.fd. However, we were using memset(3) to zero out the struct, which effectively assigned unique_fd(0) to fd. When it called fd.reset(), file descriptor 0 was unintentionally closed. When FD 0 was later reassigned via open(2), it led to lseek(2) errors: "Bad file descriptor". This CL switches to using braced-init (i.e. '= {}') instead, so that the default constructor unique_fd(-1) would be called. [1]: commit bcabd0929316fdd022ea102cc86396547ad9f070 Bug: 28391985 Change-Id: If1f99932b15552714c399e65c8b80550344b758a
* | | | | | | | | | | | | | | | Merge "Merge "Improve the layout-related comments." into nyc-dev am: 343eb72 am: 1dc396f" into nyc-mr1-dev-plus-aospTreeHugger Robot2016-04-280-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3a6c28f * commit '3a6c28f1f810d84bfec6e195502717647c174a76': Change-Id: I89d3dbcf1b6baee2de93cc62d4fe13a94b3bca82
| * | | | | | | | | | | | | | | Merge "Merge "Improve the layout-related comments." into nyc-dev am: 343eb72 am: 1dc396f" into nyc-mr1-dev-plus-aospAndroid Build Merger (Role)2016-04-280-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | | | | Merge "Improve the layout-related comments." into nyc-dev am: 343eb72TreeHugger Robot2016-04-281-8/+10
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1dc396f * commit '1dc396f8f4bcadca3c39ea9f4025d669564f171b': Improve the layout-related comments. Change-Id: I900676d63fdb55957de1d6a798c1530f2d2e0f12
| | | * | | | | | | | | | | | | | Merge "Improve the layout-related comments." into nyc-devElliott Hughes2016-04-281-8/+10
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|/ / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 343eb72 * commit '343eb722ddd0146e5c752419b3ff9537cfa2d31d': Improve the layout-related comments. Change-Id: Ib4ff24016ae056a61e755cd953739418035cd8e9
* | | | | | | | | | | | | | | | | Merge "Improve the layout-related comments." into nyc-dev am: 343eb72 am: a7f7e70Elliott Hughes2016-04-281-8/+10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ed5b648 * commit 'ed5b648c0e669e4c81a70868a545bb0ecc75cf0c': Improve the layout-related comments. Change-Id: I937a622a733f749daa6159bad467e350697661cc
| * | | | | | | | | | | | | | | | Merge "Improve the layout-related comments." into nyc-dev am: 343eb72TreeHugger Robot2016-04-281-8/+10
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / | |/| | | | | / / / / / / / / / / | | | |_|_|_|/ / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a7f7e70 * commit 'a7f7e7093ea67c3ddda03f52edb440c780d69b0d': Improve the layout-related comments. Change-Id: I957cc75b064b1d0be5cee54af7b27f008a7a22a1
| | * | | | | | | | | | | | | | Merge "Improve the layout-related comments." into nyc-devElliott Hughes2016-04-281-8/+10
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 343eb72 * commit '343eb722ddd0146e5c752419b3ff9537cfa2d31d': Improve the layout-related comments. Change-Id: Ia765c16883d92c6a00846413e8ada372952e8cbf
| | | * | | | | | | | | | | | | Merge "Improve the layout-related comments." into nyc-devTreeHugger Robot2016-04-281-8/+10
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | Improve the layout-related comments.Elliott Hughes2016-04-281-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/26548285 Change-Id: I20ae75c4ec2dc64b982a047dba498ebda029c90d
* | | | | | | | | | | | | | | | | Merge "Update background text for recovery UI" into nyc-dev am: eeca191 am: e890e19Tianjie Xu2016-04-280-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 43a4bb0 * commit '43a4bb0ba05f9b259609b4f9d4c9f101c43ee0da': Change-Id: Idda504b2513690388f8cc79d4b67dbe1eaa4dfb5
| * | | | | | | | | | | | | | | | Merge "Update background text for recovery UI" into nyc-dev am: eeca191Tianjie Xu2016-04-280-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e890e19 * commit 'e890e194d7861307722a39b8689894ce600be2cb': Change-Id: Ib4869307f14f836ebe6066d4e406c46ac0193de6
| | * | | | | | | | | | | | | | | Merge "Update background text for recovery UI" into nyc-devTianjie Xu2016-04-2825-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: eeca191 * commit 'eeca191f383d1fda6b1153cf4f443cafff7d7328': Update background text for recovery UI Change-Id: Iacdeece3cee076f1cbb084e4886c3a412f7af9b9
* | | | | | | | | | | | | | | | | Merge "Update recovery UI." into nyc-dev am: 2f1eedd am: 21092a9Elliott Hughes2016-04-280-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b6faf00 * commit 'b6faf00b9b32dcc0a4d36a2addb7e3d6fedf35db': Change-Id: I459448944a775e8bb313aa31fe61bc61213b847d
| * | | | | | | | | | | | | | | | Merge "Update recovery UI." into nyc-dev am: 2f1eeddElliott Hughes2016-04-280-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 21092a9 * commit '21092a98235d98f431c88ac5f4369ab1ccf0ae9f': Change-Id: I045e0c51a42c6026c9dfe7c7bb4ddc20479ccd8f
| | * | | | | | | | | | | | | | | Merge "Update recovery UI." into nyc-devElliott Hughes2016-04-28502-50/+80
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2f1eedd * commit '2f1eedded83eea1956ee8b4d391000584588f094': Update recovery UI. Change-Id: Ib43b37f60902b13d1fc4110ad5b394c3c3b39332
* | | | | | | | | | | | | | | | | Merge "Update background text for recovery UI" into nyc-dev am: eeca191 am: d57691eTianjie Xu2016-04-2825-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 960691a * commit '960691a34fe2671a0cc654220e73fe7067b52677': Update background text for recovery UI Change-Id: I18d102d9c93abe094fedb799abdf5fa00ad3e613
| * | | | | | | | | | | | | | | | Merge "Update background text for recovery UI" into nyc-dev am: eeca191Tianjie Xu2016-04-2825-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d57691e * commit 'd57691e094ad6760864fba19fbbeb3805391b950': Update background text for recovery UI Change-Id: Id296d644207fa5aa86c058c90cd52b1500ee4250
| | * | | | | | | | | | | | | | | Merge "Update background text for recovery UI" into nyc-devTianjie Xu2016-04-2825-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: eeca191 * commit 'eeca191f383d1fda6b1153cf4f443cafff7d7328': Update background text for recovery UI Change-Id: I8b959e81da42baa1e95813bf6cab9a2fe374bb11
| | | * | | | | | | | | | | | | | Merge "Update background text for recovery UI" into nyc-devTianjie Xu2016-04-2825-0/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | Update background text for recovery UITianjie Xu2016-04-2825-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pull in new translations and regenerate the background strings for recovery UI. Bug:27837319 Bug:26548285 Change-Id: I274938a5039421b947878da82336443e9647df24
* | | | | | | | | | | | | | | | | Merge "Update recovery UI." into nyc-dev am: 2f1eedd am: 75191f3Elliott Hughes2016-04-28502-50/+80
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3b13de8 * commit '3b13de8c9cd7f30cf3bc0ff0ff3ec44173386718': Update recovery UI. Change-Id: Ibbf3114ea8279f91b9fe02fc9d3494cdbf8d513a
| * | | | | | | | | | | | | | | | Merge "Update recovery UI." into nyc-dev am: 2f1eeddElliott Hughes2016-04-28502-50/+80
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 75191f3 * commit '75191f32a56db352722ab9ac1acf9ceb08485a04': Update recovery UI. Change-Id: I190b15530558a9d18fbe7202893bb7a76c5d3ff5
| | * | | | | | | | | | | | | | | Merge "Update recovery UI." into nyc-devElliott Hughes2016-04-28502-50/+80
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2f1eedd * commit '2f1eedded83eea1956ee8b4d391000584588f094': Update recovery UI. Change-Id: I881497ab669ef7e105a208c4c17062e6dc321380
| | | * | | | | | | | | | | | | | Merge "Update recovery UI." into nyc-devElliott Hughes2016-04-28502-50/+80
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | Update recovery UI.Elliott Hughes2016-04-27502-50/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use new animation. * Use new non-holo progress bars. * Use recommended spacing for recovery UI. Bug: http://b/26548285 Change-Id: I8411e89d6a6a9ce638b8645e19e5082d0d968cee
* | | | | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE" into nyc-dev am: 47a7899 -s ours am: a42bca8 -s oursBaligh Uddin2016-04-280-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 158c390 -s ours * commit '158c39011d2e10a72e6517228ce7e93dd1e54b23': Change-Id: I1c361d14fe1b4742a4d925449d8ea88bb08aead3
| * | | | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE" into nyc-dev am: 47a7899 -s oursBaligh Uddin2016-04-280-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a42bca8 -s ours * commit 'a42bca855509b3360cdf42a1f5677682d1d074b6': Change-Id: I80a1b3a9693ce901bd3c0cf1149a562b8addeedb
| | * | | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE" into nyc-devBaligh Uddin2016-04-280-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 47a7899 -s ours * commit '47a78999ea8719359bf704db3bbe96db214d51fd': Import translations. DO NOT MERGE Change-Id: If34b4be21c2bb75300c5aaf9fd1ef03a22a5f001
* | | | | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE" into nyc-dev am: 47a7899 -s ours am: 06be362 -s oursBaligh Uddin2016-04-280-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 42e6053 -s ours * commit '42e6053970f00453277ba876b04b34b1e12869ef': Import translations. DO NOT MERGE Change-Id: I363140feb843e1e5533cfb9caa8a6275c73b137a
| * | | | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE" into nyc-dev am: 47a7899 -s oursBaligh Uddin2016-04-280-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 06be362 -s ours * commit '06be362ec79fb26658c3afca710c7d11df5f23de': Import translations. DO NOT MERGE Change-Id: Idd0e7153210df855be92d788c6a0d90222f69826
| | * | | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE" into nyc-devBaligh Uddin2016-04-280-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 47a7899 -s ours * commit '47a78999ea8719359bf704db3bbe96db214d51fd': Import translations. DO NOT MERGE Change-Id: Ica60c273aaf6466250078ee0051278060a0aa650
| | | * | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE" into nyc-devBaligh Uddin2016-04-270-0/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | Import translations. DO NOT MERGEBaligh Uddin2016-04-263-11/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2c06d0cb0aa43c69f4f4b8c0ce6f7a81dbd00dba Auto-generated-cl: translation import
* | | | | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev am: abd0988 -s oursBaligh Uddin2016-04-280-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: da5daab -s ours * commit 'da5daabcae0479788d0a88f0a1e12235b72fb0a6': Import translations. DO NOT MERGE Change-Id: I39033afe48c2394760f7140957b05bb7a29f78e8
| * | | | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE" into nyc-mr1-devBaligh Uddin2016-04-270-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: abd0988 -s ours * commit 'abd098801198a696914e4d2ccaae95ed9fa3f944': Import translations. DO NOT MERGE Change-Id: Ib7ea003744e6691aacdb365126784e50d5eaf2a4
| | * | | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE" into nyc-mr1-devBaligh Uddin2016-04-270-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBaligh Uddin2016-04-2678-312/+312
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Idd1fdeee52a77d6fb4ecc271b6fdfc41e62b2bd0 Auto-generated-cl: translation import
* | | | | | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE"Baligh Uddin2016-04-270-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBaligh Uddin2016-04-263-11/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2b8cd2877f4f21d64968b520258a80a3886310c5 Auto-generated-cl: translation import
* | | | | | | | | | | | | | | | | | | | Import translations. DO NOT MERGE am: ca5003e -s ours am: 97ee2b1 -s oursBill Yi2016-04-270-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f1d2140 -s ours * commit 'f1d2140d1a4803257b78537ed0735dc540089669': Change-Id: Ib205726a79bf6f8a5b37f98bac5a1f54afbabcdc
| * | | | | | | | | | | | | | | | | | | Import translations. DO NOT MERGE am: ca5003e -s oursBill Yi2016-04-270-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 97ee2b1 -s ours * commit '97ee2b1fbec2735bc54877f907447e0047aa07b6': Change-Id: I22fda6dc0d92828b8331dbac473264d0f2295b0c
| | * | | | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-04-270-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ca5003e -s ours * commit 'ca5003e0336ebe4b8260172ed8183c5ae9095018': Import translations. DO NOT MERGE Change-Id: I0a499ffbafa52d0bc9f2a4654ea250c9fa0263ed
* | | | | | | | | | | | | | | | | | | | Import translations. DO NOT MERGE am: ca5003e -s ours am: e84e73a -s oursBill Yi2016-04-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0bc96a7 -s ours * commit '0bc96a736a1a8392f8a8bccd12c14bbf78b8f784': Import translations. DO NOT MERGE Change-Id: I6c61e5ca179a1598ee2f630c87dc5caef87f6047
| * | | | | | | | | | | | | | | | | | | Import translations. DO NOT MERGE am: ca5003e -s oursBill Yi2016-04-270-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e84e73a -s ours * commit 'e84e73a0187027e559871ae72e33bce8986c2be8': Import translations. DO NOT MERGE Change-Id: Id7c1a715d5dd776cb41bdd52f8097159670a6b63
| | * | | | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-04-270-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ca5003e -s ours * commit 'ca5003e0336ebe4b8260172ed8183c5ae9095018': Import translations. DO NOT MERGE Change-Id: I51c2cfd99a9c6d25cd3da1344229dba7885cc101
| | | * | | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-04-273-11/+7
| | | | |_|_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I3383f51c68573c3e350f1bad5fce90be5643edb0 Auto-generated-cl: translation import
* | | | | | | | | | | | | | | | | | | Import translations. DO NOT MERGE am: a004356 -s oursBill Yi2016-04-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c9890bf -s ours * commit 'c9890bf5b2a712f43bc7dd26410ceb09d680ff17': Import translations. DO NOT MERGE Change-Id: I2202b7ea61f4f67ebe557049fe64514211ce4a69
| * | | | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-04-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a004356 -s ours * commit 'a00435652a8f922cd09cef1ef38fa39c93c3f2c4': Import translations. DO NOT MERGE Change-Id: I819d91029945fb4594d9b9e84b5a43e06c2bbb71
| | * | | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-04-2778-312/+312
| | | |_|_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Id48a7d573bdfd417975bb1054eb6a2453a151bf8 Auto-generated-cl: translation import
* | | | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-04-273-11/+7
| |_|_|_|/ / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic9a498dd7367a61fc2d380dc6eeeea0c4cafc8bf Auto-generated-cl: translation import
* | | | | | | | | | | | | | | | | Import translations. DO NOT MERGE am: e59f5de -s ours am: 29c7a34 -s oursBill Yi2016-04-250-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fc5ac34 -s ours * commit 'fc5ac34867eb841dad768a7f9823d65d907103e1': Change-Id: Ib3c9bd7ee289423d4842b45c3889acfd9aa595ae
| * | | | | | | | | | | | | | | | Import translations. DO NOT MERGE am: e59f5de -s oursBill Yi2016-04-250-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 29c7a34 -s ours * commit '29c7a347b92cc4696ac89248f03228944a57673f': Change-Id: I428ab05040ef8033999a6cf3cf21107a073c7c69
| | * | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-04-250-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e59f5de -s ours * commit 'e59f5de5772f16a9969d655d5b184d0f75d664b9': Import translations. DO NOT MERGE Change-Id: Ib918ef5f3fdf97363c2d7449c0412e8b3ce87b34
* | | | | | | | | | | | | | | | | Import translations. DO NOT MERGE am: e59f5de -s ours am: d210dc0 -s oursBill Yi2016-04-250-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c27646f -s ours * commit 'c27646f9f1633797be018001f6c04faab8bdb515': Import translations. DO NOT MERGE Change-Id: Ibeff8dbd04c90fd00671ed75a6092f86efada6fa
| * | | | | | | | | | | | | | | | Import translations. DO NOT MERGE am: e59f5de -s oursBill Yi2016-04-250-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d210dc0 -s ours * commit 'd210dc0478131a8537dbd853e678707fd9e09587': Import translations. DO NOT MERGE Change-Id: If01820901a4fe03a96a5d11a5c439ac40fef5e35
| | * | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-04-250-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e59f5de -s ours * commit 'e59f5de5772f16a9969d655d5b184d0f75d664b9': Import translations. DO NOT MERGE Change-Id: I06b45f12e41dff2da3d4538cbf35203008372cea
| | | * | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-04-2581-324/+328
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I9706fca12f3c0a19019c41ba0eaf395ac53ba0b1 Auto-generated-cl: translation import
* | | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-04-2581-324/+328
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ice2fc6151b69ad3a4029184a5afa6020085219f2 Auto-generated-cl: translation import
* | | | | | | | | | | | | | | | | Merge "recovery: Dump the signature in the zip package." into nyc-dev am: 34ca089 am: 2f9be55Tao Bao2016-04-230-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a28617a * commit 'a28617a2dccfeda98fc3449b94c270cedd84aa7b': Change-Id: I06dcb597c0bdd3013c54f4bb1a6bbbb6ff0656f2
| * | | | | | | | | | | | | | | | Merge "recovery: Dump the signature in the zip package." into nyc-dev am: 34ca089Tao Bao2016-04-230-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2f9be55 * commit '2f9be5517225b33be30f48630ba581087672ea75': Change-Id: I4ebadf342f35f4a06af84d2c437f21526a4949c8
| | * | | | | | | | | | | | | | | Merge "recovery: Dump the signature in the zip package." into nyc-devTao Bao2016-04-232-3/+20
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 34ca089 * commit '34ca0892f4ae440becbe8097e7b68cd5a6d494d3': recovery: Dump the signature in the zip package. Change-Id: I674e1a43aafe0140371b123bb7e14fc928c43988
* | | | | | | | | | | | | | | | | Merge "recovery: Dump the signature in the zip package." into nyc-dev am: 34ca089 am: 5e3aa78Tao Bao2016-04-232-3/+20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4dc24a5 * commit '4dc24a5bf4b1141db6888c474ebfd225bf69060c': recovery: Dump the signature in the zip package. Change-Id: Ied1045a42aeeb1e6a0951189a8db2d35a68f47c3
| * | | | | | | | | | | | | | | | Merge "recovery: Dump the signature in the zip package." into nyc-dev am: 34ca089Tao Bao2016-04-232-3/+20
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5e3aa78 * commit '5e3aa78c8bb47ee96ed5d2d9713b64ae6c8823be': recovery: Dump the signature in the zip package. Change-Id: I44b52bfe8b2ad3e66f0f393784494a45652ee343
| | * | | | | | | | | | | | | | | Merge "recovery: Dump the signature in the zip package." into nyc-devTao Bao2016-04-232-3/+20
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 34ca089 * commit '34ca0892f4ae440becbe8097e7b68cd5a6d494d3': recovery: Dump the signature in the zip package. Change-Id: I22eb6256f3204f2eac80e729cd0cd5b862b45863
| | | * | | | | | | | | | | | | | Merge "recovery: Dump the signature in the zip package." into nyc-devTao Bao2016-04-232-3/+20
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | recovery: Dump the signature in the zip package.Tao Bao2016-04-202-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have been occasionally seeing "signature verification failed" error message when applying an update. Make more verbose output to help debugging. Bug: 28246534 Change-Id: Id83633adc9b86b3fd36abbb504e430f0816f12e4
* | | | | | | | | | | | | | | | | Merge "Go back to the old ear-wiggling Android animation. am: 692941be79 am: 87b0654f00" into nyc-mr1-dev-plus-aospElliott Hughes2016-04-220-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9ac7ff6b3c * commit '9ac7ff6b3cfcbe981b30ea35c660b82872203039': Change-Id: I3f03c5e2ff82a5de7dbf0843f014d7dc47b23290
| * | | | | | | | | | | | | | | | Merge "Go back to the old ear-wiggling Android animation. am: 692941be79 am: 87b0654f00" into nyc-mr1-dev-plus-aospAndroid Build Merger (Role)2016-04-220-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Go back to the old ear-wiggling Android animation. am: 692941be79Elliott Hughes2016-04-22457-15/+48
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 87b0654f00 * commit '87b0654f00d84b91cb42289a6229a8682831ed41': Go back to the old ear-wiggling Android animation. Change-Id: I0d87c52b7ecbf0488460045e1223011970ce3ce7
| | | * | | | | | | | | | | | | | | Go back to the old ear-wiggling Android animation.Elliott Hughes2016-04-22457-15/+48
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 692941be79 * commit '692941be79fd765f8873d810ae627a917dfd791b': Go back to the old ear-wiggling Android animation. Change-Id: I7258a81b7068a98d005b98bd4c2bbad38485366d
* | | | | | | | | | | | | | | | | | Go back to the old ear-wiggling Android animation. am: 692941be79 am: 17266d9a65Elliott Hughes2016-04-22457-15/+48
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 43ce00e737 * commit '43ce00e7375fae5db66177552f973e317e6b7318': Go back to the old ear-wiggling Android animation. Change-Id: I24342c0d5f690fbc0b33dc6cdea42324376c6066
| * | | | | | | | | | | | | | | | | Go back to the old ear-wiggling Android animation. am: 692941be79Elliott Hughes2016-04-22457-15/+48
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / | |/| | | / / / / / / / / / / / / / | | | |_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 17266d9a65 * commit '17266d9a653d8b896dfe6d69826e28352d5932bd': Go back to the old ear-wiggling Android animation. Change-Id: I7d6596e64dab3ee5ef92cc95237f89f4fbf037a2
| | * | | | | | | | | | | | | | | Go back to the old ear-wiggling Android animation.Elliott Hughes2016-04-22457-15/+48
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 692941be79 * commit '692941be79fd765f8873d810ae627a917dfd791b': Go back to the old ear-wiggling Android animation. Change-Id: Ifddb21173e55f9c690dbc0661308575d885f4e76
| | | * | | | | | | | | | | | | | Go back to the old ear-wiggling Android animation.Elliott Hughes2016-04-21457-15/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | But keep the new code so we can easily test new animations when we have them. This change includes tbao's de-interlace script, plus a one-liner that's necessary to play the animation at the correct speed when there's no progress bar showing. (This was always a bug, it's just way more noticeable when your animation only has 7 frames.) Bug: http://b/28316654 Bug: http://b/26548285 Change-Id: I32c601c352d6be235d1b44f14fca7e125defd77d
* | | | | | | | | | | | | | | | | Merge "Merge "Regenerate background text imgs in recovery" into nyc-dev am: df093c1512 am: 4cc6145423" into nyc-mr1-dev-plus-aospTianjie Xu2016-04-210-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 99f55506c5 * commit '99f55506c5c6b911ea6ece02a9d654af06349948': Change-Id: I0a726788735a9be239aa36cc7a6363accda7ba51
| * | | | | | | | | | | | | | | | Merge "Merge "Regenerate background text imgs in recovery" into nyc-dev am: df093c1512 am: 4cc6145423" into nyc-mr1-dev-plus-aospAndroid Build Merger (Role)2016-04-210-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Merge "Regenerate background text imgs in recovery" into nyc-dev am: df093c1512Tianjie Xu2016-04-2125-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4cc6145423 * commit '4cc61454239cd053e9d12e8de6df2878d30b9c72': Regenerate background text imgs in recovery Change-Id: I64145a026a91cddea95dec604fdbfe0abd03de55
| | | * | | | | | | | | | | | | | | Merge "Regenerate background text imgs in recovery" into nyc-devTianjie Xu2016-04-2125-0/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: df093c1512 * commit 'df093c15121df40693519d2a1c703cf1684423d5': Regenerate background text imgs in recovery Change-Id: If4c878b2ffd03189107ed24e1cd3e9e88833024c
* | | | | | | | | | | | | | | | | | Merge "Regenerate background text imgs in recovery" into nyc-dev am: df093c1512 am: 8bb3bd9209Tianjie Xu2016-04-2125-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d24d9e4944 * commit 'd24d9e494429d74089a2060e7500d52fd9b10f7c': Regenerate background text imgs in recovery Change-Id: I28f312bdfc24f3de0ea8fd3794f3e8e6c507158b
| * | | | | | | | | | | | | | | | | Merge "Regenerate background text imgs in recovery" into nyc-dev am: df093c1512Tianjie Xu2016-04-2125-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / | |/| | | / / / / / / / / / / / / / | | | |_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8bb3bd9209 * commit '8bb3bd9209f117ea6e3a0560b3c58334ea9fd2c4': Regenerate background text imgs in recovery Change-Id: If3d6ee82ccedbdf5856e49795633622e723b604e
| | * | | | | | | | | | | | | | | Merge "Regenerate background text imgs in recovery" into nyc-devTianjie Xu2016-04-2125-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: df093c1512 * commit 'df093c15121df40693519d2a1c703cf1684423d5': Regenerate background text imgs in recovery Change-Id: Ie70920503c5361c925cdaa55852e456fbd8830a7
| | | * | | | | | | | | | | | | | Merge "Regenerate background text imgs in recovery" into nyc-devTianjie Xu2016-04-2125-0/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | Regenerate background text imgs in recoveryTianjie Xu2016-04-1925-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a image for "installing security update"; and make the text looks larger in the image. Also extend the length of string wrapper for high definition devices, so the text will fit better on the screen. Bug: 22465983 Bug: 27837319 Change-Id: I2a8b7437f96a834660d6d8d8861c722dcde812f2
* | | | | | | | | | | | | | | | | | Merge "Fix matches_locale function" into nyc-dev am: 8b86373 am: 210b0a5Tianjie Xu2016-04-210-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d32182d * commit 'd32182da0014b52cf23cc5865d7465b6eda99e6a': Change-Id: I1adf6606782eb844d5993709715e463d3bb6efdf
| * | | | | | | | | | | | | | | | | Merge "Fix matches_locale function" into nyc-dev am: 8b86373Tianjie Xu2016-04-210-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 210b0a5 * commit '210b0a5a20830beea3b3e96e84c6b3fd2a626cf5': Change-Id: I0ead2ccee7d8a2db4a2ac585a2054ee80abd569c
| | * | | | | | | | | | | | | | | | Merge "Fix matches_locale function" into nyc-devTianjie Xu2016-04-214-14/+44
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8b86373 * commit '8b86373fd954276b18a6fba81afbe42c9caa49d3': Fix matches_locale function Change-Id: I9494f416b12cba3c63972096137ddaf805bc453b
* | | | | | | | | | | | | | | | | | Merge "Fix matches_locale function" into nyc-dev am: 8b86373 am: 45609d3Tianjie Xu2016-04-214-14/+44
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9eeeb17 * commit '9eeeb17e05e5a44c582dc58e30f12bf0c20517ff': Fix matches_locale function Change-Id: I765e6c00abeebc608298e1971b995de10c3ef830
| * | | | | | | | | | | | | | | | | Merge "Fix matches_locale function" into nyc-dev am: 8b86373Tianjie Xu2016-04-214-14/+44
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 45609d3 * commit '45609d37efe3ced3a599b6eccd6e6dbd184152e6': Fix matches_locale function Change-Id: I3f3a41dbcb4ab42d287f36b6ff0f2eaa6806f99a
| | * | | | | | | | | | | | | | | | Merge "Fix matches_locale function" into nyc-devTianjie Xu2016-04-214-14/+44
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8b86373 * commit '8b86373fd954276b18a6fba81afbe42c9caa49d3': Fix matches_locale function Change-Id: If7726c2f381ba0e4ab0519b77c167e75a9d46104
| | | * | | | | | | | | | | | | | | Merge "Fix matches_locale function" into nyc-devTianjie Xu2016-04-204-14/+44
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | Fix matches_locale functionTianjie Xu2016-04-204-14/+44
| | | | | |/ / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | matches_locale was expecting input locale string to have at most one underscore; as a result "zh_CN_#Hans" ignores "zh_CN" and matches into "zh". Fix the match function and add unit tests. Bug: 27837319 Change-Id: I4e8a66f91cae6ac2a46b6bf21f670d5ea564c7c8
* | | | | | | | | | | | | | | | | Merge "Merge "Remove trailing punctuation from recovery strings." into nyc-dev am: 4eec72d am: 0e52921" into nyc-mr1-dev-plus-aospElliott Hughes2016-04-200-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 07f0912 * commit '07f0912fe6bd5d4971ceb497e9b921ce20e6d9db': Change-Id: I5560b9d38eff7995047d08a9d81736148710eebe
| * | | | | | | | | | | | | | | | Merge "Merge "Remove trailing punctuation from recovery strings." into nyc-dev am: 4eec72d am: 0e52921" into nyc-mr1-dev-plus-aospAndroid Build Merger (Role)2016-04-200-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Merge "Remove trailing punctuation from recovery strings." into nyc-dev am: 4eec72dElliott Hughes2016-04-201-4/+4
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0e52921 * commit '0e5292104b515d7eb9976b7d5c9e8c5e8a04a30d': Remove trailing punctuation from recovery strings. Change-Id: I0bc91e855be85bbc26d4230ebc80d7d7115941ec
| | | * | | | | | | | | | | | | | | Merge "Remove trailing punctuation from recovery strings." into nyc-devElliott Hughes2016-04-201-4/+4
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4eec72d * commit '4eec72d2cf8c1be0068feffc804035dab756c78d': Remove trailing punctuation from recovery strings. Change-Id: If9529323c0933f88f8d28a450589d2864af19ad2
* | | | | | | | | | | | | | | | | | Merge "Merge "Remove trailing punctuation from recovery strings." into nyc-dev am: 4eec72d am: c15177b" into nyc-mr1-dev-plus-aospElliott Hughes2016-04-201-4/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f39da4f * commit 'f39da4fc1b84c594d95b241d75eec1b25f7d4480': Remove trailing punctuation from recovery strings. Change-Id: I8858b1097b301b612494801cce4c2ad3274823dc
| * | | | | | | | | | | | | | | | | Merge "Merge "Remove trailing punctuation from recovery strings." into nyc-dev am: 4eec72d am: c15177b" into nyc-mr1-dev-plus-aospAndroid Build Merger (Role)2016-04-201-4/+4
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Merge "Remove trailing punctuation from recovery strings." into nyc-dev am: 4eec72dElliott Hughes2016-04-201-4/+4
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c15177b * commit 'c15177b8b8f125c0c86bd7dabacde1289e68c45e': Remove trailing punctuation from recovery strings. Change-Id: I2518baa5eb2be33da5f86d92e33b88a402724209
| | | * | | | | | | | | | | | | | | | Merge "Remove trailing punctuation from recovery strings." into nyc-devElliott Hughes2016-04-201-4/+4
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|/ / / / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4eec72d * commit '4eec72d2cf8c1be0068feffc804035dab756c78d': Remove trailing punctuation from recovery strings. Change-Id: I60cf10d7748227d81f60fc9d1fe18cdb01f8b2f3
| | | | * | | | | | | | | | | | | | | Merge "Remove trailing punctuation from recovery strings." into nyc-devElliott Hughes2016-04-201-4/+4
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | * | | | | | | | | | | | | | | Remove trailing punctuation from recovery strings.Elliott Hughes2016-04-201-4/+4
| | | | | | |_|/ / / / / / / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/26548285 Change-Id: I235c620532e1759bfc76a4486409a4404f1c8c6a
* | | | | | | | | | | | | | | | | | | Merge "Decrease OTA package verification times further. am: dd895d0 am: 5be36da" into nyc-mr1-dev-plus-aospElliott Hughes2016-04-200-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2103472 * commit '2103472898e3a58efb52c778a7c41df9c5b0d7a3': Change-Id: I12be28a8544dc4535ada80cdf9ce94397292bfcb
| * | | | | | | | | | | | | | | | | | Merge "Decrease OTA package verification times further. am: dd895d0 am: 5be36da" into nyc-mr1-dev-plus-aospAndroid Build Merger (Role)2016-04-200-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / | |/| | | | / / / / / / / / / / / / / | | | |_|_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | | Decrease OTA package verification times further. am: dd895d0Elliott Hughes2016-04-201-4/+4
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5be36da * commit '5be36da6518cc0707e8cdcdc6382999efcf70f17': Decrease OTA package verification times further. Change-Id: I27c2b1ff7c8ab415c4b6e1c5b903b0a5b5ad57cb
| | | * | | | | | | | | | | | | | | Decrease OTA package verification times further.Elliott Hughes2016-04-201-4/+4
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |/ / / / / / / / / / / / / | | | | |/| / / / / / / / / / / / / | | | | |_|/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dd895d0 * commit 'dd895d0adaa691a078f18a95a7f5ac0eaf776cae': Decrease OTA package verification times further. Change-Id: I2d7da4a19c3fc52cae1dedc6e26201fe0f972d37
* | | | | | | | | | | | | | | | | Decrease OTA package verification times further. am: dd895d0 am: 1864febElliott Hughes2016-04-201-4/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 576fb11 * commit '576fb1145bbca145502773443d13751dd45d6fe5': Decrease OTA package verification times further. Change-Id: I9aa5ca50bf8a73863068eac44c66951a9f1a5754
| * | | | | | | | | | | | | | | | Decrease OTA package verification times further. am: dd895d0Elliott Hughes2016-04-201-4/+4
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / | |/| | | / / / / / / / / / / / / | | | |_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1864feb * commit '1864feb8d2ab6f764d377df28613a973927d85e8': Decrease OTA package verification times further. Change-Id: I0e2eb49ed48081f93bc0c42eeb64aef356912260
| | * | | | | | | | | | | | | | Decrease OTA package verification times further.Elliott Hughes2016-04-201-4/+4
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dd895d0 * commit 'dd895d0adaa691a078f18a95a7f5ac0eaf776cae': Decrease OTA package verification times further. Change-Id: If3bee4cbe66e576193556472776a232c9460af9a
| | | * | | | | | | | | | | | | Decrease OTA package verification times further.Elliott Hughes2016-04-201-4/+4
| | | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Timing from Nexus 5X: 89 MiB OTA update package: 1.4 s -> 0.6 s (decreased by 57%) 1196 MiB OTA update package: 8.0 s -> 7.5 s (decreased by 6%) Bug: http://b/28135231 Change-Id: Id91f2ad15df2bffb9f8a4b4ec5a57657a02847ec
* | | | | | | | | | | | | | | Merge "Fix google-runtime-int warnings." am: a1f4a1e am: bcad1d1 am: 0231e70Chih-hung Hsieh2016-04-1912-46/+53
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ed4c0c4 * commit 'ed4c0c4ca04943a79d2dc7ac2c095ed6ca20f749': Fix google-runtime-int warnings. Change-Id: Ifbed57a32b75f1baf9d31126087a2d3eb2983d8b
| * | | | | | | | | | | | | | Merge "Fix google-runtime-int warnings." am: a1f4a1e am: bcad1d1Chih-Hung Hsieh2016-04-1912-46/+53
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0231e70 * commit '0231e7016dfe56625d6d01a1de468cd23d9cf01a': Fix google-runtime-int warnings. Change-Id: I0e80a2b91b107375f3fb5836e8948e4f1ff72185
| | * | | | | | | | | | | | | Merge "Fix google-runtime-int warnings." am: a1f4a1eChih-hung Hsieh2016-04-1912-46/+53
| |/| | | | | | | | | | | | | | | | |/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bcad1d1 * commit 'bcad1d1ced730478c94f951034d252e777661332': Fix google-runtime-int warnings. Change-Id: Ifad31026502e3375f4833899056662da540319b5
| | * | | | | | | | | | | | Merge "Fix google-runtime-int warnings."Chih-Hung Hsieh2016-04-1912-46/+53
| | |\ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a1f4a1e * commit 'a1f4a1ec3319ee1ab869a46805bff63550b56ca7': Fix google-runtime-int warnings. Change-Id: If924b2e1b1e7e7bb4317fdca0c583b7de45db397
| | | * | | | | | | | | | | Merge "Fix google-runtime-int warnings."Chih-hung Hsieh2016-04-1912-46/+53
| | | |\ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | Fix google-runtime-int warnings.Chih-Hung Hsieh2016-04-1812-46/+53
| | | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 28220065 Change-Id: Ida199c66692a1638be6990d583d2ed42583fb592
* | | | | | | | | | | | | | Merge "Fix IWYU errors." am: 51dcd0d am: 405db92David Benjamin2016-04-161-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d911d81 * commit 'd911d81450570f5b9df46dce44898f47ea3b11de': Fix IWYU errors. Change-Id: I0e7ee0e34a13ad1169c187f40e7cf7dd3ba45754
| * | | | | | | | | | | | | Merge "Fix IWYU errors." am: 51dcd0dTreehugger Robot2016-04-161-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 405db92 * commit '405db92b6e6384f0f22ba6be338c08e8f1aad345': Fix IWYU errors. Change-Id: Iedb6480e232c560ff9095f5593f13ad412616e4d
| | * | | | | | | | | | | | Merge "Fix IWYU errors."David Benjamin2016-04-161-0/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 51dcd0d * commit '51dcd0da37dd10238017bae03fc708dc6e05bb56': Fix IWYU errors. Change-Id: I9dd499afab1d5bf5e6f30a424bd70a016194124d
| | | * | | | | | | | | | | Merge "Fix IWYU errors."Treehugger Robot2016-04-161-0/+1
| | | |\ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | Fix IWYU errors.David Benjamin2016-04-161-0/+1
| | | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes build errors with BoringSSL master. (The cpp file uses functions from bn.h and neither it nor the header includes it.) Change-Id: If7f38aa0b931aa7940079bc006c7283b31f3b774
* | | | | | | | | | | | | | Merge "Update the system update animation." into nyc-dev am: e8d0eccElliott Hughes2016-04-15466-73/+164
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4846bc4 * commit '4846bc461ccf498f7dbf3752fedae58c1ca028b2': Update the system update animation. Change-Id: I78d2fd63196caba6eb9d0cfeb1a17644ca3c7170
| * | | | | | | | | | | | | Merge "Update the system update animation." into nyc-devElliott Hughes2016-04-15466-73/+164
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e8d0ecc * commit 'e8d0ecccf7e54e73418cac94b0b136bfed94d51a': Update the system update animation. Change-Id: I5d0ad44b13a505bca62a5316447603fab4d280aa
| | * | | | | | | | | | | | Merge "Update the system update animation." into nyc-devElliott Hughes2016-04-15466-73/+164
| | |\ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | Update the system update animation.Elliott Hughes2016-04-15466-73/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch to a Wear-like intro/loop system. We don't have an intro yet, but hopefully this will let Wear delete more code when they move to N. Unlike them, we don't hard-code the number of frames: we just look to see what we have available. We do hard-code the fps though. Also add a graphics test mode so you can see a demo of the UI components without having to actually apply an OTA. Also fix a bug where default locale is null rather than en-US: it's more useful to show _some_ text if we don't have a locale (which should only be during development anyway). Bug: http://b/26548285 Change-Id: I63422e3fef3c41109f924d96fb5ded0b3ae7815d
* | | | | | | | | | | | | | | Merge "Define the Bootloader Control A/B structure" am: e6af522 am: b30c6f6Jeremy Compostella2016-04-151-1/+53
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 81f13d0 * commit '81f13d0e7dc1b8aac7bd07b9e423ee964db0d819': Define the Bootloader Control A/B structure Change-Id: I0382d5a690a40a81ead3814cebd9fbe3086ca3ff
| * | | | | | | | | | | | | | Merge "Define the Bootloader Control A/B structure" am: e6af522Tao Bao2016-04-151-1/+53
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b30c6f6 * commit 'b30c6f690a293f4b4107a739b8ab69b2e39e379a': Define the Bootloader Control A/B structure Change-Id: I7f57d76054923aebee66573a6b2b0ca6f10b468b
| | * | | | | | | | | | | | | Merge "Define the Bootloader Control A/B structure"Jeremy Compostella2016-04-151-1/+53
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e6af522 * commit 'e6af5228aa47300e4fe96a0f5068bb344c4b268d': Define the Bootloader Control A/B structure Change-Id: I8a66fe124a0c18818485a9e73e742108b3c9d80a
| | | * | | | | | | | | | | | Merge "Define the Bootloader Control A/B structure"Tao Bao2016-04-151-1/+53
| | | |\ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | Define the Bootloader Control A/B structureJeremy Compostella2016-04-061-1/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define the A/B structure for implementation using the misc partition as storage. The bootloader_control structure is designed to be put in the bootloader_message slot_suffix field. Change-Id: I158bdf3e69b3f327a1dde4c6eb1f907dbaf8939c Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
* | | | | | | | | | | | | | | | Explicitly set the font face and color. am: 70ae70bElliott Hughes2016-04-152-7/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6fa5fa9 * commit '6fa5fa91bf1439e6c5070f3aee9b447f995882c1': Explicitly set the font face and color. Change-Id: I1b2079d35cb7165db738a8d9ca442fa96729979e
| * | | | | | | | | | | | | | | Explicitly set the font face and color.Elliott Hughes2016-04-152-7/+6
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 70ae70b * commit '70ae70b81e452ce8a85dfbb184786c02a9072c23': Explicitly set the font face and color. Change-Id: I94011b0f4df228e6cdfe4c095542839abb689a74
| | * | | | | | | | | | | | | | Explicitly set the font face and color.Elliott Hughes2016-04-152-7/+6
| | | |_|_|/ / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This matches what the UI folks asked us to use. Also fix the locale parsing code. Bug: http://b/27837319 Bug: http://b/22465983 Bug: http://b/26548285 Change-Id: I316a6e1f44855313dd983950abf21b543be7ffc0
* | | | | | | | | | | | | | | resolve merge conflicts of 8febafa to nyc-dev-plus-aospElliott Hughes2016-04-142-10/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6e08bff * commit '6e08bff22b6b9019c72422e1902201d7cb4397b5': Use BoringSSL instead of mincrypt to speed up package verification. Change-Id: I1fce90ecfa92369b767c2d3387dfe72dced4faad
| * | | | | | | | | | | | | | resolve merge conflicts of 8febafa to nyc-dev-plus-aospElliott Hughes2016-04-142-10/+14
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I423937b4b20a2079714aa38ab7f8b199782df689
| | * | | | | | | | | | | | | Use BoringSSL instead of mincrypt to speed up package verification.Elliott Hughes2016-04-1410-257/+285
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the verification code in bootable/recovery to use BoringSSL instead of mincrypt. Cherry-pick of 452df6d99c81c4eeee3d2c7b2171901e8b7bc54a, with merge conflict resolution, extra logging in verifier.cpp, and an increase in the hash chunk size from 4KiB to 1MiB. Bug: http://b/28135231 Change-Id: I1ed7efd52223dd6f6a4629cad187cbc383d5aa84
* | | | | | | | | | | | | | | resolve merge conflicts of 2bf95ac to nyc-dev-plus-aospMattias Nissler2016-04-1311-247/+274
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6e2a8b1 * commit '6e2a8b11ecb0bdfd6f4a2f096519075663a2d1c2': Convert recovery to use BoringSSL instead of mincrypt. Change-Id: Ief6b279d1e7fd00af4e8153ac29212343493b293
| * | | | | | | | | | | | | | resolve merge conflicts of 2bf95ac to nyc-dev-plus-aospElliott Hughes2016-04-1311-247/+274
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iaf232fbe65879bad6e19c7a9600aa6303a491a67
| | * | | | | | | | | | | | | Merge "Convert recovery to use BoringSSL instead of mincrypt."Mattias Nissler2016-04-1311-247/+275
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 62e6637 * commit '62e6637f8bfad588ff0b3c72beacab5c079db203': Convert recovery to use BoringSSL instead of mincrypt. Change-Id: Id4e95bb85866b65998c44312afc444dd29a3103d
| | | * | | | | | | | | | | | Merge "Convert recovery to use BoringSSL instead of mincrypt."Elliott Hughes2016-04-1311-247/+275
| | | |\ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | Convert recovery to use BoringSSL instead of mincrypt.Mattias Nissler2016-04-0611-247/+275
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the verification code in bootable/recovery to use BoringSSL instead of mincrypt. Change-Id: I37b37d84b22e81c32ac180cd1240c02150ddf3a7
* | | | | | | | | | | | | | | | resolve merge conflicts of a58a6db to nyc-dev-plus-aospYabin Cui2016-04-094-45/+160
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 49ef134 * commit '49ef1342c15cc501d340ebbbc52d5b0763ce3761': uncrypt: split libbootloader_message_writer for reuse. Change-Id: Id74ae9fec0e0c6c49af041b46a62fa4a10c23d91
| * | | | | | | | | | | | | | | resolve merge conflicts of a58a6db to nyc-dev-plus-aospYabin Cui2016-04-094-45/+160
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6d95fbd33f570d60e2caf42931ef6aa9f2634239
| | * | | | | | | | | | | | | | uncrypt: split libbootloader_message_writer for reuse.Yabin Cui2016-04-084-44/+160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | init and vold also need to write bootloader message, so split this function from uncrypt into a separate library. Bug: 27176738 Change-Id: If9b0887b4f6ffab6162d9cb47a6ceb7eedd60b4d
* | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-04-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Id4a5f32acb01776c95b092cc6e883036812836a9 Auto-generated-cl: translation import
* | | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE" into nyc-dev am: b162551 -s oursBill Yi2016-04-050-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fc60583 -s ours * commit 'fc60583a2c494414840fa181438135d1926aba8a': Import translations. DO NOT MERGE Change-Id: Ie62a08f06cb9eaff0a441e3c784b1f1c605dec97
| * | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE" into nyc-devBill Yi2016-04-050-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b162551 -s ours * commit 'b162551a30ce45e991fbd24f0647b6320d3b9b67': Import translations. DO NOT MERGE Change-Id: If605bd508a2f61db0d96b4f6261aa59c92486e0b
| | * | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE" into nyc-devBill Yi2016-04-052-2/+2
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-04-052-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic643d0e2d39e45d772ffb25001de45afdf923579 Auto-generated-cl: translation import
* | | | | | | | | | | | | | | | | Merge "Import translations. DO NOT MERGE"Bill Yi2016-04-051-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-04-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib4ebc02261abc4610947ab54f5e53f9958190e27 Auto-generated-cl: translation import
* | | | | | | | | | | | | | | | | | recovery-persist: pick up both pstore console files am: a569727Mark Salyzyn2016-04-050-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f726865 * commit 'f7268653331bf20740b9dfa211f05d204905befc': recovery-persist: pick up both pstore console files Change-Id: I4787bf7b5893e2d902e55d0c2d92b33f9bc277a5
| * | | | | | | | | | | | | | | | | recovery-persist: pick up both pstore console filesMark Salyzyn2016-04-050-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a569727 * commit 'a5697276097913f3b2771f9b2cb077bdbcbecf38': recovery-persist: pick up both pstore console files Change-Id: I9f2165a63ee73b26d49a85eba62707c50f44359a
| | * | | | | | | | | | | | | | | | recovery-persist: pick up both pstore console filesMark Salyzyn2016-04-051-2/+7
| | | |/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cherry pick from commit 5f7111ff4dc5055298d302b228f392a7a22a00a0) - Volantis console-ramoops-0 (upstream correct) - Angler console-ramoops - Bullhead console-ramoops - Shamu console-ramoops NB: Shamu also has kernel crashes in other pstore files, not merging them in. Bug: 27176738 Change-Id: Ib6eef3e25475935b89252f51c960719c7860511a
* | | | | | | | | | | | | | | | | Merge "recovery-persist: pick up both pstore console files" am: 901f315 am: 4195388Mark Salyzyn2016-04-051-2/+7
|\| | | | | | | | | | | | | | | | | |_|/ / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 59a55b5 * commit '59a55b57bc8543ad0d080f117fc9ae53b1d95e1b': recovery-persist: pick up both pstore console files Change-Id: I94e04f486fed0bc79827a1805989424265afa28b
| * | | | | | | | | | | | | | | Merge "recovery-persist: pick up both pstore console files" am: 901f315Mark Salyzyn2016-04-051-2/+7
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4195388 * commit '419538869d3e92270f748316f4956eeb431663c3': recovery-persist: pick up both pstore console files Change-Id: I85571bfef8ab8f1a4f44c2a9138d3eaca78e57aa
| | * | | | | | | | | | | | | | Merge "recovery-persist: pick up both pstore console files"Mark Salyzyn2016-04-051-2/+7
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 901f315 * commit '901f31531ba7b7e40e8a9c915467892997d176da': recovery-persist: pick up both pstore console files Change-Id: I7febc439147995adc06b75d1b0de3d30f55719a9
| | | * | | | | | | | | | | | | Merge "recovery-persist: pick up both pstore console files"Mark Salyzyn2016-04-051-2/+7
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / | | | |/| | | | | | | | | | | |
| | | | * | | | | | | | | | | | recovery-persist: pick up both pstore console filesMark Salyzyn2016-04-051-2/+7
| | | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Volantis console-ramoops-0 (upstream correct) - Angler console-ramoops - Bullhead console-ramoops - Shamu console-ramoops NB: Shamu also has kernel crashes in other pstore files, not merging them in. Bug: 27176738 Change-Id: Ib6eef3e25475935b89252f51c960719c7860511a
* | | | | | | | | | | | | | | Import translations. DO NOT MERGE am: f75b6e4 -s oursBill Yi2016-04-050-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ea22f8f -s ours * commit 'ea22f8f61ed2c3bbda0c45b08934d1d84f107651': Import translations. DO NOT MERGE Change-Id: I10f58bfa96d16326e4a912abf96a2a82a82a376e
| * | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-04-050-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f75b6e4 -s ours * commit 'f75b6e47def859039627a557c1046f1fc723036b': Import translations. DO NOT MERGE Change-Id: I948c6f31dd9c54a1f1abc5e0fdccb6571f095eb6
| | * | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-04-0581-229/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ia0012b89f00c65ec6056d29612748e60564bab32 Auto-generated-cl: translation import
* | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-04-0581-229/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I5280c977c6c5099c681fa5069bdde9b5426d5949 Auto-generated-cl: translation import
* | | | | | | | | | | | | | | Merge "Move selinux dependencies out of header files." am: 8124750 am: dc91161Elliott Hughes2016-04-028-11/+18
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5c23b80 * commit '5c23b801e5f29ca85dde4a58fde4a69faacd7c6c': Move selinux dependencies out of header files. Change-Id: I191e0337501fc5520da1fa726911ffabd5d156c9
| * | | | | | | | | | | | | | Merge "Move selinux dependencies out of header files." am: 8124750Elliott Hughes2016-04-028-11/+18
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dc91161 * commit 'dc91161a56c74bb6c73560d728d92b115f0f6e75': Move selinux dependencies out of header files. Change-Id: I439d352c9366dbed201a5592059b886968324633
| | * | | | | | | | | | | | | Merge "Move selinux dependencies out of header files."Elliott Hughes2016-04-028-11/+18
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8124750 * commit '81247500d535dac714fad657860b67474e1f6e42': Move selinux dependencies out of header files. Change-Id: If8fde7a64334327a2b0880a742d784642481ceeb
| | | * | | | | | | | | | | | Merge "Move selinux dependencies out of header files."Elliott Hughes2016-04-028-11/+18
| | | |\ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | Move selinux dependencies out of header files.Elliott Hughes2016-04-028-11/+18
| | | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/27764900 Change-Id: Ib62a59edcb13054f40f514c404d32b87b14ed5f1
* | | | | | | | | | | | | | | recovery: use __android_log_pmsg_file_write for log files am: 13aca59Mark Salyzyn2016-03-310-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 658a467 * commit '658a467a1228e99cd858b49c7571c420b41419bf': recovery: use __android_log_pmsg_file_write for log files Change-Id: I94f01d485b0f0ca0e697763d9f428b6014d667ac
| * | | | | | | | | | | | | | recovery: use __android_log_pmsg_file_write for log filesMark Salyzyn2016-03-310-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 13aca59 * commit '13aca598f8e93548fef36d87136e85ce8c9d18de': recovery: use __android_log_pmsg_file_write for log files Change-Id: I068397cfa182fb14285a266f038f8c5230466a3b
| | * | | | | | | | | | | | | recovery: use __android_log_pmsg_file_write for log filesMark Salyzyn2016-03-318-12/+548
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cherry-pick from commit a4f701af93a5a739f34823cde0c493dfbc63537a) - Add call to __android_log_pmsg_file_write for recovery logging. - Add call to refresh pmsg if we reboot back into recovery and then allow overwrite of those logs. - Add a new one-time executable recovery-refresh that refreshes pmsg in post-fs phase of init. We rely on pmsg eventually scrolling off to age the content after recovery-persist has done its job. - Add a new one-time executable recovery-persist that transfers from pmsg to /data/misc/recovery/ directory if /cache is not mounted in post-fs-data phase of init. - Build and appropriately trigger the above two as required if BOARD_CACHEIMAGE_PARTITION_SIZE is undefined. - Add some simple unit tests NB: Test failure is expected on systems that do not deliver either the recovery-persist or recovery-refresh executables, e.g. systems with /cache. Tests also require a timely reboot sequence of test to truly verify, tests provide guidance on stderr to direct. Bug: 27176738 Change-Id: I17bb95980234984f6b2087fd5941b0a3126b706b
* | | | | | | | | | | | | | | Merge "recovery: use __android_log_pmsg_file_write for log files" am: 75da771 am: 6f83130Mark Salyzyn2016-03-318-12/+548
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9b9e584 * commit '9b9e5843d296c4bb0d2cdca5eb18a2d2277dff96': recovery: use __android_log_pmsg_file_write for log files Change-Id: I0a2aeb27f786740c693e0a21c9da1eca5b0e6216
| * | | | | | | | | | | | | | Merge "recovery: use __android_log_pmsg_file_write for log files" am: 75da771Mark Salyzyn2016-03-318-12/+548
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6f83130 * commit '6f83130d7acd85df89a80e691d3aa63bd2ceda39': recovery: use __android_log_pmsg_file_write for log files Change-Id: Id2e7a76bae8eb061f6f57249dd912f25cd6332c6
| | * | | | | | | | | | | | | Merge "recovery: use __android_log_pmsg_file_write for log files"Mark Salyzyn2016-03-318-12/+548
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 75da771 * commit '75da77105f329f5d6c1b4dc46ce02377ec4afd6a': recovery: use __android_log_pmsg_file_write for log files Change-Id: I3da18530294ec71cd24b5ad8c720ab16c3e47dab
| | | * | | | | | | | | | | | Merge "recovery: use __android_log_pmsg_file_write for log files"Mark Salyzyn2016-03-318-12/+548
| | | |\ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | recovery: use __android_log_pmsg_file_write for log filesMark Salyzyn2016-03-288-12/+548
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add call to __android_log_pmsg_file_write for recovery logging. - Add call to refresh pmsg if we reboot back into recovery and then allow overwrite of those logs. - Add a new one-time executable recovery-refresh that refreshes pmsg in post-fs phase of init. We rely on pmsg eventually scrolling off to age the content after recovery-persist has done its job. - Add a new one-time executable recovery-persist that transfers from pmsg to /data/misc/recovery/ directory if /cache is not mounted in post-fs-data phase of init. - Build and appropriately trigger the above two as required if BOARD_CACHEIMAGE_PARTITION_SIZE is undefined. - Add some simple unit tests NB: Test failure is expected on systems that do not deliver either the recovery-persist or recovery-refresh executables, e.g. systems with /cache. Tests also require a timely reboot sequence of test to truly verify, tests provide guidance on stderr to direct. Bug: 27176738 Change-Id: I17bb95980234984f6b2087fd5941b0a3126b706b
* | | | | | | | | | | | | | | | Import translations. DO NOT MERGE am: f1b2785 -s oursBill Yi2016-03-310-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6a54ca4 -s ours * commit '6a54ca4f9181774fe6cb58940d73f86aee506423': Import translations. DO NOT MERGE Change-Id: Id0e7d247df98ac9fbfa7579b39b72e1fa0e00f20
| * | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-03-310-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f1b2785 -s ours * commit 'f1b2785129b64a140764483901530f40716e53f5': Import translations. DO NOT MERGE Change-Id: I36787400a12a3a9258a9d9c569da69b79cb2738f
| | * | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-03-3181-312/+498
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Id992a2cff5d431b5862f7c27f3823dbffe52f5c7 Auto-generated-cl: translation import
* | | | | | | | | | | | | | | | Import translations. DO NOT MERGEBill Yi2016-03-3181-312/+498
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I96a3ebec0ab7b7400bcf8ffd2a899d291d8a4579 Auto-generated-cl: translation import
* | | | | | | | | | | | | | | | Merge "uncrypt: remove --read-bcb option." am: ebd22be am: ecc068c -s oursYabin Cui2016-03-300-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f41c35d * commit 'f41c35d774de88bc668c94ee5cfa43b60eb6eea1': uncrypt: remove --read-bcb option. Change-Id: I05dfeef0be5d80d717c37a9fc03b1c61cb3e5e6b
| * | | | | | | | | | | | | | | Merge "uncrypt: remove --read-bcb option." am: ebd22beYabin Cui2016-03-300-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ecc068c -s ours * commit 'ecc068c2f83b4db891f9d479170c06cf06bb409a': uncrypt: remove --read-bcb option. Change-Id: I53dc530930eb95d00ea2efd51a07e34502ab63c6
| | * | | | | | | | | | | | | | Merge "uncrypt: remove --read-bcb option."Yabin Cui2016-03-301-32/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ebd22be * commit 'ebd22be4f742f5eeb32b2eeaf212b34e7605da50': uncrypt: remove --read-bcb option. Change-Id: I06ed6c0a36246041d03c57bc03f532de414c926f
| | | * | | | | | | | | | | | | Merge "uncrypt: remove --read-bcb option."Yabin Cui2016-03-301-32/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | uncrypt: remove --read-bcb option.Yabin Cui2016-03-301-32/+0
| | | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 27897241 Change-Id: I4f52ada58e8f204dba8c974ea0ae03876411ecf0 (cherry picked from commit 61799baba3631f55469d2754542130255ce790cf)
* | | | | | | | | | | | | | | | Merge "uncrypt: fix call to close()." into nyc-dev am: 912e87e -s oursYabin Cui2016-03-300-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 31d0872 * commit '31d08721194392bb8dd19fa2aee5d9720e960843': uncrypt: fix call to close(). Change-Id: Ida59e364ac117786d996eb841d5acb89ebb7dfa7
| * | | | | | | | | | | | | | | Merge "uncrypt: fix call to close()." into nyc-devYabin Cui2016-03-300-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 912e87e -s ours * commit '912e87e91d15c35c18ce6710bf6a0b34f50b3672': uncrypt: fix call to close(). Change-Id: Ib9d13b4b39d64a9b7ff95429152eb9f3383ee4b3
| | * | | | | | | | | | | | | | Merge "uncrypt: fix call to close()." into nyc-devYabin Cui2016-03-301-2/+2
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | | | uncrypt: fix call to close().Yabin Cui2016-03-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 27897229 Change-Id: Iab5e829af1676f7fcd8a4b00a194aa679ed4e372
* | | | | | | | | | | | | | | | | Merge "Add string for Installing_security_update" am: 3568004 am: 2e21897Tianjie Xu2016-03-300-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0d66126 * commit '0d661262e99ae6ba6baeae6cdce05791923fe445': Add string for Installing_security_update Change-Id: I5a1817ff5ef8494c53441892612070274432c92a
| * | | | | | | | | | | | | | | | Merge "Add string for Installing_security_update" am: 3568004Tianjie Xu2016-03-300-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2e21897 * commit '2e2189728b3172327e93825ed803768c72fe7f28': Add string for Installing_security_update Change-Id: I5b00f7c996c2a0653f1769790498c0a6578f6ac5
| | * | | | | | | | | | | | | | | Merge "Add string for Installing_security_update"Tianjie Xu2016-03-301-0/+4
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3568004 * commit '3568004cba740a466bd9731a4bb5c8a1475e6d2d': Add string for Installing_security_update Change-Id: I11a147726cd535e574690e01df35ec961888c5c6
| | | * | | | | | | | | | | | | | Merge "Add string for Installing_security_update"Tianjie Xu2016-03-301-0/+4
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | Add string for Installing_security_updateTianjie Xu2016-03-291-0/+4
| | | |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 27837319 Change-Id: I037158697a294c3e03f186f3b4207ea700321a8a (cherry picked from commit 1ee0ff3d78c5143d4e3307bc44e3c27792e72d1e)
* | | | | | | | | | | | | | | | | resolve merge conflicts of 61799ba to nyc-dev-plus-aospYabin Cui2016-03-301-32/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0c39203 * commit '0c39203698b904e165237f67d6bd013debd6dc47': uncrypt: remove --read-bcb option. Change-Id: Ic84b20a7736d6c0cd5f4e3ff07a02cbd64e285aa
| * | | | | | | | | | | | | | | | resolve merge conflicts of 61799ba to nyc-dev-plus-aospYabin Cui2016-03-301-32/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib1d0afe9022ec82f05be8b56201e73505160cacc
| | * | | | | | | | | | | | | | | uncrypt: remove --read-bcb option.Yabin Cui2016-03-291-32/+0
| | | |_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 27897241 Change-Id: I4f52ada58e8f204dba8c974ea0ae03876411ecf0
* | | | | | | | | | | | | | | | Add string for Installing_security_update am: 1ee0ff3Tianjie Xu2016-03-291-0/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0f54a46 * commit '0f54a46af3d2fa5f01fd1e37ed050b3cf697008c': Add string for Installing_security_update Change-Id: Ib9cc5307a030a94f7d9d6e9c52646cf1665bbe3d
| * | | | | | | | | | | | | | | Add string for Installing_security_updateTianjie Xu2016-03-291-0/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1ee0ff3 * commit '1ee0ff3d78c5143d4e3307bc44e3c27792e72d1e': Add string for Installing_security_update Change-Id: Ied2a3b07fbf8548688759727da527fc7a994d5a0
| | * | | | | | | | | | | | | | Add string for Installing_security_updateTianjie Xu2016-03-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 27837319 Change-Id: I037158697a294c3e03f186f3b4207ea700321a8a
* | | | | | | | | | | | | | | | Fix uncrypt.cpp unique_fd build breakage.Elliott Hughes2016-03-291-10/+10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d6ac686 * commit 'd6ac68665dcef6c12d44ee6bcd7d938ab5028150': Fix uncrypt.cpp unique_fd build breakage. Change-Id: Ibb0c2a7e7cc3668b2fe41e756a637043cfecc03f
| * | | | | | | | | | | | | | | Fix uncrypt.cpp unique_fd build breakage.Elliott Hughes2016-03-291-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I4654f59463d1f3e1f4450e937cd910508b64c157
* | | | | | | | | | | | | | | | resolve merge conflicts of 5cf4701 to nyc-dev-plus-aospElliott Hughes2016-03-294-128/+56
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 20ab2db * commit '20ab2db8f1e04f4f9b4c1dc0e9377f0586bfc10a': Switch to <android-base/unique_fd.h>. Change-Id: I3ad1eae327ad83c82aa684e4a2846d4313fd4486
| * | | | | | | | | | | | | | | resolve merge conflicts of 5cf4701 to nyc-dev-plus-aospElliott Hughes2016-03-294-128/+56
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ia69f8b070c05cfe201115de510e3c12e813e38b5
| | * | | | | | | | | | | | | | Merge "Switch to <android-base/unique_fd.h>."Elliott Hughes2016-03-294-143/+74
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / | | | |/| / / / / / / / / / / / | | | |_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5d73735 * commit '5d73735552b3eca103830bd1433ce4b74b54b2b3': Switch to <android-base/unique_fd.h>. Change-Id: I2f03ba036160376f03516eb7ede62229bb8e20ba
| | | * | | | | | | | | | | | Merge "Switch to <android-base/unique_fd.h>."Elliott Hughes2016-03-294-143/+74
| | |/| | | | | | | | | | | |
| | | * | | | | | | | | | | | Switch to <android-base/unique_fd.h>.Elliott Hughes2016-03-294-143/+74
| | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I13ba3f40bd52b5f3e3fe9002a45a9a8630040129
* | | | | | | | | | | | | | Move recovery_l10n here from development/tools. am: cc79490Elliott Hughes2016-03-260-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e833769 * commit 'e833769e7be7ffa3db8a35c84fc9c6b6aea9f663': Move recovery_l10n here from development/tools.
| * | | | | | | | | | | | | Move recovery_l10n here from development/tools.Elliott Hughes2016-03-260-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cc79490 * commit 'cc79490fa83fe2dea6cbcd219751d346645ca7ec': Move recovery_l10n here from development/tools.
| | * | | | | | | | | | | | Move recovery_l10n here from development/tools.Elliott Hughes2016-03-2683-0/+1038
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/27837319 (cherry picked from commit 3d0153a807042dd1bdb7e9fd81d16429a205d9ce) Change-Id: Iec2cd10fa77ed1881d55ac4e0ab48e45172f0cf7
* | | | | | | | | | | | | | Merge "Move recovery_l10n here from development/tools." am: 2dbd06cElliott Hughes2016-03-2683-0/+1038
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c15adeb * commit 'c15adeb34c6e93aa9dbb22d2336e7873249ba8bb': Move recovery_l10n here from development/tools.
| * | | | | | | | | | | | | Merge "Move recovery_l10n here from development/tools."Elliott Hughes2016-03-2683-0/+1038
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2dbd06c * commit '2dbd06c7ed9e753439fb2c0e17d11ca6323e5157': Move recovery_l10n here from development/tools.
| | * | | | | | | | | | | | Merge "Move recovery_l10n here from development/tools."Elliott Hughes2016-03-2683-0/+1038
| | |\ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | Move recovery_l10n here from development/tools.Elliott Hughes2016-03-2683-0/+1038
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/27837319 Change-Id: I116fc13ae108a59b657f5c9f7efe971de72ac743
* | | | | | | | | | | | | | | Merge "Skip stashing source blocks in verify mode" am: 3123e5aTianjie Xu2016-03-250-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 05e76f7 * commit '05e76f7183b72fb2762472e083647a07ede9a2fa': Skip stashing source blocks in verify mode
| * | | | | | | | | | | | | | Merge "Skip stashing source blocks in verify mode"Tianjie Xu2016-03-250-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3123e5a * commit '3123e5ad94350ddc3449dea3214f312c38709832': Skip stashing source blocks in verify mode
| | * | | | | | | | | | | | | Merge "Skip stashing source blocks in verify mode"Tianjie Xu2016-03-251-8/+46
| | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | | Skip stashing source blocks in verify modeTianjie Xu2016-03-251-8/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently block_image_verify() stashes source blocks to /cache and in some case triggers I/O errors. To avoid this risk, We create a map from the hash value to the source blocks' range_set. When executing stash command in verify mode, source range is saved but block contents aren't stashed. And load_stash could get its value from either the stashed file from the previous update, or the contents on the source partition specified by the saved range. Bug: 27584487 Bug: 25633753 Change-Id: I775baf4bee55762b6e7b204f8294afc597afd996 (cherry picked from commit 0188935d55206e8c2becb29e995f166cb7040355)
* | | | | | | | | | | | | | | | Merge "Clean up intent_file related code in recovery.cpp" am: 7e18ce2Tianjie Xu2016-03-251-23/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 180de7a * commit '180de7a58c50224e95078acd69843aebd35bf858': Clean up intent_file related code in recovery.cpp
| * | | | | | | | | | | | | | | Merge "Clean up intent_file related code in recovery.cpp"Tianjie Xu2016-03-251-23/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7e18ce2 * commit '7e18ce221fac387d5f08da2519879c1fc2046a4a': Clean up intent_file related code in recovery.cpp
| | * | | | | | | | | | | | | | Merge "Clean up intent_file related code in recovery.cpp"Tianjie Xu2016-03-251-23/+5
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | | | Clean up intent_file related code in recovery.cppTianjie Xu2016-03-241-23/+5
| | | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No one in recovery or framework is utilizing intent file. Clean up the code. Bug:27725880 Change-Id: I78b37ff94261793e0d6a86a0fa6d27dcfe3f4783
* | | | | | | | | | | | | | | | Merge "Correct caching behavior for should_inject_cache" am: 9afbf2aJed Estep2016-03-250-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c52b853 * commit 'c52b853194553dae146bf19b9279b6290fe8c678': Correct caching behavior for should_inject_cache
| * | | | | | | | | | | | | | | Merge "Correct caching behavior for should_inject_cache"Jed Estep2016-03-250-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9afbf2a * commit '9afbf2af4ca615b036926f8008c4e6aa2f7dd987': Correct caching behavior for should_inject_cache
| | * | | | | | | | | | | | | | Merge "Correct caching behavior for should_inject_cache"Tao Bao2016-03-252-18/+23
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | |
| | | * | | | | | | | | | | | | Correct caching behavior for should_inject_cacheJed Estep2016-03-252-18/+23
| | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 27800498 Change-Id: I5255283c1d04a385ed719c5bc2be461cae9f3648 (cherry picked from commit 88dd7796a1fd4c64d57afb20021bf66cb26fa886)
* | | | | | | | | | | | | | | Merge "Skip stashing source blocks in verify mode" into nyc-dev am: adca297Tianjie Xu2016-03-241-8/+46
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7781778 * commit '77817789e04337011d4a659114795d745c98bf7a': Skip stashing source blocks in verify mode
| * | | | | | | | | | | | | | Merge "Skip stashing source blocks in verify mode" into nyc-devTianjie Xu2016-03-241-8/+46
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: adca297 * commit 'adca29794376e4936824b60aeaa53b285962ee05': Skip stashing source blocks in verify mode
| | * | | | | | | | | | | | | Merge "Skip stashing source blocks in verify mode" into nyc-devTianjie Xu2016-03-241-8/+46
| | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | | Skip stashing source blocks in verify modeTianjie Xu2016-03-231-8/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently block_image_verify() stashes source blocks to /cache and in some case triggers I/O errors. To avoid this risk, We create a map from the hash value to the source blocks' range_set. When executing stash command in verify mode, source range is saved but block contents aren't stashed. And load_stash could get its value from either the stashed file from the previous update, or the contents on the source partition specified by the saved range. Bug: 27584487 Bug: 25633753 Change-Id: I775baf4bee55762b6e7b204f8294afc597afd996
* | | | | | | | | | | | | | | | Correct caching behavior for should_inject_cache am: 88dd779Jed Estep2016-03-242-17/+17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7a9da52 * commit '7a9da521e1ecdba7a51fc15c0fc921123d1d5c4e': Correct caching behavior for should_inject_cache
| * | | | | | | | | | | | | | | Correct caching behavior for should_inject_cacheJed Estep2016-03-242-17/+17
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 88dd779 * commit '88dd7796a1fd4c64d57afb20021bf66cb26fa886': Correct caching behavior for should_inject_cache
| | * | | | | | | | | | | | | | Correct caching behavior for should_inject_cacheJed Estep2016-03-232-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 27800498 Change-Id: I5255283c1d04a385ed719c5bc2be461cae9f3648
* | | | | | | | | | | | | | | | Merge "Remove dead tools." am: 4cb6812Elliott Hughes2016-03-234-398/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e969958 * commit 'e9699584b573a8dd7e0edde0fda2a23b277e96af': Remove dead tools.
| * | | | | | | | | | | | | | | Merge "Remove dead tools."Elliott Hughes2016-03-234-398/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4cb6812 * commit '4cb68121b86ca88c9ac7c08c64bb6c13f26da7bc': Remove dead tools.
| | * | | | | | | | | | | | | | Merge "Remove dead tools."Elliott Hughes2016-03-234-398/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | |
| | | * | | | | | | | | | | | | Remove dead tools.Elliott Hughes2016-03-234-398/+0
| | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | None of these have been touched since cupcake, except to keep them building. Change-Id: I5ed13849e6842e755c62da05f1a8a6da2583b1ee
* | | | | | | | | | | | | | | Control fault injection with config files instead of build flags am: ff6df89Jed Estep2016-03-2110-137/+242
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6f78768 * commit '6f7876816b2322169432658235ebf7882ced0564': Control fault injection with config files instead of build flags
| * | | | | | | | | | | | | | Control fault injection with config files instead of build flagsJed Estep2016-03-2110-137/+242
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ff6df89 * commit 'ff6df890a2a01bf3bf56d3f430b17a5ef69055cf': Control fault injection with config files instead of build flags
| | * | | | | | | | | | | | | Control fault injection with config files instead of build flagsJed Estep2016-03-1910-137/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 27724259 Change-Id: I65bdefed10b3fb85fcb9e1147eaf0687d7d438f4
* | | | | | | | | | | | | | | Merge "Fix: full ota package larger than 2GB fails to upgrade" am: 867e60dcaozhiyuan2016-03-212-12/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9570508 * commit '9570508c0be67f75553571bed7f4b343a1cc591c': Fix: full ota package larger than 2GB fails to upgrade
| * | | | | | | | | | | | | | Merge "Fix: full ota package larger than 2GB fails to upgrade"caozhiyuan2016-03-212-12/+14
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 867e60d * commit '867e60db16d2ec687a12e525cf26f203da8396b2': Fix: full ota package larger than 2GB fails to upgrade
| | * | | | | | | | | | | | | Merge "Fix: full ota package larger than 2GB fails to upgrade"Tao Bao2016-03-212-12/+14
| | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | | Fix: full ota package larger than 2GB fails to upgradecaozhiyuan2016-03-212-12/+14
| | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I45d9fab8739cc6fa8a0bacaca9238896118d9d7f Signed-off-by: diruomeng <di.ruomeng@zte.com.cn> Signed-off-by: caozhiyuan <cao.zhiyuan@zte.com.cn>
* | | | | | | | | | | | | | | recovery: Move SwipeDetector into common location am: 9020e0fPrashant Malani2016-03-183-0/+236
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1500f11 * commit '1500f11e81584c105eb1f36439719629e2c39073': recovery: Move SwipeDetector into common location
| * | | | | | | | | | | | | | recovery: Move SwipeDetector into common locationPrashant Malani2016-03-183-0/+236
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9020e0f * commit '9020e0f141d1c26dcf8b6fa4212ee94b7891d53f': recovery: Move SwipeDetector into common location
| | * | | | | | | | | | | | | recovery: Move SwipeDetector into common locationPrashant Malani2016-03-183-0/+236
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SwipeDetector class is used almost unchanged in all locations. This patch moves it into the recovery module, from which devices can reference it if required. The class is now renamed to WearSwipeDetector. Bug: 27407422 Change-Id: Ifd3c7069a287548b89b14ab5d6d2b90a298e0145
* | | | | | | | | | | | | | | resolve merge conflicts of ce58688 to nyc-dev-plus-aospTao Bao2016-03-1710-241/+139
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6f44637 * commit '6f446373fdda9e084e7cce86c4694f365e75951b': Revert "DO NOT MERGE Control fault injection with config files instead of build flags"
| * | | | | | | | | | | | | | resolve merge conflicts of ce58688 to nyc-dev-plus-aospTao Bao2016-03-1710-241/+139
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ia9bfb989b6d13ee4f6a22216beb94065a9487484
| | * | | | | | | | | | | | | Revert "DO NOT MERGE Control fault injection with config files instead of build flags"Tao Bao2016-03-1710-237/+137
| | | |/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit f73abf36bcfd433a3fdd1664a77e8e531346c1b1. Bug: 27724259 Change-Id: I1301fdad15650837d0b1febd0c3239134e2b94fb
* | | | | | | | | | | | | | resolve merge conflicts of f73abf3 to nyc-dev-plus-aospJed Estep2016-03-170-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d6e5862 * commit 'd6e586204f10c9675009bfcf533860e39a3a4cbf': DO NOT MERGE Control fault injection with config files instead of build flags
| * | | | | | | | | | | | | resolve merge conflicts of f73abf3 to nyc-dev-plus-aospElliott Hughes2016-03-170-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I9ce2fee126c70abf5129330430585fd27efd0bcc
| | * | | | | | | | | | | | DO NOT MERGE Control fault injection with config files instead of build flagsJed Estep2016-03-1610-137/+237
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 26570379 Change-Id: I76109d09276d6e3ed3a32b6fedafb2582f545c0c
* | | | | | | | | | | | | | Merge "Add include/ to the Makefile include path." am: 38234f4befAlex Deymo2016-03-141-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1b688e8039 * commit '1b688e8039a26b7deb9217487f99136d2afcc688': Add include/ to the Makefile include path.
| * | | | | | | | | | | | | Merge "Add include/ to the Makefile include path."Alex Deymo2016-03-141-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 38234f4bef * commit '38234f4bef8b70d985c09224e6d7752d71400f23': Add include/ to the Makefile include path.
| | * | | | | | | | | | | | Merge "Add include/ to the Makefile include path."Alex Deymo2016-03-141-1/+1
| | |\ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | Add include/ to the Makefile include path.Alex Deymo2016-03-141-1/+1
| | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The applypatch heaaders were recently moved to the include/ directory. This patch reflects that change in the Makefile. Bug: None TEST=sudo emerge imgdiff Change-Id: I0bf3f991b5e0c98054033c5939ed69b3e3c827a9
* | | | | | | | | | | | | | resolve merge conflicts of 0222db01fd to nyc-dev-plus-aospGreg Kaiser2016-03-140-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d2425ed063 * commit 'd2425ed063863b502600a4d80d01f362021bd61a': otafault: Fix setting of have_eio_error.
| * | | | | | | | | | | | | resolve merge conflicts of 0222db01fd to nyc-dev-plus-aospGreg Kaiser2016-03-140-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I415774ace081b866226a74eebfd1013f7e5c49f3
| | * | | | | | | | | | | | Merge "otafault: Fix setting of have_eio_error." into nyc-devGreg Kaiser2016-03-141-1/+1
| | |\ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | otafault: Fix setting of have_eio_error.Greg Kaiser2016-03-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was one case (ota_fsync, under TARGET_SYNC_FAULT, when the filename was cached) where we were not setting have_eio_error prior to returning. We fix that. Change-Id: I2b0aa61fb1e821f0e77881aba04db95cd8396812
* | | | | | | | | | | | | | | Merge "Port applypatch.sh tests to recovery_component_tests" into nyc-dev am: 761653a4adJed Estep2016-03-127-7/+428
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3f581f7828 * commit '3f581f782883f011e3b63c5f9086e09f3762db35': Port applypatch.sh tests to recovery_component_tests
| * | | | | | | | | | | | | | Merge "Port applypatch.sh tests to recovery_component_tests" into nyc-devJed Estep2016-03-127-7/+428
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 761653a4ad * commit '761653a4ad1c392fcd505e8909661fd64f02ce97': Port applypatch.sh tests to recovery_component_tests
| | * | | | | | | | | | | | | Merge "Port applypatch.sh tests to recovery_component_tests" into nyc-devJed Estep2016-03-127-8/+429
| | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | | Port applypatch.sh tests to recovery_component_testsJed Estep2016-03-127-8/+429
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 27135282 Change-Id: If53682b591397ddfdb84860a3779b612904d4489
* | | | | | | | | | | | | | | | Merge "recovery: Remove SetColor, and other refactoring for WearUI" into nyc-dev am: 20df4adeadPrashant Malani2016-03-124-72/+31
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8dcd014951 * commit '8dcd0149514830f8b73101d83c9eb3368acab340': recovery: Remove SetColor, and other refactoring for WearUI
| * | | | | | | | | | | | | | | Merge "recovery: Remove SetColor, and other refactoring for WearUI" into nyc-devPrashant Malani2016-03-124-72/+31
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 20df4adead * commit '20df4adead04f5a137cce868c6b8024794d47fc0': recovery: Remove SetColor, and other refactoring for WearUI
| | * | | | | | | | | | | | | | Merge "recovery: Remove SetColor, and other refactoring for WearUI" into nyc-devPrashant Malani2016-03-124-72/+31
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | |
| | | * | | | | | | | | | | | | recovery: Remove SetColor, and other refactoring for WearUIPrashant Malani2016-03-124-72/+31
| | | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only difference from SetColor in ScreenRecoveryUI is the that the LOG messages have slightly different colors. That's not enough to warrant a duplicate function. So this patch removes SetColor and uses the parent class version. This patch also moves the DrawTextLine* functions into ScreenRecoveryUI since they're mostly the same. It also moves char_width and char_height into the class instead of keeping them as static variables. Bug: 27407422 Change-Id: I30428c9433baab8410cf710a01c9b1c44c217bf1
* | | | | | | | | | | | | | | applypatch: use vector to store data in FileContents. am: 1c522df25f -s oursYabin Cui2016-03-120-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a0b8dc7aa6 * commit 'a0b8dc7aa6748ed05b05046f68afbc1b4d442904': applypatch: use vector to store data in FileContents.
| * | | | | | | | | | | | | | applypatch: use vector to store data in FileContents.Yabin Cui2016-03-120-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1c522df25f -s ours * commit '1c522df25f9524eaa0273538b3de0b9ad1b8fcea': applypatch: use vector to store data in FileContents.
| | * | | | | | | | | | | | | applypatch: use vector to store data in FileContents.Yabin Cui2016-03-114-127/+78
| | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cherry pick this patch because it fixes the problem that a newed Value is released by free(). Bug: 26906416 Change-Id: Ib53b445cd415a1ed5e95733fbc4073f9ef4dbc43 (cherry picked from commit d6c93afcc28cc65217ba65eeb646009c4f15a2ad)
* | | | | | | | | | | | | | recovery: Remove duplicate variables and functions am: 0ba21cff07Prashant Malani2016-03-114-18/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 749054e1e3 * commit '749054e1e34272fc7ed987bfc2f4e24e8b9565ac': recovery: Remove duplicate variables and functions
| * | | | | | | | | | | | | recovery: Remove duplicate variables and functionsPrashant Malani2016-03-114-18/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0ba21cff07 * commit '0ba21cff07ceafeaa43e17aa26e341d961f6f29f': recovery: Remove duplicate variables and functions
| | * | | | | | | | | | | | recovery: Remove duplicate variables and functionsPrashant Malani2016-03-114-18/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function that modifies rtl_locale exists only in the base class, and so the variable should not have a duplicate in the derived class, otherwise there may be incosistent values when it is read by the derived class (the thinking being that invoking the function will modify the base class version of the variable, and not the derived class version). Remove the updateMutex variable, and instead re-use the one in the base class. Also remove LoadBitmap from WearUI since it is identical to the one in ScreenRecoveryUI. Bug: 27407422 Change-Id: Idd823fa93dfa16d7b2c9c7160f8d0c2559d28731
* | | | | | | | | | | | | | Merge "Reboot and retry on I/O errors" into nyc-dev am: d345de66ef -s oursTianjie Xu2016-03-100-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3f004e03e5 * commit '3f004e03e59f7efc8c2ea0a6ec682ca0054c5c0b': Reboot and retry on I/O errors
| * | | | | | | | | | | | | Merge "Reboot and retry on I/O errors" into nyc-devTianjie Xu2016-03-100-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d345de66ef -s ours * commit 'd345de66efb919e8c0d09ee5b4d8ae0d443d6c94': Reboot and retry on I/O errors
| | * | | | | | | | | | | | Merge "Reboot and retry on I/O errors" into nyc-devTianjie Xu2016-03-105-12/+119
| | |\ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | Reboot and retry on I/O errorsTianjie Xu2016-03-105-12/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When I/O error happens, reboot and retry installation two times before we abort this OTA update. Bug: 25633753 Change-Id: Iba6d4203a343a725aa625a41d237606980d62f69 (cherry picked from commit 3c62b67faf8a25f1dd1c44dc19759c3997fdfd36)
* | | | | | | | | | | | | | | Revert "recovery: More refactoring of WearUI" am: f7f9e50528Prashant Malani2016-03-104-4/+84
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 46c7756b1a * commit '46c7756b1a4b6f934eee6ec52483eacd6c34354d': Revert "recovery: More refactoring of WearUI"
| * | | | | | | | | | | | | | Revert "recovery: More refactoring of WearUI"Prashant Malani2016-03-104-4/+84
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f7f9e50528 * commit 'f7f9e50528761022989c4f0cac6a92716b54674f': Revert "recovery: More refactoring of WearUI"
| | * | | | | | | | | | | | | Revert "recovery: More refactoring of WearUI"Prashant Malani2016-03-104-4/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 1c7b2230d8aac9f064f68c48b6aa26aca000cc9d. This change can lead to the derived class indirectly (and incorrectly) calling some functions from the base class, which can lead to unpredictable behavior. Bug: 27407422 Change-Id: I126a7489b0787dc195e942e2ceea6769de20d70c
* | | | | | | | | | | | | | | recovery: More refactoring of WearUI am: 1c7b2230d8Prashant Malani2016-03-094-84/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fa623c60d4 * commit 'fa623c60d472340c46e63603ce8f1b192f332e15': recovery: More refactoring of WearUI
| * | | | | | | | | | | | | | recovery: More refactoring of WearUIPrashant Malani2016-03-094-84/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1c7b2230d8 * commit '1c7b2230d8aac9f064f68c48b6aa26aca000cc9d': recovery: More refactoring of WearUI
| | * | | | | | | | | | | | | recovery: More refactoring of WearUIPrashant Malani2016-03-094-84/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch performs the following modifications: - Remove setBackground function, and currentIcon member variable. - Remove common Progress*, Redraw and EndMenu functions. Bug: 27407422 Change-Id: Ic3c0e16b67941484c3bc1d04c9b61288e8896808 Signed-off-by: Prashant Malani <pmalani@google.com>
* | | | | | | | | | | | | | | Merge "applypatch: add -fPIC for libimgpatch in Chrome OS." am: 5593342575Sen Jiang2016-03-091-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: db78de25c2 * commit 'db78de25c2dfe0657c2b3408a5f9f5a587931cff': applypatch: add -fPIC for libimgpatch in Chrome OS.
| * | | | | | | | | | | | | | Merge "applypatch: add -fPIC for libimgpatch in Chrome OS."Sen Jiang2016-03-091-0/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5593342575 * commit '5593342575323f5f10e7af669871627e4ada8c7b': applypatch: add -fPIC for libimgpatch in Chrome OS.
| | * | | | | | | | | | | | | Merge "applypatch: add -fPIC for libimgpatch in Chrome OS."Sen Jiang2016-03-091-0/+1
| | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | | applypatch: add -fPIC for libimgpatch in Chrome OS.Sen Jiang2016-03-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To make the static library position independent. Bug: 26866274 Test: emerge-peppy imgdiff; sudo emerge imgdiff; emerge nyan imgdiff Change-Id: I319e721ccfb6a51f63d31afa49f54aa7f607f4bf
* | | | | | | | | | | | | | | | recovery: Begin refactor of WearUI to use ScreenRecoveryUI am: 7d9fd96dc9Prashant Malani2016-03-092-35/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5819944b16 * commit '5819944b165bcaff181af962c87be37f95e4d346': recovery: Begin refactor of WearUI to use ScreenRecoveryUI
| * | | | | | | | | | | | | | | recovery: Begin refactor of WearUI to use ScreenRecoveryUIPrashant Malani2016-03-092-35/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7d9fd96dc9 * commit '7d9fd96dc99a6008979811e36bb06f3afad18508': recovery: Begin refactor of WearUI to use ScreenRecoveryUI
| | * | | | | | | | | | | | | | recovery: Begin refactor of WearUI to use ScreenRecoveryUIPrashant Malani2016-03-082-35/+2
| | | |_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the first of a series of changes which move WearUI to subclass ScreenRecoveryUI, to take advantage of several functions which are common between the two recovery UI implementations, and already defined in ScreenRecoveryUI. This patch changes the base class of WearUI, removes redundant header includes, and also removes a common function. Bug: 27407422 Change-Id: I8fd90826900f69272a82e23bd099790e8004d511
* | | | | | | | | | | | | | | Merge "Reboot and retry on I/O errors" am: 94dc34148c am: 90f01a4203Tianjie Xu2016-03-085-7/+93
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9a83ca02a3 * commit '9a83ca02a32a21f00c7328269ab2c05940928452': Reboot and retry on I/O errors
| * | | | | | | | | | | | | | Merge "Reboot and retry on I/O errors" am: 94dc34148cTianjie Xu2016-03-085-7/+93
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 90f01a4203 * commit '90f01a4203de453a2c6b940c39289b629ae3b654': Reboot and retry on I/O errors
| | * | | | | | | | | | | | | Merge "Reboot and retry on I/O errors"Tianjie Xu2016-03-085-7/+93
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 94dc34148c * commit '94dc34148c117fd3cfb442a348a69dbbb676a5c5': Reboot and retry on I/O errors
| | | * \ \ \ \ \ \ \ \ \ \ \ \ Merge "Reboot and retry on I/O errors"Tianjie Xu2016-03-085-7/+93
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | Reboot and retry on I/O errorsTianjie Xu2016-03-035-7/+93
| | | | | |/ / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When I/O error happens, reboot and retry installation two times before we abort this OTA update. Bug: 25633753 Change-Id: Iba6d4203a343a725aa625a41d237606980d62f69
* | | | | | | | | | | | | | | | Merge "Restore labels on /postinstall during recovery." into nyc-dev am: 1731f2980bAlex Deymo2016-03-050-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a1ccc83c8b * commit 'a1ccc83c8beb0a99b0453104deb6538c163a445f': Restore labels on /postinstall during recovery.
| * | | | | | | | | | | | | | | Merge "Restore labels on /postinstall during recovery." into nyc-devAlex Deymo2016-03-050-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1731f2980b * commit '1731f2980bfadb29105ffd566dd78885889501d8': Restore labels on /postinstall during recovery.
| | * | | | | | | | | | | | | | Merge "Restore labels on /postinstall during recovery." into nyc-devAlex Deymo2016-03-051-0/+3
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | | | Restore labels on /postinstall during recovery.Alex Deymo2016-03-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch mirrors what was done in the main init.rc to relabel /postinstall. Bug: 27178350 Bug: 27177071 (cherry picked from commit 6bcc8af6e5a5bf9cc0987305cdfa24d4f6e4afa9) Change-Id: I8320559f014cfb14216dcc350e016fc1db05cb14
* | | | | | | | | | | | | | | | | recovery: Handle devices without /cache partition. am: ae6408d1a2Tao Bao2016-03-040-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d1e56b02e4 * commit 'd1e56b02e4f072d5100e2865948b721ea5bfa5b3': recovery: Handle devices without /cache partition.
| * | | | | | | | | | | | | | | | recovery: Handle devices without /cache partition.Tao Bao2016-03-040-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ae6408d1a2 * commit 'ae6408d1a2edc9950a2bff3af448cddecc7adf13': recovery: Handle devices without /cache partition.
| | * | | | | | | | | | | | | | | recovery: Handle devices without /cache partition.Tao Bao2016-03-041-10/+29
| | |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we may not have /cache partition on A/B devices, let recovery handle /cache related operations gracefully if /cache doesn't exist. (1) Disable the wipe for /cache partition. (2) Skip wiping /cache while wiping /data (i.e. factory reset). (3) Disable logging-related features, until we figure out better ways / places to store recovery logs (mainly for factory resets on A/B devices). Bug: 27176738 Change-Id: I7b14e53ce18960fe801ddfc15380dac6ceef1198 (cherry picked from commit 26112e587084e8b066c28a696533328adde406a9)
* | | | | | | | | | | | | | | | Merge "recovery: Handle devices without /cache partition." am: 479d9dc2f2 am: f2726712eaTao Bao2016-03-041-10/+29
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c36b919525 * commit 'c36b91952573dc632dfb855085a88303df583aab': recovery: Handle devices without /cache partition.
| * | | | | | | | | | | | | | | Merge "recovery: Handle devices without /cache partition." am: 479d9dc2f2Tao Bao2016-03-041-10/+29
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f2726712ea * commit 'f2726712ea1e02fdabf595ece1cfeab9a6147386': recovery: Handle devices without /cache partition.
| | * | | | | | | | | | | | | | Merge "recovery: Handle devices without /cache partition."Tao Bao2016-03-041-10/+29
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 479d9dc2f2 * commit '479d9dc2f2601f5858726913e82aac69c1aa22d2': recovery: Handle devices without /cache partition.
| | | * | | | | | | | | | | | | Merge "recovery: Handle devices without /cache partition."Tao Bao2016-03-041-10/+29
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | recovery: Handle devices without /cache partition.Tao Bao2016-03-031-10/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we may not have /cache partition on A/B devices, let recovery handle /cache related operations gracefully if /cache doesn't exist. (1) Disable the wipe for /cache partition. (2) Skip wiping /cache while wiping /data (i.e. factory reset). (3) Disable logging-related features, until we figure out better ways / places to store recovery logs (mainly for factory resets on A/B devices). Bug: 27176738 Change-Id: I7b14e53ce18960fe801ddfc15380dac6ceef1198
* | | | | | | | | | | | | | | | | Merge "Fix the improper use of LOCAL_WHOLE_STATIC_LIBRARIES." am: f639490a51 am: 038c294453Tao Bao2016-03-0410-60/+102
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d29a16afc7 * commit 'd29a16afc7918ee921a995950f31dd1d6be6823f': Fix the improper use of LOCAL_WHOLE_STATIC_LIBRARIES.
| * | | | | | | | | | | | | | | | Merge "Fix the improper use of LOCAL_WHOLE_STATIC_LIBRARIES." am: f639490a51Tao Bao2016-03-0410-60/+102
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 038c294453 * commit '038c294453865161680777f08ce7adbf42d8f6e3': Fix the improper use of LOCAL_WHOLE_STATIC_LIBRARIES.
| | * | | | | | | | | | | | | | | Merge "Fix the improper use of LOCAL_WHOLE_STATIC_LIBRARIES."Tao Bao2016-03-0410-60/+102
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f639490a51 * commit 'f639490a51655a4d372663e2f7000666748d7fda': Fix the improper use of LOCAL_WHOLE_STATIC_LIBRARIES.
| | | * | | | | | | | | | | | | | Merge "Fix the improper use of LOCAL_WHOLE_STATIC_LIBRARIES."Tao Bao2016-03-0410-60/+102
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | Fix the improper use of LOCAL_WHOLE_STATIC_LIBRARIES.Tao Bao2016-03-0310-60/+102
| | | | | |_|/ / / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If two libraries both use LOCAL_WHOLE_STATIC_LIBRARIES and include a same library, there would be linking errors when generating a shared library (or executable) that depends on the two libraries both. Also clean up Android.mk files. Remove the "LOCAL_MODULE_TAGS := eng" line for the updater module. The module will then default to "optional" which won't be built until needed. Change-Id: I3ec227109b8aa744b7568e7f82f575aae3fe0e6f
* | | | | | | | | | | | | | | | | Merge "Restore labels on /postinstall during recovery." am: 60eae72ac6 am: f6ffefb116Alex Deymo2016-03-041-0/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 20bb31bbd3 * commit '20bb31bbd3a74667ff1da59ef4ead37d065dc80d': Restore labels on /postinstall during recovery.
| * | | | | | | | | | | | | | | | Merge "Restore labels on /postinstall during recovery." am: 60eae72ac6Alex Deymo2016-03-041-0/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f6ffefb116 * commit 'f6ffefb11690ca3604df7c8c0ddda74387d26eba': Restore labels on /postinstall during recovery.
| | * | | | | | | | | | | | | | | Merge "Restore labels on /postinstall during recovery."Alex Deymo2016-03-041-0/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 60eae72ac6 * commit '60eae72ac6c35567ea71035d379d4f2300cec77c': Restore labels on /postinstall during recovery.
| | | * | | | | | | | | | | | | | Merge "Restore labels on /postinstall during recovery."Alex Deymo2016-03-041-0/+3
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | Restore labels on /postinstall during recovery.Alex Deymo2016-03-021-0/+3
| | | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch mirrors what was done in the main init.rc to relabel /postinstall. Bug: 27178350 Bug: 27177071 Change-Id: I39cd03f3c55a42c03367957e8c259c9a3155203c
* | | | | | | | | | | | | | | | uncrypt: Communicate via /dev/socket/uncrypt. am: 3a2bb594dfTao Bao2016-03-042-79/+184
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 21c0054766 * commit '21c005476699a3892a3b5c16a1cd7a4907988c6b': uncrypt: Communicate via /dev/socket/uncrypt.
| * | | | | | | | | | | | | | | uncrypt: Communicate via /dev/socket/uncrypt.Tao Bao2016-03-042-79/+184
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3a2bb594df * commit '3a2bb594df4b48c6afb1f029041dd6db0735de58': uncrypt: Communicate via /dev/socket/uncrypt.
| | * | | | | | | | | | | | | | uncrypt: Communicate via /dev/socket/uncrypt.Tao Bao2016-03-032-79/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used to rely on files (e.g. /cache/recovery/command and /cache/recovery/uncrypt_status) to communicate between uncrypt and its caller (i.e. system_server). Since A/B devices may not have /cache partitions anymore, we switch to socket communication instead. We will keep the use of /cache/recovery/uncrypt_file to indicate the OTA package to be uncrypt'd though. Because there is existing logic in ShutdownThread.java that depends on the existence of the file to detect pending uncrypt works. This part won't affect A/B devices without /cache partitions, because such devices won't need uncrypt service (i.e the real de-encrypt work) anyway. Bug: 27176738 Change-Id: I481406e09e3ffc7b80f2c9e39003b9fca028742e
* | | | | | | | | | | | | | | | Merge "Remove dumpkey build guards after completing code move." am: 5ffc038be6 am: ea0e0faae6Mattias Nissler2016-03-011-10/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c4d143356e * commit 'c4d143356ef1a406bb641b2f1504ab72f083a6bd': Remove dumpkey build guards after completing code move.
| * | | | | | | | | | | | | | | Merge "Remove dumpkey build guards after completing code move." am: 5ffc038be6Mattias Nissler2016-03-011-10/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ea0e0faae6 * commit 'ea0e0faae6c0e57deb1a53683b00ff4651a65502': Remove dumpkey build guards after completing code move.
| | * | | | | | | | | | | | | | Merge "Remove dumpkey build guards after completing code move."Mattias Nissler2016-03-011-10/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5ffc038be6 * commit '5ffc038be6cffd9155fce4f2212ff351415ee7ba': Remove dumpkey build guards after completing code move.
| | | * | | | | | | | | | | | | Merge "Remove dumpkey build guards after completing code move."Mattias Nissler2016-03-011-10/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | Remove dumpkey build guards after completing code move.Mattias Nissler2016-02-261-10/+0
| | | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 27326256 Change-Id: Ia713b23e3c898c1f10af7c61ea67f34601fdcbe3
* | | | | | | | | | | | | | | | Merge "Fixes to wear recovery for N" into nyc-dev am: 9db7964834Prashant Malani2016-03-012-0/+35
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 30f368fde0 * commit '30f368fde096a746d5ac407754955691abfc48b7': Fixes to wear recovery for N
| * | | | | | | | | | | | | | | Merge "Fixes to wear recovery for N" into nyc-devPrashant Malani2016-02-292-0/+35
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9db7964834 * commit '9db7964834694e10ce0945e17ac7fefc066d8deb': Fixes to wear recovery for N
| | * | | | | | | | | | | | | | Merge "Fixes to wear recovery for N" into nyc-devPrashant Malani2016-02-292-0/+35
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | | | Fixes to wear recovery for NPrashant Malani2016-02-272-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 27336841 Change-Id: If4632e9791cce2c39590a4012687271f59a60af1
* | | | | | | | | | | | | | | | | Merge "uncrypt: Retire pre-recovery service." into nyc-dev am: 65f35b5c35Tao Bao2016-02-282-19/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bc11dd8b7c * commit 'bc11dd8b7c675ff21ca505d9d67154f04d2862a9': uncrypt: Retire pre-recovery service.
| * | | | | | | | | | | | | | | | Merge "uncrypt: Retire pre-recovery service." into nyc-devTao Bao2016-02-282-19/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 65f35b5c35 * commit '65f35b5c3513571c179974829eb93ba069693d2b': uncrypt: Retire pre-recovery service.
| | * | | | | | | | | | | | | | | Merge "uncrypt: Retire pre-recovery service." into nyc-devTao Bao2016-02-282-19/+2
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | | uncrypt: Retire pre-recovery service.Tao Bao2016-02-232-19/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The framework CL in [1] removes the use of "pre-recovery" service which is basically to trigger a reboot into the recovery. [1] commit e8a403d57c8ea540f8287cdaee8b90f0cf9626a3 Bug: 26830925 Change-Id: I131f31a228df59e4f9c3024b238bbdee0be2b157
* | | | | | | | | | | | | | | | | Merge "Move dumpkey tool to the recovery repo." am: 5197fde242 am: b652678953Mattias Nissler2016-02-263-0/+303
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 95b96d98ca * commit '95b96d98caf6dbaefcfe7b52ba35d27babd70245': Move dumpkey tool to the recovery repo.
| * | | | | | | | | | | | | | | | Merge "Move dumpkey tool to the recovery repo." am: 5197fde242Mattias Nissler2016-02-263-0/+303
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b652678953 * commit 'b652678953f1ff3920bebdd97836eda061a9a36b': Move dumpkey tool to the recovery repo.
| | * | | | | | | | | | | | | | | Merge "Move dumpkey tool to the recovery repo."Mattias Nissler2016-02-263-0/+303
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5197fde242 * commit '5197fde242e00d6ee112896846da8d0be6303c56': Move dumpkey tool to the recovery repo.
| | | * | | | | | | | | | | | | | Merge "Move dumpkey tool to the recovery repo."Mattias Nissler2016-02-263-0/+303
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / | | | |/| | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | Move dumpkey tool to the recovery repo.Mattias Nissler2016-02-243-0/+303
| | | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The dumpkey tool is used to dump encryption keys in a custom format used by the recovery code. Nobody else uses this format AFAICT, so it's more appropriate to keep the code of the tool alongside the recovery code instead of next to mincrypt. BUG:27326256 Change-Id: I30176845617972be1d6e46e9a9218e161fbf0680
* | | | | | | | | | | | | | | | Move recovery\'s convert_fbe folder to /tmp am: 661f8a69f2Paul Lawrence2016-02-251-4/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8c3922f4ab * commit '8c3922f4ab9755180d42e3f8162590892a029247': Move recovery's convert_fbe folder to /tmp
| * | | | | | | | | | | | | | | Move recovery\'s convert_fbe folder to /tmpPaul Lawrence2016-02-251-4/+7
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 661f8a69f2 * commit '661f8a69f2b12f3244deed664ab69a9d2efad7fb': Move recovery's convert_fbe folder to /tmp
| | * | | | | | | | | | | | | | Move recovery's convert_fbe folder to /tmpPaul Lawrence2016-02-251-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The cache folder is no longer available at this time Bug: 27355824 Change-Id: I74e33266c1ff407364981b186613f81319dd22dc
* | | | | | | | | | | | | | | | Merge "minadbd: update for adb_thread_create signature change." into nyc-dev am: 0757a093c1Josh Gao2016-02-240-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 744284bea0 * commit '744284bea06f806f30f67ea3364b200ed871dcb6': minadbd: update for adb_thread_create signature change.
| * | | | | | | | | | | | | | | Merge "minadbd: update for adb_thread_create signature change." into nyc-devJosh Gao2016-02-240-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0757a093c1 * commit '0757a093c187b64867a9ca7c97b80d9aa7d665cf': minadbd: update for adb_thread_create signature change.
| | * | | | | | | | | | | | | | Merge "minadbd: update for adb_thread_create signature change." into nyc-devJosh Gao2016-02-241-2/+1
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | | | minadbd: update for adb_thread_create signature change.Josh Gao2016-02-231-2/+1
| | | | |_|/ / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ifa0b4d8c1cf0bb39abac61984ff165e82e41222c (cherry picked from commit cc07b3556510d03e389a8994a8e5dbed3f3bbbb4)
* | | | | | | | | | | | | | | | recovery: check battery level before installing package. am: 99281df8e2Yabin Cui2016-02-240-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2be10be7d0 * commit '2be10be7d0721ecbff3d0270c5f3026456902b6a': recovery: check battery level before installing package.
| * | | | | | | | | | | | | | | recovery: check battery level before installing package.Yabin Cui2016-02-240-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 99281df8e2 * commit '99281df8e2eb6a302ccbcfd790a6889392541264': recovery: check battery level before installing package.
| | * | | | | | | | | | | | | | recovery: check battery level before installing package.Yabin Cui2016-02-233-16/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 26879394 Change-Id: I63dce5bc50c2e104129f1bcab7d3cad5682bf45d (cherry picked from commit 53e7a0628f4acc95481f556ba51800df4a1de37d)
* | | | | | | | | | | | | | | | Merge "Surpress warnings in minzip/Zip.c" am: 4b3cdce702 am: 0d63468171Tianjie Xu2016-02-231-4/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cc5372006f * commit 'cc5372006f6e423e4c3f68b3dc81694fd92a7046': Surpress warnings in minzip/Zip.c
| * | | | | | | | | | | | | | | Merge "Surpress warnings in minzip/Zip.c" am: 4b3cdce702Tianjie Xu2016-02-231-4/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0d63468171 * commit '0d63468171a80bd84a859fbd36b8d874f030c764': Surpress warnings in minzip/Zip.c
| | * | | | | | | | | | | | | | Merge "Surpress warnings in minzip/Zip.c"Tianjie Xu2016-02-231-4/+1
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4b3cdce702 * commit '4b3cdce702fefa7eac0626f57d09ff018127c191': Surpress warnings in minzip/Zip.c
| | | * | | | | | | | | | | | | Merge "Surpress warnings in minzip/Zip.c"Tianjie Xu2016-02-231-4/+1
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | Surpress warnings in minzip/Zip.cTianjie Xu2016-02-231-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bootable/recovery/minzip/Zip.c:514:5: warning: Value stored to 'compRemaining' is never read compRemaining = pEntry->compLen; ^ ~~~~~~~~~~~~~~~ bootable/recovery/minzip/Zip.c:778:9: warning: Null pointer argument in call to memory copy function memcpy(p, helper->targetDir, helper->targetDirLen); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Bug: 27229894 Change-Id: I0482bac3a4fcddc191783d1e5b5a83cf29fa4e85
* | | | | | | | | | | | | | | | | Fix integer overflows in recovery procedure. am: 1273956e69 am: 5978a71d29 am: 877dcba47a am: f4ee1720f3 am: cae056f219 am: 682d691052 am: ae68f02272 am: a3604da6e1 am: 089fe38ac5Yabin Cui2016-02-230-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 71c06eb1f7 * commit '71c06eb1f733b4afed3698566477a97487ed22aa': Fix integer overflows in recovery procedure.
| * | | | | | | | | | | | | | | | Fix integer overflows in recovery procedure. am: 1273956e69 am: 5978a71d29 am: 877dcba47a am: f4ee1720f3 am: cae056f219 am: 682d691052 am: ae68f02272 am: a3604da6e1Yabin Cui2016-02-230-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 089fe38ac5 * commit '089fe38ac5a3f12588cc5728ee11a1b0c6f436f3': Fix integer overflows in recovery procedure.
| | * | | | | | | | | | | | | | | Fix integer overflows in recovery procedure. am: 1273956e69 am: 5978a71d29 am: 877dcba47a am: f4ee1720f3 am: cae056f219 am: 682d691052 am: ae68f02272Yabin Cui2016-02-230-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|_|/ / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a3604da6e1 * commit 'a3604da6e17afbf5b98f1eb2c5fc16bde1731b85': Fix integer overflows in recovery procedure.
| | | * | | | | | | | | | | | | | Fix integer overflows in recovery procedure. am: 1273956e69 am: 5978a71d29 am: 877dcba47a am: f4ee1720f3 am: cae056f219 am: 682d691052Yabin Cui2016-02-230-0/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|_|_|/ / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ae68f02272 * commit 'ae68f0227262d08f250e4cccda6f03b9981bf56d': Fix integer overflows in recovery procedure.
| | | | * | | | | | | | | | | | | Fix integer overflows in recovery procedure. am: 1273956e69 am: 5978a71d29 am: 877dcba47a am: f4ee1720f3 am: cae056f219Yabin Cui2016-02-230-0/+0
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | |_|_|_|_|/ / / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 682d691052 * commit '682d6910526a55e6a20e27cde3cf7515fa07a97b': Fix integer overflows in recovery procedure.
| | | | | * | | | | | | | | | | | Fix integer overflows in recovery procedure. am: 1273956e69 am: 5978a71d29 am: 877dcba47a am: f4ee1720f3Yabin Cui2016-02-230-0/+0
| | | | | |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | |_|_|_|_|/ / / / / / | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cae056f219 * commit 'cae056f21908173bcf2fa9a1724e46f16abb3258': Fix integer overflows in recovery procedure.
| | | | | | * | | | | | | | | | | Fix integer overflows in recovery procedure. am: 1273956e69 am: 5978a71d29 am: 877dcba47aYabin Cui2016-02-231-15/+54
| | | | | | |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | |_|_|_|_|/ / / / / | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f4ee1720f3 * commit 'f4ee1720f33a01518f79a2bf8df4664dab3564d4': Fix integer overflows in recovery procedure.
| | | | | | | * | | | | | | | | | Fix integer overflows in recovery procedure. am: 1273956e69 am: 5978a71d29Yabin Cui2016-02-231-15/+54
| | | | | | | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | |_|_|_|_|/ / / / | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 877dcba47a * commit '877dcba47ac311aa65b27e42b3625bcb58d84e47': Fix integer overflows in recovery procedure.
| | | | | | | | * | | | | | | | | Fix integer overflows in recovery procedure. am: 1273956e69Yabin Cui2016-02-231-15/+54
| | | | | | | | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5978a71d29 * commit '5978a71d2954c7df02cbd0c51582ce4063346f77': Fix integer overflows in recovery procedure.
| | | | | | | | | * \ \ \ \ \ \ \ \ Fix integer overflows in recovery procedure.Yabin Cui2016-02-231-15/+54
| | | | | | | | | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | |_|_|_|_|/ / / | | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1273956e69 * commit '1273956e69a7d1d5b636f269050b446e0ced3f9b': Fix integer overflows in recovery procedure.
| | | | | | | | | | * | | | | | | | Fix integer overflows in recovery procedure.Yabin Cui2016-02-231-15/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 26960931 Change-Id: Ieae45caccfb4728fcf514f0d920976585d8e6caf (cherry picked from commit 4f2df162c6ab4a71ca86e4b38735b681729c353b)
* | | | | | | | | | | | | | | | | | resolve merge conflicts of e5d3d15cd2 to nyc-dev am: 0d28ba452fYabin Cui2016-02-230-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 80563ee93a -s ours * commit '80563ee93a46479dfa30a1ee5fbcc9a94e528931': Fix integer overflows in recovery procedure.
| * | | | | | | | | | | | | | | | | resolve merge conflicts of e5d3d15cd2 to nyc-devYabin Cui2016-02-231-15/+52
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0d28ba452f * commit '0d28ba452fb8884f3dfeb20fab193be5343ec29e': Fix integer overflows in recovery procedure.
| | * | | | | | | | | | | | | | | | resolve merge conflicts of e5d3d15cd2 to nyc-devYabin Cui2016-02-231-15/+52
| | |\| | | | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|_|/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie8b30e6b114b648e8c03866456c64cf8b740d1e3
| | | * | | | | | | | | | | | | | Fix integer overflows in recovery procedure. am: 4f2df162c6Yabin Cui2016-02-231-15/+54
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2800876140 * commit '2800876140425749d8d3fd8339f5c4b55ee0e185': Fix integer overflows in recovery procedure.
| | | | * | | | | | | | | | | | | Fix integer overflows in recovery procedure.Yabin Cui2016-02-231-15/+54
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4f2df162c6 * commit '4f2df162c6ab4a71ca86e4b38735b681729c353b': Fix integer overflows in recovery procedure.
| | | | | * | | | | | | | | | | | Fix integer overflows in recovery procedure.Yabin Cui2016-02-221-15/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 26960931 Change-Id: Ieae45caccfb4728fcf514f0d920976585d8e6caf (cherry picked from commit a029c9a45888141a2fa382e0b1868e55db1f36d2)
* | | | | | | | | | | | | | | | | Merge "Control fault injection with config files instead of build flags" am: ed796b046d am: 24b3622933Tao Bao2016-02-230-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 842f2d8ccf * commit '842f2d8ccf4a5675b30a85e41aa3c391195e644b': Control fault injection with config files instead of build flags
| * | | | | | | | | | | | | | | | Merge "Control fault injection with config files instead of build flags" am: ed796b046dTao Bao2016-02-2310-121/+242
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|_|_|_|/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 24b3622933 * commit '24b3622933092c7227a391939f3f1cdcd3d7c999': Control fault injection with config files instead of build flags
| | * | | | | | | | | | | | | | | Merge "Control fault injection with config files instead of build flags"Tao Bao2016-02-2310-121/+242
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|_|_|_|_|_|/ / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ed796b046d * commit 'ed796b046daf574b1f4f9ef386a870c845457277': Control fault injection with config files instead of build flags
| | | * | | | | | | | | | | | | | Merge "Control fault injection with config files instead of build flags"Tao Bao2016-02-2310-121/+242
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|_|_|_|_|_|_|/ / / / | | | |/| | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | Control fault injection with config files instead of build flagsJed Estep2016-02-2310-121/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 26570379 Change-Id: I76109d09276d6e3ed3a32b6fedafb2582f545c0c (cherry picked from commit d940887dde23597dc358b16d96ca48dd7480fee6)
* | | | | | | | | | | | | | | | | Merge "Control fault injection with config files instead of build flags"Jed Estep2016-02-2310-121/+242
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | Control fault injection with config files instead of build flagsJed Estep2016-02-2010-121/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 26570379 Change-Id: I76109d09276d6e3ed3a32b6fedafb2582f545c0c
* | | | | | | | | | | | | | | | | | Merge "recovery: check battery level before installing package." am: 16d0a18514 am: d1b66ad6a1Yabin Cui2016-02-233-16/+89
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9ade9e6c41 * commit '9ade9e6c418aacfcab3e1ec487c8c5c327b7a007': recovery: check battery level before installing package.
| * | | | | | | | | | | | | | | | | Merge "recovery: check battery level before installing package." am: 16d0a18514Yabin Cui2016-02-233-16/+89
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d1b66ad6a1 * commit 'd1b66ad6a117188751b1342d77edb9756a00ae87': recovery: check battery level before installing package.
| | * | | | | | | | | | | | | | | | Merge "recovery: check battery level before installing package."Yabin Cui2016-02-233-16/+89
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 16d0a18514 * commit '16d0a185142cff938d94f668e97cb95b4e742199': recovery: check battery level before installing package.
| | | * | | | | | | | | | | | | | | Merge "recovery: check battery level before installing package."Yabin Cui2016-02-223-16/+89
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | recovery: check battery level before installing package.Yabin Cui2016-02-203-16/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 26879394 Change-Id: I63dce5bc50c2e104129f1bcab7d3cad5682bf45d
* | | | | | | | | | | | | | | | | | Fix verifier test base testdata directory after merge conflict am: e1305768f6Jed Estep2016-02-220-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fc4971ba52 * commit 'fc4971ba52b34d2b138cc975d328d1d586e84aea': Fix verifier test base testdata directory after merge conflict
| * | | | | | | | | | | | | | | | | Fix verifier test base testdata directory after merge conflictJed Estep2016-02-220-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|/ / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e1305768f6 * commit 'e1305768f69ed8a3cf810f1204a3a2c519747716': Fix verifier test base testdata directory after merge conflict
| | * | | | | | | | | | | | | | | | Fix verifier test base testdata directory after merge conflictJed Estep2016-02-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I7ffba0be5a6befc875ce59b51a008c1892e7d34b
* | | | | | | | | | | | | | | | | | Merge "Check each value read from block map file."Yabin Cui2016-02-221-15/+31
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | | Check each value read from block map file.Yabin Cui2016-02-201-15/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 26960931 Change-Id: I50b266ecb899db043831f528c2518bea76168c88
* | | | | | | | | | | | | | | | | | | Merge "Fix minui cleanup path on error." am: fa9af7dae6 am: af38cd9330Elliott Hughes2016-02-201-3/+3
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 149b9eb2d8 * commit '149b9eb2d82ae49e110c3fd95ab99dd726e0f9e8': Fix minui cleanup path on error.
| * | | | | | | | | | | | | | | | | | Merge "Fix minui cleanup path on error." am: fa9af7dae6Elliott Hughes2016-02-201-3/+3
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: af38cd9330 * commit 'af38cd9330d2ee2c96a807e328beb008cd10d789': Fix minui cleanup path on error.
| | * | | | | | | | | | | | | | | | | Merge "Fix minui cleanup path on error."Elliott Hughes2016-02-201-3/+3
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fa9af7dae6 * commit 'fa9af7dae68aad09ed624a9786f6cd57713f7b7f': Fix minui cleanup path on error.
| | | * | | | | | | | | | | | | | | | Merge "Fix minui cleanup path on error."Elliott Hughes2016-02-201-3/+3
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | Fix minui cleanup path on error.Elliott Hughes2016-02-191-3/+3
| | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bootable/recovery/minui/resources.cpp:321:21: warning: Branch condition evaluates to a garbage value if (surface[i]) free(surface[i]); ^~~~~~~~~~ bootable/recovery/minui/resources.cpp:424:13: warning: Value stored to 'len' during its initialization is never read int len = row[4]; ^~~ ~~~~~~ Bug: http://b/27264652 Change-Id: Icc1a914c59d6a89dab1b752b2cd2b40549566481
* | | | / / / / / / / / / / / / / / DO NOT MERGE ANYWHERE Use synchronous writes when setting up BCB. am: 8559bbfb3b -s ours am: 52991c4639 -s ours am: a4436f7b25 -s oursTao Bao2016-02-190-0/+0
|\| | | | | | | | | | | | | | | | | | |_|_|/ / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2dd284b616 -s ours * commit '2dd284b6165dbded8127f14e170957145ab6e4be': DO NOT MERGE ANYWHERE Use synchronous writes when setting up BCB.
| * | | | | | | | | | | | | | | | DO NOT MERGE ANYWHERE Use synchronous writes when setting up BCB. am: 8559bbfb3b -s ours am: 52991c4639 -s oursTao Bao2016-02-190-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a4436f7b25 -s ours * commit 'a4436f7b25e4b27108a3b6a0be4f244e356f8ffc': DO NOT MERGE ANYWHERE Use synchronous writes when setting up BCB.
| | * | | | | | | | | | | | | | | DO NOT MERGE ANYWHERE Use synchronous writes when setting up BCB. am: 8559bbfb3b -s oursTao Bao2016-02-190-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 52991c4639 -s ours * commit '52991c4639347a2e2b098949fdf91c305f8d41dd': DO NOT MERGE ANYWHERE Use synchronous writes when setting up BCB.
| | | * | | | | | | | | | | | | | DO NOT MERGE ANYWHERE Use synchronous writes when setting up BCB.Tao Bao2016-02-190-0/+0
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | |_|_|/ / / / / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8559bbfb3b -s ours * commit '8559bbfb3b988b1b8790702d277715fc429cc1d8': DO NOT MERGE ANYWHERE Use synchronous writes when setting up BCB.
| | | | * | | | | | | | | | | | | DO NOT MERGE ANYWHERE Use synchronous writes when setting up BCB.Tao Bao2016-02-191-7/+22
| | | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit [1] made similar changes into AOSP code, but it requires multiple CLs to cherry-pick into cw-e branch. So we make a separate CL to fix the issue. [1] commit bd82b27341336f0b375c3bc2a7bf48b2ccc20c1f Bug: 27247370 Change-Id: Id5c08a6a29284353f891cdbaa224feee891f3807
* | | / / / / / / / / / / / / / Fix integer overflows in recovery procedure.Yabin Cui2016-02-182-12/+33
|/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 26960931 Change-Id: Ieae45caccfb4728fcf514f0d920976585d8e6caf
* | | | | | | | | | | | | | | Merge commit \'ce46828e08281dc507d4e40ba9e8b770bc21cf0b\' into HEADBill Yi2016-02-170-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: dfe43869cb * commit 'dfe43869cbeaf03f0950cf483f419bd9626473a5':
| * | | | | | | | | | | | | | Merge commit 'ce46828e08281dc507d4e40ba9e8b770bc21cf0b' into HEADBill Yi2016-02-171-12/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|/ / / / / / / / / / / | |/| | | | | | | | | | | | |
* | | | | | | | | | | | | | | Merge "applypatch: Add libimgpatch.pc"Sen Jiang2016-02-171-0/+6
|\| | | | | | | | | | | | | | | |_|_|_|/ / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b30663b4a7 * commit 'b30663b4a7d70886c5e8cdfce7307f0271e34de8': applypatch: Add libimgpatch.pc
| * | | | | | | | | | | | | Merge "applypatch: Add libimgpatch.pc"Sen Jiang2016-02-171-0/+6
| |\ \ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | | applypatch: Add libimgpatch.pcSen Jiang2016-02-161-0/+6
| |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: pkg-config --libs libimgpatch Bug: 26866274 Change-Id: I79a103099d951943a88768c577224fccacbb79e3
* | | | | | | | | | | | | | Merge "minadbd: update for adb_thread_create signature change."Josh Gao2016-02-131-2/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b69d878b9a * commit 'b69d878b9a3967b247df30dc6f8a760f720659b7': minadbd: update for adb_thread_create signature change.
| * | | | | | | | | | | | | Merge "minadbd: update for adb_thread_create signature change."Josh Gao2016-02-131-2/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | | minadbd: update for adb_thread_create signature change.Josh Gao2016-02-131-2/+1
| | | |_|_|_|_|_|_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ifa0b4d8c1cf0bb39abac61984ff165e82e41222c
* | | | | | | | | | | | | | Merge "imgdiff: don\'t fail if gzip is corrupted."Sen Jiang2016-02-131-12/+10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cc8d08a4d8 * commit 'cc8d08a4d82904d6cd202c2d50fc37748aa044c9': imgdiff: don't fail if gzip is corrupted.
| * | | | | | | | | | | | | Merge "imgdiff: don't fail if gzip is corrupted."Sen Jiang2016-02-121-12/+10
| |\ \ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | | imgdiff: don't fail if gzip is corrupted.Sen Jiang2016-02-121-12/+10
| |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Treat it as a normal chunk if inflate() fails. Test: run imgdiff on corrupted gzip and apply the patch Bug: 27153028 Change-Id: Idcbb3c1360ec0774e6c7861b21d99af8ee10604a
* | | | | | | | | | | | | | Merge "applypatch: use vector to store data in FileContents."Yabin Cui2016-02-124-126/+77
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7f16c7a4c9 * commit '7f16c7a4c9b457302a0c91c9bd4c739708a9c79e': applypatch: use vector to store data in FileContents.
| * | | | | | | | | | | | | Merge "applypatch: use vector to store data in FileContents."Yabin Cui2016-02-124-126/+77
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / | |/| | | | | | | | | | | |
| | * | | | | | | | | | | | applypatch: use vector to store data in FileContents.Yabin Cui2016-02-124-126/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 26906416 Change-Id: Ib53b445cd415a1ed5e95733fbc4073f9ef4dbc43
* | | | | | | | | | | | | | Merge "Fix some memory leaks."Yabin Cui2016-02-114-60/+35
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 71c657a10e * commit '71c657a10e39cc99b718fd88784c1437c10fb79e': Fix some memory leaks.
| * | | | | | | | | | | | | Merge "Fix some memory leaks."Yabin Cui2016-02-114-60/+35
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / | |/| | | | | | | | | | | |
| | * | | | | | | | | | | | Fix some memory leaks.Yabin Cui2016-02-114-60/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 26906328 Change-Id: Iebaf03db0cb3054f91715f8c849be6087d01b27b
* | | | | | | | | | | | | | resolve merge conflicts of 7043206503 to nyc-dev-plus-aosp.Tao Bao2016-02-104-20/+18
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2c34d9428a1ce15fc625865aa4d5b6e02b796591
| * | | | | | | | | | | | | Merge "IO fault injection for OTA packages"Tao Bao2016-02-1010-62/+365
| |\ \ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | | IO fault injection for OTA packagesJed Estep2016-02-1010-62/+365
| |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 25951086 Change-Id: I31c74c735eb7a975b7f41fe2b2eff042e5699c0c (cherry-picked from commit f1fc48c6e62cfee42d25ad12f443e22d50c15d0b)
* | | | | | | | | | | | | | Merge "applypatch: Add a Makefile to build imgdiff in Chrome OS."Sen Jiang2016-02-106-4/+39
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6a7bf1d9aa * commit '6a7bf1d9aa7cd52a594e91e6a8f9111a18ae3551': applypatch: Add a Makefile to build imgdiff in Chrome OS.
| * | | | | | | | | | | | | Merge "applypatch: Add a Makefile to build imgdiff in Chrome OS."Sen Jiang2016-02-106-4/+39
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / | |/| | | | | | | | | | | |
| | * | | | | | | | | | | | applypatch: Add a Makefile to build imgdiff in Chrome OS.Sen Jiang2016-02-106-4/+39
| |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fixed some warnings and added check for target_len. Test: mma; emerge-peppy imgdiff; emerge-nyan imgdiff; sudo emerge imgdiff Bug: 26866274 Change-Id: Ifbcd3afd6701c769ccf626e33ed94461706f7ee6
* | | | | | | | | | | | | Merge "verifier_test: Suppress the unused parameter warnings."Tao Bao2016-02-091-8/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c213a7c1d1 * commit 'c213a7c1d1eb0c6ab9bbe08c7375e8814a59a3ac': verifier_test: Suppress the unused parameter warnings.
| * | | | | | | | | | | | Merge "verifier_test: Suppress the unused parameter warnings."Tao Bao2016-02-091-8/+9
| |\ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | verifier_test: Suppress the unused parameter warnings.Tao Bao2016-02-051-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I51fec30114c0a31efc9c2ac8472654baf8bb3e84
* | | | | | | | | | | | | | Merge "Change on-device directory for recovery test data"Tao Bao2016-02-082-2/+2
|\| | | | | | | | | | | | | | |_|_|/ / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bd39fa7bdb * commit 'bd39fa7bdb0ce4e55cada877084062f32f90edc2': Change on-device directory for recovery test data
| * | | | | | | | | | | | Merge "Change on-device directory for recovery test data"Tao Bao2016-02-082-2/+2
| |\ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | Change on-device directory for recovery test dataJed Estep2016-02-052-2/+2
| | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test data needs to go outside the gtest module. Change-Id: Ic444ca838cbafa651ec97ff8730129da84fafc09
* | | | | | | | | | | | | resolve merge conflicts of 715d8a203a to master.Yabin Cui2016-02-067-303/+204
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic868ee9b27ef7251aa49ac814de7355ecd9c7d37
| * | | | | | | | | | | | | Merge "applypatch: fix memory leaks reported by static analysis."Yabin Cui2016-02-057-303/+202
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6b89aa7662 * commit '6b89aa7662186f940f2ae35d479598601dc28a07': applypatch: fix memory leaks reported by static analysis.
| | * | | | | | | | | | | | Merge "applypatch: fix memory leaks reported by static analysis."Yabin Cui2016-02-057-303/+202
| | |\ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / | | |/| | | | | | | | | | |
| | | * | | | | | | | | | | applypatch: fix memory leaks reported by static analysis.Yabin Cui2016-02-057-303/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 26906416 Change-Id: I163df5a8f3abda3ba5d4ed81dfc8567054eceb27
* | | | | | | | | | | | | | Merge "Refactor existing tests to use gtest" am: 38b02cc6a0Tao Bao2016-02-0525-215/+145
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9865c55254 * commit '9865c55254a1583e18a7e8ac502f2c2143ed8b82': Refactor existing tests to use gtest
| * | | | | | | | | | | | | Merge "Refactor existing tests to use gtest"Tao Bao2016-02-0525-215/+145
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 38b02cc6a0 * commit '38b02cc6a097e6356f2369fc2b23c8c8a893e3ff': Refactor existing tests to use gtest
| | * | | | | | | | | | | | Merge "Refactor existing tests to use gtest"Tao Bao2016-02-0525-215/+145
| | |\ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | Refactor existing tests to use gtestJed Estep2016-02-0425-215/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 26962907 Change-Id: I5f80636af1740badeff7d08193f08e23f4e4fee1
* | | | | | | | | | | | | | | Merge "updater: fix memory leak based on static analysis." am: e50d447692Yabin Cui2016-02-051-44/+39
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 66b02c4ce5 * commit '66b02c4ce5b175451e723c463e6e9d19ab7872fa': updater: fix memory leak based on static analysis.
| * | | | | | | | | | | | | | Merge "updater: fix memory leak based on static analysis."Yabin Cui2016-02-051-44/+39
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e50d447692 * commit 'e50d447692764cdb18107965c3ff3476d63b68ec': updater: fix memory leak based on static analysis.
| | * | | | | | | | | | | | | Merge "updater: fix memory leak based on static analysis."Yabin Cui2016-02-051-44/+39
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / | | |/| | | | | | | | | | | |
| | | * | | | | | | | | | | | updater: fix memory leak based on static analysis.Yabin Cui2016-02-041-44/+39
| | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 26907377 Change-Id: I384c0131322b2d12f0ef489735e70e86819846a4
* | | | | | | | | | | | | | resolve merge conflicts of 7b6027dde4 to master.Tao Bao2016-02-0410-61/+59
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I1d5232f61744bb18ca5de3a16a340bc3afd110bb
| * | | | | | | | | | | | | Merge "Switch from mincrypt to BoringSSL in applypatch and updater."Tao Bao2016-02-0410-61/+59
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6e71c90fad * commit '6e71c90fadbae68824116276d4dd536d962838f8': Switch from mincrypt to BoringSSL in applypatch and updater.
| | * | | | | | | | | | | | Merge "Switch from mincrypt to BoringSSL in applypatch and updater."Tao Bao2016-02-0410-61/+59
| | |\ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / | | |/| | | | | | | | | | |
| | | * | | | | | | | | | | Switch from mincrypt to BoringSSL in applypatch and updater.Sen Jiang2016-02-0410-61/+59
| | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18790686 Change-Id: I7d2136fb39b2266f5ae5be24819c617b08a6c21e
* | | | | | | | | | | | | Merge "uncrypt: add options to setup bcb and clear bcb." am: e3434279c8Yabin Cui2016-02-032-104/+198
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2ae24604d4 * commit '2ae24604d40d4d12b3c670064e027deaba3d8b69': uncrypt: add options to setup bcb and clear bcb.
| * | | | | | | | | | | | Merge "uncrypt: add options to setup bcb and clear bcb."Yabin Cui2016-02-032-104/+198
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e3434279c8 * commit 'e3434279c84846cfa49935638faef26ceb753b5e': uncrypt: add options to setup bcb and clear bcb.
| | * | | | | | | | | | | Merge "uncrypt: add options to setup bcb and clear bcb."Yabin Cui2016-02-032-104/+198
| | |\ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | uncrypt: add options to setup bcb and clear bcb.Yabin Cui2016-02-032-104/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 26696173 Change-Id: I3a612f045aaa9e93e61ae45b05300d02b19bb3ad
* | | | | | | | | | | | | | Merge "recovery: Refactor verifier and verifier_test." am: 351ddbbc0aTao Bao2016-02-034-193/+168
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b177ead3d7 * commit 'b177ead3d747d0565dd3e87bb2afa765ec7e54fc': recovery: Refactor verifier and verifier_test.
| * | | | | | | | | | | | | Merge "recovery: Refactor verifier and verifier_test."Tao Bao2016-02-034-193/+168
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 351ddbbc0a * commit '351ddbbc0a8ff1257f5ad963c850204558a38d70': recovery: Refactor verifier and verifier_test.
| | * | | | | | | | | | | | Merge "recovery: Refactor verifier and verifier_test."Tao Bao2016-02-034-193/+168
| | |\ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / | | |/| | | | | | | | | | |
| | | * | | | | | | | | | | recovery: Refactor verifier and verifier_test.Tao Bao2016-02-034-193/+168
| | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move to using std::vector and std::unique_ptr to manage key certificates to stop memory leaks. Bug: 26908001 Change-Id: Ia5f799bc8dcc036a0ffae5eaa8d9f6e09abd031c
* | | | | | | | | | | | | Merge "uncrypt: generate map file by renaming tmp file." am: 4c07a7ec05Yabin Cui2016-02-021-75/+93
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 32ddaaacfd * commit '32ddaaacfdf50994cdd535514b199ccdca896b89': uncrypt: generate map file by renaming tmp file.
| * | | | | | | | | | | | Merge "uncrypt: generate map file by renaming tmp file."Yabin Cui2016-02-021-75/+93
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4c07a7ec05 * commit '4c07a7ec0557130b95fc1f69da818e83b0887d20': uncrypt: generate map file by renaming tmp file.
| | * | | | | | | | | | | Merge "uncrypt: generate map file by renaming tmp file."Yabin Cui2016-02-021-75/+93
| | |\ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | uncrypt: generate map file by renaming tmp file.Yabin Cui2016-02-011-75/+93
| | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Writing map file directly can break consistency in map file if it fails in the middle. Instead, we write a temporary file and rename the temporary file to map file. Bug: 26883096 Change-Id: I5e99e942e1b75e758af5f7a48f8a08a0b0041d6a
* | | | | | | | | | | | | Merge "Fix build." am: 9d72d4175bTao Bao2016-01-291-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2ab24d36b9 * commit '2ab24d36b91e28416a85e2c56442c22c984903ea': Fix build.
| * | | | | | | | | | | | Merge "Fix build."Tao Bao2016-01-291-0/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9d72d4175b * commit '9d72d4175b06a70c64c8867ff65b3c4c2181c9a9': Fix build.
| | * | | | | | | | | | | Merge "Fix build."Tao Bao2016-01-291-0/+2
| | |\ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | Fix build.Tao Bao2016-01-291-0/+2
| | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Disable libimgpatch for non-Linux host. Change-Id: Ib3615204b76564c691ddafaa29e59fef334d9d36
* | | | | | | | | | | | | resolve merge conflicts of 725833e024 to master.Tao Bao2016-01-294-2/+69
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I68b8737e3bc2bd7bffd7625114723bc1efa47398
| * | | | | | | | | | | | Merge "applypatch: Compile libimgpatch for target and host."Sen Jiang2016-01-294-2/+69
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1f3616f3fd * commit '1f3616f3fd6c0e5cbbc3e490c216db9f758aeb28': applypatch: Compile libimgpatch for target and host.
| | * | | | | | | | | | | Merge "applypatch: Compile libimgpatch for target and host."Sen Jiang2016-01-294-2/+69
| | |\ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | applypatch: Compile libimgpatch for target and host.Sen Jiang2016-01-284-2/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update_engine need it for the new IMGDIFF operation. Also removed __unused in ApplyImagePatch() as I got error building it for the host, and I think it's dangerous not checking the size of the input. Test: mma Bug: 26628339 Change-Id: I22d4cd55c2c3f87697d6afdf10e8106fef7d1a9c
* | | | | | | | | | | | | | Merge "edify: accept long string literal." am: d379b4410bYabin Cui2016-01-282-13/+16
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bb0e2754ac * commit 'bb0e2754ac40dfceaee670e1214dce0c70fc5c51': edify: accept long string literal.
| * | | | | | | | | | | | | Merge "edify: accept long string literal."Yabin Cui2016-01-282-13/+16
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d379b4410b * commit 'd379b4410b6f7c7f08751709d08ba6f819acf69d': edify: accept long string literal.
| | * | | | | | | | | | | | Merge "edify: accept long string literal."Yabin Cui2016-01-282-13/+16
| | |\ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / | | |/| | | | | | | | | | |
| | | * | | | | | | | | | | edify: accept long string literal.Yabin Cui2016-01-272-13/+16
| | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 24717917 Change-Id: I134cf00ae7efbc3703f976459a1b9f9a197e495d
* | | | | | | | | | | | | Merge "Change BCB to perform synchronous writes." am: 5797bf9c90Tao Bao2016-01-221-59/+74
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e51d0b4d38 * commit 'e51d0b4d3867e740cb86e4830cdbcb3d4be473e8': Change BCB to perform synchronous writes.
| * | | | | | | | | | | | Merge "Change BCB to perform synchronous writes."Tao Bao2016-01-221-59/+74
| |\| | | | | | | | | | | | | |/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5797bf9c90 * commit '5797bf9c90055b9ebbc5fe29e9542a798f359bc7': Change BCB to perform synchronous writes.
| | * | | | | | | | | | Merge "Change BCB to perform synchronous writes."Tao Bao2016-01-221-59/+74
| | |\ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | Change BCB to perform synchronous writes.Tao Bao2016-01-211-59/+74
| | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also some trivial clean-ups in bootloader control block (BCB) code. Change-Id: I42828954caa4d08998310de40fd0391f76d99cbe
* | | | | | | | | | | | Merge "recovery: Fork a process for fuse when sideloading from SD card." am: 37e3c71da3Tao Bao2016-01-143-69/+69
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ce46828e08 * commit 'ce46828e08281dc507d4e40ba9e8b770bc21cf0b': recovery: Fork a process for fuse when sideloading from SD card.
| * | | | | | | | | | | Merge "recovery: Fork a process for fuse when sideloading from SD card."Tao Bao2016-01-143-69/+69
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 37e3c71da3 * commit '37e3c71da32f476e2658c57d0576e8f94e696ba1': recovery: Fork a process for fuse when sideloading from SD card.
| | * | | | | | | | | | Merge "recovery: Fork a process for fuse when sideloading from SD card."Tao Bao2016-01-143-69/+69
| | |\ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | recovery: Fork a process for fuse when sideloading from SD card.Tao Bao2016-01-143-69/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For applying update from SD card, we used to use a thread to serve the file with fuse. Since accessing through fuse involves going from kernel to userspace to kernel, it may run into deadlock (e.g. for mmap_sem) when a page fault occurs. Switch to using a process instead. Bug: 23783099 Bug: 26313124 Change-Id: Iac0f55b1bdb078cadb520cfe1133e70fbb26eadd
* | | | | | | | | | | | | Merge "uncrypt: avoid use-after-free" am: 0305fcecc5Tao Bao2016-01-141-3/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4edfeb84dd * commit '4edfeb84ddd8fe93d3dcb028fc1f0a7c12f21271': uncrypt: avoid use-after-free
| * | | | | | | | | | | | Merge "uncrypt: avoid use-after-free"Tao Bao2016-01-141-3/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0305fcecc5 * commit '0305fcecc5b1a9f8172ca1753a29b6963e7bb474': uncrypt: avoid use-after-free
| | * | | | | | | | | | | Merge "uncrypt: avoid use-after-free"Tao Bao2016-01-141-3/+4
| | |\ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / | | |/| | | | | | | | | |
| | | * | | | | | | | | | uncrypt: avoid use-after-freeDaniel Micay2016-01-121-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `std::string package` variable goes out of scope but the input_path variable is then used to access the memory as it's set to `c_str()`. This was detected via OpenBSD malloc's junk filling feature. Change-Id: Ic4b939347881b6ebebf71884e7e2272ce99510e2
* | | | | | | | | | | | | Revert "Byte swap to support BGRA in recovery mode" am: a5d5082222 am: 40cce13094Andriy Naborskyy2016-01-131-12/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2d127a1d4a * commit '2d127a1d4ab9717c8460e6a508bd5e893013e8fa': Revert "Byte swap to support BGRA in recovery mode"
| * | | | | | | | | | | | Revert "Byte swap to support BGRA in recovery mode" am: a5d5082222Andriy Naborskyy2016-01-121-12/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 40cce13094 * commit '40cce13094cc7cabebe9577f6bb849dcb46b9d81': Revert "Byte swap to support BGRA in recovery mode"
| | * \ \ \ \ \ \ \ \ \ \ \ Revert "Byte swap to support BGRA in recovery mode"Andriy Naborskyy2016-01-121-12/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a5d5082222 * commit 'a5d5082222b7420801cdb77f09305dd4c3afb4db': Revert "Byte swap to support BGRA in recovery mode"
| | | * | | | | | | | | | | Revert "Byte swap to support BGRA in recovery mode"Andriy Naborskyy2016-01-081-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit e5879c3639789d61803605c12371a4f291e0b3cc. The swap in page flip code is not needed any more. New changes take care of ABGR and BGRA formats swapping bytes in png and drawing routines See commit fd778e3e406a7e83536ea66776996f032f24af64 Bug: 26243152 Change-Id: I313ee41bee2c143b4e5412515285a65ac394ec77
* | | | | | | | | | | | | | Merge "Rename .l/.y to .ll/.yy" am: ab9db5284eYing Wang2016-01-130-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f607e5a0bc * commit 'f607e5a0bc1c1481331dc32ac203fc66770dec71': Rename .l/.y to .ll/.yy
| * | | | | | | | | | | | | Merge "Rename .l/.y to .ll/.yy"Ying Wang2016-01-123-2/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ab9db5284e * commit 'ab9db5284ec6113c7d84f70f805dca21c3e6efd7': Rename .l/.y to .ll/.yy
| | * | | | | | | | | | | | Merge "Rename .l/.y to .ll/.yy"Ying Wang2016-01-123-2/+2
| | |\ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / | | |/| | | | | | | | | | |
| | | * | | | | | | | | | | Rename .l/.y to .ll/.yyYing Wang2016-01-123-2/+2
| | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now to generate .cpp you need to use .ll/.yy. Bug: 26492989 Change-Id: Ib078e03b3b0758f7a62595c343e52ae856bcb33f
* | | | | | | | | | | | | Rename .l/.y to .ll/.yyYing Wang2016-01-133-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now to generate .cpp you need to use .ll/.yy. Bug: 26492989 Change-Id: Ib078e03b3b0758f7a62595c343e52ae856bcb33f
* | | | | | | | | | | | | Merge "IO fault injection for OTA packages"Jed Estep2016-01-0910-45/+348
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | IO fault injection for OTA packagesJed Estep2016-01-0610-45/+348
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 25951086 Change-Id: I31c74c735eb7a975b7f41fe2b2eff042e5699c0c
* | | | | | | | | | | | | | Merge "updater: Add a function to check first block" am: 6f8b9b60dbTianjie Xu2016-01-080-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a3c89623e7 * commit 'a3c89623e765a7d91d781cbd83dd8e50c6c865c9': updater: Add a function to check first block
| * | | | | | | | | | | | | Merge "updater: Add a function to check first block"Tianjie Xu2016-01-082-0/+58
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6f8b9b60db * commit '6f8b9b60dbf2d73e0ee6e757d565035f017e1ccd': updater: Add a function to check first block
| | * | | | | | | | | | | | Merge "updater: Add a function to check first block"Tianjie Xu2016-01-082-0/+58
| | |\ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | updater: Add a function to check first blockTianjie Xu2016-01-072-0/+58
| | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add and register a function to check if the device has been remounted since last update during incremental OTA. This function reads block 0 and executes before partition recovery for version >= 4. Bug: 21124327 Change-Id: I8b915b9f1d4736b3609daa9d16bd123225be357f (cherry picked from commit 30bf4765593e639966df9f460df22c3fe912e7bf)
* | | | | | | | | | | | | | Merge "updater: Add a function to check first block"Tianjie Xu2016-01-072-0/+58
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / / / / / / |/| | | | | | | | | | | | |
| * | | | | | | | | | | | | updater: Add a function to check first blockTianjie Xu2015-12-182-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add and register a function to check if the device has been remounted since last update during incremental OTA. This function reads block 0 and executes before partition recovery for version >= 4. Bug: 21124327 Change-Id: I8b915b9f1d4736b3609daa9d16bd123225be357f
* | | | | | | | | | | | | | Merge "imgdiff: skip spurious gzip headers in image files" am: 8e150a5b24David Riley2016-01-041-6/+13
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c1de9837e3 * commit 'c1de9837e3bdb64bc1f5d9779df7a944326f5f2b': imgdiff: skip spurious gzip headers in image files
| * | | | | | | | | | | | | Merge "imgdiff: skip spurious gzip headers in image files"David Riley2016-01-041-6/+13
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8e150a5b24 * commit '8e150a5b240833ddf54cbc572cea30ab18e06d86': imgdiff: skip spurious gzip headers in image files
| | * | | | | | | | | | | | Merge "imgdiff: skip spurious gzip headers in image files"David Riley2016-01-041-6/+13
| | |\ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | imgdiff: skip spurious gzip headers in image filesDavid Riley2015-12-231-6/+13
| | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dragon kernel is compressed via lz4 for boot speed and bootloader support reasons and recent prebuilts happen to include the gzip header sequence which is causing imgdiff to fail. Detect a spurious gzip header and treat the section as a normal section. Bug: 26133184 Change-Id: I369d7d576fd7d2c579c0780fc5c669a5b6ea0d3d (cherry picked from commit 0f2f6a746af517afca9e5e089a4a17be0a9766d6) Signed-off-by: David Riley <davidriley@google.com>
* | | / / / / / / / / / / / Merge "res: Embed FPS into icon_installing.png." am: 29b0fbe160Tao Bao2015-12-1812-42/+82
|\| | | | | | | | | | | | | | |_|/ / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ef911716b0 * commit 'ef911716b04a773bcba1e693638cfd9cbb9e4ddc': res: Embed FPS into icon_installing.png.
| * | | | | | | | | | | | Merge "res: Embed FPS into icon_installing.png."Tao Bao2015-12-1812-42/+82
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 29b0fbe160 * commit '29b0fbe160f815a142fa0d056c1ce10186cea516': res: Embed FPS into icon_installing.png.
| | * | | | | | | | | | | Merge "res: Embed FPS into icon_installing.png."Tao Bao2015-12-1812-42/+82
| | |\ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | res: Embed FPS into icon_installing.png.Tao Bao2015-12-1612-42/+82
| | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We allow vendor-specific icon installing image but have defined private animation_fps that can't be overridden. This CL changes the image generator to optionally embed FPS (otherwise use the default value of 20) into the generated image. For wear devices, they are using individual images instead of the interlaced one. Change the animation_fps from private to protected so that it can be customized. Bug: 26009230 Change-Id: I9fbf64ec717029d4c54f72316f6cb079e8dbfb5e
* | | | | | | | | | | | | Merge "updater: Use O_SYNC and fsync() for package_extract_file()." am: 4e72d1a81eTao Bao2015-12-151-6/+13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 125a6349b9 * commit '125a6349b9b390bd531690099939aaaf8a7513a8': updater: Use O_SYNC and fsync() for package_extract_file().
| * | | | | | | | | | | | Merge "updater: Use O_SYNC and fsync() for package_extract_file()."Tao Bao2015-12-151-6/+13
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4e72d1a81e * commit '4e72d1a81e2194caf101dc8633858efaa9bdb39b': updater: Use O_SYNC and fsync() for package_extract_file().
| | * | | | | | | | | | | Merge "updater: Use O_SYNC and fsync() for package_extract_file()."Tao Bao2015-12-151-6/+13
| | |\ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | updater: Use O_SYNC and fsync() for package_extract_file().Tao Bao2015-12-151-6/+13
| | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are already using O_SYNC and fsync() for the recursive case (package_extract_dir()). Make it consistent for the single-file case. Bug: 20625549 Change-Id: I487736fe5a0647dd4a2428845e76bf642e0f0dff
* | | | | | | | | | | | | Merge "update_verifier: Track the API change for isSlotBootable()." am: e062645efaTao Bao2015-12-111-5/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1a76924301 * commit '1a7692430123ec4af3acc01c4d08f738efc12513': update_verifier: Track the API change for isSlotBootable().
| * | | | | | | | | | | | Merge "update_verifier: Track the API change for isSlotBootable()."Tao Bao2015-12-111-5/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e062645efa * commit 'e062645efa77ce3ab9ab802daee9e36b58e67bc4': update_verifier: Track the API change for isSlotBootable().
| | * | | | | | | | | | | Merge "update_verifier: Track the API change for isSlotBootable()."Tao Bao2015-12-111-5/+6
| | |\ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | update_verifier: Track the API change for isSlotBootable().Tao Bao2015-12-091-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [1] added a new API isSlotMarkedSuccessful() to actually query if a given slot has been marked as successful. [1]: commit 72c88c915d957bf2eba73950e7f0407b220d1ef4 Change-Id: I9155c9b9233882a295a9a6e607a844d9125e4c56
* | | | | | | | | | | | | | Merge "uncrypt: Suppress the compiler warnings on LP64." am: ca18526760Tao Bao2015-12-111-10/+12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8fa5f006c1 * commit '8fa5f006c190c1f4a9e48cfbf4112ca15459cbb1': uncrypt: Suppress the compiler warnings on LP64.
| * | | | | | | | | | | | | Merge "uncrypt: Suppress the compiler warnings on LP64."Tao Bao2015-12-111-10/+12
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ca18526760 * commit 'ca185267607fff06b4d70c7bdbb23152f64d4582': uncrypt: Suppress the compiler warnings on LP64.
| | * | | | | | | | | | | | Merge "uncrypt: Suppress the compiler warnings on LP64."Tao Bao2015-12-111-10/+12
| | |\ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | uncrypt: Suppress the compiler warnings on LP64.Tao Bao2015-12-091-10/+12
| | | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have the following warnings when compiling uncrypt on LP64 (e.g. aosp_angler-userdebug). bootable/recovery/uncrypt/uncrypt.cpp:77:53: warning: format specifies type 'long long' but the argument has type 'off64_t' (aka 'long') [-Wformat] ALOGE("error seeking to offset %lld: %s\n", offset, strerror(errno)); ~~~~ ^~~~~~ %ld bootable/recovery/uncrypt/uncrypt.cpp:84:54: warning: format specifies type 'long long' but the argument has type 'unsigned long' [-Wformat] ALOGE("error writing offset %lld: %s\n", (offset + written), strerror(errno)); ~~~~ ^~~~~~~~~~~~~~~~~~ %lu bootable/recovery/uncrypt/uncrypt.cpp:246:16: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'off_t' (aka 'long') [-Wsign-compare] while (pos < sb.st_size) { ~~~ ^ ~~~~~~~~~~ According to POSIX spec [1], we have: off_t and blksize_t shall be signed integer types; size_t shall be an unsigned integer type; blksize_t and size_t are no greater than the width of type long. And on Android, we always have a 64-bit st_size from stat(2) (//bionic/libc/include/sys/stat.h). Fix the type and add necessary casts to suppress the warnings. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html Change-Id: I5d64d5b7919c541441176c364752de047f9ecb20
* | | | | | | | | | | | | | Merge "updater: Output msg when recovery is called" am: 32f6298742Tianjie Xu2015-12-110-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3e67970c2c * commit '3e67970c2cbbed221f8c33fafa6b2f44a50cacb3': updater: Output msg when recovery is called
| * | | | | | | | | | | | | Merge "updater: Output msg when recovery is called"Tianjie Xu2015-12-111-1/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 32f6298742 * commit '32f6298742d5072c4b0d9f1cd09e0d0ae44cb972': updater: Output msg when recovery is called
| | * | | | | | | | | | | | Merge "updater: Output msg when recovery is called"Tianjie Xu2015-12-111-1/+4
| | |\ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / | | |/| | | | | | | | | | |
| | | * | | | | | | | | | | updater: Output msg when recovery is calledTianjie Xu2015-12-111-1/+4
| | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Output messages in log when recovery is attempted or succeeded during incremental OTA update. Change-Id: I4033df7ae3aaecbc61921d5337eda26f79164fda (cherry picked from commit b686ba211443490111729ba9d82eb0c0b305e185)
* | | | | | | | | | | | | Merge "updater: Output msg when recovery is called"Tianjie Xu2015-12-111-1/+4
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | updater: Output msg when recovery is calledTianjie Xu2015-12-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Output messages in log when recovery is attempted or succeeded during incremental OTA update. Change-Id: I4033df7ae3aaecbc61921d5337eda26f79164fda
* | | | | | | | | | | | | | Merge changes If00669a7,Ia5504ed2 am: ddde4676b6Tao Bao2015-12-080-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 50b7cfa5d7 * commit '50b7cfa5d7d9bdd1607c6c4276c63efa9e51e341': update_verifier: Log to logd instead of kernel log. Add update_verifier for A/B OTA update.
| * | | | | | | | | | | | | Merge changes If00669a7,Ia5504ed2Tao Bao2015-12-080-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ddde4676b6 * commit 'ddde4676b6c0e175699115a67e44f09a665439b5': update_verifier: Log to logd instead of kernel log. Add update_verifier for A/B OTA update.
| | * | | | | | | | | | | | Merge changes If00669a7,Ia5504ed2Tao Bao2015-12-083-0/+105
| | |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: update_verifier: Log to logd instead of kernel log. Add update_verifier for A/B OTA update.
| | | * | | | | | | | | | | | update_verifier: Log to logd instead of kernel log.Tao Bao2015-12-082-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | logd already gets started before we call update_verifier. Bug: 26039641 Change-Id: If00669a77bf9a6e5534e33f4e50b42eabba2667a (cherry picked from commit 45eac58ef188679f6df2d80efc0391c6d7904cd8)
| | | * | | | | | | | | | | | Add update_verifier for A/B OTA update.Tao Bao2015-12-083-0/+109
| | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update_verifier checks the integrity of the updated system and vendor partitions on the first boot post an A/B OTA update. It marks the current slot as having booted successfully if it passes the verification. This CL doesn't perform any actual verification work which will be addressed in follow-up CLs. Bug: 26039641 Change-Id: Ia5504ed25b799b48b5886c2fc68073a360127f42 (cherry picked from commit 1171d3a12b13ca3f1d4301985cf068076e55ae26)
* | | | | | | | | | | | | | Merge "updater: Replace strtok() with android::base::Split()." am: d0acbb56edTao Bao2015-12-081-133/+144
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 26edcd8f5a * commit '26edcd8f5a60ad80e98d8d289aa0130ba199c2a4': updater: Replace strtok() with android::base::Split().
| * | | | | | | | | | | | | Merge "updater: Replace strtok() with android::base::Split()."Tao Bao2015-12-081-133/+144
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d0acbb56ed * commit 'd0acbb56ed9c002ccd8021b3e09567647b499e58': updater: Replace strtok() with android::base::Split().
| | * | | | | | | | | | | | Merge "updater: Replace strtok() with android::base::Split()."Tao Bao2015-12-081-133/+144
| | |\ \ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | | updater: Replace strtok() with android::base::Split().Tao Bao2015-12-071-133/+144
| | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I36346fa199a3261da1ae1bc310b3557fe1716d96
* | | | | | | | | | | | | | update_verifier: Log to logd instead of kernel log. am: 45eac58ef1Tao Bao2015-12-082-12/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8162eca526 * commit '8162eca52659307879d086feb195f24d3d58e749': update_verifier: Log to logd instead of kernel log.
| * | | | | | | | | | | | | update_verifier: Log to logd instead of kernel log.Tao Bao2015-12-082-12/+8
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 45eac58ef1 * commit '45eac58ef188679f6df2d80efc0391c6d7904cd8': update_verifier: Log to logd instead of kernel log.
| | * | | | | | | | | | | | update_verifier: Log to logd instead of kernel log.Tao Bao2015-12-082-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | logd already gets started before we call update_verifier. Bug: 26039641 Change-Id: If00669a77bf9a6e5534e33f4e50b42eabba2667a
* | | | | | | | | | | | | | Add update_verifier for A/B OTA update. am: 1171d3a12bTao Bao2015-12-083-0/+109
|\| | | | | | | | | | | | | | |_|_|/ / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6bc2155d22 * commit '6bc2155d22d059d4d744e2dcf018190faa33aad3': Add update_verifier for A/B OTA update.
| * | | | | | | | | | | | Add update_verifier for A/B OTA update.Tao Bao2015-12-083-0/+109
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 1171d3a12b * commit '1171d3a12b13ca3f1d4301985cf068076e55ae26': Add update_verifier for A/B OTA update.
| | * | | | | | | | | | | Add update_verifier for A/B OTA update.Tao Bao2015-12-073-0/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update_verifier checks the integrity of the updated system and vendor partitions on the first boot post an A/B OTA update. It marks the current slot as having booted successfully if it passes the verification. This CL doesn't perform any actual verification work which will be addressed in follow-up CLs. Bug: 26039641 Change-Id: Ia5504ed25b799b48b5886c2fc68073a360127f42
* | | | | | | | | | | | | Merge "Track rename from base/ to android-base/." am: 06ca938ce2Elliott Hughes2015-12-057-13/+13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ff4c2c07e8 * commit 'ff4c2c07e899ab049c7499f2818cd8a45e0213d3': Track rename from base/ to android-base/.
| * | | | | | | | | | | | Merge "Track rename from base/ to android-base/."Elliott Hughes2015-12-057-13/+13
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 06ca938ce2 * commit '06ca938ce22681455bf75f0b6282b776814df30e': Track rename from base/ to android-base/.
| | * | | | | | | | | | | Merge "Track rename from base/ to android-base/."Elliott Hughes2015-12-057-13/+13
| | |\ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | Track rename from base/ to android-base/.Elliott Hughes2015-12-057-13/+13
| | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I354a8c424d340a9abe21fd716a4ee0d3b177d86f
* | | | | | | | | | | | | Merge "Remove the building rules for applypatch_static." am: fc23a50cefTao Bao2015-12-051-13/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0eded2ae7f * commit '0eded2ae7f38aef9ffaff4f41081851aafebb073': Remove the building rules for applypatch_static.
| * | | | | | | | | | | | Merge "Remove the building rules for applypatch_static."Tao Bao2015-12-031-13/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fc23a50cef * commit 'fc23a50cef6347651b2d25facd53cf6d50cfae67': Remove the building rules for applypatch_static.
| | * | | | | | | | | | | Merge "Remove the building rules for applypatch_static."Tao Bao2015-12-021-13/+0
| | |\ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | Remove the building rules for applypatch_static.Tao Bao2015-12-021-13/+0
| | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CL in [1] has stopped building and packaging the obsolete applypatch_static tool. [1]: commit a04fca31bf1fadcdf982090c942ccbe4d9b95c71 Bug: 24621915 Change-Id: I5e98951ad7ea5c2a7b351af732fd6722763f59bd
* | | | | | | | | | | | | Merge "Track name change from adb_main to adb_server_main." am: ee5c87eea7Elliott Hughes2015-11-202-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cca6ca0953 * commit 'cca6ca0953b56176ebb406fa89766e326f4d72ac': Track name change from adb_main to adb_server_main.
| * | | | | | | | | | | | Merge "Track name change from adb_main to adb_server_main."Elliott Hughes2015-11-202-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ee5c87eea7 * commit 'ee5c87eea737e47ab38e19625a32ac2fc0057ddd': Track name change from adb_main to adb_server_main.
| | * | | | | | | | | | | Merge "Track name change from adb_main to adb_server_main."Elliott Hughes2015-11-202-2/+2
| | |\ \ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | | Track name change from adb_main to adb_server_main.Elliott Hughes2015-11-202-2/+2
| | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I835805348a9817c81639ad8471e3b49cae93c107
* | | | | | | | | | | | | Add slot_suffix field to struct bootloader_message. am: 846c094feeDavid Zeuthen2015-11-200-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8f9a1575aa * commit '8f9a1575aaafa9160c247be93eabe3c50933bdeb': Add slot_suffix field to struct bootloader_message.
| * | | | | | | | | | | | Add slot_suffix field to struct bootloader_message.David Zeuthen2015-11-200-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 846c094fee * commit '846c094fee9e50ed2b2e63dee17f5bafb2b9d1ce': Add slot_suffix field to struct bootloader_message.
| | * | | | | | | | | | | Add slot_suffix field to struct bootloader_message.David Zeuthen2015-11-161-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed by fs_mgr for certain A/B implementations. Change-Id: I7bb404d61198eb7a962c2b693911f5156745daae
* | | | | | | | | | | | | Merge commit \'8f90389966fabf532b24741d49245215279533e1\' into mnc-dr2-dev-plus-aospQiwen Zhao2015-11-200-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a550e6b412 * commit 'a550e6b4122108fa2db438afcfd7d40386b71b0b': recovery: Allow "Mount /system" for system_root_image.
| * | | | | | | | | | | | Merge commit '8f90389966fabf532b24741d49245215279533e1' into mnc-dr2-dev-plus-aospQiwen Zhao2015-11-190-0/+0
| |\| | | | | | | | | | |
| | * | | | | | | | | | | recovery: Allow "Mount /system" for system_root_image.Tao Bao2015-11-163-19/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When system images contain the root directory, there is no entry of "/system" in the fstab. Change it to look for "/" instead if ro.build.system_root_image is true. We actually mount the partition to /system_root instead, and create a symlink to /system_root/system for /system. This allows "adb shell" to work properly. Bug: 22855115 Change-Id: I91864444950dc3229fda3cc133ddbadeb8817fb8 (cherry picked from commit abb8f7785ee24eac42f6d28dbfef37872a06c7e9)
* | | | | | | | | | | | | Merge commit \'32ac97675bade3681203c46d001f76b11a359fd5\' into mnc-dr2-dev-plus-aospQiwen Zhao2015-11-200-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 312f7c71f4 * commit '312f7c71f4a71feb0e8c3d202164ddeefa0ec661': applypatch: Fix the checking in WriteToPartition().
| * | | | | | | | | | | | Merge commit '32ac97675bade3681203c46d001f76b11a359fd5' into mnc-dr2-dev-plus-aospQiwen Zhao2015-11-190-0/+0
| |\| | | | | | | | | | |
| | * | | | | | | | | | | applypatch: Fix the checking in WriteToPartition().Tao Bao2015-11-161-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WriteToPartition() should consider a target name as valid if it contains multiple colons. But only the first two fields will be used. Bug: 22725128 Change-Id: I9d0236eaf97df9db9704acf53690d0ef85188e45 (cherry picked from commit 1ce7a2a63db84527e6195a6b123b1617f87c0f38)
* | | | | | | | | | | | | Merge commit \'f47259b18492c921445d9e437a9f9ed11c52fac6\' into mnc-dr2-dev-plus-aospQiwen Zhao2015-11-200-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 681b3c9fd0 * commit '681b3c9fd0ecf378e054e0c039c6085844705a9c': applypatch: Support flash mode.
| * | | | | | | | | | | | Merge commit 'f47259b18492c921445d9e437a9f9ed11c52fac6' into mnc-dr2-dev-plus-aospQiwen Zhao2015-11-190-0/+0
| |\| | | | | | | | | | |
| | * | | | | | | | | | | applypatch: Support flash mode.Tao Bao2015-11-163-16/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We may carry a full copy of recovery image in the /system, and use /system/bin/install-recovery.sh to install the recovery. This CL adds support to flash the recovery partition with the given image. Bug: 22641135 Change-Id: I345eaaee269f6443527f45a9be7e4ee47f6b2b39 (cherry picked from commit 68c5a6796737bb583a8bdfa4c9cd9c7f12ef4276)
* | | | | | | | | | | | | Merge commit \'3b199267d6d4c279cbef3286a74e16bf92dd8d8a\' into mnc-dr2-dev-plus-aospQiwen Zhao2015-11-200-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 06ec3bab56 * commit '06ec3bab56371fee051326cbd5f2b72a53462d29': updater: libapplypatch needs libbase now.
| * | | | | | | | | | | | Merge commit '3b199267d6d4c279cbef3286a74e16bf92dd8d8a' into mnc-dr2-dev-plus-aospQiwen Zhao2015-11-190-0/+0
| |\| | | | | | | | | | |
| | * | | | | | | | | | | updater: libapplypatch needs libbase now.Tao Bao2015-11-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ibe3173edd6274b61bd9ca5ec394d7f6b4a403639 (cherry picked from commit 1b1ea17d554d127a970afe1d6004dd4627cd596e)
* | | | | | | | | | | | | Merge commit \'27604fcbee0010b800bfc16b5bf7a48c365c2cf3\' into mnc-dr2-dev-plus-aospQiwen Zhao2015-11-200-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8b254cfc3c * commit '8b254cfc3ccb67953b62412b0a453f382907b841': applypatch: Refactor strtok().
| * | | | | | | | | | | | Merge commit '27604fcbee0010b800bfc16b5bf7a48c365c2cf3' into mnc-dr2-dev-plus-aospQiwen Zhao2015-11-190-0/+0
| |\| | | | | | | | | | |
| | * | | | | | | | | | | applypatch: Refactor strtok().Tao Bao2015-11-162-86/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have android::base::Split() for the work. Change-Id: Ic529db42090f700e6455d465c8b84b7f52d34d63 (cherry picked from commit 0a47ce27de454e272a883a0c452fad627fd7f419)
* | | | | | | | | | | | | DO NOT MERGE recovery: Switch applypatch/ and updater/ to cpp. am: 818fa781d1 -s oursTao Bao2015-11-190-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f4848f63ad -s ours * commit 'f4848f63ad6041fcc01ad1f520ccc0ceddd80f61': DO NOT MERGE recovery: Switch applypatch/ and updater/ to cpp.
| * | | | | | | | | | | | DO NOT MERGE recovery: Switch applypatch/ and updater/ to cpp.Tao Bao2015-11-190-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 818fa781d1 -s ours * commit '818fa781d1dbe35c0c5bfff3ebff1b45a2a676f0': DO NOT MERGE recovery: Switch applypatch/ and updater/ to cpp.
| | * | | | | | | | | | | DO NOT MERGE recovery: Switch applypatch/ and updater/ to cpp.Tao Bao2015-11-1615-300/+304
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mostly trivial changes to make cpp compiler happy. Change-Id: I69bd1d96fcccf506007f6144faf37e11cfba1270 (cherry picked from commit ba9a42aa7e10686de186636fe9fecbf8c4cc7c19)
* | | | | | | | | | | | | Add error and range checks to parse_range am: 806f72f9e6 -s oursSami Tolvanen2015-11-190-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 81faa274d0 * commit '81faa274d0c3e36eb68b4a436695047949130d70': Add error and range checks to parse_range
| * | | | | | | | | | | | Add error and range checks to parse_rangeSami Tolvanen2015-11-190-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 806f72f9e6 -s ours * commit '806f72f9e6ec0d15b550b79b0baa92a93fc646e3': Add error and range checks to parse_range
| | * | | | | | | | | | | Add error and range checks to parse_rangeSami Tolvanen2015-11-161-10/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only trusted input is passed to parse_range, but check for invalid input to catch possible problems in transfer lists. Bug: 21033983 Bug: 21034030 Bug: 21034172 Bug: 21034406 Change-Id: I1e266de3de15c99ee596ebdb034419fdfe7eba1f (cherry picked from commit f2bac04e1ba0a5b79f8adbc35b493923b776f8b2)
* | | | | | | | | | | | | Stop using libstdc++. am: 56deefba73 -s oursDan Albert2015-11-190-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 34a265cbac * commit '34a265cbacc3d365cca4aaa7edbe738ef3e904d6': Stop using libstdc++.
| * | | | | | | | | | | | Stop using libstdc++.Dan Albert2015-11-190-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 56deefba73 -s ours * commit '56deefba73fb318ba0498da49adc64de960a6e29': Stop using libstdc++.
| | * | | | | | | | | | | Stop using libstdc++.Dan Albert2015-11-163-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are already getting libc++, so it isn't necessary. If any of the other static libraries (such as adb) use new or delete from libc++, there will be symbol collisions. Change-Id: I55e43ec60006d3c2403122fa1174bde06f18e09f (cherry picked from commit e49a9e527a51f43db792263bb60bfc91293848da)
* | | | | | | | | | | | | recovery: Switch to clang am: 7101b2e285 -s oursTao Bao2015-11-190-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 29cc06e50c * commit '29cc06e50c3702e1835c1af911f5d2c69699e1c7': recovery: Switch to clang
| * | | | | | | | | | | | recovery: Switch to clangTao Bao2015-11-190-0/+0
| |\| | | | | | | | | | | | | |/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7101b2e285 -s ours * commit '7101b2e2854985727b7ef65e5b5057e0ecf2d034': recovery: Switch to clang
| | * | | | | | | | | | recovery: Switch to clangTao Bao2015-11-1613-11/+38
| | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And a few trival fixes to suppress warnings. Change-Id: Id28e3581aaca4bda59826afa80c0c1cdfb0442fc (cherry picked from commit 80e46e08de5f65702fa7f7cd3ef83f905d919bbc)
* | | | | | | | | | | Merge "Create convert_fbe breadcrumb file to support conversion to FBE"Paul Lawrence2015-11-133-3/+35
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Create convert_fbe breadcrumb file to support conversion to FBEPaul Lawrence2015-11-133-3/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I38b29e1e34ea793e4b87cd27a1d39fa905fddf7a
* | | | | | | | | | | | Merge "We can use fclose directly in std::unique_ptr."Elliott Hughes2015-11-132-16/+5
|\ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / |/| / / / / / / / / / / | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5c6912148b * commit '5c6912148b2143cbdf4cc580c723fac05e9324f8': We can use fclose directly in std::unique_ptr.
| * | | | | | | | | | Merge "We can use fclose directly in std::unique_ptr."Elliott Hughes2015-11-132-16/+5
| |\ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | We can use fclose directly in std::unique_ptr.Elliott Hughes2015-11-132-16/+5
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out the standard explicitly states that if the pointer is null, the deleter function won't be called. So it doesn't matter that fclose(3) doesn't accept null. Change-Id: I10e6e0d62209ec03ac60e673edd46f32ba279a04
* | | | | | | | | | | Merge "uncrypt: remove O_SYNC to avoid time-out failures"Tao Bao2015-11-051-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e4a3da9f51 * commit 'e4a3da9f51ca1e02179a1e0851f26015f4ec07fa': uncrypt: remove O_SYNC to avoid time-out failures
| * | | | | | | | | | Merge "uncrypt: remove O_SYNC to avoid time-out failures"Tao Bao2015-11-051-1/+1
| |\ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | uncrypt: remove O_SYNC to avoid time-out failuresJaegeuk Kim2015-11-041-1/+1
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes costly O_SYNC flag for encrypted block device. After writing whole decrypted blocks, fsync should guarantee their consistency from further power failures. This patch reduces the elapsed time significantly consumed by upgrading packages on an encrypted partition, so that it could avoid another time-out failures too. Change-Id: I1fb9022c83ecc00bad09d107fc87a6a09babb0ec Signed-off-by: Jaegeuk Kim <jaegeuk@motorola.com>
* | | | | | | | | | | Merge "recovery: Depend on mkfs.f2fs only if needed." am: a412198699Tao Bao2015-10-281-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4ea2b0c4ac * commit '4ea2b0c4acddb4509c741ba0390be7b39e0b9de1': recovery: Depend on mkfs.f2fs only if needed.
| * | | | | | | | | | Merge "recovery: Depend on mkfs.f2fs only if needed."Tao Bao2015-10-281-0/+2
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a412198699 * commit 'a4121986990d7dde7918252a96d87e4c3c11c13c': recovery: Depend on mkfs.f2fs only if needed.
| | * \ \ \ \ \ \ \ \ \ Merge "recovery: Depend on mkfs.f2fs only if needed."Tao Bao2015-10-281-0/+2
| | |\ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | recovery: Depend on mkfs.f2fs only if needed.Tao Bao2015-10-281-0/+2
| | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't build mkfs.f2fs unless device defines TARGET_USERIMAGES_USE_F2FS. Change-Id: Ifac592c30315bbe7590c8fbf3a0844e6a7a31a1a
* | | | | | | | | | | | Merge "updater: Bump up the BBOTA version to 4." am: f204185f71Tao Bao2015-10-231-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cc9dd3d524 * commit 'cc9dd3d524755da156ec95ed3a91bcf7966e7e7e': updater: Bump up the BBOTA version to 4.
| * | | | | | | | | | | Merge "updater: Bump up the BBOTA version to 4."Tao Bao2015-10-231-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f204185f71 * commit 'f204185f7138687769f95c28fe22fa88143bc004': updater: Bump up the BBOTA version to 4.
| | * | | | | | | | | | Merge "updater: Bump up the BBOTA version to 4."Tao Bao2015-10-231-1/+1
| | |\ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | updater: Bump up the BBOTA version to 4.Tao Bao2015-10-231-1/+1
| | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To accommodate new changes in N release, such as error correction [1] and other potential changes to the updater. [1]: commit 0a7b47397db3648afe6f3aeb2abb175934c2cbca Change-Id: I4dd44417d07dd0a31729894628635a0aa1659008
* | | | | | | | | | | | am 339ec2ef: am 78615fa5: Merge "Error correction: Use libfec in blockimg.cpp for recovery"Sami Tolvanen2015-10-192-1/+78
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '339ec2ef02614f17823f9b00af8b35c1f8ee734c': Error correction: Use libfec in blockimg.cpp for recovery
| * | | | | | | | | | | am 78615fa5: Merge "Error correction: Use libfec in blockimg.cpp for recovery"Sami Tolvanen2015-10-192-1/+78
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '78615fa50bb10318035d31bccdf502913e1041b7': Error correction: Use libfec in blockimg.cpp for recovery
| | * | | | | | | | | | Merge "Error correction: Use libfec in blockimg.cpp for recovery"Sami Tolvanen2015-10-192-1/+78
| | |\ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | Error correction: Use libfec in blockimg.cpp for recoverySami Tolvanen2015-10-192-1/+78
| | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add block_image_recover function to rewrite corrupted blocks on the partition. This can be attempted if block_image_verify fails. Note that we cannot use libfec during block_image_update as it may overwrite blocks required for error correction. A separate recovery pass in case the image is corrupted is the only viable option. Bug: 21893453 Change-Id: I6ff25648fff68d5f50b41a601c95c509d1cc5bce
* | | | | | | | | | | | am 4c6c96a5: am 245b2da1: am 754ebaa9: Merge "updater: Skip empty lines in the transfer list file."Tao Bao2015-10-011-0/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '4c6c96a59566e8e876cc803be84c16d3f04f31d4': updater: Skip empty lines in the transfer list file.
| * | | | | | | | | | | am 245b2da1: am 754ebaa9: Merge "updater: Skip empty lines in the transfer list file."Tao Bao2015-10-011-0/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '245b2da1711db8a9b8e333395d68235df5163483': updater: Skip empty lines in the transfer list file.
| | * | | | | | | | | | am 754ebaa9: Merge "updater: Skip empty lines in the transfer list file."Tao Bao2015-10-011-0/+4
| | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '754ebaa90a3e11012e2456013e69b34a30272c4a': updater: Skip empty lines in the transfer list file.
| | | * \ \ \ \ \ \ \ \ \ Merge "updater: Skip empty lines in the transfer list file."Tao Bao2015-10-011-0/+4
| | | |\ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | updater: Skip empty lines in the transfer list file.Tao Bao2015-09-261-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have the last line being empty as a result of android::base::Split("a\nb\n"), which leads to "missing command" warnings in the update. Just skip all the empty lines. Bug: 24373789 Change-Id: I5827e4600bd5cf0418d95477e4592fec47bbd3a9
* | | | | | | | | | | | | | am 6eb2668d: am aa59a989: am 4b66a280: Merge "minadbd: use strdup() to create argument for sideload thread."Yabin Cui2015-09-301-2/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6eb2668de1afca57b7c64532f98f84b7fcec1f60': minadbd: use strdup() to create argument for sideload thread.
| * | | | | | | | | | | | | am aa59a989: am 4b66a280: Merge "minadbd: use strdup() to create argument for sideload thread."Yabin Cui2015-09-301-2/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'aa59a9898824c39cad3f1a1dde5fc4c8ceeabb40': minadbd: use strdup() to create argument for sideload thread.
| | * | | | | | | | | | | | am 4b66a280: Merge "minadbd: use strdup() to create argument for sideload thread."Yabin Cui2015-09-301-2/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '4b66a280d314ab5aeb5027fe5b0023ae1f25ecca': minadbd: use strdup() to create argument for sideload thread.
| | | * | | | | | | | | | | Merge "minadbd: use strdup() to create argument for sideload thread."Yabin Cui2015-09-301-2/+4
| | | |\ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / | | | |/| | | | | | | | | |
| | | | * | | | | | | | | | minadbd: use strdup() to create argument for sideload thread.Yabin Cui2015-09-301-2/+4
| | | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So sideload thread will not use argument which is to be freed in the main thread. Bug: 23968770 Change-Id: I9d6dadc6c33cfbe4b5759382a80fe14cd0d54355
* | | | | | | | | | | | | am d7156748: am f61eec3e: am 2bdac629: Merge changes Ic769eafc,I63f28b3bTao Bao2015-09-253-57/+42
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd715674899b9026ce5f5c653dc218fc7b67f9c7b': updater: Use android::base::ParseInt() to parse integers. Suppress some compiler warnings due to signedness.
| * | | | | | | | | | | | am f61eec3e: am 2bdac629: Merge changes Ic769eafc,I63f28b3bTao Bao2015-09-253-57/+42
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f61eec3e2db4e0e9bfa37cff23e5e05c92384e83': updater: Use android::base::ParseInt() to parse integers. Suppress some compiler warnings due to signedness.
| | * | | | | | | | | | | am 2bdac629: Merge changes Ic769eafc,I63f28b3bTao Bao2015-09-253-57/+42
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2bdac629f1d109dc79370edec8a31e20fbbe384c': updater: Use android::base::ParseInt() to parse integers. Suppress some compiler warnings due to signedness.
| | | * | | | | | | | | | Merge changes Ic769eafc,I63f28b3bTao Bao2015-09-253-57/+42
| | | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: updater: Use android::base::ParseInt() to parse integers. Suppress some compiler warnings due to signedness.
| | | | * | | | | | | | | | updater: Use android::base::ParseInt() to parse integers.Tao Bao2015-09-242-52/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic769eafc8d9535b1d517d3dcbd398c3fd65cddd9
| | | | * | | | | | | | | | Suppress some compiler warnings due to signedness.Tao Bao2015-09-242-5/+5
| | | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I63f28b3b4ba4185c23b972fc8f93517295b1672a
* | | | | | | | | | | | | am 7c7d876d: am f7319f4d: am 3317d501: Merge "minadbd: move from D() to VLOG()."Yabin Cui2015-09-242-5/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7c7d876d152e27a5b15617f9e907e18314f08fa5': minadbd: move from D() to VLOG().
| * | | | | | | | | | | | am f7319f4d: am 3317d501: Merge "minadbd: move from D() to VLOG()."Yabin Cui2015-09-242-5/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f7319f4dbd04f72a53f5ad313794ade240530406': minadbd: move from D() to VLOG().
| | * | | | | | | | | | | am 3317d501: Merge "minadbd: move from D() to VLOG()."Yabin Cui2015-09-242-5/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3317d5017963684cdbf4573d6cc6c0ff4cee0869': minadbd: move from D() to VLOG().
| | | * | | | | | | | | | Merge "minadbd: move from D() to VLOG()."Yabin Cui2015-09-242-5/+2
| | | |\ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | minadbd: move from D() to VLOG().Yabin Cui2015-09-242-5/+2
| | | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I542e2ae8f5ef18b2d6b3dbc1888b3ce1e02a7404
* | | | | | | | | | | | | am c66b9ead: am cd3c8c4e: am b739a32b: Merge "recovery: Add timestamps in update logs."Tao Bao2015-09-181-16/+98
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c66b9ead27cdcdd94184a7c16e13369d4e62eb4d': recovery: Add timestamps in update logs.
| * | | | | | | | | | | | am cd3c8c4e: am b739a32b: Merge "recovery: Add timestamps in update logs."Tao Bao2015-09-181-16/+98
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'cd3c8c4eacbab792e2144b4b71ace63100ff792a': recovery: Add timestamps in update logs.
| | * | | | | | | | | | | am b739a32b: Merge "recovery: Add timestamps in update logs."Tao Bao2015-09-181-16/+98
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b739a32b7c32279da4d5ac55601f06bc5c81f1d5': recovery: Add timestamps in update logs.
| | | * | | | | | | | | | Merge "recovery: Add timestamps in update logs."Tao Bao2015-09-181-16/+98
| | | |\ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | recovery: Add timestamps in update logs.Tao Bao2015-09-171-16/+98
| | | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fork a logger process and send over the log lines through a pipe. Prepend a timestamp to each line for debugging purpose. Timestamps are relative to the start of the logger. Example lines with the change in this CL: [ 445.948393] Verifying update package... [ 446.279139] I:comment is 1738 bytes; signature 1720 bytes from end [ 449.463652] I:whole-file signature verified against RSA key 0 [ 449.463704] I:verify_file returned 0 Change-Id: I139d02ed8f2e944c1618c91d5cc43282efd50b99
* | | | | | | | | | | | | am 53cfad08: (-s ours) am cde72079: am 838768ca: am 15da523e: am 3c7f655b: (-s ours) am 0e804d54: am d396b9db: am 710b6bb9: am ec4b58ad: (-s ours) am ec63d564: Track usage of Vector / SortedVector from libutils DO NOT MERGENarayan Kamath2015-09-170-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '53cfad08cef87b7e81c664384ce971bc3df829df': Track usage of Vector / SortedVector from libutils DO NOT MERGE
| * | | | | | | | | | | | am cde72079: am 838768ca: am 15da523e: am 3c7f655b: (-s ours) am 0e804d54: am d396b9db: am 710b6bb9: am ec4b58ad: (-s ours) am ec63d564: Track usage of Vector / SortedVector from libutils DO NOT MERGENarayan Kamath2015-09-170-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'cde720797f55ca3ca1bfc82b7b928447c37e7656': Track usage of Vector / SortedVector from libutils DO NOT MERGE
| | * | | | | | | | | | | am 838768ca: am 15da523e: am 3c7f655b: (-s ours) am 0e804d54: am d396b9db: am 710b6bb9: am ec4b58ad: (-s ours) am ec63d564: Track usage of Vector / SortedVector from libutils DO NOT MERGENarayan Kamath2015-09-170-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '838768ca57d087025dbd31587ee895150bca9e10': Track usage of Vector / SortedVector from libutils DO NOT MERGE
| | | * | | | | | | | | | am 15da523e: am 3c7f655b: (-s ours) am 0e804d54: am d396b9db: am 710b6bb9: am ec4b58ad: (-s ours) am ec63d564: Track usage of Vector / SortedVector from libutils DO NOT MERGENarayan Kamath2015-09-170-0/+0
| | | |\ \ \ \ \ \ \ \ \ \ | | | | | |_|/ / / / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '15da523e5fe7dbdc3a8d49c809042bc760081920': Track usage of Vector / SortedVector from libutils DO NOT MERGE
| | | | * | | | | | | | | am 3c7f655b: (-s ours) am 0e804d54: am d396b9db: am 710b6bb9: am ec4b58ad: (-s ours) am ec63d564: Track usage of Vector / SortedVector from libutils DO NOT MERGENarayan Kamath2015-09-170-0/+0
| | | | |\ \ \ \ \ \ \ \ \ | | | | | | |_|/ / / / / / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3c7f655bf0382776617d3c98293e28d9967c9a96': Track usage of Vector / SortedVector from libutils DO NOT MERGE
| | | | | * | | | | | | | am 0e804d54: am d396b9db: am 710b6bb9: am ec4b58ad: (-s ours) am ec63d564: Track usage of Vector / SortedVector from libutils DO NOT MERGENarayan Kamath2015-09-170-0/+0
| | | | | |\ \ \ \ \ \ \ \ | | | | | | | |_|/ / / / / | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0e804d542a2c151d254cad0d8581d9709a394a9a': Track usage of Vector / SortedVector from libutils DO NOT MERGE
| | | | | | * | | | | | | am d396b9db: am 710b6bb9: am ec4b58ad: (-s ours) am ec63d564: Track usage of Vector / SortedVector from libutils DO NOT MERGENarayan Kamath2015-09-170-0/+0
| | | | | | |\ \ \ \ \ \ \ | | | | | | | | |_|/ / / / | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd396b9dbd99924f7c8687227b22220a87c85d9c7': Track usage of Vector / SortedVector from libutils DO NOT MERGE
| | | | | | | * | | | | | am 710b6bb9: am ec4b58ad: (-s ours) am ec63d564: Track usage of Vector / SortedVector from libutils DO NOT MERGENarayan Kamath2015-09-120-0/+0
| | | | | | | |\ \ \ \ \ \ | | | | | | | | | |_|/ / / | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '710b6bb9d7d36ce16453850efc3112016a77e9ff': Track usage of Vector / SortedVector from libutils DO NOT MERGE
| | | | | | | | * | | | | am ec4b58ad: (-s ours) am ec63d564: Track usage of Vector / SortedVector from libutils DO NOT MERGENarayan Kamath2015-09-100-0/+0
| | | | | | | | |\ \ \ \ \ | | | | | | | | | | |_|/ / | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ec4b58ad8a21b511bf6b136792bb924eb6e9e299': Track usage of Vector / SortedVector from libutils DO NOT MERGE
| | | | | | | | | * | | | am ec63d564: Track usage of Vector / SortedVector from libutils DO NOT MERGENarayan Kamath2015-09-101-0/+1
| | | | | | | | | |\ \ \ \ | | | | | | | | | | | |_|/ | | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ec63d564a86ad5b30f75aa307b4bd271f6a96a56': Track usage of Vector / SortedVector from libutils DO NOT MERGE
| | | | | | | | | | * | | Track usage of Vector / SortedVector from libutils DO NOT MERGENarayan Kamath2015-09-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug: 22953624 Change-Id: Ifcc17e39433ac91ca41da5d336fb3006dfbb65a8
* | | | | | | | | | | | | am 6e9f726f: am f66e08a2: am a42a322d: Merge "updater: Manage buffers with std::vector."Tao Bao2015-09-161-228/+168
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6e9f726f8e897ec39320ebf099b4662788bb59a1': updater: Manage buffers with std::vector.
| * | | | | | | | | | | | am f66e08a2: am a42a322d: Merge "updater: Manage buffers with std::vector."Tao Bao2015-09-161-228/+168
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f66e08a2a0c4bcc3f0447aac318e71b829e2743b': updater: Manage buffers with std::vector.
| | * | | | | | | | | | | am a42a322d: Merge "updater: Manage buffers with std::vector."Tao Bao2015-09-161-228/+168
| | |\ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|_|_|_|_|_|/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a42a322d8f6de0157625b518d12d1919f1e0dd7e': updater: Manage buffers with std::vector.
| | | * | | | | | | | | | Merge "updater: Manage buffers with std::vector."Tao Bao2015-09-161-228/+168
| | | |\ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | updater: Manage buffers with std::vector.Tao Bao2015-09-101-228/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ide489e18dd8daf161b612f65b28921b61cdd8d8d
* | | | | | | | | | | | | | am cd3a68ce: am 49a49e4f: am ee17242f: Merge "minadbd: update service_to_fd() signature."David Pursell2015-09-141-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'cd3a68ce371fd446b0b5d8dde4f4a262be1e1fe9': minadbd: update service_to_fd() signature.
| * | | | | | | | | | | | | am 49a49e4f: am ee17242f: Merge "minadbd: update service_to_fd() signature."David Pursell2015-09-141-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '49a49e4f0659696b71c0ec2d32a0ac4948c5d977': minadbd: update service_to_fd() signature.
| | * | | | | | | | | | | | am ee17242f: Merge "minadbd: update service_to_fd() signature."David Pursell2015-09-141-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ee17242f904730c759272b2576aafc59d764525b': minadbd: update service_to_fd() signature.
| | | * | | | | | | | | | | Merge "minadbd: update service_to_fd() signature."David Pursell2015-09-141-1/+1
| | | |\ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | minadbd: update service_to_fd() signature.David Pursell2015-09-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No functional change, just matching the signature to an adb change. See https://android-review.googlesource.com/#/c/169601/. Change-Id: Ic826864e126054849b3a4d193ded8acc5ee5269c
* | | | | | | | | | | | | | | am 8b2dcfb1: am 60524198: am b83fd518: Merge "recovery: Remove redirect_stdio() when calling ShowFile()."Tao Bao2015-09-122-4/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '8b2dcfb1049ddc2ff6111c4faa81ae20c6545285': recovery: Remove redirect_stdio() when calling ShowFile().
| * | | | | | | | | | | | | | am 60524198: am b83fd518: Merge "recovery: Remove redirect_stdio() when calling ShowFile()."Tao Bao2015-09-122-4/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '605241984cc41f62e2f2e005865d7afed504a972': recovery: Remove redirect_stdio() when calling ShowFile().
| | * | | | | | | | | | | | | am b83fd518: Merge "recovery: Remove redirect_stdio() when calling ShowFile()."Tao Bao2015-09-122-4/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b83fd518262853d42b5a73a61ec6fdfafe0f5564': recovery: Remove redirect_stdio() when calling ShowFile().
| | | * | | | | | | | | | | | Merge "recovery: Remove redirect_stdio() when calling ShowFile()."Tao Bao2015-09-122-4/+1
| | | |\ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | recovery: Remove redirect_stdio() when calling ShowFile().Tao Bao2015-09-102-4/+1
| | | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When calling ScreenRecoveryUI::ShowFile(), the only thing that gets inadequately logged is the progress bar. Replace the call to ScreenRecoveryUI::Print() with ScreenRecoveryUI::PrintOnScreenOnly() for the progress bar, so we can avoid calling redirect_stdio(). Change-Id: I4d7c5d5b39bebe0d5880a99d7a72cee4f0b8f325
* | | | | | | | | | | | | | | am 7c3d09c2: am 0cf19d9b: am 7a677807: Merge "updater: Fix the line breaks in ui_print commands."Tao Bao2015-09-101-26/+32
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7c3d09c2f3524e546989125d75f7944f280fc6fe': updater: Fix the line breaks in ui_print commands.
| * | | | | | | | | | | | | | am 0cf19d9b: am 7a677807: Merge "updater: Fix the line breaks in ui_print commands."Tao Bao2015-09-101-26/+32
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0cf19d9ba10c325af928e44d2c11bc74daa39a7c': updater: Fix the line breaks in ui_print commands.
| | * | | | | | | | | | | | | am 7a677807: Merge "updater: Fix the line breaks in ui_print commands."Tao Bao2015-09-101-26/+32
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7a6778078b2525c245869061366eb1f92942542a': updater: Fix the line breaks in ui_print commands.
| | | * | | | | | | | | | | | Merge "updater: Fix the line breaks in ui_print commands."Tao Bao2015-09-101-26/+32
| | | |\ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / | | | |/| | | | | | | | | | |
| | | | * | | | | | | | | | | updater: Fix the line breaks in ui_print commands.Tao Bao2015-09-101-26/+32
| | | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When processing ui_print commands in the updater, it misses a line break when printing to the recovery log. Also clean up uiPrintf() and UIPrintFn() with std::string's. Change-Id: Ie5dbbfbc40b024929887d3c3ccd3a334249a8c9d
* | | | | | | | | | | | | | am 272d268c: am 50828f58: am e520f1d4: Merge "updater: Replace the pointers in LoadSrcTgtVersion[1-3]() parameter."Tao Bao2015-09-091-29/+26
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '272d268c17a181b4b20ea8c6101e6450511ce786': updater: Replace the pointers in LoadSrcTgtVersion[1-3]() parameter.
| * | | | | | | | | | | | | am 50828f58: am e520f1d4: Merge "updater: Replace the pointers in LoadSrcTgtVersion[1-3]() parameter."Tao Bao2015-09-091-29/+26
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '50828f58caf1ee8f905c67f85c4dccd4a4f3304b': updater: Replace the pointers in LoadSrcTgtVersion[1-3]() parameter.
| | * | | | | | | | | | | | am e520f1d4: Merge "updater: Replace the pointers in LoadSrcTgtVersion[1-3]() parameter."Tao Bao2015-09-091-29/+26
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e520f1d4cddeca4208ccc385313d900581ff117c': updater: Replace the pointers in LoadSrcTgtVersion[1-3]() parameter.
| | | * | | | | | | | | | | Merge "updater: Replace the pointers in LoadSrcTgtVersion[1-3]() parameter."Tao Bao2015-09-091-29/+26
| | | |\ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | updater: Replace the pointers in LoadSrcTgtVersion[1-3]() parameter.Tao Bao2015-09-081-29/+26
| | | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And inline the call to LoadSrcTgtVersion1() into SaveStash(). Change-Id: Ibf4ef2bfa2cc62df59c4e8de99fd7d8039e71ecf
* | | | | | | | | | | | | | am d4547c1d: am e5571a0f: am 585a50ce: Merge "imgdiff: fix file descriptor leak"Tao Bao2015-09-081-1/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd4547c1ddaf6ac4b13e9a160582f6baba44860b6': imgdiff: fix file descriptor leak
| * | | | | | | | | | | | | am e5571a0f: am 585a50ce: Merge "imgdiff: fix file descriptor leak"Tao Bao2015-09-081-1/+9
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e5571a0ff8217a6fe1b3defdb22295596e36c280': imgdiff: fix file descriptor leak
| | * | | | | | | | | | | | am 585a50ce: Merge "imgdiff: fix file descriptor leak"Tao Bao2015-09-081-1/+9
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '585a50cecbccf59666dd65e9fc4320eaa3511634': imgdiff: fix file descriptor leak
| | | * | | | | | | | | | | Merge "imgdiff: fix file descriptor leak"Tao Bao2015-09-081-1/+9
| | | |\ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | imgdiff: fix file descriptor leakJeremy Compostella2015-09-081-1/+9
| | | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mkstemp() allocates a file description that is never released. If MakePatch() is called too many time, imgdiff reaches the Operating System EMFILE (too many open files) limit. Change-Id: Icbe1399f6f6d32cfa1830f879cacf7d75bbd9fc3 Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com> Signed-off-by: Gaelle Nassiet <gaellex.nassiet@intel.com>
* | | | | | | | | | | | | | am 1e8e6a83: am cf11a160: am f8c303f9: Merge "move uncrypt from init.rc to uncrypt.rc"Tom Cherry2015-09-042-0/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1e8e6a839438a345a9054319d8efda6c95236557': move uncrypt from init.rc to uncrypt.rc
| * | | | | | | | | | | | | am cf11a160: am f8c303f9: Merge "move uncrypt from init.rc to uncrypt.rc"Tom Cherry2015-09-042-0/+11
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'cf11a1601522c669c6df2095d71601546cc7fc7f': move uncrypt from init.rc to uncrypt.rc
| | * | | | | | | | | | | | am f8c303f9: Merge "move uncrypt from init.rc to uncrypt.rc"Tom Cherry2015-09-042-0/+11
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f8c303f9c197ed9247dbc88a5bf392f1f2c65639': move uncrypt from init.rc to uncrypt.rc
| | | * | | | | | | | | | | Merge "move uncrypt from init.rc to uncrypt.rc"Tom Cherry2015-09-042-0/+11
| | | |\ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / | | | |/| | | | | | | | | |
| | | | * | | | | | | | | | move uncrypt from init.rc to uncrypt.rcTom Cherry2015-09-042-0/+11
| | | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move uncrypt from /init.rc to /system/etc/init/uncrypt.rc using the LOCAL_INIT_RC mechanism Bug 23186545 Change-Id: Ib8cb6dffd2212f524298279787fd557bc84aa7b9
* | | | | | | | | | | | | am 834c92b7: am 8e9c6801: recovery: Fix the bug that truncates menu entries.Tao Bao2015-09-031-1/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '834c92b7b145b0ae1800f869170e9ae6d2834fef': recovery: Fix the bug that truncates menu entries.
| * | | | | | | | | | | | am 8e9c6801: recovery: Fix the bug that truncates menu entries.Tao Bao2015-09-031-1/+6
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '8e9c68019f9c284b89155c71922ad8ac84af6ab6': recovery: Fix the bug that truncates menu entries.
| | * | | | | | | | | | | recovery: Fix the bug that truncates menu entries.Tao Bao2015-09-021-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When there are 20 entries (like 10 last_log* and 10 last_kmg* in "view recovery logs"), there's no "Back" entry. Because the number of entries (21) exceeds text_rows (20) in WearRecoveryUI::StartMenu(). Since we have scrollable menu, having more entries than text_rows won't be an issue. Bug: 23752519 Change-Id: I12573d7a34852a1a3d130c9e88522cee737eb08f
* | | | | | | | | | | | | am ceb81e49: am 1b3195cb: am 4c223f4e: Merge "Add slot_suffix field to struct bootloader_message."David Zeuthen2015-09-031-1/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ceb81e4931a307c8c907d0063ab2a8f53445d2c9': Add slot_suffix field to struct bootloader_message.
| * | | | | | | | | | | | am 1b3195cb: am 4c223f4e: Merge "Add slot_suffix field to struct bootloader_message."David Zeuthen2015-09-031-1/+9
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1b3195cb917dcaff5d563d3e17e497b855442461': Add slot_suffix field to struct bootloader_message.
| | * | | | | | | | | | | am 4c223f4e: Merge "Add slot_suffix field to struct bootloader_message."David Zeuthen2015-09-031-1/+9
| | |\ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '4c223f4e396e1b66a945601561fce4cd63fc31ae': Add slot_suffix field to struct bootloader_message.
| | | * | | | | | | | | | Merge "Add slot_suffix field to struct bootloader_message."David Zeuthen2015-09-031-1/+9
| | | |\ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | Add slot_suffix field to struct bootloader_message.David Zeuthen2015-09-021-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed by fs_mgr for certain A/B implementations. Change-Id: I7bb404d61198eb7a962c2b693911f5156745daae
* | | | | | | | | | | | | | am 31dde162: am 6f1f2062: am 6997c287: Merge "updater: Clean up C codes."Tao Bao2015-09-031-602/+429
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '31dde162b6e27d99270b0a0e9b5aa82c527c67a2': updater: Clean up C codes.
| * | | | | | | | | | | | | am 6f1f2062: am 6997c287: Merge "updater: Clean up C codes."Tao Bao2015-09-031-602/+429
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6f1f20622e269a4118e73c8da71a235b01924fee': updater: Clean up C codes.
| | * | | | | | | | | | | | am 6997c287: Merge "updater: Clean up C codes."Tao Bao2015-09-031-602/+429
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6997c287bedbd32fb5ffb84fc2efd081e6f56d3e': updater: Clean up C codes.
| | | * | | | | | | | | | | Merge "updater: Clean up C codes."Tao Bao2015-09-021-602/+429
| | | |\ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / | | | |/| | | | | | | | | |
| | | | * | | | | | | | | | updater: Clean up C codes.Tao Bao2015-09-011-602/+429
| | | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace C-string with std::string, pointers with references, and variable-size arrays in struct with std::vector. Change-Id: I57f361a0e58286cbcd113e9be225981da56721b2
* | | | | | | | | | | | | am d845a2d1: am 73468ee8: (-s ours) am 5a16eba2: am eef99138: Merge "updater: Remove the unused isunresumable in SaveStash()."Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd845a2d1ea4e2ce17d8f788d5ae33bab2bb82dd2':
| * | | | | | | | | | | | am 73468ee8: (-s ours) am 5a16eba2: am eef99138: Merge "updater: Remove the unused isunresumable in SaveStash()."Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '73468ee8fb5b152b3c8be19ade89e9a31d733316':
| | * | | | | | | | | | | am 5a16eba2: am eef99138: Merge "updater: Remove the unused isunresumable in SaveStash()."Tao Bao2015-08-261-3/+3
| | |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '5a16eba2c323ecb4f1dd1ecb2ecea7a0ac8bdbb5': updater: Remove the unused isunresumable in SaveStash().
* | | | | | | | | | | | | | am 5e3a40f9: am 304c65b8: (-s ours) am dc61d17d: am 50c17f9d: Merge "GOOGLEGMS-749 Fix integer overflow while applying block based OTA package"Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '5e3a40f934ca7d435496dfacf00b7909d3b3d98d':
| * | | | | | | | | | | | | am 304c65b8: (-s ours) am dc61d17d: am 50c17f9d: Merge "GOOGLEGMS-749 Fix integer overflow while applying block based OTA package"Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '304c65b8fc2e80c0337454320f23582e357bca1c':
| | * | | | | | | | | | | | am dc61d17d: am 50c17f9d: Merge "GOOGLEGMS-749 Fix integer overflow while applying block based OTA package"Tao Bao2015-08-261-46/+48
| | |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'dc61d17d5b3c9e85a2863ec461170263325f1466': GOOGLEGMS-749 Fix integer overflow while applying block based OTA package
* | | | | | | | | | | | | | | am 1a42ebc1: am 822685a8: (-s ours) am dbbdcf3f: am 93fa4b67: Merge "edify: Switch to C++."Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1a42ebc16e68d18394f613145aca7d8fd88f2588':
| * | | | | | | | | | | | | | am 822685a8: (-s ours) am dbbdcf3f: am 93fa4b67: Merge "edify: Switch to C++."Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '822685a8648e91aca6ce35992087c18165d4d609':
| | * | | | | | | | | | | | | am dbbdcf3f: am 93fa4b67: Merge "edify: Switch to C++."Tao Bao2015-08-215-37/+27
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'dbbdcf3fd817128f89474f9ea8c84743fc648a1a': edify: Switch to C++.
* | | | | | | | | | | | | | | | am b13fe892: am a9a50fef: (-s ours) am 4854e292: am ad509fd4: Merge "Fix potential crash"Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b13fe892d82a2ccde3e338c426b6cf70aea1e564':
| * | | | | | | | | | | | | | | am a9a50fef: (-s ours) am 4854e292: am ad509fd4: Merge "Fix potential crash"Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a9a50fef97d388ef5fb06a5953caaa79ab16496d':
| | * | | | | | | | | | | | | | am 4854e292: am ad509fd4: Merge "Fix potential crash"Tao Bao2015-08-111-5/+9
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '4854e292e0cd0eb58bce4488dc849273904d9302': Fix potential crash
* | | | | | | | | | | | | | | | | am dffdd5eb: am 06e6ccb9: (-s ours) am 434a1761: am 0d46c7ab: Merge "Use unique_ptr and unique_fd to manager FDs."Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'dffdd5eb6d366b2f35ec87f20f91207e3b4657c3':
| * | | | | | | | | | | | | | | | am 06e6ccb9: (-s ours) am 434a1761: am 0d46c7ab: Merge "Use unique_ptr and unique_fd to manager FDs."Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '06e6ccb98ab7b557e98a41af562ca515714e776a':
| | * | | | | | | | | | | | | | | am 434a1761: am 0d46c7ab: Merge "Use unique_ptr and unique_fd to manager FDs."Tao Bao2015-08-103-16/+91
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '434a1761aac48b8e3c13d5a6cb3edd90c8667f6f': Use unique_ptr and unique_fd to manager FDs.
* | | | | | | | | | | | | | | | | | am 85afda17: am b65a9023: (-s ours) am 7f89389a: am 7c511184: Merge "updater: Clean up char* with std::string."Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '85afda17522e25637bab37bdff1c5ea56b7c7a51':
| * | | | | | | | | | | | | | | | | am b65a9023: (-s ours) am 7f89389a: am 7c511184: Merge "updater: Clean up char* with std::string."Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b65a90235e7d4fc3a2dbf68bb73ac323a88f1abc':
| | * | | | | | | | | | | | | | | | am 7f89389a: am 7c511184: Merge "updater: Clean up char* with std::string."Tao Bao2015-08-105-288/+185
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7f89389a0b55d13ee1c9026c33f17dc1cc9c7ace': updater: Clean up char* with std::string.
* | | | | | | | | | | | | | | | | | | am 85a77d2a: am c2e91625: (-s ours) am 236b3eb6: am e67104a6: Merge "Use CPPFLAGS instead of CFLAGS."Dan Albert2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '85a77d2abef598099b1f64b9efd1af481f2f62fd':
| * | | | | | | | | | | | | | | | | | am c2e91625: (-s ours) am 236b3eb6: am e67104a6: Merge "Use CPPFLAGS instead of CFLAGS."Dan Albert2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c2e91625a7333ae993bab4c7069f25c2e9ecc8d3':
| | * | | | | | | | | | | | | | | | | am 236b3eb6: am e67104a6: Merge "Use CPPFLAGS instead of CFLAGS."Dan Albert2015-08-081-4/+4
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '236b3eb6a085bd0762849b5feca880f6dc63787d': Use CPPFLAGS instead of CFLAGS.
* | | | | | | | | | | | | | | | | | | | am 34fa6d38: am 8fa0007a: (-s ours) am a9390df6: am 06689dc5: Merge "Fix recovery image build."Elliott Hughes2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '34fa6d3891aceef6af910f114310cec17e13b372':
| * | | | | | | | | | | | | | | | | | | am 8fa0007a: (-s ours) am a9390df6: am 06689dc5: Merge "Fix recovery image build."Elliott Hughes2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '8fa0007a3eb59174f7c2fbf40a2a972dfb344531':
| | * | | | | | | | | | | | | | | | | | am a9390df6: am 06689dc5: Merge "Fix recovery image build."Elliott Hughes2015-08-072-2/+2
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a9390df6c6b8d6cc98b102aeffc8e7acd300c857': Fix recovery image build.
* | | | | | | | | | | | | | | | | | | | | am 371ab905: am 7daa48e6: (-s ours) resolved conflicts for merge of be19dce8 to mnc-dev-plus-aospTao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '371ab9058e923679e7dd451bc8351e6e0ce0c3b0':
| * | | | | | | | | | | | | | | | | | | | am 7daa48e6: (-s ours) resolved conflicts for merge of be19dce8 to mnc-dev-plus-aospTao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7daa48e62fa0ba002cffeddf8d520426a52d69a7':
| | * | | | | | | | | | | | | | | | | | | resolved conflicts for merge of be19dce8 to mnc-dev-plus-aospTao Bao2015-08-040-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|_|_|_|_|_|_|_|/ / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic11b543d45f565ffb5a1f2b7b06e953f0235bfb3
* | | | | | | | | | | | | | | | | | | | | am ea5d8f0a: am 0e2efab3: (-s ours) am 393d1e73: am 27c1ab20: Merge "udpater: Call fsync() after rename()."Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ea5d8f0affc1170fc9bd6ff05a00adca712f18d6':
| * | | | | | | | | | | | | | | | | | | | am 0e2efab3: (-s ours) am 393d1e73: am 27c1ab20: Merge "udpater: Call fsync() after rename()."Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0e2efab34546e1678855c979f06f0f56f4f38eb0':
| | * | | | | | | | | | | | | | | | | | | am 393d1e73: am 27c1ab20: Merge "udpater: Call fsync() after rename()."Tao Bao2015-08-041-0/+20
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '393d1e739fc10e526bd3b7b83836a266bfa24079': udpater: Call fsync() after rename().
* | | | | | | | | | | | | | | | | | | | | | am 3fd097f8: am 854ae7f9: (-s ours) am 2e979ef6: am 302779e7: Merge "recovery: Allow "Mount /system" for system_root_image."Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3fd097f8a81b57046f7200f659211971025ad7bf':
| * | | | | | | | | | | | | | | | | | | | | am 854ae7f9: (-s ours) am 2e979ef6: am 302779e7: Merge "recovery: Allow "Mount /system" for system_root_image."Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '854ae7f9ba8981e0122549dceae9b371ad4f7be1':
| | * | | | | | | | | | | | | | | | | | | | am 2e979ef6: am 302779e7: Merge "recovery: Allow "Mount /system" for system_root_image."Tao Bao2015-07-313-19/+39
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2e979ef6fd21e1681a8ec7ca2f5582ca8e14ddcd': recovery: Allow "Mount /system" for system_root_image.
* | | | | | | | | | | | | | | | | | | | | | | am 77de4783: am f3f27990: (-s ours) am 7666f65b: am 62e19231: Merge "updater: Hoist fsync() to outer loop."Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '77de478325225ae1adf8e669adff5cd5052cbea8':
| * | | | | | | | | | | | | | | | | | | | | | am f3f27990: (-s ours) am 7666f65b: am 62e19231: Merge "updater: Hoist fsync() to outer loop."Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f3f27990f23a338c02a52bea713bf391e7994028':
| | * | | | | | | | | | | | | | | | | | | | | am 7666f65b: am 62e19231: Merge "updater: Hoist fsync() to outer loop."Tao Bao2015-07-281-6/+5
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7666f65b2a1e4352c52df9fe7a0b26ce923a1477': updater: Hoist fsync() to outer loop.
* | | | | | | | | | | | | | | | | | | | | | | | am 05c4b53e: am cb0e7f2d: (-s ours) am 0622ccb3: am 6a4a33e3: Merge "applypatch: Fix the checking in WriteToPartition()."Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '05c4b53eb53c069ebb2433947193f7d613e4ff04':
| * | | | | | | | | | | | | | | | | | | | | | | am cb0e7f2d: (-s ours) am 0622ccb3: am 6a4a33e3: Merge "applypatch: Fix the checking in WriteToPartition()."Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'cb0e7f2da04b7dcaef50ec7a942cd5b5e64b4823':
| | * | | | | | | | | | | | | | | | | | | | | | am 0622ccb3: am 6a4a33e3: Merge "applypatch: Fix the checking in WriteToPartition()."Tao Bao2015-07-251-3/+4
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0622ccb34d504170b76b8f4dd5f0639794be679a': applypatch: Fix the checking in WriteToPartition().
* | | | | | | | | | | | | | | | | | | | | | | | | am f6bebbd7: am 33185233: (-s ours) am 3b753ad5: am dd738c11: Merge "applypatch: Support flash mode."Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f6bebbd72cf25acc65373cf26c3eac7d4b6bf686':
| * | | | | | | | | | | | | | | | | | | | | | | | am 33185233: (-s ours) am 3b753ad5: am dd738c11: Merge "applypatch: Support flash mode."Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '33185233541dda72af3fd8a1fc1786251c88e122':
| | * | | | | | | | | | | | | | | | | | | | | | | am 3b753ad5: am dd738c11: Merge "applypatch: Support flash mode."Tao Bao2015-07-243-16/+97
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3b753ad5da2ade45548f95b4a76219db3043db49': applypatch: Support flash mode.
* | | | | | | | | | | | | | | | | | | | | | | | | | am d37f91d1: am f0654b44: (-s ours) am c69095d8: am afb8f320: Merge "uncrypt: Support file level encryption."Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd37f91d18da6e87eb3f2d11dd1cd1645e255cd38':
| * | | | | | | | | | | | | | | | | | | | | | | | | am f0654b44: (-s ours) am c69095d8: am afb8f320: Merge "uncrypt: Support file level encryption."Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f0654b4414c750703f50d4e84319d31d57e86284':
| | * | | | | | | | | | | | | | | | | | | | | | | | am c69095d8: am afb8f320: Merge "uncrypt: Support file level encryption."Tao Bao2015-07-241-1/+1
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c69095d8cd9685f9d9c7e3863a5e087efeadba3a': uncrypt: Support file level encryption.
* | | | | | | | | | | | | | | | | | | | | | | | | | | am c73e18f0: am 7665d443: (-s ours) am 87f2c673: am cc3c3414: Merge "updater: libapplypatch needs libbase now."Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c73e18f0a433268300cfaa767b06424df71ff63b':
| * | | | | | | | | | | | | | | | | | | | | | | | | | am 7665d443: (-s ours) am 87f2c673: am cc3c3414: Merge "updater: libapplypatch needs libbase now."Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7665d443e2e3de775661068c29df38581476cc71':
| | * | | | | | | | | | | | | | | | | | | | | | | | | am 87f2c673: am cc3c3414: Merge "updater: libapplypatch needs libbase now."Tao Bao2015-07-241-1/+1
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '87f2c673dfbc310d1a80ea1c3b00d9e1adb1947f': updater: libapplypatch needs libbase now.
* | | | | | | | | | | | | | | | | | | | | | | | | | | | am f075f9a1: am 5040636a: (-s ours) am 1dc71bec: am cfd9d9c7: Merge "applypatch: Refactor strtok()."Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f075f9a17ab01fa13a651c675aed2837a8bf3191':
| * | | | | | | | | | | | | | | | | | | | | | | | | | | am 5040636a: (-s ours) am 1dc71bec: am cfd9d9c7: Merge "applypatch: Refactor strtok()."Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '5040636abd451e4e45227493f328f1cda39a5177':
| | * | | | | | | | | | | | | | | | | | | | | | | | | | am 1dc71bec: am cfd9d9c7: Merge "applypatch: Refactor strtok()."Tao Bao2015-07-242-86/+56
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1dc71bec8d3dc3c1eb7eb40aed2eeb04b47f75ce': applypatch: Refactor strtok().
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | am ca66fc1c: am 596219d9: (-s ours) am b91e7005: am 85090d0c: Merge "recovery: Switch fuse_* to C++."Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ca66fc1cb204dfe9e9b8c8eaad5be95a78207212':
| * | | | | | | | | | | | | | | | | | | | | | | | | | | | am 596219d9: (-s ours) am b91e7005: am 85090d0c: Merge "recovery: Switch fuse_* to C++."Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '596219d9c2ea760a473c9f90bfa0317c326913af':
| | * | | | | | | | | | | | | | | | | | | | | | | | | | | am b91e7005: am 85090d0c: Merge "recovery: Switch fuse_* to C++."Tao Bao2015-07-245-29/+14
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b91e700544e0fca378a7fb5f8c807842bb284986': recovery: Switch fuse_* to C++.
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am d33e21a7: am 0e7368a5: (-s ours) am 328cb8cb: am 025c0e79: Merge "Clean up LOG functions."Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd33e21a7ae7b37590ad41fac56f87141c597616c':
| * | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 0e7368a5: (-s ours) am 328cb8cb: am 025c0e79: Merge "Clean up LOG functions."Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0e7368a505f647a07cf3b6b93622b48ef27c3f45':
| | * | | | | | | | | | | | | | | | | | | | | | | | | | | | am 328cb8cb: am 025c0e79: Merge "Clean up LOG functions."Tao Bao2015-07-173-20/+20
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '328cb8cb5a434ba9d897443a408d11e8ee8c64a0': Clean up LOG functions.
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 9da33c67: am 3231c7ca: (-s ours) am 307eecfd: am 0bacbfd0: Merge "recovery: Switch applypatch/ and updater/ to cpp."Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9da33c67655c5d113f75a1f493b51cfee86d298c':
| * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 3231c7ca: (-s ours) am 307eecfd: am 0bacbfd0: Merge "recovery: Switch applypatch/ and updater/ to cpp."Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3231c7ca7f6534adf50474c8db57b1ba3c6cfe2f':
| | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 307eecfd: am 0bacbfd0: Merge "recovery: Switch applypatch/ and updater/ to cpp."Tao Bao2015-07-1515-300/+304
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '307eecfdc7dc73ce8f53f742e3c468e63b42f0e2': recovery: Switch applypatch/ and updater/ to cpp.
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am f0e341b4: am 5391dfdb: (-s ours) am f2853e27: am 65c230f4: Merge "Revert "Zero blocks before BLKDISCARD""Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f0e341b44949564de0d33361c1284b8aff19a8bd':
| * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 5391dfdb: (-s ours) am f2853e27: am 65c230f4: Merge "Revert "Zero blocks before BLKDISCARD""Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '5391dfdb35221f782a4d0da29e31f4725dc507d3':
| | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am f2853e27: am 65c230f4: Merge "Revert "Zero blocks before BLKDISCARD""Tao Bao2015-07-110-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f2853e27472728d3a24293ab4bfc445c74be6a15': Revert "Zero blocks before BLKDISCARD"
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 3ac4765a: am 1915dd56: (-s ours) am 10cf0942: Merge "Revert "Change init sequence to support file level encryption"" into mnc-devPaul Lawrence2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3ac4765a14334f0aa574b5cffb5349cc1c214cfe':
| * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 1915dd56: (-s ours) am 10cf0942: Merge "Revert "Change init sequence to support file level encryption"" into mnc-devPaul Lawrence2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1915dd56e3cdc73d4d83453971486b64880e4603':
| | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 10cf0942: Merge "Revert "Change init sequence to support file level encryption"" into mnc-devPaul Lawrence2015-07-071-3/+3
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '10cf0942a7f4b2bfd539416e4767aaaf866a6527': Revert "Change init sequence to support file level encryption"
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am b3f4921c: am 2fc4d435: (-s ours) am 4e6507f3: am 2490dbc9: Merge "Allow mounting squashfs partitions"Tao Bao2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b3f4921c67bdc3260bfd6274c2ab53d10b53a9c2':
| * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 2fc4d435: (-s ours) am 4e6507f3: am 2490dbc9: Merge "Allow mounting squashfs partitions"Tao Bao2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2fc4d4359b268cbf3d0f73d670a219f12d440e86':
| | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 4e6507f3: am 2490dbc9: Merge "Allow mounting squashfs partitions"Tao Bao2015-07-070-0/+0
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '4e6507f32817e2943b1f27d12f56b485993c2a44': Allow mounting squashfs partitions
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 04d9b850: am 7624d0d8: (-s ours) am d6b2b65d: Merge "Change init sequence to support file level encryption" into mnc-devPaul Lawrence2015-08-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '04d9b8501a58de6ee7c5aa3635673150bf88cb06':
| * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 7624d0d8: (-s ours) am d6b2b65d: Merge "Change init sequence to support file level encryption" into mnc-devPaul Lawrence2015-08-270-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7624d0d830ad6b185f0ba50f5ffd8b0e20386228':
| | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am d6b2b65d: Merge "Change init sequence to support file level encryption" into mnc-devPaul Lawrence2015-07-061-3/+3
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd6b2b65dc40c5af7feecf634b8ae55bf14fe8e6c': Change init sequence to support file level encryption
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 165c6ad3: am 5a16eba2: am eef99138: Merge "updater: Remove the unused isunresumable in SaveStash()."Tao Bao2015-08-261-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '165c6ad300380fcd132a676f809560a606894e52': updater: Remove the unused isunresumable in SaveStash().
| * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 5a16eba2: am eef99138: Merge "updater: Remove the unused isunresumable in SaveStash()."Tao Bao2015-08-261-3/+3
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '5a16eba2c323ecb4f1dd1ecb2ecea7a0ac8bdbb5': updater: Remove the unused isunresumable in SaveStash().
| | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am eef99138: Merge "updater: Remove the unused isunresumable in SaveStash()."Tao Bao2015-08-261-3/+3
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | / / / / / / / / / | | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'eef991389c7f739dd80bbe6e4a3699322c12dcfb': updater: Remove the unused isunresumable in SaveStash().
| | | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge "updater: Remove the unused isunresumable in SaveStash()."Tao Bao2015-08-261-3/+3
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | updater: Remove the unused isunresumable in SaveStash().Tao Bao2015-08-261-3/+3
| | | |/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6a8d9bea4c1cd8ea7b534682061b90e893b227a2
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 1a3ccc88: am dc61d17d: am 50c17f9d: Merge "GOOGLEGMS-749 Fix integer overflow while applying block based OTA package"Tao Bao2015-08-261-46/+48
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1a3ccc881f451ff733a587b9fac8d73a83c12dfd': GOOGLEGMS-749 Fix integer overflow while applying block based OTA package
| * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am dc61d17d: am 50c17f9d: Merge "GOOGLEGMS-749 Fix integer overflow while applying block based OTA package"Tao Bao2015-08-261-46/+48
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'dc61d17d5b3c9e85a2863ec461170263325f1466': GOOGLEGMS-749 Fix integer overflow while applying block based OTA package
| | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 50c17f9d: Merge "GOOGLEGMS-749 Fix integer overflow while applying block based OTA package"Tao Bao2015-08-261-46/+48
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '50c17f9da69ed3de0cd3ed032c50af067c1dc1f1': GOOGLEGMS-749 Fix integer overflow while applying block based OTA package
| | | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge "GOOGLEGMS-749 Fix integer overflow while applying block based OTA package"Tao Bao2015-08-261-46/+48
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GOOGLEGMS-749 Fix integer overflow while applying block based OTA packageShrinivas Sahukar2015-08-221-46/+48
| | | |/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is an integer overflow when the size of system goes beyond the signed int limits. Hence changing pos to size_t. Change-Id: I6e5e1b2f0e72030b30a6df09a01642f4c82abc79
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am ba781587: am 337db14f: recovery: Factor out wear_ui.{cpp,h} into bootable/recovery.Tao Bao2015-08-253-0/+788
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ba781587cb1926782d7561aa7dcb5db44d09a70b': recovery: Factor out wear_ui.{cpp,h} into bootable/recovery.
| * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 337db14f: recovery: Factor out wear_ui.{cpp,h} into bootable/recovery.Tao Bao2015-08-253-0/+788
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '337db14f274fc73dd540aa71d2c21c431fe686ec': recovery: Factor out wear_ui.{cpp,h} into bootable/recovery.
| | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | recovery: Factor out wear_ui.{cpp,h} into bootable/recovery.Tao Bao2015-08-253-0/+788
| | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Every watch has a (mostly identical) copy of the wear_ui. Factor them out into a single copy for easier maintenance. Device-specific settings should be defined in recovery_ui.cpp that inherits WearRecoveryUI class. Bug: 22451422 Change-Id: Id07efca37d1b1d330e6327506c7b73ccf6ae9241
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am f0355aeb: am dbbdcf3f: am 93fa4b67: Merge "edify: Switch to C++."Tao Bao2015-08-215-37/+27
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f0355aebe8bc833a6d287e11bf8cc9a56c43d32d': edify: Switch to C++.
| * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am dbbdcf3f: am 93fa4b67: Merge "edify: Switch to C++."Tao Bao2015-08-215-37/+27
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'dbbdcf3fd817128f89474f9ea8c84743fc648a1a': edify: Switch to C++.
| | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 93fa4b67: Merge "edify: Switch to C++."Tao Bao2015-08-215-37/+27
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | / / / / / / / | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '93fa4b677cac9288e936915f15ca8e5f76a4e4b6': edify: Switch to C++.
| | | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge "edify: Switch to C++."Tao Bao2015-08-215-37/+27
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | edify: Switch to C++.Tao Bao2015-08-205-37/+27
| | | |/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I71aede6e29af1dc4bb858a62016c8035db5d3452
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am e57ca0ec: am 4854e292: am ad509fd4: Merge "Fix potential crash"Tao Bao2015-08-111-5/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e57ca0ec07f357a1ef38d9a7439ea080bada4e74': Fix potential crash
| * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 4854e292: am ad509fd4: Merge "Fix potential crash"Tao Bao2015-08-111-5/+9
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '4854e292e0cd0eb58bce4488dc849273904d9302': Fix potential crash
| | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am ad509fd4: Merge "Fix potential crash"Tao Bao2015-08-111-5/+9
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ad509fd4a2c597ced8e53b0817f754cb2209b98a': Fix potential crash
| | | * | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge "Fix potential crash"Tao Bao2015-08-111-5/+9
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix potential crashJeremy Compostella2015-08-051-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Malloc might fail when replacing package path. In this case, print a clear error message in the logs and let the OTA fails. Change-Id: I7209d95edc025e3ee1b4478f5e04f6e852d97205 Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com> Signed-off-by: Gaelle Nassiet <gaellex.nassiet@intel.com>
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 0d42440e: am 434a1761: am 0d46c7ab: Merge "Use unique_ptr and unique_fd to manager FDs."Tao Bao2015-08-103-16/+91
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0d42440ecb1c664862eaa7848cc45fb7ff0fb514': Use unique_ptr and unique_fd to manager FDs.
| * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 434a1761: am 0d46c7ab: Merge "Use unique_ptr and unique_fd to manager FDs."Tao Bao2015-08-103-16/+91
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '434a1761aac48b8e3c13d5a6cb3edd90c8667f6f': Use unique_ptr and unique_fd to manager FDs.
| | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 0d46c7ab: Merge "Use unique_ptr and unique_fd to manager FDs."Tao Bao2015-08-103-16/+91
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0d46c7ab02eb97d6b4b2e26b9202fd9b4e9dd8c8': Use unique_ptr and unique_fd to manager FDs.
| | | * | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge "Use unique_ptr and unique_fd to manager FDs."Tao Bao2015-08-103-16/+91
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | | | | | | | | | | | | | | Use unique_ptr and unique_fd to manager FDs.Tao Bao2015-08-103-16/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up leaky file descriptors in uncrypt/uncrypt.cpp. Add unique_fd for open() and unique_file for fopen() to close FDs on destruction. Bug: 21496020 Change-Id: I0174db0de9d5f59cd43b44757b8ef0f5912c91a2
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 36ca3800: am 7f89389a: am 7c511184: Merge "updater: Clean up char* with std::string."Tao Bao2015-08-105-288/+185
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '36ca3800bc5231972ecfde53d1241e715a98ad4e': updater: Clean up char* with std::string.
| * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 7f89389a: am 7c511184: Merge "updater: Clean up char* with std::string."Tao Bao2015-08-105-288/+185
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7f89389a0b55d13ee1c9026c33f17dc1cc9c7ace': updater: Clean up char* with std::string.
| | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 7c511184: Merge "updater: Clean up char* with std::string."Tao Bao2015-08-105-288/+185
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7c511184bf3ed44f3590027730a64d565c0e12ee': updater: Clean up char* with std::string.
| | | * | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge "updater: Clean up char* with std::string."Tao Bao2015-08-105-288/+185
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | | | | | | | | | updater: Clean up char* with std::string.Tao Bao2015-08-065-288/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So we can remove a few free()s. And also replace a few pointers with references. Change-Id: I4b6332216704f4f9ea4a044b8d4bb7aa42a7ef26
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am f2a23a94: am 236b3eb6: am e67104a6: Merge "Use CPPFLAGS instead of CFLAGS."Dan Albert2015-08-081-4/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f2a23a94cb9649ad7888749a82976ce01988e0f9': Use CPPFLAGS instead of CFLAGS.
| * | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 236b3eb6: am e67104a6: Merge "Use CPPFLAGS instead of CFLAGS."Dan Albert2015-08-081-4/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '236b3eb6a085bd0762849b5feca880f6dc63787d': Use CPPFLAGS instead of CFLAGS.
| | * | | | | | | | | | | | | | | | | | | | | | | | | | | | | am e67104a6: Merge "Use CPPFLAGS instead of CFLAGS."Dan Albert2015-08-081-4/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e67104a6a778f70bd479e737b09eb32c835e250e': Use CPPFLAGS instead of CFLAGS.
| | | * | | | | | | | | | | | | | | | | | | | | | | | | | | Merge "Use CPPFLAGS instead of CFLAGS."Dan Albert2015-08-081-4/+4
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | | | | | | | | | | | | | Use CPPFLAGS instead of CFLAGS.Dan Albert2015-08-081-4/+4
| | | |/ / / / / / / / / / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While we build these as C, to the build system they are technically C++ and are subject to the global CPPFLAGS. Set LOCAL_CPPFLAGS here instead of LOCAL_CFLAGS so we can be sure we override anything provided by the build system. Bug: http://b/23043421 Change-Id: I344b54ae4ff9f142365a42c33ba160c1be17a342
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am 2496489c: am a9390df6: am 06689dc5: Merge "Fix recovery image build."Elliott Hughes2015-08-082-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2496489cb4ec75f13b0d30f580332e74bf4a2fa8': Fix recovery image build.
| * | | | | | | | | | | | | | | | | | | | | | | | | | | | | am a9390df6: am 06689dc5: Merge "Fix recovery image build."Elliott Hughes2015-08-072-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a9390df6c6b8d6cc98b102aeffc8e7acd300c857': Fix recovery image build.
| | * | | | | | | | | | | | | | | | | | | | | | | | | | | | am 06689dc5: Merge "Fix recovery image build."Elliott Hughes2015-08-072-2/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '06689dc53d14ab0449c64c097d2937179f986873': Fix recovery image build.
| | | * | | | | | | | | | | | | | | | | | | | | | | | | | Merge "Fix recovery image build."Elliott Hughes2015-08-072-2/+2
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | | | | | | | Fix recovery image build.Elliott Hughes2015-08-072-2/+2
| | | |/ / / / / / / / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A recent adb cleanup changed the signature of adb_main. Change-Id: I98d084f999966f1a7aa94c63e9ed996b3375096d
* | | | | | | | | | | | | | | | | | | | | | | | | | | | am 68e77434: resolved conflicts for merge of 5aa3ce3a to mnc-dr-dev-plus-aospTao Bao2015-08-040-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '68e77434d8967baf7f1a5b79a61febcc60e6cb0a': udpater: Call fsync() after rename().
| * | | | | | | | | | | | | | | | | | | | | | | | | | | resolved conflicts for merge of 5aa3ce3a to mnc-dr-dev-plus-aospTao Bao2015-08-040-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iba4d2e5c5c7d0e0c1088403ff32d8f0d12da925d
| | * | | | | | | | | | | | | | | | | | | | | | | | | | am be19dce8: udpater: Call fsync() after rename().Tao Bao2015-08-041-0/+20
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'be19dce86ce7d4a83f1cfcd11db393f8be8f4397': udpater: Call fsync() after rename().
| | | * | | | | | | | | | | | | | | | | | | | | | | | | udpater: Call fsync() after rename().Tao Bao2015-08-041-0/+20
| | | | |_|_|_|_|_|/ / / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to ensure the renamed filename reaches the underlying storage. Bug: 22840552 Change-Id: I824b6e9d8a9c5966035be7b42a73678d07376342 (cherry picked from commit dc3922622a94af4f6412fd68e8f075f839ab2348)
* | | | | | | | | | | | | | | | | | | | | | | | | | | am ddbfdf79: am 393d1e73: am 27c1ab20: Merge "udpater: Call fsync() after rename()."Tao Bao2015-08-041-0/+20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ddbfdf79518699b232837bae1052e70b701bd524': udpater: Call fsync() after rename().
| * | | | | | | | | | | | | | | | | | | | | | | | | | am 393d1e73: am 27c1ab20: Merge "udpater: Call fsync() after rename()."Tao Bao2015-08-041-0/+20
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '393d1e739fc10e526bd3b7b83836a266bfa24079': udpater: Call fsync() after rename().
| | * | | | | | | | | | | | | | | | | | | | | | | | | am 27c1ab20: Merge "udpater: Call fsync() after rename()."Tao Bao2015-08-041-0/+20
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | / / / / / / / | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | * commit '27c1ab2095f25253d0920eb6afe7cd2791a708dc': udpater: Call fsync() after rename().
| | | * | | | | | | | | | | | | | | | | | | | | | | Merge "udpater: Call fsync() after rename()."Tao Bao2015-08-041-0/+20
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | | | | udpater: Call fsync() after rename().Tao Bao2015-08-041-0/+20
| | | |/ / / / / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to ensure the renamed filename reaches the underlying storage. Bug: 22840552 Change-Id: Ide2e753a2038691d472b6ee173cbf68ac998a084
* | | | | | | | | | | | | | | | | | | | | | | | | am 414c576c: am 2e979ef6: am 302779e7: Merge "recovery: Allow "Mount /system" for system_root_image."Tao Bao2015-08-013-19/+39
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '414c576cf8fb5a8defef40d72f6c75012acdecab': recovery: Allow "Mount /system" for system_root_image.
| * | | | | | | | | | | | | | | | | | | | | | | | am 2e979ef6: am 302779e7: Merge "recovery: Allow "Mount /system" for system_root_image."Tao Bao2015-08-013-19/+39
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2e979ef6fd21e1681a8ec7ca2f5582ca8e14ddcd': recovery: Allow "Mount /system" for system_root_image.
| | * | | | | | | | | | | | | | | | | | | | | | | am 302779e7: Merge "recovery: Allow "Mount /system" for system_root_image."Tao Bao2015-07-313-19/+39
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '302779e71cb1be68f60cb044c85436d4d6bcfecc': recovery: Allow "Mount /system" for system_root_image.
| | | * | | | | | | | | | | | | | | | | | | | | Merge "recovery: Allow "Mount /system" for system_root_image."Tao Bao2015-07-313-19/+39
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | | | | | | | recovery: Allow "Mount /system" for system_root_image.Tao Bao2015-07-313-19/+39
| | | |/ / / / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When system images contain the root directory, there is no entry of "/system" in the fstab. Change it to look for "/" instead if ro.build.system_root_image is true. We actually mount the partition to /system_root instead, and create a symlink to /system_root/system for /system. This allows "adb shell" to work properly. Bug: 22855115 Change-Id: Ibac493a5a9320c98ee3b60bd2cc635b925f5454a
* | | | | | | | | | | | | | | | | | | | | | | | am 7d71725d: am 7666f65b: am 62e19231: Merge "updater: Hoist fsync() to outer loop."Tao Bao2015-07-281-6/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7d71725d7667afa6b705fe0e20151e03d9db75d2': updater: Hoist fsync() to outer loop.
| * | | | | | | | | | | | | | | | | | | | | | | am 7666f65b: am 62e19231: Merge "updater: Hoist fsync() to outer loop."Tao Bao2015-07-281-6/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7666f65b2a1e4352c52df9fe7a0b26ce923a1477': updater: Hoist fsync() to outer loop.
| | * | | | | | | | | | | | | | | | | | | | | | am 62e19231: Merge "updater: Hoist fsync() to outer loop."Tao Bao2015-07-281-6/+5
| | |\| | | | | | | | | | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '62e1923194de067c0ac589abcfc4f04fdddf2b1a': updater: Hoist fsync() to outer loop.
| | | * | | | | | | | | | | | | | | | | | | | Merge "updater: Hoist fsync() to outer loop."Tao Bao2015-07-281-6/+5
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | | | | | | updater: Hoist fsync() to outer loop.Tao Bao2015-07-271-6/+5
| | | |/ / / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the fsync() inside write_all() may be called multiple times when performing a command. Move that to the outer loop and call it only after completing the command. Also remove the O_SYNC flag when writing a stash. Change-Id: I71e51d76051a2f7f504eef1aa585d2cb7a000d80
* | | | | | | | | | | | | | | | | | | | | | | am 4b3ad009: am 0622ccb3: am 6a4a33e3: Merge "applypatch: Fix the checking in WriteToPartition()."Tao Bao2015-07-251-3/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '4b3ad009f7a1dd0ac85d996d9f3a87a6a83b0e97': applypatch: Fix the checking in WriteToPartition().
| * | | | | | | | | | | | | | | | | | | | | | am 0622ccb3: am 6a4a33e3: Merge "applypatch: Fix the checking in WriteToPartition()."Tao Bao2015-07-251-3/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0622ccb34d504170b76b8f4dd5f0639794be679a': applypatch: Fix the checking in WriteToPartition().
| | * | | | | | | | | | | | | | | | | | | | | am 6a4a33e3: Merge "applypatch: Fix the checking in WriteToPartition()."Tao Bao2015-07-251-3/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6a4a33e39ea2fa8626335f6b9cccf407c71c0588': applypatch: Fix the checking in WriteToPartition().
| | | * | | | | | | | | | | | | | | | | | | Merge "applypatch: Fix the checking in WriteToPartition()."Tao Bao2015-07-251-3/+4
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | | | | | applypatch: Fix the checking in WriteToPartition().Tao Bao2015-07-251-3/+4
| | | |/ / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WriteToPartition() should consider a target name as valid if it contains multiple colons. But only the first two fields will be used. Bug: 22725128 Change-Id: Ie9404375e24045c115595eec6ce5b6423da8fc3e
* | | | | | | | | | | | | | | | | | | | | | am 6a06034d: am 3b753ad5: am dd738c11: Merge "applypatch: Support flash mode."Tao Bao2015-07-240-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6a06034d031464b220bc78bda2654f80d6ef1ad1': applypatch: Support flash mode.
| * | | | | | | | | | | | | | | | | | | | | am 3b753ad5: am dd738c11: Merge "applypatch: Support flash mode."Tao Bao2015-07-243-16/+97
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3b753ad5da2ade45548f95b4a76219db3043db49': applypatch: Support flash mode.
| | * | | | | | | | | | | | | | | | | | | | am dd738c11: Merge "applypatch: Support flash mode."Tao Bao2015-07-243-16/+97
| | |\| | | | | | | | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'dd738c11a49d594183dde9f0e46f56c7a575900a': applypatch: Support flash mode.
| | | * | | | | | | | | | | | | | | | | | Merge "applypatch: Support flash mode."Tao Bao2015-07-243-16/+97
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | | | | applypatch: Support flash mode.Tao Bao2015-07-243-16/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We may carry a full copy of recovery image in the /system, and use /system/bin/install-recovery.sh to install the recovery. This CL adds support to flash the recovery partition with the given image. Bug: 22641135 Change-Id: I7a275b62fdd1bf41f97f6aab62d0200f7dae5aa1 (cherry picked from commit 68c5a6796737bb583a8bdfa4c9cd9c7f12ef4276)
* | | | | | | | | | | | | | | | | | | | | | am e657f0fb: am c69095d8: am afb8f320: Merge "uncrypt: Support file level encryption."Tao Bao2015-07-240-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e657f0fb8ec21b09831ed19d18ba05a7630a4fb0': uncrypt: Support file level encryption.
| * | | | | | | | | | | | | | | | | | | | | am c69095d8: am afb8f320: Merge "uncrypt: Support file level encryption."Tao Bao2015-07-240-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c69095d8cd9685f9d9c7e3863a5e087efeadba3a': uncrypt: Support file level encryption.
| | * | | | | | | | | | | | | | | | | | | | am afb8f320: Merge "uncrypt: Support file level encryption."Tao Bao2015-07-241-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'afb8f320bf244630035e011f7840f90120ec4f8f': uncrypt: Support file level encryption.
| | | * | | | | | | | | | | | | | | | | | Merge "uncrypt: Support file level encryption."Tao Bao2015-07-241-1/+1
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | uncrypt: Support file level encryption.Tao Bao2015-07-241-1/+1
| | | |/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 22534003 Change-Id: I2bc22418c416491da573875dce78daed24f2c046 (cherry picked from commit 6e9dda70cb00dd1f1948e071d7df7ca6e2bd8332)
* | | | | | | | | | | | | | | | | | | | am 3f640620: am 87f2c673: am cc3c3414: Merge "updater: libapplypatch needs libbase now."Tao Bao2015-07-240-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3f6406204c9886ee59209a98e1bb8b64ae615656': updater: libapplypatch needs libbase now.
| * | | | | | | | | | | | | | | | | | | am 87f2c673: am cc3c3414: Merge "updater: libapplypatch needs libbase now."Tao Bao2015-07-241-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '87f2c673dfbc310d1a80ea1c3b00d9e1adb1947f': updater: libapplypatch needs libbase now.
| | * | | | | | | | | | | | | | | | | | am cc3c3414: Merge "updater: libapplypatch needs libbase now."Tao Bao2015-07-241-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'cc3c34145e4816a84fe597ce273b016ae9587530': updater: libapplypatch needs libbase now.
| | | * | | | | | | | | | | | | | | | Merge "updater: libapplypatch needs libbase now."Tao Bao2015-07-241-1/+1
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | | updater: libapplypatch needs libbase now.Tao Bao2015-07-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I18da9e6da64fccab495dc5a96e3efd95cc6d88bf (cherry picked from commit 1b1ea17d554d127a970afe1d6004dd4627cd596e)
* | | | | | | | | | | | | | | | | | | | resolved conflicts for merge of 49a24460 to masterTao Bao2015-07-240-0/+0
|\| | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | am 1dc71bec: am cfd9d9c7: Merge "applypatch: Refactor strtok()."Tao Bao2015-07-242-86/+56
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1dc71bec8d3dc3c1eb7eb40aed2eeb04b47f75ce': applypatch: Refactor strtok().
| | * | | | | | | | | | | | | | | | | | am cfd9d9c7: Merge "applypatch: Refactor strtok()."Tao Bao2015-07-242-86/+56
| | |\| | | | | | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'cfd9d9c7ce03b847946977a98efcbfca2f067fd3': applypatch: Refactor strtok().
| | | * | | | | | | | | | | | | | | | Merge "applypatch: Refactor strtok()."Tao Bao2015-07-242-86/+56
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | applypatch: Refactor strtok().Tao Bao2015-07-242-86/+56
| | | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have android::base::Split() for the work. Change-Id: I0fb562feb203c9b15e2f431d8e84355fd682376a (cherry picked from commit 0a47ce27de454e272a883a0c452fad627fd7f419)
* | | | | | | | | | | | | | | | | | am 052796ea: am b91e7005: am 85090d0c: Merge "recovery: Switch fuse_* to C++."Tao Bao2015-07-240-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '052796ea09bcf33f7031aa8218628bf1c9ced02a': recovery: Switch fuse_* to C++.
| * | | | | | | | | | | | | | | | | am b91e7005: am 85090d0c: Merge "recovery: Switch fuse_* to C++."Tao Bao2015-07-240-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b91e700544e0fca378a7fb5f8c807842bb284986': recovery: Switch fuse_* to C++.
| | * | | | | | | | | | | | | | | | am 85090d0c: Merge "recovery: Switch fuse_* to C++."Tao Bao2015-07-205-29/+14
| | |\| | | | | | | | | | | | | | | | | | |_|_|_|_|_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '85090d0c98f1684147fc180a8b2adea93e4af642': recovery: Switch fuse_* to C++.
| | | * | | | | | | | | | | | | | Merge "recovery: Switch fuse_* to C++."Tao Bao2015-07-205-29/+14
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | recovery: Switch fuse_* to C++.Tao Bao2015-07-205-29/+14
| | | |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I68770ad1a9e99caee292f8010cfd37dfea3acc64
* | | | | | | | | | | | | | | | | am 0d4e0026: recovery: Switch fuse_* to C++.Tao Bao2015-07-245-29/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0d4e002670064157aa34ba8c391184151b7d402a': recovery: Switch fuse_* to C++.
| * | | | | | | | | | | | | | | | recovery: Switch fuse_* to C++.Tao Bao2015-07-245-29/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Id50c3e6febd0ab61f10a654b9b265cf21a2d1701 (cherry picked from commit 71dc365f25676cfb3f62dbb7163697a8c3c5243d)
* | | | | | | | | | | | | | | | | applypatch: Support flash mode.Tao Bao2015-07-223-16/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We may carry a full copy of recovery image in the /system, and use /system/bin/install-recovery.sh to install the recovery. This CL adds support to flash the recovery partition with the given image. Bug: 22641135 Change-Id: I345eaaee269f6443527f45a9be7e4ee47f6b2b39
* | | | | | | | | | | | | | | | | Merge "updater: libapplypatch needs libbase now."Tao Bao2015-07-171-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | updater: libapplypatch needs libbase now.Tao Bao2015-07-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ibe3173edd6274b61bd9ca5ec394d7f6b4a403639
* | | | | | | | | | | | | | | | | | applypatch: Refactor strtok().Tao Bao2015-07-172-86/+56
|/ / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have android::base::Split() for the work. Change-Id: Ic529db42090f700e6455d465c8b84b7f52d34d63
* | | | | | | | | | | | | | | | | am f2c4e4ce: am 6e9dda70: uncrypt: Support file level encryption.Tao Bao2015-07-171-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f2c4e4ce767103603cdc6137339f013af3dc1ad1': uncrypt: Support file level encryption.
| * | | | | | | | | | | | | | | | am 6e9dda70: uncrypt: Support file level encryption.Tao Bao2015-07-171-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6e9dda70cb00dd1f1948e071d7df7ca6e2bd8332': uncrypt: Support file level encryption.
| | * | | | | | | | | | | | | | | uncrypt: Support file level encryption.Tao Bao2015-07-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 22534003 Change-Id: Iaf42a6e5b40cfef904de66e212ae8b77b2953ef7
* | | | | | | | | | | | | | | | | am ac780c90: am 328cb8cb: am 025c0e79: Merge "Clean up LOG functions."Tao Bao2015-07-170-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ac780c904670f61083f6831bb2d09bc0a15a0bd6': Clean up LOG functions.
| * | | | | | | | | | | | | | | | am 328cb8cb: am 025c0e79: Merge "Clean up LOG functions."Tao Bao2015-07-173-20/+20
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '328cb8cb5a434ba9d897443a408d11e8ee8c64a0': Clean up LOG functions.
| | * | | | | | | | | | | | | | | am 025c0e79: Merge "Clean up LOG functions."Tao Bao2015-07-173-20/+20
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / / / / | | | |/| | | | | | / / / / / / / | | | |_|_|_|_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | * commit '025c0e79c3e05babd4df0bab8249466b489c0870': Clean up LOG functions.
| | | * | | | | | | | | | | | | Merge "Clean up LOG functions."Tao Bao2015-07-173-20/+20
| | | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | Clean up LOG functions.Tao Bao2015-07-173-20/+20
| | | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For fatal errors, use LOGE to show messages. Bug: 22236461 Change-Id: I2b7d761576894ac37fcbadcba690ae14affe8f07 (cherry picked from commit d7d0f7503456c3d275a49f90be35e03f02c51bbd)
* | | | | | | | | | | | | | | | Clean up LOG functions.Tao Bao2015-07-163-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For fatal errors, use LOGE to show messages. Bug: 22236461 Change-Id: Ie2ce7ec769f4502d732fbb53fb7b303c0cf9ed68
* | | | | | | | | | | | | | | | am 48248273: am 307eecfd: am 0bacbfd0: Merge "recovery: Switch applypatch/ and updater/ to cpp."Tao Bao2015-07-140-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '4824827340cc76927f8b24d000638624b15021ac': recovery: Switch applypatch/ and updater/ to cpp.
| * | | | | | | | | | | | | | | am 307eecfd: am 0bacbfd0: Merge "recovery: Switch applypatch/ and updater/ to cpp."Tao Bao2015-07-1415-300/+304
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '307eecfdc7dc73ce8f53f742e3c468e63b42f0e2': recovery: Switch applypatch/ and updater/ to cpp.
| | * | | | | | | | | | | | | | am 0bacbfd0: Merge "recovery: Switch applypatch/ and updater/ to cpp."Tao Bao2015-07-1415-300/+304
| | |\| | | | | | | | | | | | | | | | |_|_|_|_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0bacbfd03c866b9078f86216e6786da91238ac91': recovery: Switch applypatch/ and updater/ to cpp.
| | | * | | | | | | | | | | | Merge "recovery: Switch applypatch/ and updater/ to cpp."Tao Bao2015-07-1415-300/+304
| | | |\ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | recovery: Switch applypatch/ and updater/ to cpp.Tao Bao2015-07-1415-300/+304
| | | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mostly trivial changes to make cpp compiler happy. Change-Id: I69bd1d96fcccf506007f6144faf37e11cfba1270
* | | | | | | | | | | | | | | recovery: Switch applypatch/ and updater/ to cpp.Tao Bao2015-07-1415-300/+304
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mostly trivial changes to make cpp compiler happy. Change-Id: I1b0481465c67c3bbca35a839d0764190d84ff34e (cherry picked from commit ba9a42aa7e10686de186636fe9fecbf8c4cc7c19)
* | | | | | | | | | | | | | | am a91335ae: am 90c75b0b: Change init sequence to support file level encryptionPaul Lawrence2015-07-141-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a91335aedcdf1eae07e82bb4f247616832f05928': Change init sequence to support file level encryption
| * | | | | | | | | | | | | | am 90c75b0b: Change init sequence to support file level encryptionPaul Lawrence2015-07-131-3/+3
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '90c75b0beb375b8d261e2df92292e9b542470f6e': Change init sequence to support file level encryption
| | * | | | | | | | | | | | | Change init sequence to support file level encryptionPaul Lawrence2015-07-071-3/+3
| | | |_|/ / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | File level encryption must get the key between mounting userdata and calling post_fs_data when the directories are created. This requires access to keymaster, which in turn is found from a system property. Split property loaded into system and data, and load in right order. Bug: 22233063 Change-Id: I409c12e3f4a8cef474eb48818e96760fe292cc49
* | | | | | | | | | | | | | am 79e95b2d: am f2853e27: am 65c230f4: Merge "Revert "Zero blocks before BLKDISCARD""Tao Bao2015-07-110-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '79e95b2d167becd93e7c456e5aa0c482edaeefcc': Revert "Zero blocks before BLKDISCARD"
| * | | | | | | | | | | | | am f2853e27: am 65c230f4: Merge "Revert "Zero blocks before BLKDISCARD""Tao Bao2015-07-110-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f2853e27472728d3a24293ab4bfc445c74be6a15': Revert "Zero blocks before BLKDISCARD"
| | * | | | | | | | | | | | am 65c230f4: Merge "Revert "Zero blocks before BLKDISCARD""Tao Bao2015-07-111-17/+1
| | |\ \ \ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / / / | | | |/| | | / / / / / / / | | | |_|_|_|/ / / / / / / | | |/| | | | | | | | | | * commit '65c230f4b3c9fd6b42f6502b96e5b47c7b1c2f61': Revert "Zero blocks before BLKDISCARD"
| | | * | | | | | | | | | Merge "Revert "Zero blocks before BLKDISCARD""Tao Bao2015-07-111-17/+1
| | | |\ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | Revert "Zero blocks before BLKDISCARD"Tao Bao2015-07-111-17/+1
| | | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b65f0272c860771f2105668accd175be1ed95ae9. It slows down the update too much on some devices (e.g. increased from 8 mins to 40 mins to take a full OTA update). Bug: 22129621 Change-Id: I016e3b47313e3113f01bb4f8eb3c14856bdc35e5 (cherry picked from commit 7125f9594db027ce4313d940ce2cafac67ae8c31)
* | | | | | | | | | | | | am b6b31549: am 10cf0942: Merge "Revert "Change init sequence to support file level encryption"" into mnc-devPaul Lawrence2015-07-071-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b6b31549dfe3c9ec6b32e2862ee7e08a949e2f9c': Revert "Change init sequence to support file level encryption"
| * | | | | | | | | | | | am 10cf0942: Merge "Revert "Change init sequence to support file level encryption"" into mnc-devPaul Lawrence2015-07-071-3/+3
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '10cf0942a7f4b2bfd539416e4767aaaf866a6527': Revert "Change init sequence to support file level encryption"
| | * | | | | | | | | | | Merge "Revert "Change init sequence to support file level encryption"" into mnc-devPaul Lawrence2015-07-071-3/+3
| | |\ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|/ / / / / / / | | |/| | | | | | | | | |
| | | * | | | | | | | | | Revert "Change init sequence to support file level encryption"Paul Lawrence2015-07-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 98c1a3de23ae8b589c36e74939193c44d25cac65. Change-Id: I524060418de18f97c3865ebc4435f501015e92ee
* | | | | | | | | | | | | am e93fa6b7: am 4e6507f3: am 2490dbc9: Merge "Allow mounting squashfs partitions"Tao Bao2015-07-070-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e93fa6b7428a7bdd6386159b417d70090b20f2df': Allow mounting squashfs partitions
| * | | | | | | | | | | | am 4e6507f3: am 2490dbc9: Merge "Allow mounting squashfs partitions"Tao Bao2015-07-070-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '4e6507f32817e2943b1f27d12f56b485993c2a44': Allow mounting squashfs partitions
| | * | | | | | | | | | | am 2490dbc9: Merge "Allow mounting squashfs partitions"Tao Bao2015-07-071-0/+1
| | |\ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2490dbc9325ad522ec5ee031f5493d2e975f3a49': Allow mounting squashfs partitions
| | | * | | | | | | | | | Merge "Allow mounting squashfs partitions"Tao Bao2015-07-071-0/+1
| | | |\ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | Allow mounting squashfs partitionsMohamad Ayyash2015-07-071-0/+1
| | | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ifb8f84063a406db7aad3f9ef12c349ea09a54e07 Signed-off-by: Mohamad Ayyash <mkayyash@google.com> (cherry picked from commit 0ddfa329acb1e6464fe5d66b58257013abf21116)
* | | | | | | | | | | | | am 3cc51480: am d6b2b65d: Merge "Change init sequence to support file level encryption" into mnc-devPaul Lawrence2015-07-071-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3cc5148007a7ad2ff0b868ae89c7835286dd148c': Change init sequence to support file level encryption
| * | | | | | | | | | | | am d6b2b65d: Merge "Change init sequence to support file level encryption" into mnc-devPaul Lawrence2015-07-061-3/+3
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / | | |/| | | / / / / / / / | | |_|_|_|/ / / / / / / | |/| | | | | | | | | | * commit 'd6b2b65dc40c5af7feecf634b8ae55bf14fe8e6c': Change init sequence to support file level encryption
| | * | | | | | | | | | Merge "Change init sequence to support file level encryption" into mnc-devPaul Lawrence2015-07-061-3/+3
| | |\ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / | | | |/| | | | | | | |
| | | * | | | | | | | | Change init sequence to support file level encryptionPaul Lawrence2015-07-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | File level encryption must get the key between mounting userdata and calling post_fs_data when the directories are created. This requires access to keymaster, which in turn is found from a system property. Split property loaded into system and data, and load in right order. Bug: 22233063 Change-Id: I409c12e3f4a8cef474eb48818e96760fe292cc49
* | | | | | | | | | | | am 08b63396: am 501282a4: am b4b41daa: am 0ddfa329: Allow mounting squashfs partitionsMohamad Ayyash2015-07-031-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '08b63396f9a2361a891f37831e20fda502b2afa4': Allow mounting squashfs partitions
| * | | | | | | | | | | am 501282a4: am b4b41daa: am 0ddfa329: Allow mounting squashfs partitionsMohamad Ayyash2015-07-021-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '501282a42dfbd9f4d33a1009daa387d1d0f0f368': Allow mounting squashfs partitions
| | * | | | | | | | | | am b4b41daa: am 0ddfa329: Allow mounting squashfs partitionsMohamad Ayyash2015-07-021-0/+1
| | |\ \ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b4b41daa2ddbe8849dacdeeafd240e2a265cb594': Allow mounting squashfs partitions
| | | * | | | | | | | | am 0ddfa329: Allow mounting squashfs partitionsMohamad Ayyash2015-07-021-0/+1
| | | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0ddfa329acb1e6464fe5d66b58257013abf21116': Allow mounting squashfs partitions
| | | | * | | | | | | | | Allow mounting squashfs partitionsMohamad Ayyash2015-07-011-0/+1
| | | | | |_|_|/ / / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic023eb7d8a11e2a65172a23ff39fa902ef566183 Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
* | | | | | | | | | | | am 6284431d: am 8409b088: Merge "Add drm support to minui" into mnc-devVincent Palatin2015-07-034-0/+484
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6284431df56aff58a0ea46f06341d23cb9ff94cd': Add drm support to minui
| * | | | | | | | | | | am 8409b088: Merge "Add drm support to minui" into mnc-devVincent Palatin2015-07-024-0/+484
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '8409b08888d5ec914d7b4aae552bc78f23bcddd5': Add drm support to minui
| | * | | | | | | | | | Merge "Add drm support to minui" into mnc-devVincent Palatin2015-07-024-0/+484
| | |\ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / | | |/| | | | | | | | |
| | | * | | | | | | | | Add drm support to minuiStéphane Marchesin2015-07-024-0/+484
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 22231636 Change-Id: I103c8e906b7dd9862b7bb89d8642268e9a3006b4 Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
* | | | | | | | | | | | am c4b6f87f: am 7125f959: Revert "Zero blocks before BLKDISCARD"Tao Bao2015-07-031-17/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c4b6f87f7ab969be7ee177baa8704774869ecb56': Revert "Zero blocks before BLKDISCARD"
| * | | | | | | | | | | am 7125f959: Revert "Zero blocks before BLKDISCARD"Tao Bao2015-07-011-17/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7125f9594db027ce4313d940ce2cafac67ae8c31': Revert "Zero blocks before BLKDISCARD"
| | * | | | | | | | | | Revert "Zero blocks before BLKDISCARD"Tao Bao2015-07-011-17/+1
| | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b65f0272c860771f2105668accd175be1ed95ae9. It slows down the update too much on some devices (e.g. increased from 8 mins to 40 mins to take a full OTA update). Bug: 22129621 Change-Id: I4e8d4f6734967caf4f0d19c734027f7b6c107370
* | | | | | | | | | | am 2b3c599c: am c3dddce2: More accurate checking for overlapped ranges.Tao Bao2015-06-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2b3c599c6a6b7c2cf8da3e6ad9ada5812df3f831': More accurate checking for overlapped ranges.
| * | | | | | | | | | am c3dddce2: More accurate checking for overlapped ranges.Tao Bao2015-06-260-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c3dddce205ef44933813394013ee5ef89b63653b': More accurate checking for overlapped ranges.
| | * | | | | | | | | More accurate checking for overlapped ranges.Tao Bao2015-06-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A RangeSet has half-closed half-open bounds. For example, "3,5" contains blocks 3 and 4. So "3,5" and "5,7" are actually not overlapped. Bug: 22098085 Change-Id: I362d259f8b5d62478858ad0422b635bc5068698d (cherry picked from commit c0f56ad76680df555689d4a2397487ef8c16b1a6)
* | | | | | | | | | | am b102404d: am cb9450e1: Use f_bavail to calculate free spacecaozhiyuan2015-06-260-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b102404d1defbfd3e63ca8f8721327f4384e2d69': Use f_bavail to calculate free space
| * | | | | | | | | | am cb9450e1: Use f_bavail to calculate free spacecaozhiyuan2015-06-260-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'cb9450e11337700907a7a5ec290902196c74fa9b': Use f_bavail to calculate free space
| | * | | | | | | | | Use f_bavail to calculate free spacecaozhiyuan2015-06-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Failures are seen on devices with Linux 3.10. And they are mainly due to this change: https://lwn.net/Articles/546473/ The blocks reserved in this change is not the same thing as what we think are reserved for common usage of root user. And this part is included in free blocks but not in available blocks. Bug: 22118089 Change-Id: I81c9531703298019a4fc11839f28d2cc8b9df34e (cherry picked from commit 3b4977638f48e59d23d7ea2bb6dde78552c257fb)
* | | | | | | | | | | am f90651e4: am 89d3634f: am b36d9c3f: Merge "More accurate checking for overlapped ranges."Tao Bao2015-06-261-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f90651e4c43ac9b803ca67582a3ffd5e8dc0f192': More accurate checking for overlapped ranges.
| * | | | | | | | | | am 89d3634f: am b36d9c3f: Merge "More accurate checking for overlapped ranges."Tao Bao2015-06-261-1/+1
| |\ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '89d3634ffe0855456fe4b33b6aa2abdffeeddfc6': More accurate checking for overlapped ranges.
| | * | | | | | | | | am b36d9c3f: Merge "More accurate checking for overlapped ranges."Tao Bao2015-06-261-1/+1
| | |\ \ \ \ \ \ \ \ \ | | | | |_|_|/ / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b36d9c3f00e75dba464ff62eab94dd46d93ac94e': More accurate checking for overlapped ranges.
| | | * | | | | | | | Merge "More accurate checking for overlapped ranges."Tao Bao2015-06-261-1/+1
| | | |\ \ \ \ \ \ \ \
| | | | * | | | | | | | More accurate checking for overlapped ranges.Tao Bao2015-06-261-1/+1
| | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A RangeSet has half-closed half-open bounds. For example, "3,5" contains blocks 3 and 4. So "3,5" and "5,7" are actually not overlapped. Bug: 22098085 Change-Id: I75e54a6506f2a20255d782ee710e889fad2eaf29
* | | | | | | | | | | am 8f7a2afe: am 1572820c: am ec18d495: Merge "recovery: Use xxhdpi resources for 560dpi devices"Tao Bao2015-06-241-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '8f7a2afede744f548ea13761ae6eb27327485a35': recovery: Use xxhdpi resources for 560dpi devices
| * | | | | | | | | | am 1572820c: am ec18d495: Merge "recovery: Use xxhdpi resources for 560dpi devices"Tao Bao2015-06-241-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1572820cd005c8b150c1c807b1b686d8f2da78ad': recovery: Use xxhdpi resources for 560dpi devices
| | * | | | | | | | | am ec18d495: Merge "recovery: Use xxhdpi resources for 560dpi devices"Tao Bao2015-06-241-0/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ec18d495058a9a6dd6f3dd442aa0f5d0041504e4': recovery: Use xxhdpi resources for 560dpi devices
| | | * | | | | | | | Merge "recovery: Use xxhdpi resources for 560dpi devices"Tao Bao2015-06-241-0/+1
| | | |\ \ \ \ \ \ \ \
| | | | * | | | | | | | recovery: Use xxhdpi resources for 560dpi devicesTao Bao2015-06-241-0/+1
| | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a symbolic link to res-xxhdpi for res-560dpi. 560dpi devices (like shamu) are currently using a fallback option of xhdpi (320dpi) resources. Now they can get closer ones (480dpi), such as larger fonts on UI screen. Change-Id: I427c3091d7e9892d9a7a1886be6adca14c122b06
* | | | | | | | | | | am 2c7fa669: am 4b619469: am 719e4e5d: Merge "Just use fstat in sysMapFile."Elliott Hughes2015-06-243-71/+24
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2c7fa6695e3c04810a9cca0619cae5b928a717dd': Just use fstat in sysMapFile.
| * | | | | | | | | | am 4b619469: am 719e4e5d: Merge "Just use fstat in sysMapFile."Elliott Hughes2015-06-243-71/+24
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '4b6194696e3fdb9e0bab5dc53d91c3bca9267123': Just use fstat in sysMapFile.
| | * | | | | | | | | am 719e4e5d: Merge "Just use fstat in sysMapFile."Elliott Hughes2015-06-243-71/+24
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '719e4e5d9bb7b7f9ffbe48407feee8c985ce7623': Just use fstat in sysMapFile.
| | | * | | | | | | | Merge "Just use fstat in sysMapFile."Elliott Hughes2015-06-243-71/+24
| | | |\ \ \ \ \ \ \ \
| | | | * | | | | | | | Just use fstat in sysMapFile.Elliott Hughes2015-06-233-71/+24
| | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also turn on -Werror and remove a dead function. Change-Id: I436f0a91c40e36db985190b3b98b0a4527cf0eeb
* | | | | | | | | | | am 997534d0: am c35f3ce3: Allow sideloading without authentication.Elliott Hughes2015-06-240-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '997534d0efcdb9145fbc58f78cb3409db8d04804': Allow sideloading without authentication.
| * | | | | | | | | | am c35f3ce3: Allow sideloading without authentication.Elliott Hughes2015-06-230-0/+0
| |\ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c35f3ce30e4bb0de33fe6fcf0b928d0e4b7269b0': Allow sideloading without authentication.
| | * | | | | | | | | Allow sideloading without authentication.Elliott Hughes2015-06-231-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/22025550 Change-Id: I20f09ae442536f924f19ede0abf6a2bcc0a5cedf (cherry picked from commit 9813f5ba57fe7d90d45cb1c2b6f65920ce580e72)
* | | | | | | | | | | am 687bf071: am 6dd443fd: am ea13fe23: Merge "Allow sideloading without authentication."Elliott Hughes2015-06-231-1/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '687bf071ad5f19a1fe91569f47e474e6e9a239d7': Allow sideloading without authentication.
| * | | | | | | | | | am 6dd443fd: am ea13fe23: Merge "Allow sideloading without authentication."Elliott Hughes2015-06-231-1/+5
| |\ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6dd443fd51062efb4eae87b8f0e1f6cebf332b37': Allow sideloading without authentication.
| | * | | | | | | | | am ea13fe23: Merge "Allow sideloading without authentication."Elliott Hughes2015-06-231-1/+5
| | |\ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ea13fe233e8a95d9e5b69b131fbf840a60d1f04e': Allow sideloading without authentication.
| | | * | | | | | | | Merge "Allow sideloading without authentication."Elliott Hughes2015-06-231-1/+5
| | | |\ \ \ \ \ \ \ \
| | | | * | | | | | | | Allow sideloading without authentication.Elliott Hughes2015-06-231-1/+5
| | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/22025550 Change-Id: I20f09ae442536f924f19ede0abf6a2bcc0a5cedf
* | | | | | | | | | | am deb4ebb2: am d2a59288: am 22ccc87a: Merge "Unmount sdcard if no package file is selected."Elliott Hughes2015-06-111-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'deb4ebb2876b0352ddf042f680339696b89ec125': Unmount sdcard if no package file is selected.
| * | | | | | | | | | am d2a59288: am 22ccc87a: Merge "Unmount sdcard if no package file is selected."Elliott Hughes2015-06-111-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd2a592888b1c8103b7d5c4807230102b78aa3d23': Unmount sdcard if no package file is selected.
| | * | | | | | | | | am 22ccc87a: Merge "Unmount sdcard if no package file is selected."Elliott Hughes2015-06-111-0/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '22ccc87a7dffd089662a111aa96127b3476d65fc': Unmount sdcard if no package file is selected.
| | | * | | | | | | | Merge "Unmount sdcard if no package file is selected."Elliott Hughes2015-06-111-0/+1
| | | |\ \ \ \ \ \ \ \
| | | | * | | | | | | | Unmount sdcard if no package file is selected.caozhiyuan2015-06-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I12b4f880802135a98dbc11a19e74172a3a5ef921
* | | | | | | | | | | | am 7ccec497: am d7c9bf41: Merge "Zero blocks before BLKDISCARD" into mnc-devSami Tolvanen2015-06-110-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7ccec497f293e1e2629ecb9c906de69305976ff7': Zero blocks before BLKDISCARD
| * | | | | | | | | | | am d7c9bf41: Merge "Zero blocks before BLKDISCARD" into mnc-devSami Tolvanen2015-06-110-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd7c9bf41daa865ca016dee12a68282ba457c31fb': Zero blocks before BLKDISCARD
| | * | | | | | | | | | Merge "Zero blocks before BLKDISCARD" into mnc-devSami Tolvanen2015-06-101-1/+17
| | |\ \ \ \ \ \ \ \ \ \
| | | * | | | | | | | | | Zero blocks before BLKDISCARDSami Tolvanen2015-06-101-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to observed BLKDISCARD flakiness, overwrite blocks that we want to discard with zeros first to avoid later issues with dm-verity if BLKDISCARD is not successful. Bug: 20614277 Bug: 20881595 Change-Id: I4f6f2db39db990879ff10468c9db41606497bd6f (cherry picked from commit a3c75e3ea60d61df93461f5c356befe825c429d2)
* | | | | | | | | | | | | am 1e8bc40b: am 0005f89c: Split WipeData into PreWipeData and PostWipeData.Elliott Hughes2015-06-110-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1e8bc40b02e372403ba58e4681952347bea3fb34': Split WipeData into PreWipeData and PostWipeData.
| * | | | | | | | | | | | am 0005f89c: Split WipeData into PreWipeData and PostWipeData.Elliott Hughes2015-06-110-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0005f89c31dfc2ca9053512900571620a0eba842': Split WipeData into PreWipeData and PostWipeData.
| | * | | | | | | | | | | Split WipeData into PreWipeData and PostWipeData.Elliott Hughes2015-06-102-24/+22
| | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/21760064 Change-Id: Idde268fe4d7e27586ca4469de16783f1ffdc5069 (cherry picked from commit 945548ef7b3eee5dbfb46f6291465d4b0b6d02e1)
* | | | | | | | | | | | am 12c8ea68: am e21ff08e: am a1009c34: Merge "Split WipeData into PreWipeData and PostWipeData."Elliott Hughes2015-06-112-24/+22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '12c8ea6827f2de5b4376524790dd9d2c9d6ef6ad': Split WipeData into PreWipeData and PostWipeData.
| * | | | | | | | | | | am e21ff08e: am a1009c34: Merge "Split WipeData into PreWipeData and PostWipeData."Elliott Hughes2015-06-112-24/+22
| |\ \ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e21ff08ea6a94bcd751a3cb0e6123275e0f18a2b': Split WipeData into PreWipeData and PostWipeData.
| | * | | | | | | | | | am a1009c34: Merge "Split WipeData into PreWipeData and PostWipeData."Elliott Hughes2015-06-102-24/+22
| | |\ \ \ \ \ \ \ \ \ \ | | | | |/ / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a1009c346827c89f35d4feb011d01dd18de1b134': Split WipeData into PreWipeData and PostWipeData.
| | | * | | | | | | | | Merge "Split WipeData into PreWipeData and PostWipeData."Elliott Hughes2015-06-102-24/+22
| | | |\ \ \ \ \ \ \ \ \