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

Null Pointer in Custom Privacy #141

Open
Dev4Mod opened this issue Oct 12, 2024 · 0 comments
Open

Null Pointer in Custom Privacy #141

Dev4Mod opened this issue Oct 12, 2024 · 0 comments

Comments

@Dev4Mod
Copy link
Owner

Dev4Mod commented Oct 12, 2024

This problem recently appeared with the addition of Custom Privacy. A null pointer is thrown from the native code when entering the onCreate method of the ContactInfo Activity. Strangely, this occurs only on some (stock) ROMs, but due to the number of affected people, I decided to investigate further.

I looked at my code and didn't find anything that would generate this error; moreover, the Java code itself would throw a NullPointerException if any object were null, but this does not happen, and the error occurs in the native code. Therefore, I assumed that the error was in the LSPosed hook; it could be an update in the Android ART. Usually, you can downgrade by executing:

pm uninstall com.google.android.art
reboot

Since I cannot reproduce the problem, I cannot test this hypothesis. Another possibility could be Shamiko, which alters some cache functions of LSPosed to avoid detection. The error thrown refers to a cache that was deleted from the JIT; this might have something in common, but I can only test it on the affected devices to see if Shamiko is present and if it is the cause of the problem.

Solution:
As an alternative, I just released an update in the latest commit to change the Xposed hook to use the activity lifecycle. This allows me to monitor when the activity starts and insert the privacy button.

@Dev4Mod Dev4Mod pinned this issue Dec 21, 2024
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

1 participant