Commit Graph

12 Commits

Author SHA1 Message Date
C3C0 1e8a94e490 XSharedPreferences: properly handle reg/unreg of change listeners
Throw exception in case file watcher feature is disabled.
2021-01-15 21:27:58 +08:00
C3C0 f8aa9d0e11 Optimized preference file changes detection mechanism
Optimizations on top of original idea by @XspeedPL.

- introduced new manifest parameter: xposedsharedprefswatcher
- file watcher daemon starts only in case there is at least one module in the hooked process that requested file watcher feature either by specification in the
manifest or using new constructor XSharedPreferences(file, enableWatcher)
- XSharedPreferences instance registers watcher events only when it has support for watcher enabled so even if watcher daemon is already running
due to request by other module, it won't watch for events on files that belong to XSharedPreferences instance that has watcher disabled
- reduced log ouput in case of release builds
2021-01-15 21:27:58 +08:00
Xspeed c52b4c5496 Preference file changes detection mechanism 2021-01-07 20:31:13 +08:00
Jim Wu 2c90990625 Fix potential exception when reading xposedminversion 2020-12-20 17:54:53 +08:00
LoveSy 43c4c92365 Use AXML instead of Apkparser 2020-12-20 15:36:27 +08:00
kotori0 389138f455 close resources properly 2020-12-18 00:57:38 +08:00
LoveSy 57f15c1fc1 Fix XSharedPreference permission 2020-12-15 15:35:19 +08:00
LoveSy 314315180f Fix some bootloop 2020-12-07 19:13:05 +08:00
LoveSy 70f967944c New XSharedPreferences 2020-12-06 21:13:52 +08:00
Jim Wu 1979856752 Announced XSharedPreferences as deprecated on Android Pie or above 2020-04-04 11:54:33 +08:00
binarynoise 05178a7182 Also log filename when loadFromDiskLocked failed
This would help to resolve the issue: now the user can look into that file and see what's inside an try to resolve the issue or fixing/cleaning up that file.
2020-03-14 11:37:07 +08:00
solohsu 53d0dbd120 Refactor project structure 2019-03-19 14:32:44 +08:00