穷举法解锁华为手机bootloader

理论

理论一次解锁0.025s,穷举要9999999999999999*0.025/60/60/24/365=190258751年,建议大家还是用dc-unlocker解锁

shell 脚本,运气好的可以试试

#!/bin/bash

> unlock.log
succeed=false
code=1000000000000000
#adb reboot bootloader
while [ $succeed == false ]; do

#:< unlock.log)
    OKAY=$(grep -cn "OKAY" unlock.log)
    if [ $OKAY -gt 0 ];then
        echo $password >> unlock.log
        succeed=true
    fi
    echo $password
#!

:< unlock.log)
    OKAY=$(grep -cn "OKAY" unlock.log)
    if [ $OKAY -gt 0 ];then
        echo $password >> unlock.log
        succeed=true
    fi
    echo $code
    let code++;
!

done

你可能感兴趣的:(android,rom)