Tuesday, 6 October 2015

[Guide] Flash 6.0, root, and no-forceencrypt from stock (easy method)



Hope this helps.

1. Install android sdk and use the included install manager in the sdk to install the latest google usb drivers and platform tools (platform tools include fastboot and adb). Make sure adb and fastboot directory is in your Path variable as well.
2. Download latest stock image for Nexus 9 from google: https://developers.google.com/androi...s/images?hl=en
3. Download latest twrp (here is the latest right now 10/6/2015): http://forum.xda-developers.com/nexu...overy-t2944788
4. Download either a stock boot image with the no- forceencrypt flag set or a kernel with the no-forceencrypt flag set
a. I use the elementalx kernel (10/6/2015): http://forum.xda-developers.com/nexu...alpha-t2931657
b. A stock kernel for the MRA58K build with the no-forceencrypt flag set can be found here (boot.zip): http://forum.xda-developers.com/nexu...t3218290/page3
5. Download the latest supersu files: https://download.chainfire.eu/696/SuperSU
6. Make sure you have usb debugging enabled and ability to unlock bootloader (android developer options menu on nexus).
7. Unzip the 6.0 stock image into a folder and open a command window in the folder.
8. Type the following:
a. adb reboot bootloader, wait until nexus boots into bootloader
b. fastboot oem unlock
c. flash-all, now wait a few minutes while the stock image flashes
9. At this point your nexus will reboot. Once you’re started, up you need to again enable usb debugging and the ability to unlock your bootloader in the android developer options menu. Now type the following to flash TWRP:
a. adb reboot bootloader, wait until nexus boots into bootloader
b. flashboot flash recover twrp.img (or whatever the image filename is from the twrp download).
10. Important: now make sure you boot DIRECTLY into TWRP via the button combination (power and volume down), a fastboot command, or the fastboot menu. If you don’t TWRP will be deleted and you’ll need to reflash using the last step.
11. Once in TWRP, hit “cancel” when asked for the password and then erase/wipe data and make sure MTP is enabled (dig around the menus in TWRP, it’s all in there somewhere). This erases the encrypted partition and allows you to use adb to push files to your sdcard.
12. Now type adb push <supersufilename.zip> /sdcard/<supersufilename.zip>, make sure you’re typing from the correct directory.
13. Install supersu via the install menu on TWRP.
14. You now need to install a kernel with the no-forceencrypt flag set:
a. If you want to install a custom kernel (like elementalx), type adb push <customkernelname.zip> /sdcard/<customkernelname.zip>, make sure you’re typing from the correct directory. Then use TWRP to install the zip from your sdcard.
b. If you want to install the modified stock boot.img then boot back into the bootloader and type: fastboot flash boot boot.img. Make sure you do NOT boot back into the android OS before doing this step.
Reboot and you’re good to go.



No comments:

Post a Comment