HighCapable / YukiHookAPI

⛱️ An efficient Hook API and Xposed Module solution built in Kotlin.
https://highcapable.github.io/YukiHookAPI/
Apache License 2.0
1.42k stars 105 forks source link

YukiHookPrefsBridge read value not working in the release mode #52

Closed TheVigor closed 1 year ago

TheVigor commented 1 year ago

My module implements the logic of saving some parameters to disk using YukiHookPrefsBridge. When the method hook I need is called, I read the stored value using YukiHookPrefsBridge and substitute it as the return value. The problem is that in the debug build everything works, but as soon as I switch to the release, reading the value stops working and starts returning to the default value specified in the shared preferences. I can’t figure out what the problem is, maybe I need to specify some additional rules for obfuscation (I use R8 in the release build)?

fankes commented 1 year ago

You need tell me your hook framework / environment that using by the xposed module like LSPosed x.x.x Android x.x

fankes commented 1 year ago

The xsp have fixed on LSPosed 1.9.2

TheVigor commented 1 year ago

Vendor: Samsung Galaxy A04E Android Version: Android 12 (One UI 4.1) LSPosed Version: 1.8.6 Yuki Version: 1.1.11

Thanks, I'll try to update LSPosed. Maybe there is something else that needs to be checked?

fankes commented 1 year ago

Xsp sometimes not working and not working for all devices, there will be a new storage solutions later and with libxposed using LSPosed’s remote storage solution on 2.0.0 version.

We can't solve this problem elegantly.