[Samsung Galaxy S20 FE Guides, News, & Discussion] Svirusx:
MicroG with Stock OneUI 4.1 ROM

If you read it then you know what is MicroG... :p

I made this tutorial from my own tests with S20 FE 5G. This is possible that i removed too much google apps but nessesery are Google Play Services, Google services framework and Google Play Store.

Installing MicroG in Stock ROM is more difficult than with Custom ROM which doesn't have gapps.

I am not responsible for bricked devices.
!!!!!MAKE BACKUP in TWRP BEFORE YOU START!!!!!
!!!!!BACKUP is only one way to recover GAPPS if something gone wrong!!!!!

Those steps i have done to get MicroG working with SafetyNet passed.

1. Install Magisk here (Canary is too fine) -> Enable Zygisk but DO NOT enable Enforce DenyList

2. Install latest Universal SafetyNet Fix from here (at writing time latest was 2.2.1 Zygisk) -> (Check if gapps pass safetynet if not you need fix it first with gapps here)

3. When you pass SafetyNet with gapps -> Install LSPosed Zygisk here (at writing time latest was 1.8.2)

4. Install FakeGapps here (Must be v3.1 or v3.2 which support Android 12)

5. Enable FakeGapps in LSposed(default settings are fine! Only System Framework checked) -> Reboot

6. Time to remove Gapps:

I made little script which could help with removing gapps with ADB:

6.1. Remove Google apps updates (Without it MicroG crashes)

#Remove updates from apps: (WARN i removed those apps but might be enough to remove Google Play Services, Google services framework and Google Play Store (Google Play Store special version are you going to install back...)

adb uninstall com.google.android.gms

#Google Play Store

adb uninstall com.android.vending

#Google services framework

adb uninstall com.google.android.gsf

#Market-feedbackagent

adb uninstall com.google.android.feedback

#Google Partner Setup

adb uninstall com.google.android.partnersetup

#Google Partner Setup

adb uninstall com.google.android.partnersetup

#Google Android Setup

adb uninstall com.google.android.setupwizard

#Google One Time Init

adb uninstall com.google.android.onetimeinitializer

#Google Velvet (Search App)

adb uninstall com.google.android.googlequicksearchbox

##6.2. Remove google apps and permission files - if you don't remove permissions files installing MicroG magisk module give you permission error: (Like with removing updates you don't need to remove everything)

adb shell

su

mount -o rw,remount -t ext4 /product

rm -f /product/etc/permissions/privapp-permissions-google-product.xml

rm -f /product/etc/permissions/split-permissions-google.xml

rm -f /product/etc/permissions/turboapk-permissions.xml

rm -f /product/etc/permissions/carrerwifi.xml

rm -f /product/etc/default-permissions/default-permissions-google.xml

rm -rf /product/priv-app/GmsCore

rm -rf /product/priv-app/GoogleOneTimeInitializer

rm -rf /product/priv-app/GooglePartnerSetup

rm -rf /product/priv-app/GoogleRestore

rm -rf /product/priv-app/Phonesky

rm -rf /product/priv-app/Turbo

rm -rf /product/priv-app/Velvet

#If in TWRP:

mount -o rw,remount -t ext4 /system_root

rm -rf /system_root/system/system_ext/priv-app/GoogleServicesFramework

rm -rf /system_root/system/system_ext/priv-app/SetupWizard

#In System:

mount -o rw,remount -t ext4 /system

rm -rf /system/system_ext/priv-app/GoogleServicesFramework

rm -rf /system/system_ext/priv-app/SetupWizard

reboot

Ignore spam of apps which need google play services...

7. Install MinMicroG Standard here (Look which version is best for you here if you removed Google Play Store you need one which have it)

reboot

8. Now you can get MicroG crash it is because of not granted permissions.

9. Install Terminal Emulator -> execute as root "su" -> run command npem to grant most of permissions

10. Start MicroG -> Self-Check -> System spoofs signature must be checked! Click at all another permissions which aren't checked and grant it (enable location before)

View attachment 5595669

11. When everything is checked go to Google device registration -> Enable it

12. Go to Cloud Messaging -> Enable Receive push notifications

13. Go to Google SafetyNet -> Enable Allow device attestion ( Might you can now pass safety net check it with "Test SafetyNet attestion"

View attachment 5595673

14. Go to Location modules and enable which Network-based Geolocation module you want and Address lookup module.

View attachment 5595671

15. This step is needed to hide root from apps

15.1. Install Magisk module Shamiko here which works like old Magisk Hide and uses Zygisk "DenyList" when "Enforce DenyList" IS NOT enabled

15.2. Choose your Apps which don't like root in DenyList

15.3. reboot

Known bugs:

Cloud Messaging: Some apps register Cloud Messaging ONLY ONCE after install. If you have used long time gapps and have Whatsapp, Signal etc... Run they and look if in Cloud Messaging are they added, if not you need clean data and start they again or reinstall apps.

If you have beter steps i could update my Tutorial! ;]