android fastboot常见命令
關(guān)于fasboot鎖定/解鎖引導(dǎo)加載程序 ,請參考google source中的說明
Flashing
Flash all partitions from an update.zip package.
Flash all partitions from $ANDROID_PRODUCT_OUT. On A/B devices, flashed slot is set as active. Secondary images may be flashed to inactive slot.
fastboot flashallFlash given partition, using the image from $ANDROID_PRODUCT_OUT if no filename is given.
fastboot flash PARTITION [FILENAME]Basics
List devices in bootloader (-l: with device paths).
Display given bootloader variable.
fastboot getvar [NAME] fastboot getvar version fastboot getvar version-bootloader fastboot getvar version-baseband fastboot getvar version-cpld fastboot getvar version-microp fastboot getvar version-main fastboot getvar version-misc fastboot getvar serialno fastboot getvar imei fastboot getvar meid fastboot getvar product fastboot getvar platform fastboot getvar modelid fastboot getvar cidnum fastboot getvar battery-status fastboot getvar battery-voltage fastboot getvar partition-layout fastboot getvar security fastboot getvar build-mode fastboot getvar boot-mode fastboot getvar gencheckptReboot device.
fastboot reboot [bootloader]Locking/unlocking
Lock/unlock partitions for flashing
Lock/unlock ‘critical’ bootloader partitions.
fastboot flashing lock_critical|unlock_criticalCheck whether unlocking is allowed (1) or not(0).
fastboot flashing get_unlock_abilityAdvanced
Erase a flash partition.
Format a flash partition.
fastboot format[:FS_TYPE[:SIZE]] PARTITIONSet the active slot.
fastboot set_active SLOTExecute OEM-specific command.
fastboot oem [COMMAND...] fastboot oem get-bootinfo fastboot oem writecid fastboot oem writeimei fastboot oem get_identifier_token fastboot oem unlock-go fastboot oem unlock fastboot oem lock fastboot oem device-info preflash fastboot oem enable-charger-screen fastboot oem disable-charger-screen fastboot oem off-mode-charge fastboot oem select-display-panel fastboot oem bootlog fastboot oem getvar fastboot oem mmcinfo fastboot oem info fastboot oem securewipeWipe or disable a GSI installation (fastbootd only).
fastboot gsi wipe|disableWipe the super partition. This will reset it to contain an empty set of default dynamic partitions.
fastboot wipe-super [SUPER_EMPTY]On devices that support snapshot-based updates, cancel an in-progress update. This may make the device unbootable until it is reflashed.
fastboot snapshot-update cancelOn devices that support snapshot-based updates, finish an in-progress update if it is in the “merging” phase.
fastboot snapshot-update mergeBoot image
Download and boot kernel from RAM.
Create boot image and flash it.
fastboot flash:raw PARTITION KERNEL [RAMDISK [SECOND]]Specify path to DTB for boot image header version 2.
fastboot --dtb DTBOverride kernel command line.
fastboot --cmdline CMDLINESet kernel base address (default: 0x10000000).
fastboot --base ADDRESSSet kernel offset (default: 0x00008000).
fastboot --kernel-offsetSet ramdisk offset (default: 0x01000000).
fastboot --ramdisk-offsetSet tags offset (default: 0x00000100).
fastboot --tags-offsetSet dtb offset (default: 0x01100000).
fastboot --dtb-offsetSet flash page size (default: 2048).
fastboot --page-size BYTESSet boot image header version.
fastboot --header-version VERSIONSet boot image OS version (default: 0.0.0).
fastboot --os-version MAJOR[.MINOR[.PATCH]]Set boot image OS security patch level.
fastboot --os-patch-level YYYY-MM-DDAndroid Things
Sends given file to stage for the next command.
Writes data staged by the last command to a file.
fastboot get_staged OUT_FILEOptions
Wipe userdata.
Specify a USB device.
fastboot -s SERIALSpecify a network device.
fastboot -s tcp|udp:HOST[:PORT]Break into sparse files no larger than SIZE.
fastboot -S SIZE[K|M|G]Force a flash operation that may be unsafe.
fastboot --forceUse SLOT; ‘a(chǎn)ll’ for both slots, ‘other’ for non-current slot (default: current active slot).
fastboot --slot SLOT
Sets the active slot before rebooting.
fastboot --set-active[=SLOT]Don’t flash secondary slots in flashall/update.
fastboot --skip-secondaryDon’t reboot device after flashing.
fastboot --skip-rebootSets disable-verity when flashing vbmeta.
fastboot --disable-veritySets disable-verification when flashing vbmeta.
fastboot --disable-verificationEnable file-based encryption, wiping userdata.
fastboot --wipe-and-use-fbeDon’t buffer input or output.
fastboot --unbufferedVerbose output.
fastboot --verbose, -vDisplay version.
fastboot --versionShow this message.
fastboot --help, -h總結(jié)
以上是生活随笔為你收集整理的android fastboot常见命令的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java 反射 构造方法_Java反射之
- 下一篇: Dragon Quest VIII 流程