关于fasboot锁定/解锁引导加载程序 ,请参考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; ‘all’ 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

android fastboot常见命令相关推荐

  1. android fastboot命令大全,安卓手机Fastboot模式百科介绍,Fastboot命令大全

    fastboot,英语翻译意思是快速启动.在安卓手机中fastboot是一种比Recovery更底层的刷机模式(俗称引导模式).就是使用USB数据线连接手机的一种刷机模式.相对于某些系统(如ios)卡 ...

  2. 【转官方】Android ADB调试命令、支持的命令、ADB文档

    ADB,即 Android Debug Bridge,它是 Android 开发/测试人员不可替代的强大工具,也是 Android 设备玩家的好玩具. 持续更新中,欢迎提 PR 和 Issue 补充指 ...

  3. [Android] adb 常用命令

    Android 安卓 adb 相关命令 adb常用命令 adb devices -l adb -s [设备SN号] [指令] adb disable-verity adb root adb remou ...

  4. Linux常见命令(五)——rmdir

      前  言 JRedu 今天我们来介绍第五个命令:rmdir . 命令英文原意:remove empty directories 命令用途: rmdir:删除空目录,非空的目录不能删除 本章内容将详 ...

  5. Android adb常用命令

    为什么80%的码农都做不了架构师?>>>    Android 调试桥(adb)是多种用途的工具,该工具可以帮助你你管理设备或模拟器 的状态. 可以通过下列几种方法加入adb: 在设 ...

  6. (转)Android 常用 adb 命令总结

    转载地址:https://www.cnblogs.com/bravesnail/articles/5850335.html 针对移动端 Android 的测试, adb 命令是很重要的一个点,必须将常 ...

  7. Android Git 常用命令和规范

    转载请标明出处:http://blog.csdn.net/zhaoyanjun6/article/details/70332707 本文出自[赵彦军的博客] 文章目录 概念 git 操作流程图 专有名 ...

  8. android --- fastboot 协议学习

    2019独角兽企业重金招聘Python工程师标准>>> ‍ 文章出处:http://blog.csdn.net/geniusmen/article/details/7892398 1 ...

  9. Android 常用 adb 命令总结【转】

    原文链接 针对移动端 Android 的测试, adb 命令是很重要的一个点,必须将常用的 adb 命令熟记于心, 将会为 Android 测试带来很大的方便,其中很多命令将会用于自动化测试的脚本当中 ...

最新文章

  1. 极光推送收不到推送消息
  2. iOS进程间通信之CFMessagePort
  3. pytorch CUDA driver version is insufficient for CUDA runtime version解决
  4. STM平台增加性能测试/稳定性测试部分【一】
  5. 【lua学习】7.环境
  6. 【无线串口模块快速选型指南】通信频点、芯片、通信距离、功率灵敏度、电流 空中速率
  7. 【算法】排序算法——归并排序
  8. JSK-22 排序后的数组删除重复数字【入门】
  9. 新款苹果电脑_“Mac历史性的一天”!别了,英特尔!苹果电脑将采用自研芯片,公司股价又创新高...
  10. 窃听信道模型中的保密通信性能研究
  11. 明解c语言第7章答案,明解C语言 入门篇 第六章答案
  12. echarts饼图:实现多层图表同步自动轮播,鼠标悬浮时停止轮播,移出鼠标后重新开始轮播效果
  13. java计算机毕业设计共享充电宝管理系统演示录像2021MyBatis+系统+LW文档+源码+调试部署
  14. 《TCP IP协议 详解》思考总结 · 三
  15. python字符串equals方法_equals方法和 == 的使用
  16. 5-TDengine集成SpringBoot,MyBatis,MyBatisPlus
  17. CDN 在游戏领域的应用
  18. 【掘金使用技巧7】如何从通达信等迁移到掘金
  19. Gephi UCI 世行数据 聚合数据 APP分类 Context
  20. antd vue form upload 上传

热门文章

  1. 第十一节:JavaScript有了一种全新的数据类型:Symbol
  2. 计算机中丢失dinput8,修复dnfdinput8.dll
  3. expdp oracle 并行_DMP文件导入ORACLE指南
  4. leetcode:剑指offer----二维数组中查找
  5. 学习难吗?从画一个点开始,从点点鼠标开始
  6. 那个一年发四篇Cell的研究生,后来怎么样了?
  7. Mac插件分享——AE插件、PS插件、FCPX插件【持续更新中】
  8. yanobox nodes 3 Mac新一代点线粒子特效运动图形插件
  9. 第十一届蓝桥杯省赛C++组试题 第5题
  10. BootStrap笔记-badge的使用