您的位置:首页 > 运维架构 > Linux

BAT 脚本------读取ssn再写回

2016-07-07 17:23 651 查看
call push.bat

adb wait-for-device

for /f %%i in ('adb shell cat /factory/PhoneInfodisk/ssn') do ( set a=%%i )

adb wait-for-device

adb shell PhoneInfoTest 0 1 %a%

adb root

adb remount

adb push ./PhoneInfoTest /system/bin/

adb wait-for-device

adb shell PhoneInfoTest 0 0

adb wait-for-device

@pause

其中的push.bat如下

adb wait-for-device

adb push wssn /data/data

adb shell sync

adb wait-for-device

adb shell chmod 777 /data/data/wssn

adb wait-for-device

adb shell /data/data/wssn

adb wait-for-device
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux 脚本