android fastboot常见命令
关于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常见命令相关推荐
- android fastboot命令大全,安卓手机Fastboot模式百科介绍,Fastboot命令大全
fastboot,英语翻译意思是快速启动.在安卓手机中fastboot是一种比Recovery更底层的刷机模式(俗称引导模式).就是使用USB数据线连接手机的一种刷机模式.相对于某些系统(如ios)卡 ...
- 【转官方】Android ADB调试命令、支持的命令、ADB文档
ADB,即 Android Debug Bridge,它是 Android 开发/测试人员不可替代的强大工具,也是 Android 设备玩家的好玩具. 持续更新中,欢迎提 PR 和 Issue 补充指 ...
- [Android] adb 常用命令
Android 安卓 adb 相关命令 adb常用命令 adb devices -l adb -s [设备SN号] [指令] adb disable-verity adb root adb remou ...
- Linux常见命令(五)——rmdir
前 言 JRedu 今天我们来介绍第五个命令:rmdir . 命令英文原意:remove empty directories 命令用途: rmdir:删除空目录,非空的目录不能删除 本章内容将详 ...
- Android adb常用命令
为什么80%的码农都做不了架构师?>>> Android 调试桥(adb)是多种用途的工具,该工具可以帮助你你管理设备或模拟器 的状态. 可以通过下列几种方法加入adb: 在设 ...
- (转)Android 常用 adb 命令总结
转载地址:https://www.cnblogs.com/bravesnail/articles/5850335.html 针对移动端 Android 的测试, adb 命令是很重要的一个点,必须将常 ...
- Android Git 常用命令和规范
转载请标明出处:http://blog.csdn.net/zhaoyanjun6/article/details/70332707 本文出自[赵彦军的博客] 文章目录 概念 git 操作流程图 专有名 ...
- android --- fastboot 协议学习
2019独角兽企业重金招聘Python工程师标准>>> 文章出处:http://blog.csdn.net/geniusmen/article/details/7892398 1 ...
- Android 常用 adb 命令总结【转】
原文链接 针对移动端 Android 的测试, adb 命令是很重要的一个点,必须将常用的 adb 命令熟记于心, 将会为 Android 测试带来很大的方便,其中很多命令将会用于自动化测试的脚本当中 ...
最新文章
- 极光推送收不到推送消息
- iOS进程间通信之CFMessagePort
- pytorch CUDA driver version is insufficient for CUDA runtime version解决
- STM平台增加性能测试/稳定性测试部分【一】
- 【lua学习】7.环境
- 【无线串口模块快速选型指南】通信频点、芯片、通信距离、功率灵敏度、电流 空中速率
- 【算法】排序算法——归并排序
- JSK-22 排序后的数组删除重复数字【入门】
- 新款苹果电脑_“Mac历史性的一天”!别了,英特尔!苹果电脑将采用自研芯片,公司股价又创新高...
- 窃听信道模型中的保密通信性能研究
- 明解c语言第7章答案,明解C语言 入门篇 第六章答案
- echarts饼图:实现多层图表同步自动轮播,鼠标悬浮时停止轮播,移出鼠标后重新开始轮播效果
- java计算机毕业设计共享充电宝管理系统演示录像2021MyBatis+系统+LW文档+源码+调试部署
- 《TCP IP协议 详解》思考总结 · 三
- python字符串equals方法_equals方法和 == 的使用
- 5-TDengine集成SpringBoot,MyBatis,MyBatisPlus
- CDN 在游戏领域的应用
- 【掘金使用技巧7】如何从通达信等迁移到掘金
- Gephi UCI 世行数据 聚合数据 APP分类 Context
- antd vue form upload 上传
热门文章
- 第十一节:JavaScript有了一种全新的数据类型:Symbol
- 计算机中丢失dinput8,修复dnfdinput8.dll
- expdp oracle 并行_DMP文件导入ORACLE指南
- leetcode:剑指offer----二维数组中查找
- 学习难吗?从画一个点开始,从点点鼠标开始
- 那个一年发四篇Cell的研究生,后来怎么样了?
- Mac插件分享——AE插件、PS插件、FCPX插件【持续更新中】
- yanobox nodes 3 Mac新一代点线粒子特效运动图形插件
- 第十一届蓝桥杯省赛C++组试题 第5题
- BootStrap笔记-badge的使用