After literally 10 days, I’ve finally managed to remove google from my Samsung M10, which I think is the HARDEST Samsung phone to modify, I’ve probably seen every error there is.
Fastboot never works, regardless of how you change the drivers. The PC doesnt even recognize the phone in fastboot mode(Win 10).
TWRP will almost ALWAYS cause bootloop, and you’ll need to completely reset your phone. The only operation you can perform is adb push, and even that only works in read-only mode. Removing read only? Flashing anything? Restoring a backup? BOOM. Bootloop.
Whenever you try to delete/paste something into root, your phone will automatically restart. I believe its called read-only file system on a system-as-root a-only partition… and theres almost no way around it. ALMOST.
You’ll also see some scary screens, some that ask for passwords you’ve never set and some that are so frighteningly blue, youll get two heart attacks. I’ll tell you how to fix them all here.
It took me about 30 resets to find this exact set of steps. I really hope it works for you all - tell me in the comments down below. A real tragedy if it worked only on my device.
Huge thanks to this guy - https://xdaforums.com/t/guide-degoogle-any-device-and-install-microg.4058743/.
This should work on any device pre Android 10. I think it’ll work in later versions too, but you guys will have to test.
READ FIRST
When I say hold Volume Up + Volume Down, its a way to enter the Bootloader, a big download screen, when you connect it to the PC via USB. Your model may have a different way to do so - just look it up, and do that in steps 3a and 8.
GUIDE
STEP 1 - BACKUP YOUR DATA.
----------------------
UNLOCKING OEM AND BOOTLOADER
STEP 2 - Download Odin (https://xdaforums.com/t/patched-odin-3-13-1.3762572/) and Magisk Manager (https://magiskmanager.com/) into your PC.
STEP 3 - Download your phone’s firmware into your PC. I got mine from here (https://samfw.com/firmware/SM-M105F/INS/M105FDDS5CWA1). You may need to extract it - we want the AP file.
Few important things here. Go to Software Info, and check your baseband version. Itll be something like m105fdds5cwa1. The number after your model name is the most important, in my case 5. When I download firmware, that number can be equal to or higher than 5, but it should never be lower. You can find firmware on google by typing the baseband version on google. Mine was for INS (India), but I don’t think that matters.
While your phone is off, hold volume down + volume up. Connect it to PC via USB. If theres an option to hold power up to unlock bootloader, do so. Then press volume up. Turn off your phone.
DONE UNLOCKING OEM AND BOOTLOADER
-----------------------
If you’re already on the stock ROM (which means you havent tampered with any software and your OS is the same as it was when you bought it), then skip to Step 4.
Otherwise,
------------------
RESTORING STOCK ROM
STEP 3a - Youll have to FLASH it into your phone. That’s a term youll hear a lot. I was confused too… what does indecent exposure have to do with rooting? A lot apparently. You put your phone into an “open” state, allowing it to be “exposed” to all the apps. Basically, you can download whatever you want into your phone. Normally, this requires fastboot… but FASTBOOT MAY NOT WORK on your phone. So.
Download twrp. I used this (https://xdaforums.com/t/twrp-3-3-0-samsung-m10-twrp-recovery-for-samsung-m10-sm-m105f-ds.3925243/) to download Odin file. It WILL break your phone, but thats ok this time.
While your phone is off, hold volume down + volume up. Connect it to PC via USB. Then press volume up. It will enter a blue downloading screen. Open Odin, and click on the AP box. Select the twrp file, and press start. It should say PASS. Once its done, turn off your phone and then hold volume up + power. Keep holding. It will eventually boot into TWRP. Slide past the first screen, go to “Wipe” and select “complete format” or something, its the option on the right above factory reset. Type “yes”. Once its done, go back to the home screen and reboot to the bootloader (same blue download screen). Open Odin.
STEP 3b - From the firmware file you selected at the beginning of this step, place BL into BL, AP into AP, CP into CP and CSC into CSC. Press start, let it get over and say PASS, restart your phone. Congrats! You’re now on stock android. Sigh.
DONE RESTORING STOCK ROM
----------------
----------------
ROOTING STOCK ROM
STEP 4 - Go to about phone -> Software info -> tap Build number 7 times -> go back twice -> developer options, under about phone -> OEM Unlocking and USB debugging. A notification may pop up on your phone, click allow. Connect to Wi-Fi.
STEP 5 - Download [Magisk Manager App](https://magiskmanager.com/). Install it by running the APK file.
STEP 6 - Move the AP file from the beginning of step 2 into your phone’s Downloads folder.
STEP 7 - Open the Magisk Manager App, and update it if necessary (the bottom box). Then, Click on the top box, press next and select the said AP file. It will generate a new file, magisk_patched_XXX.tar, which you must TRANSFER TO YOUR PC.
STEP 8 - Turn off your phone. Connect it to PC, and hold volume down + volume up. FLASH TWRP into your phone by following Step 3a, DONT FOLLOW STEP 3b. Instead, place the new magisk_patched_XXX.tar file into AP. The rest is the same - place BL into BL, CP into CP and CSC into CSC. Hit Start. It should say PASS. If it doesnt, go to the ERRORS section.
STEP 9 - It might show a dead android, and go into a menu screen. Select factory reset and set up your phone.
STEP 10 - Go to about phone -> Software info -> tap Build number 7 times -> go back twice -> developer options, under about phone -> OEM Unlocking and USB debugging. A notification may pop up on your phone, click allow. Connect to Wi-Fi.
STEP 11 - Download [Magisk Manager App](https://magiskmanager.com/) again, [MiXplorer APK](https://mixplorer.com/), [MinMicroG-Standard-XXX.zip](https://github.com/FriendlyNeighborhoodShane/MinMicroG\_releases/releases) and [NanoDroid-patcher-XXX.zip](https://downloads.nanolx.org/NanoDroid/Stable/).
Transfer them into the Downloads section of your phone. Delete everything else in Downloads.
Install MiXplorer APK.
Rename MinMicroG-Standard-XXX.zip to system-MinMicroG-Standard-XXX.zip, ie, add a “system-” before it.
NANODROID-PATCHER IS USED FOR SIGNATURE SPOOFING, WHICH WE NEED TO FOOL GOOGLE, AND IS THE REASON WHY I SAID IT MAY ONLY WORK TILL ANDROID 10. Idk if it work for higher versions.
READ the next steps first. You’ll have only ~5 minutes, then you’ll lose your chance and have to start from scratch. Be prepared.
STEP 12 - Install Magisk APK and update if necessary. A pop up will appear, press OK and your phone will restart in 5 sec. Then, your phone will be rooted.
DONE ROOTING STOCK ROM
----------------
---------------
DE-GOOGLING
Once your phone has restarted, the timer begins. I had about 5 min, if your phone is faster you may have less time.
STEP 13 - Quickly open Magisk, and click on modules on the bottom right. Select install from storage, and select NanoDroid-patcher. It’ll take some time to complete.
STEP 14 - WHILE MAGISK IS FLASHING, press home and navigate to Mixplorer. It will ask for root permissions and some other stuff, grant everything. Press the three lines on the top left, click on root. Navigate to system -> priv-app and open the following folders, and delete the apks in them -
GmsCore (PrebuiltGmsCore, PrebuiltGmsCorePi, PrebuiltGmsCorePix)
GoogleBackupTransport
GoogleFeedback
GoogleLoginService
GoogleOneTimeInitializer
GooglePartnerSetup
GoogleServicesFramework
Phonesky
SetupWizard
Velvet
Then, quickly go back to Magisk.
STEP 15 - After flashing is done, DONT REBOOT. Press back and go back to the modules page. Click on install from storage again and this time, select the system-MinMicroG-Standard-XXX.zip file.
Get up. Go touch some grass. You’ve done the hardest bits.
For some reason, youre able to flash into system immediately after your phone is rooted with magisk. After a few min, that privilege gets blocked, and its almost impossible to paste into the root or system.
STEP 16 - Reboot your phone. Open the microg settings app. Self check -> grant system signature spoofing permission. This is the real test - if signature spoofing isnt enabled, it was all for naught. Signature Spoofing Checker can also tell you if it worked. If phonesky lacks signature spoofing permissions, go to settings->apps->permissions->signature spoofing and enable. In the home screen, enable Google device registration and Google cloud messaging (for whatsapp and stuff). You may need to download unifiednlp for some extra protection/spoofing - haven’t figured that out yet. Reboot, and
DE-GOOGLING DONE.
-----------------
ERRORS:
Regardless of the error, once you fix it, you’ll have to start this guide again from scratch.
It says “Only official ROMS can be flashed” in red text on top of the screen - Off your phone by holding power. Hold power+volume up. Attach phone to PC, press power up + power down, follow step 3b.
The phone looks like its working, but it says something like “device encrypted, please enter password”. And you’ve never set a password. Just follow Steps 2 and 3. You’ll have a working phone again.
THE SCARY BLUE SCREEN - This is a MAD one. Its not the nice blue download screen - its a sinister scene that says theres an error and you have to connect to some software to fix it - and that software doesnt work. Dont worry. Download FRP Hijacker by Hagard into your PC. Connect your phone to PC, and select “Softbrick fix” and OK. The model number doesnt matter. Then, start again from step 1. Or step 2, I guess.
Phone keeps turning off and on - This is called a “bootloop”. If it happened because of TWRP, hold volume up + power right after it turns off. Keep holding… Just a few more seconds… BAM. It’s now in TWRP, and you can follow steps 3a and 3b. If its NOT because of TWRP, just hold volume up + volume down when it turns off, open Odin and follow step 3b.
It keeps saying Google Play Services not working - Tough luck, man. You havent done it Steps 13 and 14 fast enough, and it may not even be possible on your phone. You can try again though. Turn the phone off. Follow the guide again from step 8.
😵💫😵💫 Good job?
But why…?
Wanted to remove google for last 5 years! finally got round to it.
Great research paper! and without TWRP. Thanks
Glad it helped! You need TWRP, but just once to format out your old ROM. After that you can directly flash the new one in so youll never have bootloop issues.