Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
优化 迁移存档
Browse files Browse the repository at this point in the history
  • Loading branch information
Sevtinge committed Oct 31, 2023
1 parent e844d32 commit cd62b92
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,13 @@ public void init(LoadPackageParam lpparam) {
String sharedPreferencePath = mXSharedPreferences.getFile().getPath();
sharedPreferencePath = sharedPreferencePath.replace("/com.sevtinge.cemiuiler/cemiuiler_prefs.xml", "");
XposedLogUtils.logD(sharedPreferencePath);
File folder = new File(sharedPreferencePath+"/com.sevtinge.hyperceiler");
if (folder.exists() && folder.isDirectory()) {
ShellUtils.execCommand("dd if="+sharedPreferencePath+"/com.sevtinge.cemiuiler/cemiuiler_prefs.xml of="+sharedPreferencePath+"/com.sevtinge.hyperceiler/hyperceiler_prefs.xml", true, false);
} else {
ShellUtils.execCommand("mkdir "+sharedPreferencePath+"/com.sevtinge.hyperceiler", true, false);

}
ShellUtils.execCommand("dd if="+sharedPreferencePath+"/com.sevtinge.cemiuiler/cemiuiler_prefs.xml of="+sharedPreferencePath+"/com.sevtinge.hyperceiler/hyperceiler_prefs.xml", true, false);
}
default -> mVarious.init(lpparam);
Expand Down

0 comments on commit cd62b92

Please # to comment.