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
Note:
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.
required:
- The Phone
- A USB Cable for the Phone
- ADB
- Fastboot
- make_ext4fs (remove .zip off the end)
- SuperSU update pack
make a working directory
Code:
WORK_DIR="~/moto_e_hacking"
cd $WORK_DIR
Fetch the system contents from the phone
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
Code:
./make_ext4fs -a system system.img system/ -l 800M
flash the system image
Code:
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.