fastboot erase system
fastboot erase data
fastboot erase cache
Lista de comandos fastboot
update <filename> flashea dispositivo desde update.zip
flashall flashea boot + recovery + system
flash <partition> [ <filename> ] escribe un fichero en una partición flash
erase <partition> elimina una partición flash
format <partition> formatea una partición flash
getvar <variable> muestra una variable del bootloader
boot <kernel> [ <ramdisk> ] descarga y arranca el kernel
flash:raw boot <kernel> [ <ramdisk> ] crea una imagen boot y la flashea
devices listado de los dispositivos conectados
continue continua con el autoarranque
reboot reinicia el dispositivo con normalidad
reboot-bootloader reinicia dispositivo en bootloader
help muestra mensaje de ayuda
Lista de opciones
-w elimina datos de usuario, cache y formatea
si el tipo de partición lo soporta.
-u no eliminar la partición antes de formatear
-s <specific device> especificar numero de serie del dispositivo
o ruta al puerto del dispositivo
-l con «devices» muestra la ruta de los disp.
-p <product> especifica número de producto
-c <cmdline> anula linea de comando del kernel
-i <vendor id> especifica el vendor id de un custom USB
-b <base_addr> especifica la dirección base de un custom kernel
-n <page size> especifica tamaño de página nand. Por defecto: 2048
-S <size>[K|M|G] descarta automáticamente archivos mayores al
tamaño indicado. 0 para deshabilitar.
Además de estos también tenemos otros comandos, como por ejemplo:
fastboot oem unlock (para desbloquear el bootloader)
fastboot oem lock (para bloquear el bootloader)
Fastboot commands Uses
fastboot devices Check whether the device is detected and recognized by the
computer
fastboot reboot Reboot the Android devices into the recovery mode
fastboot oem unlock Unlock the bootloader on with fastboot OEM unlock
fastboot oem lock After unlocking the command, relock it using this command
fastboot reboot Reboot the device into recovery
recovery
fastboot reboot When you reboot the bootloader or fastboot without flashing the
bootloader images, this command will help.
fastboot flash boot This command can be used for flashing boot.img
fastboot boot Want to just boot your device temporarily into custom recovery
image_file.img mode without flashing? Use this command.
fastboot format:ex4 To erase your device’s data, this command will be used.
userdata
fastboot erase Fastboot erase command will erase items from your device. You
can wipe data from different partitions on your device.
1. Important Fastboot Commands
ADB Commands Uses
ADB shell Allows access to Unix shell to write commands
ADB reboot bootloader Boot the device to fastboot or Bootloader mode, use this
command.
ADB reboot recovery Boots your device to TWRP or stock recovery from the booted OS.
adb pull /file-location-on- To ‘pull’ any file from your device and send it over to PC
device/filename
ADB shell wm density This command overrides display density
adb sideload filename Allow flashing zip files from a command shell
adb start-server If the ADB server does not start automatically “kills the daemon”
and “start on a specific port”, use this command to start the ADB
server
adb kill-server You may kill the server if the command tool gets hanged or isn’t
performing as per your expectations.
adb install filename.apk Install an APK file on your device.
adb install -r filename.apk This adb command will allow you to reinstall or update an APK
adb install -s filename.apk To move the application to SD card (if supported by your device):