Hello guys and girls,
Did you know that 5X has two recovery partitions? Did you know that you do not need PC, cable, buggy ADB drivers, PC utilities and other stuff to install your favorite recovery to any assigned partition and keep the stock at the same time?
Did you know that you are free to start any installed recovery tool?
This guide brings you a deeper understsnding what is inside your device.
Prerequisites: your bootloader must be unlocked, device must be rooted (CM13 is rooted out the box - just enable it in the developer settings).
Go on:
1. Install Termux terminal emulator from Playmarket.
2. Type 'su' command in Termux, then confirm root access.
3. Type this command as a root:
ls -al /dev/block/platform/soc.0/7824900.sdhci/by-name
- if it reports error try step by step discover right path by typing ls /dev/block/platform etc until you see 'by-name' folder.
This command reports you all partitions installed on your device. Check it out carefully and find strings which end with these values:
recovery -> /dev/block/mmcblk0p20
erecovery -> /dev/block/mmcblk0p21
So now in my example you can see that I have two recovery tool partitions labeled 'recovery' and 'erecovery' and their system names. The first is regular recovery called by VolUp+Pwr button, the second is an alternative recovery, called with the same buttons, but when plugged to PC.
You can flash any recoveries there in any combination on your taste.
4. Download desired recovery (twrp for example), unpack and put .IMG file to the root of your memory card, internal or external it does not matter. Just open any file manager and note the full file path. In my example it is:
/storage/emulated/0/recovery.img
5. Flash recovery typing this command:
dd if=/storage/emulated/0/recovery.img of=/dev/block/mmcblk0p21
- in this example you can see that I am flashing an alternative recovery. Just change the 'of' parameter to your desired partition, using its system name.
Done!
6. Instead of cables, PCs, magic buttons I advise you to launch your desired recovery tool with the following simple commands in terminal emulator as a root:
# reboot recovery
or
# reboot erecovery
That's all.
Did you know that 5X has two recovery partitions? Did you know that you do not need PC, cable, buggy ADB drivers, PC utilities and other stuff to install your favorite recovery to any assigned partition and keep the stock at the same time?
Did you know that you are free to start any installed recovery tool?
This guide brings you a deeper understsnding what is inside your device.
Prerequisites: your bootloader must be unlocked, device must be rooted (CM13 is rooted out the box - just enable it in the developer settings).
Go on:
1. Install Termux terminal emulator from Playmarket.
2. Type 'su' command in Termux, then confirm root access.
3. Type this command as a root:
ls -al /dev/block/platform/soc.0/7824900.sdhci/by-name
- if it reports error try step by step discover right path by typing ls /dev/block/platform etc until you see 'by-name' folder.
This command reports you all partitions installed on your device. Check it out carefully and find strings which end with these values:
recovery -> /dev/block/mmcblk0p20
erecovery -> /dev/block/mmcblk0p21
So now in my example you can see that I have two recovery tool partitions labeled 'recovery' and 'erecovery' and their system names. The first is regular recovery called by VolUp+Pwr button, the second is an alternative recovery, called with the same buttons, but when plugged to PC.
You can flash any recoveries there in any combination on your taste.
4. Download desired recovery (twrp for example), unpack and put .IMG file to the root of your memory card, internal or external it does not matter. Just open any file manager and note the full file path. In my example it is:
/storage/emulated/0/recovery.img
5. Flash recovery typing this command:
dd if=/storage/emulated/0/recovery.img of=/dev/block/mmcblk0p21
- in this example you can see that I am flashing an alternative recovery. Just change the 'of' parameter to your desired partition, using its system name.
Done!
6. Instead of cables, PCs, magic buttons I advise you to launch your desired recovery tool with the following simple commands in terminal emulator as a root:
# reboot recovery
or
# reboot erecovery
That's all.
No comments:
Post a Comment