PAGalaxyLab / YAHFA

Yet Another Hook Framework for ART
GNU General Public License v3.0
1.56k stars 350 forks source link

does this support Android 12 factory release image? #153

Closed vegedreamgagnoa closed 2 years ago

vegedreamgagnoa commented 2 years ago

I saw that library-release.aar is for Android R / 11. Does YAHFA provide support for Android 12 factory release/public image?

Thanks!

tag @rk700 @rk700

rk700 commented 2 years ago

Not yet. Some native hooks are required to fix the issue but I haven't figured it out. https://github.com/PAGalaxyLab/YAHFA/issues/151

vegedreamgagnoa commented 2 years ago

@rk700 I tried to hook FixupStaticTrampolines but didn't solve the issue, fixing the classlinker offset/pointer not helping either. I keep exploring as well.

ghost commented 2 years ago

你可以稍微思考一下为啥给系统库函数挂钩不会崩溃?是否和dex2oat优化以后有关?是否可以像SandHook在安卓7之前使用的挂钩方法一样? 这几个问题你可以思考一下,100%可以解决这个问题。

vegedreamgagnoa commented 2 years ago

Solved, I got it working now to hook successfully on Android 12

beaver-android commented 2 years ago

@vegedreamgagnoa What was the problem and how did you solve it?