Software needed:
Install 32-bit binaries for Fedora (19)
– yum install redhat-lsb
– yum install redhat-lsb-graphics
– yum install redhat-lsb.i686
– yum install redhat-lsb-graphics.i686
Install androit-tools in Fedora (19)
– yum install android-tools
Install jre runtime environment
# jre
Download and install apktool and helper script
# http://code.google.com/p/android-apktool/
# put the two archive contents in the same directory of /user/local/bin/
Download openrecovery (twrp) image for your devices
————
adb common usage:
– adb devices
– adb reboot recovery / recovery
– adb kill-server
– adb root
– adb remount
– adb push / pull
– adb shell (run remote shell interactively)
fastboot common usage:
– fastboot oem unlock
– fastboot erase PARTITION
– fastboot reboot-bootloader
————
Enable USB debugging in Developer Options
Boot into bootloader
– adb reboot bootloader
– fastboot devices (to show connected devices)
Unlock bootloader
– fastboot oem unlock (all user data will be LOST!!)
Install recovery image (openrecovery twrp)
– fastboot flash recovery RECOVERY.img
Update factory system image (refer to this post)
– fastboot erase system
– fastboot update SYSTEM_IMAGE.zip
Important!! Do not use -w switch which is to delete all user data
Do not flash bootloader if unlocked