diff --git a/releasetools.py b/releasetools.py index 0b5b41ec589227ed40f850e7b71d820637162cb1..2504dbd3f1a079e6f4e51a3df229c508ddfa88e9 100644 --- a/releasetools.py +++ b/releasetools.py @@ -55,4 +55,4 @@ def OTA_InstallEnd(info, incremental): AddFirmware(info, "sspm.img", "/dev/block/by-name/sspm_1", "/dev/block/by-name/sspm_2", incremental) AddFirmware(info, "trustzone1.bin", "/dev/block/by-name/tee1", False, incremental) AddFirmware(info, "trustzone2.bin", "/dev/block/by-name/tee2", False, incremental) - AddFirmware(info, "preloader.img", "/dev/block/mmcblk0boot0", "/dev/block/mmcblk0boot1", incremental) + AddFirmware(info, "preloader.img", "/dev/block/platform/bootdevice/by-name/preloader_a", "/dev/block/platform/bootdevice/by-name/preloader_b", incremental) diff --git a/sepolicy/vendor/init.te b/sepolicy/vendor/init.te index 8bff3c173c15e8c11c2a010db1f89f8dc502b0b6..1dc18fe18bbc2dc49940500af54c5564700fe06e 100644 --- a/sepolicy/vendor/init.te +++ b/sepolicy/vendor/init.te @@ -3,3 +3,7 @@ allow init hwservicemanager:binder call; allow init self:netlink_kobject_uevent_socket read; allow init sysfs_wake_lock:file r_file_perms; allow init vendor_data_file:file w_file_perms; +# Allow recovery to write to preloader +recovery_only(` + allow init sysfs_devices_block:file w_file_perms; +')