New XSharedPreferences not work #1079
Replies: 4 comments 3 replies
-
I don't rember the code, but I think you should set xposedminversion to 93 and not 30+ EDIT LSPosed/core/src/main/java/de/robv/android/xposed/XSharedPreferences.java Lines 171 to 184 in b98979d My fault with xposedsharedprefs should work EDIT2 |
Beta Was this translation helpful? Give feedback.
-
Thx for your help!
|
Beta Was this translation helpful? Give feedback.
-
Update: I have no idea about reasons, but today it works with proguard enabled too. |
Beta Was this translation helpful? Give feedback.
-
I've got the bug: LSPosed Manager causes it. Version 1.5.3 (5984) To reproduce it download the test app for the module (module's scope) above: https://bitbucket.org/MZhuravsky/testmodule/downloads/test-app-release.apk Now after install just enable the module in the Manager, the test app will be already checked by the scope. Uninstall the module and install it again. Now enable it, and uncheck & check again the recommended app (or any other). Now the prefs work as expected |
Beta Was this translation helpful? Give feedback.
-
Hello
I've created a test module to check how new-prefs work. Unfortunatelly, I could not make it work as required.
Android 11, MIUI 12.5.3 stable
Test module source: https://[email protected]/MZhuravsky/testmodule.git
Test module signed apk: https://bitbucket.org/MZhuravsky/testmodule/downloads/app-release.apk
I've added xposedsharedprefs as meta-data + used Context.MODE_WORLD_READABLE.
As I can see in LoadedApkGetCLHooker.hookNewXSP method adding meta-data is enought, but there is no proper result whatever I do.
So, what else should I do to make prefs located in 'data/misc' folder?
Beta Was this translation helpful? Give feedback.
All reactions