2 | adb getversion | 无 | 获取手机终端的系统版本号 | 成功:(例:5.8.7 )失败:unknown |
3 | adb getcodebase | 无 | 获取终端的系统当前版本的codebase | 成功:(例:5.0.1).失败:unknown. |
4 | adb getdevice | 无 | 设备名称 | 成功:(例:leo).失败:unknown. |
5 | adb getbranch | 无 | 获取终端的系统分支代号,取值为:X为开发版,F为稳定版 | 成功:(例:X).失败:unknown. |
6 | adb getlanguage | 无 | 获取终端的系统语言,zh,en等,用于获取不同语言的更新日志和隐私协议 | 成功:(例:zh ).失败:unknown. |
7 | adb getregion | 无 | 获取终端的系统发行区域,CN,IN,SG等,用于区分国际版不同国家 | 成功:(例:CN).失败:unknown. |
8 | adb getcarrier | 无 | 获取终端的系统是否为运营商定制机,并返回对应运营商 | 成功:(例:chinamobile).失败:unknown.(非运营商定制版均为此项) |
9 | adb getsn | 无 | 设备唯一识别ID | 成功:(例:0x758502 ).失败:unknown. |
10 | adb format-data(加密机型只需执行该命令,并全清所有数据) | 无 | 清空DATA分区数据 | 成功:Format_data_success.失败:Format_data_failed. |
11 | adb format-storage(加密机型无需执行该命令) | 无 | 清空模拟SD卡 | 成功:Format_storage_success.失败:Format_storage_failed. |
12 | adb format-data-storage(加密机型无需执行该命令) | 无 | 清空用户数据 | 成功:Format_data_and_storage_success.失败:Format_data_and_storage_failed. |
13 | adb wipe-data-storage(加密机型无需执行该命令) | 无 | 清空所有数据 | 成功:Wipe_data_and_storage_success.失败:Wipe_data_and_storage_failed. |
14 | adb reboot-bootloader | 无 | 重启进入bootloader 模式 | 成功reboot-bootloader. |
15 | adb reboot | 无 | 重启进入系统 | 成功:reboot.失败:无 |
16 | adb shutdown | 无 | 关机 | 成功:shutdown.失败:无 |
17 | adb reboot recovery | 无 | 重启到recovery系统 | 成功:reboot-recovery.失败:无 |
18 | adb enablemtp | 无 | 格式化data分区并打开mtp设备 | 成功:Enabled_mtp_success.已经打开:Mtp_is_alreadly_enabled.失败:Enable_mtp_failed. |
19 | adb disablemtp | 无 | 关闭mtp设备 | 成功:Disabled_mtp_success.已经关闭:Mtp_is_alreadly_disabled.失败:Disable_mtp_failed. |
20 | adb mtpinstall:校验串 | | 执行mtp方式快刷(使用小米助手Pro快刷成功即为命令成功) | 成功:Installation_complete.失败:Installation_aborted. |
21 | adb isenable | 无 | 检测mtp功能是否打开 | 打开:Mtp_is_enabled关闭:Mtp_is_disabled |