Difference between revisions of "OS: Android - Flashing Guide"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
|||
Line 12: | Line 12: | ||
# Obtain a [[ROM]] of your choice, many can be found in your devices development forum on XDA Forums or a alternate android development site. | # Obtain a [[ROM]] of your choice, many can be found in your devices development forum on XDA Forums or a alternate android development site. | ||
# Once you have downloaded the ROM File, mount your phone's [[SD card]] and [http://www.samsung-messages-backup.com/resources/sync-android-phone-to-pc.html copy] there the .[[zip]] file. | # Once you have downloaded the ROM File, mount your phone's [[SD card]] and [http://www.samsung-messages-backup.com/resources/sync-android-phone-to-pc.html copy] there the .[[zip]] file. | ||
− | # Power off the device and then [[boot]] up to [ | + | # Power off the device and then [[boot]] up to [http://www.tunesbro.com/android-data-recovery.html recovery], it is different per device. If you are unsure how to boot up to your Android device's recovery menu then look it up in your device page in this wiki, the forums or other tutorials on your device. |
# In your phone's custom recovery [[bootloader]], locate the menu options which allow you to [[wipe]] the phone. Whenever changing roms, it is a good idea to make a [[Nandroid]] or [[BART]] [[How_to_backup_or_recover_via_Nandroid|backup]] first, then wipe Data/[[Factory]] and [[Dalvik]]-[[Cache]], OR, in the case of 4Ext Recovery Touch users, you can do a [[standard full wipe]] in one click: go to WIPE / FORMAT > Format all partitions EXCEPT SD Card, before flashing the new ROM, or if the ROM you want to flash comes with an [[Aroma Installer]], you can do the standard fullwipe in Aroma as it usually comes with that option before proceeding with the installation. | # In your phone's custom recovery [[bootloader]], locate the menu options which allow you to [[wipe]] the phone. Whenever changing roms, it is a good idea to make a [[Nandroid]] or [[BART]] [[How_to_backup_or_recover_via_Nandroid|backup]] first, then wipe Data/[[Factory]] and [[Dalvik]]-[[Cache]], OR, in the case of 4Ext Recovery Touch users, you can do a [[standard full wipe]] in one click: go to WIPE / FORMAT > Format all partitions EXCEPT SD Card, before flashing the new ROM, or if the ROM you want to flash comes with an [[Aroma Installer]], you can do the standard fullwipe in Aroma as it usually comes with that option before proceeding with the installation. | ||
# Once your phone has been wiped, go back up to the root of the menu and select 'Flash Zip from SD Card' (the text may be different in your [http://www.coolmuster.com/android/lab-fone-for-android-guide.html Recovery]). | # Once your phone has been wiped, go back up to the root of the menu and select 'Flash Zip from SD Card' (the text may be different in your [http://www.coolmuster.com/android/lab-fone-for-android-guide.html Recovery]). |
Latest revision as of 15:40, 28 April 2017
Sumber: https://forum.xda-developers.com/wiki/Flashing_Guide_-_Android
Android Flashing Guide for S-Off Devices
Prerequisites
To flash a ROM for your Android device you first need to meet the following prerequisites:
- An Android smartphone that has a custom recovery installed (ClockworkMod, TWRP, Etc.)
- A custom ROM that was developed or ported for your device.
- A microSD Card to hold the ROM file temporarily.
ROM Flashing
- Obtain a ROM of your choice, many can be found in your devices development forum on XDA Forums or a alternate android development site.
- Once you have downloaded the ROM File, mount your phone's SD card and copy there the .zip file.
- Power off the device and then boot up to recovery, it is different per device. If you are unsure how to boot up to your Android device's recovery menu then look it up in your device page in this wiki, the forums or other tutorials on your device.
- In your phone's custom recovery bootloader, locate the menu options which allow you to wipe the phone. Whenever changing roms, it is a good idea to make a Nandroid or BART backup first, then wipe Data/Factory and Dalvik-Cache, OR, in the case of 4Ext Recovery Touch users, you can do a standard full wipe in one click: go to WIPE / FORMAT > Format all partitions EXCEPT SD Card, before flashing the new ROM, or if the ROM you want to flash comes with an Aroma Installer, you can do the standard fullwipe in Aroma as it usually comes with that option before proceeding with the installation.
- Once your phone has been wiped, go back up to the root of the menu and select 'Flash Zip from SD Card' (the text may be different in your Recovery).
- Locate the ROM .Zip file you wish to flash.
- Confirm the flash by following the on-screen instructions (i.e.: pressing the trackball, pressing the call button, etc.)
- If no errors arise during the flashing process then the ROM flash was successful. Reboot the device.
RUU Flashing
- Connect your Android device to your computer. Most ROM Upgrade Utilities (RUUs) are .exe files which will only run in Microsoft Windows natively or in Linux/Mac OS X via Wine
- Download the RUU for your device, some can be found here at PCD Phones
- Run the RUU with your phone plugged in to your computer via its USB cable.
- Follow the RUU's instructions for flashing.
- Unless errors arise your device is now flashed.
App Installs/ROM Feature Installs via Flashing
Some ROMs have added features that are available to flash.
- To Flash the App/Rom Feature you must first download the .zip file.
- Mount your devices SD card and copy the .zip file over.
- Boot up to your devices custom recovery.
- Wipe your Dalvik-Cache in the Wipe Menu. And then go back to the recovery's main menu.
- This step may vary per device, there should be an option that says "Flash .zip from SD Card", select it.
- Select the .zip file you wish to flash.
- Confirm flashing of .zip file.
- Wait for the file to flash; and if successful, reboot.
Android Flashing Guide (with fastboot)
Prerequisites
To Flash a ROM for your Android device with fastboot you must have an unlocked bootloader or an engineering bootloader. Supported devices are listed below:
- Android Dev Phone 1
- Google I/O Device
- Nexus One
- Nexus S
- Sony XPeria and other devices - see the official instructions.
Unlocking your bootloader
The ADP1 and Google I/O Device do not require unlocking, however the new Nexus Devices do.
- Nexus One (cannot be relocked).
- fastboot oem unlock
- Accept/Decline warning on your devices screen.
- Nexus S (can be unlocked and relocked).
ROM Flashing
- apt install android-tools-adb
- adb devices
* daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached 55cef322 device
- apt install android-tools-fastboot
- Obtain a ROM of your choice, and note the location on your computer.
- reboot your device into fastboot mode via one of the following options.
- adb reboot bootloader (requires USB debugging to be turned on).
- power off the device then back on with 'vol up' + power button.
- Wipe your device.
- fastboot -w
- Update your ROM.
- fastboot update </path/to/your/RomFile.zip>
- Your phone will update and automatically reboot into the new ROM.
ROM update without SDcard
If you don't have an sd card, or your slot is broken you can try this trick, but you will need a custom recovery like Clockwork.
- Boot up your phone to recovery. Move your ROM file to the adb directory (or have adb in PATH), and start a command line prompt.
- adb shell
- mount data
- Ctrl+C
- adb push D:\custom_rom.zip /data/
- Wait until the push finishes, and restart your device to recovery again with "adb reboot-bootloader"
- mount data
- mount /data /sdcard (mount the data folder into your sdcard folder, so your recovery will think that you have an SD card installed)
- Locate the ROM .zip file you wish to flash.
- Confirm the flash by following the on-screen instructions (ie: pressing the trackball, pressing the call button, etc.)
- If no errors arise during the flashing process then the ROM flash was successful. Reboot the device.
- With some root file explorer, remove the ROM file if you don't need it anymore, to free up space. Alternatively, use adb to remove the custom recovery: "adb shell rm data/custom_rom.zip"
adb sideload
- Folks consider adb sideload <ZIP> when they have a ready to flash .zip file. The command is mostly used when booted into Recovery mode.
- Fastboot on the other hand deals with per partition flashing at a time. E.g. fastboot flash recovery <IMG> -- only flashes Recovery partition and not all the relevant partitions for ROM installation. ADB sideload <ZIP> on the other hand can achieve full ROM installation in one go.
- You unlock the bootloader only if it is locked. Google Nexus devices comes with locked bootloaders while some Chinese Mediatek devices comes unlocked. You've to search web for your model.
- No, the command doesn't work on every Android device. The reason is 2.