28
submitted 4 months ago* (last edited 4 months ago) by fine_sandy_bottom@discuss.tchncs.de to c/android@lemmy.world

If anyone could point me to some information or guide about this I'd really appreciate that.

I think the official com.android.gsm and friends need to be uninstalled first. I've tried that with adb, console reports "success", Google Play Services is no longer listed in Settings > Apps.

But... if I try to install MicroG via Fdroid or Droid-ify it goes through the install process, there's no error, but MicroG Core is not shown as "installed". If I try to install the apk with adb it says the currently installed version is newer than the one I'm trying to install?

microg.org seems to just assume you know how to install.

I read something about signature spoofing but I thought that was only for older devices.

Any insights / suggestions will be greatly appreciated.

Edit: I think this is the answer: https://xdaforums.com/t/guide-degoogle-any-device-and-install-microg.4058743/

top 9 comments
sorted by: hot top controversial new old
[-] BearOfaTime@lemm.ee 6 points 4 months ago

If the phone still has the factory ROM on it, I don't see any way of switching to MicroG, as play services are built in.

Generally you flash MicroG via adb.

Well, it was a carrier branded ROM. I've flashed rooted stock A13, so not really "factory" but I take your point in that it still has google services.

I've seen commenters in xda forums taking about this approach like it's no big thing.

[-] BearOfaTime@lemm.ee 1 points 4 months ago

Because GS are part of the ROM, I think it's likely to cause problems if you remove it.

That said, since you're not afraid to flash it, I'd root it, rip out the google services files, then flash whichever GApps package you want in there.

Should be interesting to see what problems arise (or don't).

Curious - what's your goal here?

Alternatively, flash a ROM that doesn't have Gservices like Lineage or DivestOS. Then flash GApps of choice.

Sure, look I don't know enough about this to contradict you but I'm not sure "GS are part of the ROM" is the whole story. The components in question like com.google.android.gms are just components, it's just that a lot of other components rely on them. If you remove them it's going to cause problems, but as I understand it the purpose of the microG suite is to mitigate those problems?

I'm not sure I really have a specific goal. It's a second / unused device so I'm just playing around with it really. I've always wanted to try Lineage but it's not directly supported and I think there's problems with the Camera amongst other things. I was reading on xda-forums someone said they rooted, installed stock android, then lsposed, and microG, and found the end result to be very pleasing, so I was just kinda following along with that to see where I end up.

I think in summary I'm interested to see what sort of experience is possible without any (minimal?) google services or apps.

I've updated the post since your first comment, I found a guide that I'm going to work through. I'll let you know.

[-] BearOfaTime@lemm.ee 0 points 4 months ago

When a ROM is compiled, the compiler follows the build file, which means it'll build in dependencies related to the files bing compiled. So simply remove/replace has a high risk of not working, since dependencies are unique to each file/component.

I was reading on xda-forums someone said they rooted, installed stock android, then lsposed, and microG, and found the end result to be very pleasing

This is a bit messy - rooting is done to a running OS, and unrelated to flashing a stock ROM. Stock Roms, as far as I've seen typically have Google Services baked in. Just clarifying.

I suppose they flashed a ROM without Google Services, rooted it, then flashed the Magisk Module Lsposed, and a version of GApps. I've done similar, lsposed (and its predecessor XPosed) provides a lot of customization capability.

Running without Google Services makes a fast phone and a battery that lasts noticeably longer. You could try simply freezing the Google Services files with something like 3C Toolbox (once rooted, of course). I think 3C can actually uninstall the files, but that's a good path to boot loop (ask me how I know 😁 ).

Even just freezing the files will often cause repetitive error notifications.

These problems are (I think) a result of the dependencies - like broadcasts that get configured for services during compile.

Give it a go - worst that happens is you reflash!

When a ROM is compiled, the compiler follows the build file, which means it’ll build in dependencies related to the files bing compiled. So simply remove/replace has a high risk of not working, since dependencies are unique to each file/component.

There's not really anything special here. This is how any software is built. Components have published APIs with which they interact with other components. The whole point of microG is that it emulates the same api as com.google.android.gms. I'm not expecting a 100% flawless implementation.

This is a bit messy - rooting is done to a running OS, and unrelated to flashing a stock ROM. Stock Roms, as far as I’ve seen typically have Google Services baked in. Just clarifying.

This just isn't true, at least not in my case. I obtained a stock android ROM from samsung's update server using bifrost. I then patched that ROM using Magisk and only then flashed it. So it's patch then flash.

Running without Google Services makes a fast phone and a battery that lasts noticeably longer. You could try simply freezing the Google Services files with something like 3C Toolbox (once rooted, of course). I think 3C can actually uninstall the files, but that’s a good path to boot loop (ask me how I know 😁 ).

Even just freezing the files will often cause repetitive error notifications.

This doesn't really seem sensible? Of course just freezing google services will cause errors. MicroG is designed to emulate google services and mitigate those errors.

[-] BearOfaTime@lemm.ee 0 points 4 months ago

This is exactly how rooting is done. "Root" is granting write access to the root directory of a running OS. It is utterly unrelated to flashing.

You may flash something to gain root access, or flash a pre-rooted image, but root is still a function of a running OS, it's logically other same as Administrator rights in Windows.

As for how GServices being intricately tied into a compiled ROM, believe what you want - rip out the GServices files with 3C Toolbox, and you'll find out exactly how tightly bound they are to the image. I'd be surprised if it doesn't boot loop (I've done this myself, even simply freezing them can boot loop a device).

Because... Integrated dependencies. Android isn't just "some other piece of software", it's an OS, like Linux and Windows (to be accurate, it's a Linux Kernel with Android as both the API layer and shell). When Google-less Roms are compiled, they do so with none of the Google services dependences. Even those Roms, if you flash something like MicroG, if you then delete those files, you get a boot loop because it's added those dependencies to the ROM.

Ask the folks at Lineage or DivestOS.

[-] Hiro8811@lemmy.world 0 points 4 months ago

If your rooted with magisk try nikgaps. Also you could try installing LineageOS with GAPS

LineageOS support seemed pretty terrible for my device, an s20+.

I'll have a look at NikGapps, thanks!

this post was submitted on 20 Feb 2024
28 points (100.0% liked)

Android

26800 readers
50 users here now

DROID DOES

Welcome to the droidymcdroidface-iest, Lemmyest (Lemmiest), test, bestest, phoniest, pluckiest, snarkiest, and spiciest Android community on Lemmy (Do not respond)! Here you can participate in amazing discussions and events relating to all things Android.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules


1. All posts must be relevant to Android devices/operating system.


2. Posts cannot be illegal or NSFW material.


3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.


4. Non-whitelisted bots will be banned.


5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.


6. Memes are not allowed to be posts, but are allowed in the comments.


7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.


8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.


Community Resources:


We are Android girls*,

In our Lemmy.world.

The back is plastic,

It's fantastic.

*Well, not just girls: people of all gender identities are welcomed here.


Our Partner Communities:

!android@lemmy.ml


founded 1 year ago
MODERATORS