如何使用ADB命令在android中进行出厂重置?我使用了adb reboot恢复命令来重置。但是第三方应用程序无法清除somehow.Is,这是正确的方式来实现使用ADB吗?
实际上,我想通过java代码实现android设备的出厂重置。这里有什么解决方案?
发布于 2016-02-17 09:59:19
您可以在adb中发送intent MASTER_CLEAR:
adb shell am broadcast -a android.intent.action.MASTER_CLEAR或作为根用户
adb shell "su -c 'am broadcast -a android.intent.action.MASTER_CLEAR'"发布于 2013-02-04 19:26:02
尝试:
adb shell
recovery --wipe_data下面是arguments的列表:
* 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发布于 2016-09-07 04:44:47
警告
来自@sidharth:“导致我的熔岩虹膜alfa进入bootloop :(”
对于我的运行Android棉花糖6.0.1的摩托罗拉Nexus 6,我这样做了:
adb devices # Check the phone is running
adb reboot bootloader
# Wait a few seconds
fastboot devices # Check the phone is in bootloader
fastboot -w # Wipe user datahttps://stackoverflow.com/questions/14685721
复制相似问题