fastboot
来源:互联网 发布:软件测试基本原理 编辑:程序博客网 时间:2024/04/28 18:20
1 bootloader增加解锁密码
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index e4d46e4..1b4b450 100755--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -2613,6 +2613,20 @@ void cmd_oem_unlock(const char *arg, void *data, unsigned sz)
void cmd_oem_unlock_go(const char *arg, void *data, unsigned sz)
{
+ // oem-start
+ char *p = (char *)arg;
+ if (!arg) {
+ fastboot_fail("[oem] key in password please, \"fastboot oem unlock-go [pwd]\"");
+ return;
+ }
+
+ while (isspace(*p)) p++;
+ if (strncmp(p, "12345678", strlen("12345678"))) {
+ fastboot_fail("[oem] wrong password, \"fastboot oem unlock-go [pwd]\"");
+ return;
+ }
+ // oem-end
+
if(!device.is_unlocked || device.is_verified)
{
if(!is_allow_unlock) {
Fastboot command call chain as shown below, from the viewpoint of device-side.
Figure 1-1 Fastboot Command Call Chain
TODO:
阅读全文
0 0
- Fastboot
- fastboot
- fastboot
- fastboot
- fastboot
- fastboot
- fastboot
- fastboot
- fastboot
- fastboot
- fastboot --no permissions fastboot
- linux fastboot
- Android Fastboot
- fastboot使用
- Fastboot - Cyanogenmod
- fastboot编译
- Android Fastboot
- Fastboot简介
- 随笔-spingmvc controller线程安全
- 取非行内样式
- tensorflow68 《深度学习原理与TensorFlow实战》04 CNN看懂世界 05neural_style.py
- RMQ的两种实现ST算法,和线段树
- Android中 @和?区别以及?attr/**与@style/**等的区别
- fastboot
- 爱搞事809项目记录
- 我的学习之路_第二十六章_javaScript(2)
- 关机、注销、登录、锁屏、资源管理器重启等消息
- 表单设计
- 李航统计学习方法--感知机
- android讯飞语音开发常遇到的问题 各种错误编码说明
- Installing TensorFlow with virtualenv
- echarts如何给柱形图的每个柱子设置不同颜色