commit | edafac6c7b76d1ff7335d5b532f7d92816073ec5 | [log] [tgz] |
---|---|---|
author | WiZarD <WiZarD.Devel@gmail.com> | Mon Aug 08 10:30:16 2016 +0530 |
committer | Winny Mathew Kurian <wizard.devel@gmail.com> | Thu Aug 18 05:20:40 2016 +0000 |
tree | 21ea4accccd6cb53949a5fce1812c7aa574fa43a | |
parent | c158cf0a1418d52530d0e4cb1facb83270aacc29 [diff] |
Free mmaped area if keys fail to load 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>
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