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

dlopen bypass broken on Android 12 (S) #5

Open
nick-botticelli opened this issue Oct 17, 2021 · 2 comments
Open

dlopen bypass broken on Android 12 (S) #5

nick-botticelli opened this issue Oct 17, 2021 · 2 comments

Comments

@nick-botticelli
Copy link

Seems to work fine on Android versions 11 and lower, but does not appear to work correctly on Android 12. I'll take a look at it later and see if I can find any reason/fix for this.

It looks like libssl.so (the test) is able to be opened on Android 12, but while other libraries like libhwui.so can be opened on Android 11, they cannot be opened on Android 12.

@nick-botticelli
Copy link
Author

nick-botticelli commented Oct 17, 2021

Looks like this https://github.com/quarkslab/android-restriction-bypass should still work; for libhwui.so specifically, I did have to add /apex/com.android.i18n/lib and /apex/com.android.i18n/lib64 to set_ld_library_paths.

Some debugging also showed that RestrictionBypass wasn't loading libhwui.so on Android 12 because it couldn't load all of its dependencies. The dependency libandroidicu.so cannot be loaded from the ART namespace so I don't know if it is fixable in the scope of this implementation.

@SarotecK
Copy link
Member

Hi yes currently it's only unsealing the java/vm part. Library loading is currently not supported, but I will work on it. Thanks for your feedbak

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