whew-inc / FakeGApps

Signature spoofing for MicroG as an Xposed module
GNU General Public License v3.0
273 stars 16 forks source link

LSPosed Java Crash #7

Closed JadeTank closed 2 years ago

JadeTank commented 2 years ago

As a preface, I am using Android 12 with Magisk 24.3 and Zygisk LSPosed 1.8.3. For me, this mainly affects Samsung Gallery and I haven't noticed this in other apps, but I doubt this is an isolated issue.

With Samsung Gallery, it will crash whenever attempting to look at an images details or edit an images location. The default gallery not working isn't the end of the world, but several other apps such as the Camera use the gallery as a dependency which can cause issues with those as well. Looking at the LSPosed Logs, it shows an unexpected crash, "java.lang.SecurityException: getDataNetworkTypeForSubscriber", that occurred at several services, namely a couple microg ones, the samsung gallery, and several google. This is repeatable, and shows the same issue every time.

I've tried using multiple versions of FakeGApps, 3.1, 4.0, and 4.1, but the issue occurred in all of them. I also tried version 3.0, and the issue didn't occur, but signature spoofing no longer worked as its not compatible with Android 12. I also tried using Riru LSPosed, but it didn't change anything. I have several other LSPosed modules active as well, so I tried disabling all of them, but this did not affect anything either, only disabling FakeGApps fixes the issue.

This might not be an issue with FakeGApps, but instead LSPosed or even microG, but the issue only occurs when using FakeGApps which leads me to believe its related. If there are any suggestions for how I can fix this, please let me know. Also if you need any logs, please let me know which ones and where to get them, and I will be happy to provide.

JadeTank commented 2 years ago

Update: I was able to fix this issue by blocking firebase access to the app through an XPrivacyLua hook.