Tuesday, March 1, 2016

How to manually downgrade partitions on 35B or 46A and install TWRP

The aim of these instructions is for those on 100% stock VS985 35B (5.1.1) or 46A (6.0) to be able to both root and install TWRP.

This is an alternative to the way I usually recommend which is downgrading to 10B via the TOT method and using the .DLL from 35B, then rooting with the Stump app and putting TWRP on with TWRP Manager.

Tested by me by flashing the 35B KDZ with the CSE option and taking the OTA from 35B to 46A.

1. Root with the KingRoot app from www.kingroot.net (needs connected to internet and re-rooted with Kingroot after every reboot, if you reboot for any reason).

2. Extract the following files from @xdabbeb's 35B bootstack available at http://ift.tt/1NPTild in the Downloads section in the bottom half of the first post:
  • aboot.bin
  • laf.bin
  • modem.bin
  • persist.bin
  • rct.bin
  • sbl1.bin

You can use ZArchiver from the Play Store at http://ift.tt/1hOOOlD or a file manager that has archive support built in like X-plore File Manager at http://ift.tt/1r4dj2H.

Extract them to your internal storage (not inside a folder).

3. Download the latest official TWRP. Tested with v3.0.0, should work the same with 2.8.7.0. Get either from here http://ift.tt/1L43dcK.

4. Install Terminal Emulator for Android from the Play Store at http://ift.tt/1llHVUa.

5. Downgrade your partitions by copying and pasting the following commands using Terminal Emulator with SuperUser permissions. You don't have to do one at a time, you can copy and paste the entire list of commands.

Also attached the commands below to this post as a text file, so you can download the text file, and copy and paste the commands from it.

Code:

su
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/sbl1
dd if=/sdcard/sbl1.bin of=/dev/block/platform/msm_sdcc.1/by-name/sbl1
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/aboot
dd if=/sdcard/aboot.bin of=/dev/block/platform/msm_sdcc.1/by-name/aboot
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/laf
dd if=/sdcard/laf.bin of=/dev/block/platform/msm_sdcc.1/by-name/laf
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/modem
dd if=/sdcard/modem.bin of=/dev/block/platform/msm_sdcc.1/by-name/modem
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/persist
dd if=/sdcard/persist.bin of=/dev/block/platform/msm_sdcc.1/by-name/persist
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/rct
dd if=/sdcard/rct.bin of=/dev/block/platform/msm_sdcc.1/by-name/rct
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/recovery
dd if=/sdcard/twrp-3.0.0-0-vs985.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery

Replace "twrp-3.0.0-0-vs985.img" in the last command with the filename of your preferred custom recovery.

When you copy the commands, make sure and select from the beginning "su" through to the blank line following the last command, or after you paste, press "Enter" on your keyboard to issue the last command. Pressing an extra "Enter" at the end won't hurt if you're not sure.



from xda-developers http://ift.tt/1ONwkfh
via IFTTT

No comments:

Post a Comment