Fix H2OS stock rom flashing
authormauronofrio <poronofrio@gmail.com>
Thu, 30 May 2019 19:08:12 +0000 (21:08 +0200)
committermauronofrio <poronofrio@gmail.com>
Thu, 30 May 2019 19:08:12 +0000 (21:08 +0200)
recovery/root/init.recovery.qcom.rc

index 0cc1e9c5a14561e0c17b43cc4f931ebc882b93f2..ed1880110663328ab17ff07f0b7f5ad6c36b989e 100644 (file)
@@ -32,6 +32,12 @@ on fs
     symlink /dev/block/bootdevice/by-name/oem_stanvbk /dev/block/bootdevice/by-name/oem_stanvbk_b
     symlink /dev/block/bootdevice/by-name/oem_dycnvbk /dev/block/bootdevice/by-name/oem_dycnvbk_a
     symlink /dev/block/bootdevice/by-name/oem_dycnvbk /dev/block/bootdevice/by-name/oem_dycnvbk_b
+
+    # this is not good way for Hydrogen payload reserve
+    write  /dev/block/bootdevice/by-name/reserve 0
+    symlink /dev/block/bootdevice/by-name/reserve /dev/block/bootdevice/by-name/reserve_a
+    symlink /dev/block/bootdevice/by-name/reserve /dev/block/bootdevice/by-name/reserve_b
+
     chmod 0660 /dev/qseecom
     chown system drmrpc /dev/qseecom
     chmod 0664 /dev/ion