-
Notifications
You must be signed in to change notification settings - Fork 50
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
Android 11 Support #38
Conversation
Forgot to add that this should fix issue #36. |
Can we have a new release with the fix please? Edxposed logs are still spammed on android Q |
I am running a OnePlus 7 Pro 5G (Sprint) latest firmware De-Googled. I uninstalled all Google apps and framework. You can do the same thing Running the OnePlus 7 Pro 5G (Sprint) running the EU 5G firmware. You might want to copy the Modem image from the Sprint's latest firmware using TWRP and then write it back to the EU do to the latest builds (as of v10.0.9) modem is flaky and will not stay connected. Backup Modem.img to both A and B partitions update using terminal: Write Modem.img to both A and B partitions update using terminal: I can confirm whew-inc will work with MicroG latest build Magisk revived module. I am using it with Magisk 21.3 and latest build of EdXposed YAHAFA Canary. Just install Ruri modules via Magisk Manager. Just enabled the FakesGApps module in EdXposed Manager after you install it. If you run into any issues with it not wanting to check the boxes in MicroG Self-Check might need to fix the permissions XML file after you install it. Also, with OnePlus 7 Pro and Magisk 21.x version you might run into an issue of not being able to use a root explorer or terminal exploring root hangs you might need to install the latest version of Disable_Dm-Verity_ForceEncryption.zip follow the steps on XDA forum exactly. ================================================================================ Find this section and update it:
============================================================================== I have attached compiled version (extract it from the zip): |
I have no such permission file in LOS under /data/system/users/0/runtime-permissions.xml Would you explain how to setup fakegapps in my OS? |
This is a good change. It wasn't working for me on 11 though. I got it working by modifying the hook to hook ApplicationPackageManger.getPackageInfo |
This seems to work for me too on 11. However I think this won't work on older releases so likely gonna have to add a version check. I built an apk for testing: https://github.com/whew-inc/FakeGApps/releases/tag/android11_initial Can someone test this with android < 11? (If you would rather build it yourself: https://github.com/whew-inc/FakeGApps/tree/android11_initial) |
I self-compiled this for testing on armv7 , device klte LineageOS 18.1 and confirm it works good, I can test on one of my tablets which runs android 9.0 and see if it works same. |
@whew-inc Spoofing works on another tablet running Android 9.0 with https://github.com/whew-inc/FakeGApps/releases/tag/android11_initial for me, needs more tests about this. |
Youtube Vanced (official one too?) does not seem to trigger the hook. "YouTube won't run without Google Play services" yadayada Signal does not work too. Play services reports services are installed. My country's corona app works properly.
|
About YouTube vanced: https://vancedmanager.com/ there is a known issue with versions > 16 in order to make microg integration work microg/GmsCore#1373 I personally use an old v15 for the channels with subscriptions, and newpipe for anything else. Another degoogled signal alternative: https://langis.cloudfrancois.fr/#download-en Signal works for me, so I guess we are using different microg implementations: https://github.com/FriendlyNeighborhoodShane/MinMicroG-abuse-CI This is what I use. I used the corona app for my country too, but I ended stopping using it because of the many bugs. Edit: For ethics reason I'll use the degoogled version above, but I just tested the Google Play one downloaded from Aurora Store, and works fine at first sight. |
@dantecpu Thanks for the info. Older Vanced version didn't work at first but after a few reboots and such it magically works now. Signal is now the only one acting up, though it seems it switched to using the notification trick to push new message notifications. I can't be bothered to backup my messages and install something else right now. I've also checked the source code a bit and it looks like Android doesn't use the method anymore |
Your test apk is not signed.
Edit: Looks like it doesn't like zipalign even though i did it before apksign (as it's meant to be done for v2+). |
After a first research, I setted myself with a completely different app that enforce security measures, here is the F-Droid repo: I think this could help your situation:
|
Thanks. I've tested it on Android 11 and the self-test is ok now indeed. I don't have any further GCM demanding apps installed atm. |
I will change this pull request to include android 11 support. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work @whew-inc, I tested your patch on Android 10 and Android 6 and it worked flawlessly.
I've seen also that the ApplicationPackageManager method you're now hooking into is present since Android 4.0, therefore it's super backwards-compatible.
I left some feedback about the code to (IMO) improve this patch even more before it gets merged (hopefully) :D
app/src/main/java/com/thermatk/android/xf/fakegapps/FakeSignatures.java
Outdated
Show resolved
Hide resolved
app/src/main/java/com/thermatk/android/xf/fakegapps/FakeSignatures.java
Outdated
Show resolved
Hide resolved
app/src/main/java/com/thermatk/android/xf/fakegapps/FakeSignatures.java
Outdated
Show resolved
Hide resolved
Is EdExposed better than LSPosed? I tryed with the 2.0 and the new test apk but with this new one I got this error, what can I try? |
@MrNessuno It's normal. This happens when the sig is spoofed for system itself. Check if eg. Microg works. @Fs00' feedback fixes this but I haven't found the time to get onto it yet. |
I have to enable the module and check System Framework right? I tried with the Signature Spoofing Checker and I got disabled as result |
I don't know how Lxposed works but in Edxposed all you have to do is enable the module and reboot. This module only spoofs two google play apps (play store and services). Because Signature Spoofing Checker isn't one of the two, its signature won't be spoofed and therefore the app thinks spoofing doesn't work. |
LSPosed is the opposite approach to EdXposed, by default nothing is hooked, you have to select it, so from a security/bug point of view is better, I remember on EdXposed a similar options with it working fine, also we can make rules for it for automatic selection of best settings. Edit: Indeed the verbose log isn't something new I think? Anyway in order for LSPosed to work with fakegapps, I added what is required to be enabled on Android 11. Edit:
If the log trouble you, you can try merge this into 11 and test, eebssk1@3b8aebc Final Result: both the log problem you mentioned, and the LSPosed are functional with the Android 11 branch. |
where is recommended to download MicroG to be more compatible with this module? (sorry for "spamming" here, but idk another place for this question) |
I personally use this: https://github.com/FriendlyNeighborhoodShane/MinMicroG-abuse-CI You are welcome. |
ps: nobody recommended me anything, I just tested them during time, in the end I developed a personal taste for the one I shared with you, which of course maybe not of your taste, another one is nanodroid... |
No log spam and LSposed scoped module support: https://github.com/whew-inc/FakeGApps/releases/tag/lsposed |
This avoids the need to select every app that needs GMS signature spoofing when using LSPosed
Looking for someone to test this with LSposed on Android 11. Improved app startup performance is one of the changes |
Change hook logic to avoid having to enable the module for all apps on LSPosed
Hi @whew-inc |
Port to Android 12
Compatibility
Preparation to submit the module to LSPosed repo
@kurt-by The module has been updated for Android 12. |
Closing as there has been no response from the author for 2+ years now. |
I've deleted the whole package name service thing and used a simpler way to retrieve package names and labels. Both the package and app name can be logged this way. This fixes the original NullPointerException spam in log.
As for Android 11 support: this now hooks into
ApplicationPackageManager.getPackageInfo
instead of the old method.I've also upped Gradle version and target SDK.
Tested on Android 11 AOSP ROM.
Tested on Android 10 Samsung ROM.