Is there an Android ROM flashing utility available for Ubuntu 14.04?
Is there any Utility that can be used in Ubuntu 14.04 to flash a ROM or a custom recovery to an android? I am interested in flashing the stock ROM and CWM recovery to a Broadcom chip based android mobile running on android 4.4.2 version.
Solution 1:
The adb
and fastboot
tools that come with the Android SDK are in the repository:
sudo apt-get update && sudo apt-get install android-tools-adb android-tools-fastboot
To flash the images, connect the device to the machine, enable USB debugging and reboot the device into the bootloader by running adb reboot bootloader
.
Then flash the images using fastboot
. For example, to flash a custom recovery partition:
fastboot flash recovery custom-recovery.img
Solution 2:
Yes. But one does not simply "flash a ROM" from USB, but parts or more specifically images. These will be system.img, recovery.img and so on.
Install fastboot
:
$ sudo apt-get update
$ sudo apt-get install android-tools-adb android-tools-fastboot
Then simply, reboot to fastboot and do:
$ sudo fastboot flash system system.img