Hi XDA
I'm having an issue deodexing or signature spoofing, all the tutorials seem to be for Android 9, 11 or 12, but not 10. Everyone seems to recommend Nanodroid but that isn't working for me, the MicroG self-check fails on "System spoofs signature" and "Play Services (GmsCore) has correct signature", I hear this happens when spoofing is enabled system-wide, but most Gapps still don't work properly, like the Play Store crashing immediately on startup (I'd prefer to use the Aurora store so I'm just listing it as a symptom), YouTube (stock and revanced root installed) complaining that Play Services isn't enabled, no notifications and location services not working at all so Maps is useless.
I did try Smali Patcher and that didn't work either (though the Screenshot on restricted apps patch did work) and I've heard some call it "shady" though they didn't say why.
I've heard that there is a way of enabling spoofing on a per-app basis (like apps requesting root access) which I would prefer, and I wasn't really a fan of how Nanodroid disabled the app installation dialog box (I prefer to micromanage updates), though as mentioned above I did like that screenshots couldn't be blocked.
Does my ideal setup exist or it is another pipe-dream?
Thank you in advance.
Look inside here:
doc/NanoDroidPerm.md · master · Christopher Roy Bratusek / NanoDroid · GitLab
microG, F-Droid, GNU Bash, FOSS applications and more for Android
gitlab.com
jwoegerbauer said:
Look inside here:
doc/NanoDroidPerm.md · master · Christopher Roy Bratusek / NanoDroid · GitLab
microG, F-Droid, GNU Bash, FOSS applications and more for Android
gitlab.com
Click to expand...
Click to collapse
Thank you for the suggestion, I ran the script as root but it didn't change anything.
EDIT: I just read through the documentation on the nanodroid repo and it seems you can't set up MicroG using this method on a Gapps preloaded stock ROM without installing it through recovery, which I can't as there's no port of any custom recoveries like TWRP.
Related
[MODULE] Signature Spoof & Update Location Services (Stock 34.4.A.2.85 Customized_DE)
Magisk Module to Signature Spoof & Update Location Services (Stock 34.4.A.2.85 Customized_DE)
!!!!DISCLAIMER: Please know what you are doing. I take no responsibility for breaking your device you are doing this on your own accord and take full responsibility for whatever happens to your device. This has been tested on my daily phone which has Stock firmware 34.4.A.2.85 (Customized_DE). I also take no responsibility for any other related or unrelated issues in your life that may happen after looking at this disclaimer.
Prerequisites:
Sony Xperia X Compact (F5321)
Magisk 16.0 (may work with 16+ but not tested)
Stock Customized_DE Firmware (v34.4.A.2.85) but may work with other Customized_XX version
TWRP (any version that can flash Magisk Module Scripts)
Install Instructions:
Reboot into TWRP
Flash Magisk Module Script
What To Do If It Didn't Work:
Dont panic. The best part of Magisk is there is low risk with systemless modules.
1.) Reboot into TWRP (with phone off hold power button and volume down)
2.) adb push the Magisk Mount Script (link)
3.) flash Magisk Mount Script
3.) delete the f5321_sigspoof folder
4.) reboot back to previous
Q&A
What does this do?
This module updates the framework.jar, services.jar, ext.jar, and framework-res.apk files through systemless interface to save stock functionality.
How was this accomplished
1.) Latest stock firmware flashed to Sony device F5321 version 34.4.A.2.85 Customized_DE
2.) /system/framework was downloaded and dodexed using Fulmics Deodexer (link)
3.) Deodexed services.jar, framework.jar, ext.jar, some other jars were used in processing with Haystack (link) to create signature spoofing.
4.) Framework-res-overlay was created to support the modifications needed for Location Services to work with MicroG (ref1) (ref2)
5.) Magisk Module template was downloaded and all the files were added to be replaced.
6.) ...
7.) profit
Why would you want this?
Honestly I don't know why you want this but I want this so that I can control and limit the exposure for location based service tracking that happens on my device on a minute by minute basis. MicroG (and by extension) UnifiedNlp allows this through locally stored location service backends. Also, MicroG allows the use of basic google services without sucking my battery dry. Can go ~3 days with light/moderate use. So thats also good.
Why use stock rom and not other custom rom (like OMNIRom)?
OMNIRom is great and amazing but I often find myself addicted to flashing the next best ROM. I also find that the one feature that is fixed in one ROM has two other unstable features that render the phone just barely stable enough for daily use.
reserved ...
JenItols said:
Magisk Module to Signature Spoof & Update Location Services (Stock 34.4.A.2.85 Customized_DE)
.
Click to expand...
Click to collapse
Don't know much about this stuff, but question - flashing module succeeded in checking unlp boxes in Microg settings, but still get no location fix when in battery-saving mode, and GPS apps show 'GPS disabled' . Any ideas? Thanks (latest stock fw... 85)
levone1 said:
Don't know much about this stuff, but question - flashing module succeeded in checking unlp boxes in Microg settings, but still get no location fix when in battery-saving mode, and GPS apps show 'GPS disabled' . Any ideas? Thanks (latest stock fw... 85)
Click to expand...
Click to collapse
Are you using UnifiedNlp.apk or NetworkLocation.apk?
UnifiedNlp.apk package is com.microg.nlp
NetworkLocation.apk package is com.google.android.gms
This fix specifies com.google.android.gms as the network location provider. This means UnifiedNlp isn't specified. I can make a separate version with UnifiedNlp but UnifiedNlp was meant to be used with true GApps like normal google services. One would argue that if you are wanting to use regular google apps then you would use MicroG which allows the use of google apps. MicroG is com.google.android.gms also and provides the UnifiedNlp package built in.
If needed I can create a version of this with UnifiedNlp.apk (com.microg.nlp) as the location provider but I would highly recommend using MicroG if you want to use the location provider along with normal google apps.
Have you configured a location provider backend?
You have to also download and install an additional location provider backend. Additional information/packages can be found here
JenItols said:
Are you using UnifiedNlp.apk or NetworkLocation.apk?
UnifiedNlp.apk package is com.microg.nlp
NetworkLocation.apk package is com.google.android.gms
This fix specifies com.google.android.gms as the network location provider. This means UnifiedNlp isn't specified. I can make a separate version with UnifiedNlp but UnifiedNlp was meant to be used with true GApps like normal google services. One would argue that if you are wanting to use regular google apps then you would use MicroG which allows the use of google apps. MicroG is com.google.android.gms also and provides the UnifiedNlp package built in.
If needed I can create a version of this with UnifiedNlp.apk (com.microg.nlp) as the location provider but I would highly recommend using MicroG if you want to use the location provider along with normal google apps.
Have you configured a location provider backend?
You have to also download and install an additional location provider backend. Additional information/packages can be found here
Click to expand...
Click to collapse
Thanks - I do know enough to configure backend, (I've used microG since a few years ago, but I don't know much technical stuff), but I didn't catch the difference between the two providers. Indeed, mine is org.microg.nlp. Don't go making a new one for me - I can just change it.
Thanks again
JenItols said:
Are you using UnifiedNlp.apk or NetworkLocation.apk?
UnifiedNlp.apk package is com.microg.nlp
NetworkLocation.apk package is com.google.android.gms
This fix specifies com.google.android.gms as the network location provider. This means UnifiedNlp isn't specified. I can make a separate version with UnifiedNlp but UnifiedNlp was meant to be used with true GApps like normal google services. One would argue that if you are wanting to use regular google apps then you would use MicroG which allows the use of google apps. MicroG is com.google.android.gms also and provides the UnifiedNlp package built in.
If needed I can create a version of this with UnifiedNlp.apk (com.microg.nlp) as the location provider but I would highly recommend using MicroG if you want to use the location provider along with normal google apps.
Have you configured a location provider backend?
You have to also download and install an additional location provider backend. Additional information/packages can be found here
Click to expand...
Click to collapse
Seems like the issue is that GMScore has unlp built in, so when installing apps for MicroG, there's no apktool needed for location provider, and trying to install NetworkLocation apktool as an update fails.
(sorry, I just got back around to this...)
JenItols said:
Are you using UnifiedNlp.apk or NetworkLocation.apk?
Click to expand...
Click to collapse
figured it out. ..
Anyone aware of replacing stock GApps with microG on the stock rom? I'm sure signature spoofing would need to be enabled (via Haystack?) and assuming other changes as well. Mainly looking for a stock-ish setup with GApps and telemetry removed similar to the Tomatot Debloater but keeping as much stock functionality as possibly - VoLTE, VoWifi, fp, etc.
Thanks!
Yes it is possible, I am running MicroG on OOS 10.3.0. You can delete GmsCore (Google Play Services) and Google Services Framework in /system/system/product/priv-app through TWRP by mounting system. OOS doesn't have signature spoofing so you'll also need to use EdXposed for FakeGapps and XposedGmsUnifiedNlp. Then flash the MicroG Installer (Magisk module), and update microG in F-Droid. You can then remove all of the OOS filth and spyware with the debloater module. For this ti work, GmsCore and Google Services Framework cannot be debloated, they have to be deleted manually. For some reason safety net isn't passing atm, still figuring this out.
What even is the point of using microG on a proprietary rom? I suggest you use a rom which supports signature spoofing by default like aosip 10
Adolamin said:
Yes it is possible, I am running MicroG on OOS 10.3.0. You can delete GmsCore (Google Play Services) and Google Services Framework in /system/system/product/priv-app through TWRP by mounting system. OOS doesn't have signature spoofing so you'll also need to use EdXposed for FakeGapps and XposedGmsUnifiedNlp. Then flash the MicroG Installer (Magisk module), and update microG in F-Droid. You can then remove all of the OOS filth and spyware with the debloater module. For this ti work, GmsCore and Google Services Framework cannot be debloated, they have to be deleted manually. For some reason safety net isn't passing atm, still figuring this out.
Click to expand...
Click to collapse
Safetynet will not work because it's MicroG. I've seen some users manage to pass safetynet with MicroG but you will need to rely on hacky workarounds like NanoDroid (although I personally wasn't able to get safetynet to pass).
You cannot degogle few things like google package installer, googleExt (something like that), when i tried to google them i got bootlooped, however i tried to remove them via debloter (magisk module), if anyone have completely removed gapps let me know
also microg or unifiednlp dont detect proper location for me when i am at my home idk why.
Kaz205 said:
What even is the point of using microG on a proprietary rom? I suggest you use a rom which supports signature spoofing by default like aosip 10
Safetynet will not work because it's MicroG. I've seen some users manage to pass safetynet with MicroG but you will need to rely on hacky workarounds like NanoDroid (although I personally wasn't able to get safetynet to pass).
Click to expand...
Click to collapse
OOS is currently the best rom IMO, chiefly because the OOS camera is that much better than the gcam ports, not to mention the roms stability.
My old phone has MicroG and safety net passes. I know it's possible, it's probably related to OOS not supporting signature spoofing.
After a long time of writing I'm proud to release my free e-book / extensive guide called:
"Build your own ultimate Android"
It'll cover A LOT of Android modding (23 pages) but it's really detailed and I hope it'll be a good starting point for newbies to the scene.
But I'm pretty sure even novice modders will still be able to get something out of this.
In the guide I'll be modding a OnePlus 3T from start to finish but it should also mostly be suitable for other brands as well since I described it pretty generally.
If you follow the book you should end up with a build running the Latest LineageOS, one of the most private android's that will be out there, that has zero advertisements and is really battery and resource friendly.
You can read/download it from here:
DropBox Download - Build your own Android
Up-doots are welcome if you learned something from it, took a long time to write all of this down.
This is the table of contents to give you a more in-depth overview:
Info on the Android system:
Unlocking the bootloader:
Flashing a Custom Recovery (TWRP)
Flashing LineageOS 17.1
Flashing Magisk
Setting up LineageOS 17.1
Magisk Manager for Recovery
Magisk Modules:
Ainur Narsil / Sauron
Audio Modification Library
BusyBox for Android NDK
CloudFlareDNS4Magisk
GPU Turbo Boost
LiboemCrypto Disabler
Universal GMS Doze
Wifi Bonding (Qcom)
Installing Xposed Framework
Installing Aurora Store, Droid & Services
Installing MicroG
Installing Orbot
F*ck advertisements:
AdAway
MinMinGuard
FireFox
YouTube Vanced
Spotify
SoundCloud
Viper4Android FX
AfWall+
Facebook & Messenger
Mobilism
XPrivacyLua
MiXplorer
Titanium Backup
GravityBox
Substratum
Jasi Patcher
CPU Info
Split APKs Installer (SAI)
Keepass2Android & KeeWeb
WebKey
FairEmail
Customizing Termux
Conclusion
Honorable Mentions
A note: Sauron is good but the author is on hiatus and only compatible with Android 9 or below, Narsir is compatible with 10 but the removal of libs may affect other functions (like on my Redmi K30 when install Narsir there's no voice when calling)
do you have a guide on building lineageos rather than just flashing it?
Hi folks!
I'm trying to pass the Google Safety Net on my 8T but I fail both on the basic integrity and the cts profile check.
So here's what I did:
I started from a "clean" phone, out-of-the-box with stock everything.
I installed Lineage OS for microG = no gapps (their custom recovery and the ROM image from here following this wiki guide)
I updated the preinstalled Magisk to the newest version (version 23.0 (23000))
I patched my boot image with Magisk, flashed it, getting root.
I installed microG DroidGuard Helper from the Fdroid nanolx repository (version 0.1.0-10-gf64bf69)
I installed the following module: MagiskHide Props Config (version 5.4.0-v128)
I rebooted
I enabled Magisk Hide and hid microG Services Core ( = com.google.android.gms) and tried to hide DroidGuard (but the checkbox wouldn't stay ticked)
I rebooted
After this, I can't even get past the basic integrity test. The evalType says basic.
So I have read about this Universal Safety Net fix to pass the cts profile check but it says it would require a pass in the basic integrity test first, so I'm out of luck there.
As this is the first time I'm dabbling with rooting my phone please point out any mistakes and request any information you might need to help.
Thanks in advance,
Alex
Unless something has changed very recently you can't pass SafetyNet in microg.
Oh, I see. That's a shame. Do you know why that is or can you point me to a source that explains why this does not work or what would be needed to make it work?
tangboshi said:
Oh, I see. That's a shame. Do you know why that is or can you point me to a source that explains why this does not work or what would be needed to make it work?
Click to expand...
Click to collapse
I believe to remember that the microG thread contains a few information:
[APP] microG GmsCore - lightweight free software clone of Google Play Services
Introduction microG GmsCore is a FLOSS (Free/Libre Open Source Software) framework to allow applications designed for Google Play Services to run on systems, where Play Services is not available. If you use your phone without GAPPS this might...
forum.xda-developers.com
The required DroidGuardHelper isn't up-to-date - and probably can't be updated, I don't know.
You can't also check the µG Github for reported issues:
GitHub - microg/GmsCore: Free implementation of Play Services
Free implementation of Play Services. Contribute to microg/GmsCore development by creating an account on GitHub.
github.com
Personally, I using µG for years but I personally don't require to pass SafetyNet i.e. I never cared.
microG GmsCore 0.2.23.214816 can pass SafetyNet.
Starting from this version microG DroidGuard Helper is no longer needed and it must be removed.
ale5000 said:
microG GmsCore 0.2.23.214816 can pass SafetyNet.
Starting from this version microG DroidGuard Helper is no longer needed and it must be removed.
Click to expand...
Click to collapse
Any guides on this anywhere ? Is it true for all devices ? Mine is XZ2C anyway..
I've tried LineageOS for micro g and official lineageOS installing micro g afterwards and no luck still.
official lineageOS with google services works fine to pass safetynet.
Your input or a little guide would be greatly appreciated. Thank you
Has anyone managed to get microG working yet?
I can get it installed via the revived or nanodroid Magisk modules, but haven't been able to get Signature Spoofing box ticked.
Have tried FakeGApps and Core Patch (LSPosed), and Smali patcher, no dice.
dude....couple more details what u talking about
microG is an alternative to google play services, with some flaws but less battery-sapping (and privacy-compromising) tracking.
now i can say....i have no clue what u talking about
treff89 said:
microG is an alternative to google play services, with some flaws but less battery-sapping (and privacy-compromising) tracking.
Click to expand...
Click to collapse
vanced microG worked on my phone (noroot)
Depending on a variety of factors the boxes will not tick, however stuff would be working, as simple as opening play store, which won't open if it weren't properly set up.
Let us know.
Hey, did you get it to work? Also, did using Magisk mess up any other features (like the original camera app or anything else)?
I got it working beautifully thanks, no harmful side-effects, and this is what I ended up using for signature spoofing, which wasn't too hard to set up compared with some other options out there:
GitHub - 1Michael23/android-11-signature-spoofing: A script that can be used to inject signature spoofing support into unsupported roms such as LineageOS.
A script that can be used to inject signature spoofing support into unsupported roms such as LineageOS. - GitHub - 1Michael23/android-11-signature-spoofing: A script that can be used to inject sign...
github.com
I think this guide may have helped too, from memory.
Signature Spoofing on unsuported Android 11 (R) Roms
How to get Signature Spoofing working on Android 11 (R) Roms that have no support for Signature Spoofing? In my Case here I use a Samsung Galaxy S8 with an unofficial LineageOS 18.1 (Android 11) by stricted I use TWRP recovery but this should...
forum.xda-developers.com
Just to reiterate this post... You are running Stock Android/Rooted/De-Googled and replaced with Micro G right? I have been on a quest the past week or so trying to find a ROM that works but it has been a lot of soft bricking and compromises once I do get one up and running. So this would be ideal for sure. Replace GAPPS with Micro G and keep the Sony camera apps. Either way I'll dig through those links and see what I can get figured out. Thanks!
J2 digital said:
You are running Stock Android/Rooted/De-Googled and replaced with Micro G right?
Click to expand...
Click to collapse
Yep, that's right!