commit | 5c81cc1181ed7ae7d04b77ee23c6daddce6839af | [log] [tgz] |
---|---|---|
author | Amit Blay <ablay@codeaurora.org> | Sun Jul 03 23:01:38 2016 +0300 |
committer | Linux Build Service Account <lnxbuild@localhost> | Wed Aug 24 08:08:23 2016 -0600 |
tree | daf1bf405232962427376f2024ab1b5d95e46baf | |
parent | cc8897b9b888e24f51d8f457138011103dddc582 [diff] |
recovery: Prevent mounting system image if MDTP is activated When MDTP (Mobile Device Theft Protection) is activated, mounting the system image is a security risk that must be blocked, as it allows a user to run adb shell. Also, mounting the system image as RW will modify the system image and will be detected by MDTP as an unauthorized attack. Change-Id: I57097441455d9eb8eb8f966e1c53b74b6a0854a8
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