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 68c9256 commit 2bd641e
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
import com.sevtinge.cemiuiler.utils.PrefsMap;
import com.sevtinge.cemiuiler.utils.PrefsUtils;
import com.sevtinge.cemiuiler.utils.ResourcesHook;
import com.sevtinge.cemiuiler.utils.ShellUtils;
import com.sevtinge.cemiuiler.utils.log.XposedLogUtils;

import java.io.File;
Expand Down Expand Up @@ -322,7 +323,14 @@ public void init(LoadPackageParam lpparam) {
mVarious.init(lpparam);
}
case "com.xiaomi.NetworkBoost" -> networkBoost.init(lpparam);
case BuildConfig.APPLICATION_ID -> ModuleActiveHook(lpparam);
case BuildConfig.APPLICATION_ID -> {
ModuleActiveHook(lpparam);
XSharedPreferences mXSharedPreferences = new XSharedPreferences(Helpers.mAppModulePkg, PrefsUtils.mPrefsName);
String sharedPreferencePath = mXSharedPreferences.getFile().getPath();
sharedPreferencePath = sharedPreferencePath.replace("/com.sevtinge.cemiuiler/cemiuiler_prefs.xml", "");
XposedLogUtils.logD(sharedPreferencePath);
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 2bd641e

Please sign in to comment.