Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't hook art::gc::Heap::PreZygoteFork on Android 11 with ARM #109

Closed
kotori2 opened this issue Nov 5, 2020 · 4 comments
Closed

Can't hook art::gc::Heap::PreZygoteFork on Android 11 with ARM #109

kotori2 opened this issue Nov 5, 2020 · 4 comments

Comments

@kotori2
Copy link

kotori2 commented Nov 5, 2020

In my own fork of EdXposed, there is a hook for art::gc::Heap::PreZygoteFork. It works. fine on ARM64 but failed on ARM.

Stack trace:

telegram-cloud-photo-size-5-6134389153815702320-y
telegram-cloud-photo-size-5-6134389153815702323-y

Disassembled function (on Pixel 4 XL, RP1A.201005.004, /apex/com.android.art/lib/libart.so):
telegram-cloud-photo-size-5-6134389153815702322-y

It seems SP register was messed up here.
Also the hook fails at System UI and the system crashes, so I don't have time to attach a debugger.
Any advice on how to debug it here?

@jmpews
Copy link
Owner

jmpews commented Nov 6, 2020

hi, i'll test it today.

@jmpews
Copy link
Owner

jmpews commented Nov 7, 2020

@kotori2 Any contact? wechat?

@kotori2
Copy link
Author

kotori2 commented Nov 7, 2020

Email sent to the address on your profile page

@kotori2
Copy link
Author

kotori2 commented Nov 8, 2020

fixed b3b3f81

@kotori2 kotori2 closed this as completed Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants