Skip to content

Commit

Permalink
X6710: Revert some changes in inits.
Browse files Browse the repository at this point in the history
* 11f481a
* 6bf8fe2
* 1dd5640

Signed-off-by: Carlo Dee <[email protected]>
  • Loading branch information
cd-Crypton committed Aug 19, 2024
1 parent c504d34 commit d84640b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 deletions.
11 changes: 1 addition & 10 deletions recovery/root/init.recovery.mt6893.rc
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,10 @@ on post-fs
symlink /dev/block/platform/bootdevice/by-name/preloader_b /dev/block/platform/bootdevice/by-name/preloader_emmc_b
symlink /dev/block/platform/bootdevice/by-name/preloader_a /dev/block/platform/bootdevice/by-name/preloader_ufs_a
symlink /dev/block/platform/bootdevice/by-name/preloader_b /dev/block/platform/bootdevice/by-name/preloader_ufs_b

# Support A/B feature for combo emmc and ufs OTA update
symlink /dev/block/platform/bootdevice/by-name/preloader_a /dev/block/by-name/preloader_emmc_a
symlink /dev/block/platform/bootdevice/by-name/preloader_b /dev/block/by-name/preloader_emmc_b
symlink /dev/block/platform/bootdevice/by-name/preloader_a /dev/block/by-name/preloader_ufs_a
symlink /dev/block/platform/bootdevice/by-name/preloader_b /dev/block/by-name/preloader_ufs_b

exec u:r:update_engine:s0 root root -- /system/bin/mtk_plpath_utils

symlink /dev/block/mapper/pl_a /dev/block/by-name/preloader_raw_a
symlink /dev/block/mapper/pl_b /dev/block/by-name/preloader_raw_b
symlink /dev/block/mapper/pl_a /dev/block/platform/bootdevice/by-name/preloader_raw_a
symlink /dev/block/mapper/pl_b /dev/block/platform/bootdevice/by-name/preloader_raw_b
start mtk.plpath.utils.link

on property:ro.crypto.state=encrypted && property:ro.crypto.type=file
install_keyring
Expand Down
23 changes: 0 additions & 23 deletions recovery/root/system/etc/init/mtk-plpath-utils.rc
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,6 @@ on property:persist.vendor.mtk.pl_lnk=1
symlink /dev/block/mapper/pl_a /dev/block/platform/bootdevice/by-name/preloader_raw_a
symlink /dev/block/mapper/pl_b /dev/block/platform/bootdevice/by-name/preloader_raw_b

# FSTAB_RAW2(lk2,bootloader2) of fstab.in.emmc, but without bootloader2 mount point
symlink /dev/block/by-name/lk1 /dev/block/by-name/bootloader1
symlink /dev/block/by-name/lk2 /dev/block/by-name/bootloader2

# Fix ro.vendor.mtk_ufs_support remove issue of recovery mode
on property:vendor.mtk.boot0_linka=1
symlink /dev/block/sda /dev/block/mmcblk0boot0

on property:vendor.mtk.boot0_linkb=1
symlink /dev/block/sdb /dev/block/mmcblk0boot0

on property:vendor.mtk.boot0_linkc=1
symlink /dev/block/sdc /dev/block/mmcblk0boot0

on property:vendor.mtk.boot1_linka=1
symlink /dev/block/sda /dev/block/mmcblk0boot1

on property:vendor.mtk.boot1_linkb=1
symlink /dev/block/sdb /dev/block/mmcblk0boot1

on property:vendor.mtk.boot1_linkc=1
symlink /dev/block/sdc /dev/block/mmcblk0boot1

service mtk.plpath.utils.link /system/bin/mtk_plpath_utils
class main
user root
Expand Down

0 comments on commit d84640b

Please sign in to comment.