日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

android fastboot常见命令

發(fā)布時(shí)間:2025/3/15 编程问答 23 豆豆
生活随笔 收集整理的這篇文章主要介紹了 android fastboot常见命令 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

關(guān)于fasboot鎖定/解鎖引導(dǎo)加載程序 ,請參考google source中的說明

Flashing
Flash all partitions from an update.zip package.

fastboot update ZIP

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 flashall

Flash 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).

fastboot devices [-l]

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 gencheckpt

Reboot device.

fastboot reboot [bootloader]

Locking/unlocking
Lock/unlock partitions for flashing

fastboot flashing lock|unlock

Lock/unlock ‘critical’ bootloader partitions.

fastboot flashing lock_critical|unlock_critical

Check whether unlocking is allowed (1) or not(0).

fastboot flashing get_unlock_ability

Advanced
Erase a flash partition.

fastboot erase PARTITION

Format a flash partition.

fastboot format[:FS_TYPE[:SIZE]] PARTITION

Set the active slot.

fastboot set_active SLOT

Execute 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 securewipe

Wipe or disable a GSI installation (fastbootd only).

fastboot gsi wipe|disable

Wipe 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 cancel

On devices that support snapshot-based updates, finish an in-progress update if it is in the “merging” phase.

fastboot snapshot-update merge

Boot image
Download and boot kernel from RAM.

fastboot boot KERNEL [RAMDISK [SECOND]]

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 DTB

Override kernel command line.

fastboot --cmdline CMDLINE

Set kernel base address (default: 0x10000000).

fastboot --base ADDRESS

Set kernel offset (default: 0x00008000).

fastboot --kernel-offset

Set ramdisk offset (default: 0x01000000).

fastboot --ramdisk-offset

Set tags offset (default: 0x00000100).

fastboot --tags-offset

Set dtb offset (default: 0x01100000).

fastboot --dtb-offset

Set flash page size (default: 2048).

fastboot --page-size BYTES

Set boot image header version.

fastboot --header-version VERSION

Set 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-DD

Android Things
Sends given file to stage for the next command.

fastboot stage IN_FILE

Writes data staged by the last command to a file.

fastboot get_staged OUT_FILE

Options
Wipe userdata.

fastboot -w

Specify a USB device.

fastboot -s SERIAL

Specify 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 --force

Use 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-secondary

Don’t reboot device after flashing.

fastboot --skip-reboot

Sets disable-verity when flashing vbmeta.

fastboot --disable-verity

Sets disable-verification when flashing vbmeta.

fastboot --disable-verification

Enable file-based encryption, wiping userdata.

fastboot --wipe-and-use-fbe

Don’t buffer input or output.

fastboot --unbuffered

Verbose output.

fastboot --verbose, -v

Display version.

fastboot --version

Show this message.

fastboot --help, -h

總結(jié)

以上是生活随笔為你收集整理的android fastboot常见命令的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。