Install android SDK (bottom of the page) or full android studio if you need to develop on android.
fastboot looks like adb but it is used when device is in bootloader (or fastboot).
adb devicesfastboot devicesadb rebootfastboot rebootadb reboot bootloaderfastboot reboot bootloaderadb reboot recoveryfastboot oem unlockWARING: If you if you unlock the bootloader it will behave like a factory reset. So backup all your data before!
fastboot oem lockWARNING: If you lock back the bootloader, next time you need to unlock data will still behave like a factory reset
fastboot flashing unlockINFO: Unlocks the device. Allows flashing any partition except bootloader-related partitions
fastboot flashing lockMost of the time when flashing ROMS or MODS you will first download it into the device first then you will enter TWRP recovery for flashing it from there.
But in some rare weird cases you may have accidently erased system partition don't have access to sdcards or you forgot to download your image / zip.
adb sideloadwill help you then to flash from your TWRP recovery with ROM from your computer.
More complete explanation from TWRP website
- reboot in recovery:
adb reboot recovery- in TWRP
go menus:
advancedADB sideload
Note : better check wipe caches before swiping from there
- from your computer terminal:
check your see your devices:
adb devicessideload ( = push + flash):
adb sideload YOUR_ROM.zipfastboot erase xxxErase partition xxx. Partition could be:
boot,cache,recoverysystem,radio,userdata,bootloader
fastboot flash xxx yyyFlash partition xxx with new yyy.
For example:
- flash bootloader with a new bootloaler image:
fastboot flash bootloader new_bootloader.img
- flash radio with a new radio image:
fastboot flash radio new_radio.img
adb shelladb push FILE /sdcardCopy a file FILE to device's sdcard.
adb pull FILE /some_computer_directoryCopy a file FILE to computer's directory
adb remountadb install file_name.apk When you launch a backup command a password for this backup will be asked.
adb backup -allNote: backup backup.ab is placed inside platform-tools by default.
adb backup -apk -shared -all -f computer_destination_directory\backup.abParameters:
-apkOR_noapk:- include or not apk
-sharedOR-noshared:- include or not files from
sdcard
- include or not files from
-all- Save system files and applications files (wihtout apk files)
-f computer_destination_directory\backup.ab- define a directory
adb retore computer_source_directory\backup.ab$ md5 <FILE_NAME>Note: you need GnuPG
gpg --verify <FILE_NAME>.tar.gz.ascshasum -a 256 <FILE_NAME>
This helped me so much!
THANK YOU!