经过很多挖掘我终于结束了下载Android的恢复部分的源代码。原来你可以发送命令到恢复。
* The arguments which may be supplied in the recovery.command file:
* --send_intent=anystring - write the text out to recovery.intent
* --update_package=path - verify install an OTA package file
* --wipe_data - erase user data (and cache), then reboot
* --wipe_cache - wipe cache (but not user data), then reboot
* --set_encrypted_filesystem=on|off - enables / diasables encrypted fs
这些是可以根据我找到的一个命令,但可能不同于修改的文件。所以使用adb你可以这样做:
adb shell
recovery --wipe_data
使用–wipe_data似乎做了我正在寻找的是方便,虽然我还没有完全测试这个。
编辑:
对于仍在使用此主题的任何人,这些命令可能会根据您正在使用的恢复而更改。如果您使用Clockword恢复,这些命令应该仍然工作。您可以在/ cache / recovery / command中找到其他命令
版权声明:本文为weixin_39678089原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。