diff --git a/app/src/main/java/com/sevtinge/cemiuiler/module/base/BaseXposedInit.java b/app/src/main/java/com/sevtinge/cemiuiler/module/base/BaseXposedInit.java index 8d6dd56d8..4a7d3da88 100644 --- a/app/src/main/java/com/sevtinge/cemiuiler/module/base/BaseXposedInit.java +++ b/app/src/main/java/com/sevtinge/cemiuiler/module/base/BaseXposedInit.java @@ -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);