
Installing Cyanogenmod 11 b3 on the Fx0 for the semi-noob
Much respect and thanks to Cutol [github] for porting CM11 to the Fx0 (among other things). This guy's work is basically the only reason why people still use this phone. This phone would be pretty shit if it wasn't for him.
If you're using windows or just want some screenshots of this process you should take a look at this pictoral guide by CUBE075 a local copy of this pdf is available for download here.
You should do this as root or administrator. Make sure you have a micro sd card installed in your phone.
Table of Contents
- Step 1: Enabling ADB
- Step 2: Backing up and uploading Cyanogenmod
- Step 3: Flashing TWRP
- Step 4: Installing Cyanogenmod
- Abridged Version
Prerequisite files
- ADB and Fastboot for windows or android-tools package for linux
- Cyanogenmod 11 b3
- TWRP 302 madai
Step 1
In step 1 we need to enable ADB connections so we can access the phone from the computer. I'm assuming you're running the stock FxOS 2.0 preinstalled on the phone.
Enable the developer menu:
Settings > Device Information > More Information > Developer Menu: ON
Enable adb connections:
Settings > Developer > Debugging via USB > ADB and DevTools: ON
Disable USB storage
Settings > USB Storage: Disabled
Now you can connect your phone to your computer.
Step 2
In step 2 we will be connecting to the phone and backing up some essential files to the sd card and the computer. We will also be uploading the Cyanogenmod zip the the sd card.
Check if your device is recognised
adb devices
You should see a device id output. If there is none you might want to try unlocking the phone and trying the command again.
Once you see that your device is connected you can now access your phone
adb shell
Switch to root user
su
Once we are logged in as the root user we can start backing the phone up. This step is extremely important if you want to avoid fucking your phone up irreparably. You need to have an external sd card mounted on the phone for these commands to work.
dd if=/dev/block/platform/msm_sdcc.1/by-name/laf of=/sdcard/laf.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst1 of=/sdcard/modemst1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst2 of=/sdcard/modemst2.img
We can close the adb connection now. (you can also press ctrl+d to logout)
exit
exit
Now that we have cloned the files to the sd card we can copy them to the computer.
adb pull /sdcard/laf.img
adb pull /sdcard/modemst1.img
adb pull /sdcard/modemst2.img
Finally, we need to copy the Cyanogenmod zip file to the phone
adb push cm-11-20160710-UNOFFICIAL-madai.zip /sdcard/
Step 3
In step 3 we will be deleting the stock LG recovery partition and replacing it with TWRP.
Connect to your phone
adb shell
Switch to root
su
Delete the laf partition
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/laf
The command will output "no more space left on device" on completion. Close the connection and reboot.
exit
exit
adb reboot
Power off the phone and unplug it from your computer
Hold volume up while plugging the phone into your computer. Your phone should now be in fastboot mode. If you see "[510] udc_start()" you can proceed.
Flash and boot TWRP
fastboot flash recovery twrp_302-madai01.img
fastboot boot twrp_302-madai01.img
The phone should boot into TWRP and prompt you to allow system modification. Swipe to allow modification.
Step 4
In step 4 we backup and wipe the system before installing Cyanogenmod.
Once we are booted into TWRP we can make a backup of the phone as it is installed now
Backup > select all partitions > Select Storage > Micro SDCard
You can now swipe to backup. Once the backup is completed you can reboot to recovery. You may want to copy this backup to your computer for safe keeping.
Now that you have rebooted into recovery we can wipe the phone
Wipe > Advanced Wipe > Select: System, Data, Cache
You can now swipe to wipe the phone
When the wipe is finished go back to the main menu of TWRP and tap "Install". Select the cyanogenmod zip that we transferred to the sd card earlier and swipe to install.
Install > Select cm-11-20160710-UNOFFICIAL-madai.zip
Swipe to install and reboot to system. Enjoy your fx0 running Cyanogenmod.
Abridged Version
--- in fxos --- Settings > Device Information > More Information > Developer Menu: ON Settings > Developer > Debugging via USB > ADB and DevTools: ON Settings > USB Storage: Disabled --- plug in phone --- adb shell su dd if=/dev/block/platform/msm_sdcc.1/by-name/laf of=/sdcard/laf.img dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst1 of=/sdcard/modemst1.img dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst2 of=/sdcard/modemst2.img exit exit adb pull /sdcard/laf.img adb pull /sdcard/modemst1.img adb pull /sdcard/modemst2.img adb push cm-11-20160710-UNOFFICIAL-madai.zip /sdcard/ adb shell su dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/laf exit exit adb reboot --- boot into fastboot (hold vol up while plugging phone in) --- fastboot flash twrp_302-madai01.img fastboot boot twrp_302-madai01.img Backup > select all partitions > Select Storage > Micro SDCard Wipe > Advanced Wipe > Select: System, Data, Cache Install > Select cm-11-20160710-UNOFFICIAL-madai.zip