Unrooting Cyanogenmod/LineageOS for Fate/Grand Order

Note:

  • Basic android rooting knowledge needed. If you've managed to unlock your device and flashed a custom ROM, you're good to go. This guide assume you've gotten adb drivers installed from when you flashed your phone.
  • An Android phone with access to Fastboot. Or a device that has TWRP's Image Flashing function working. Some with unofficial TWRP ports doesn't, while fastboot will always work. Some samshit device has neither option available, I think you can flash it through heimdall, but its been a couple of years since I owned one.
  • This may or may not work with other AOSP ROMs (Dirty Unicorn, Slim, etc...). Its only been tested on my device with stock CM13, Lineage 14 on stock kernel.
  • Guide is for Windows. If you're using Linux, you're probably competant enough to get it working following this guide roughly and using the Linux version of Android Kitchen Image (its just a pack/unpack boot.img script with the associated tool bundled together)
  • Backup before hand, etc.. etc...

Download:

Steps:
Unroot:
(If you're on a recent build of Lineage 14, this is unnecessary)

  1. Reboot to Recovery/TWRP. Varies between devices, but its usually Power + Vol Up/Vol Down or some variant. If you can't remember, just google it.
  2. Flash the su removal zip for the right CPU architecture, and Lineage/CM version (13/14). If you don't know, check the gapps version you flashed, it should say arm or arm64 on the file name.

build.prop edit:

  1. Reboot to TWRP if you didn't do the unrooting step.
  2. (On PC) Go to your folder with adb.exe, hold shift and right click (like to create a new folder), select Open command window here
  3. Go into Mount and tick system
  4. Back on the cmd window, type adb pull /system/build.prop
  5. Go into the folder containing your adb.exe (from step 2), open build.prop in wordpad (or your text editor of choice). Scroll down to ro.build.type=userdebug, change it to ro.build.type=userdebug. Save
  6. adb push build.prop /system/
  7. adb shell
  8. chmod 644 /system/build.prop

boot.img edit:

  1. Extract Android Image Kitchen
  2. Open the downloaded cyanogenmod/lineageOS zip, extract boot.img to the Android Image Kitchen folder
  3. Drag boot.img to the unpackimg.bat file
  4. Go to the newly created ramdisk folder, open default.prop in your text editor of choice
  5. Change ro.debuggable=1 to ro.debuggable=0 and save
  6. Go back out, double click on repackimg.bat.

TWRP Flash Method (3.1.1.0. TWRP 2.x menu option are named slightly different, but the basic gist is the same.):

  1. Copy the resulting image-new.img to your phone
  2. Back in TWRP, go back to the home screen and select Install. Select Install Image on the bottom right, and chose the image-new.img file you just copied
  3. Select boot in the "Select Partition to Flash Image" section, swipe to flash.
  4. Reboot.

Fastboot method

  1. Copy the resulting image-new.img to the folder containing fastboot.exe
  2. Open a cmd there (Step 2 of the first section)
  3. Reboot your device into fastboot mode. Select the bootloader option in TWRP's reboot menu
  4. fastboot flash boot image-new.img
  5. fastboot reboot
Edit
Pub: 23 Nov 2017 20:21 UTC
Edit: 30 Jul 2018 14:26 UTC
Views: 2946