framework/base/core/java/android/os/RecoverySystem.java
修改方法installPackage()
将String arg = "--update_package=" + filename;
改为:
String arg = "--update_package=" + filename+" --wipe_data";
framework/base/core/java/android/os/RecoverySystem.java
修改方法installPackage()
将String arg = "--update_package=" + filename;
改为:
String arg = "--update_package=" + filename+" --wipe_data";