peoro's Android notes 🔗
peoro's Android notes 🔗
Installing custom ROMs 🔗
- Unlock the bootloader using whathever method your phone uses.
- Reboot to the bootloader:
adb reboot bootloader
- Boot a recovery. From the bootloader either boot whatever recover image you want (
fastboot boot recovery.img
, the image is on your computer) or otherwise flash the recovery image (fastboot flash recovery recovery.img
). - Flash the ROM and whatever you need. The recovery is meant to easily install images. The .zip files you can download (with ROM, GApps or whatever) can be flashed by the recovery and they write stuff to the right partition. You can wipe and format partitions too. Normally you want to first flash the ROM, then NikGapps, then Magisk (just rename the .apk to .zip and flash it: this is the old method, but still works on most phones; haven't tried the new method yet).
- /system is where the ROM and system apps live.
- /data is where apps' and their data live.
- Cache, dalvik etc is cache of the virtual machine. Can be safely removed.
- /boot contains the firmware. I believe this is needed to prepare some of the hardware.
- /sdcard contains user files and stuff. It gets formatted when you wipe data; I'm not sure why.
- Boot and enjoy.
Dirty flash or clean flash 🔗
Dirty flash means that you leave the data there and just re-install a ROM. Clean flash means that you wipe the data.