From cd62b921c01da047be8d100f20245f2fe3316f48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=80=E6=BC=93=E4=B8=A8Sevtinge?= Date: Wed, 1 Nov 2023 06:37:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E8=BF=81=E7=A7=BB?= =?UTF-8?q?=E5=AD=98=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/sevtinge/cemiuiler/module/base/BaseXposedInit.java | 7 +++++++ 1 file changed, 7 insertions(+) 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);