commit | 74e750ed67c78fe51a82c2e9a3e7d105a111c151 | [log] [tgz] |
---|---|---|
author | Ameya Thakur <ameyat@codeaurora.org> | Mon Aug 15 13:16:03 2016 -0700 |
committer | Ameya Thakur <ameyat@codeaurora.org> | Tue Nov 01 13:14:56 2016 -0700 |
tree | 3c0dbf4a814ba117c35164bfa1f5adb4d181d180 | |
parent | 5c81cc1181ed7ae7d04b77ee23c6daddce6839af [diff] |
recovery: Workaround to enable update via sdcard on UFS devices. The recovery code relies on the recovery.fstab file to locate the block dev that represents the external sdcard. The dev path is differrent for UFS and EMMC devices but we can only have a single entry for both in the fstab. Since our build is required to support both UFS and EMMC devices from the same binaries we make this change where recovery when it sees a request for a update from a sdcard, checks if it is running on a UFS based target and then does the mount on the correct device. This is a temporary needed only on builds where we need to support both UFS and EMMC devices. In practice only one of these will be present on a device and the recovery.fstab can be updated accordingly. Change-Id: I28aa99c69c31aa4cfe01bf6854de78b170d75bdb
mm -j && m ramdisk-nodeps && m recoveryimage-nodeps # To boot into the new recovery image # without flashing the recovery partition: adb reboot bootloader fastboot boot $ANDROID_PRODUCT_OUT/recovery.img
# After setting up environment and lunch. mmma -j bootable/recovery # Running the tests on device. adb root adb sync data # 32-bit device adb shell /data/nativetest/recovery_unit_test/recovery_unit_test adb shell /data/nativetest/recovery_component_test/recovery_component_test # Or 64-bit device adb shell /data/nativetest64/recovery_unit_test/recovery_unit_test adb shell /data/nativetest64/recovery_component_test/recovery_component_test