Open Android1500 opened 3 years ago
Hey ! And what is the problem ? The compiler give you an error or the module do not apply the SharedPreferences settings (or the app..) ?
On Sun, Feb 7, 2021, 22:11 Android1500 notifications@github.com wrote:
i put this in mainactivity:
SharedPreferences sharedPreferences = getSharedPreferences(USER_PREF, MODE_PRIVATE); FileSharedPreferences.makeWorldReadable(pkgName, USER_PREF);
this my hook class:
`public class XposeHook implements IXposedHookLoadPackage {
private static FileSharedPreferences sharedPreferences;
@Override public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) throws Throwable {
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder(StrictMode.getThreadPolicy()) .permitDiskReads() .build()); if (!lpparam.packageName.equals("com.yuvi.myapplication111")){ IMEI.load(lpparam); SimSerial.load(lpparam); sharedPreferences.reload(); }
}
}`
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chengxuncc/fileprefs/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI22H3DUXXUJA3W3MLAF6ULS536ZDANCNFSM4XH3K4VA .
can i use it sharedPreferences = new FileSharedPreferences("com.coniy.example", "default"); in hanloadpackage
i put this in mainactivity:
SharedPreferences sharedPreferences = getSharedPreferences(USER_PREF, MODE_PRIVATE); FileSharedPreferences.makeWorldReadable(pkgName, USER_PREF);
this my hook class:
`public class XposeHook implements IXposedHookLoadPackage {
}`