Old root method
This is purely for historical records
Note: This method is long winded, and could result in no more booting if done incorrectly
This method will be replaced with a cleaner, faster method, and is only here as a reference for people who can't wait, or to see how it was initially done
I am not supplying any links to the tools I used (excluding make_ext4fs). This is because this is not a guide for the faint hearted, and if you don't know how to locate the tools yourself, you shouldn't be here.
This is only for Linux.
- The Phone
- A USB Cable for the Phone
- make_ext4fs (remove .zip off the end)
- SuperSU update pack
make a working directory
Fetch the system contents from the phone
adb pull /system system/
apply the SuperSU pack to the fetched system
for reference, follow the update-binary contents
You need to apply all the permissions the same way the update binary does as well
create a system.img
./make_ext4fs -a system system.img system/ -l 800M
flash the system image
adb reboot bootloader
sudo fastboot flash system system.img
This should take a few minutes. Ignore the sparse warning.
once this is done, reboot the phone. You should now have root
I'm currently building a recovery, so once that is done, we can just flash the update package.