Google Apps keep reinstalling/ reactivating

Thanks. Good to know there is a way, even though it seems uneccessary complicated. I never had this issue before, not even with the Pixel phones, which should be totaly googlelized. Once deactivated, the apps stayed that way.

Hello,

I had a similar issue when I installed a secondary language pack.

When I disabled all the google apps, they kept being re-enabled.
I let them update and let Play Store download the language packs in the background. I then disabled the apps without removing the data etc.

I then removed the Play Stores ability to modify system settings.
Settings> Apps and Notifications> Play Store> Advanced> Modify System Settings

I’ve also removed the auto-updating aspect of the play store.
I’ve not been bugged by the app upgrades etc since.

Hopefully this helps people =)

8 Likes

FWIW: Mac users using Homebrew can open a Terminal and execute

$ brew cask install android-platform-tools

(Disclaimer: Never execute commands you don’t understand.)

What I used in past in a script I would fire at startup which would disable all the advertising features from apps. It required root, and used the same pm command.

AFAIK you unfortunately cannot use Firefox instead.

That seems to have done the trick! Thank you!

1 Like

Edit: Nevermind, just got it with the additional command --user 0 mentiond by @solanum

I tried to uninstall the nasty google stuff on my fairphone 3 using this method, but everytime I type the command pm uninstall *package name*, I get the readout Failure [DELETE_FAILED_INTERNAL_ERROR].
I tried this with several apps and a search on ecosia didn’t help me either. So I have no idea what to do now.

This is important. Some Apps will not work!

If you uninstall WebView and later perhaps want to try e.g. the Play Store nonetheless or just add a Google account in the settings, you will just get a black screen because WebView is missing.
Without the WebView APK to install it again you can use APKMirror …

https://www.apkmirror.com/?post_type=app_release&searchtype=apk&s=com.google.android.webview

… choose the latest “Android System WebView” which is not labeled “beta”, for the correct variant choose Architecture “arm64-v8a + armeabi-v7a” and Minimum Version “Android 5.0+” (currently, as long as “Android 10.0+” doesn’t fit the Fairphone 3).

Some apps, especially some Google stuff, may refuse deinstallation if they are defined as app for device management.
Have a look at <Security & Location >> Apps for device management> (frei übersetzt, deutsch: Sicherheit & Standort >> Apps zur Geräteverwaltung)
Disable them there and repeat the adb command.

Some time ago I had made a little script for a Huawei Mate 9 to delete some Google and other apps. I have modified it to run against my FP3. It contains the -k flag in every pm command. Thanks @Roboe for the hint about it. I’ll correct and test it later.

For reference I attach it here:

##########

#!/bin/bash
adb devices

#adb shell pm list packages

#google
adb shell pm uninstall -k --user 0 com.google.android.onetimeinitializer
adb shell pm uninstall -k --user 0 com.google.android.apps.photos
adb shell pm uninstall -k --user 0 com.android.hotwordenrollment.okgoogle
adb shell pm uninstall -k --user 0 com.android.hotwordenrollment.xgoogle
adb shell pm uninstall -k --user 0 com.google.android.googlequicksearchbox
adb shell pm uninstall -k --user 0 com.google.android.music
adb shell pm uninstall -k --user 0 com.google.android.videos
adb shell pm uninstall -k --user 0 com.google.android.feedback
adb shell pm uninstall -k --user 0 com.google.android.backuptransport
adb shell pm uninstall -k --user 0 com.google.android.gm
adb shell pm uninstall -k --user 0 com.google.android.gms
adb shell pm uninstall -k --user 0 com.google.android.gmsintegration
adb shell pm uninstall -k --user 0 com.google.android.apps.restore
adb shell pm uninstall -k --user 0 com.google.android.gms.policy_sidecar_aps
adb shell pm uninstall -k --user 0 com.google.android.tag
adb shell pm uninstall -k --user 0 com.google.android.gsf
adb shell pm uninstall -k --user 0 com.google.android.gsf.login
adb shell pm uninstall -k --user 0 com.android.vending
adb shell pm uninstall -k --user 0 com.google.android.apps.tachyon
adb shell pm uninstall -k --user 0 com.google.android.apps.maps
adb shell pm uninstall -k --user 0 com.google.android.apps.docs
adb shell pm uninstall -k --user 0 com.google.android.syncadapters.contacts
adb shell pm uninstall -k --user 0 com.google.android.syncadapters.calendar
adb shell pm uninstall -k --user 0 com.google.android.ext.services
adb shell pm uninstall -k --user 0 com.google.android.ext.shared
adb shell pm uninstall -k --user 0 com.google.android.youtube
adb shell pm uninstall -k --user 0 com.google.android.apps.messaging
adb shell pm uninstall -k --user 0 com.google.android.calendar
adb shell pm uninstall -k --user 0 com.google.android.contacts

#partner
adb shell pm uninstall -k --user 0 com.android.partnerbrowsercustomizations.tmobile
adb shell pm uninstall -k --user 0 com.google.android.partnersetup
adb shell pm uninstall -k --user 0 com.android.providers.partnerbookmarks

#bloat
#adb shell pm uninstall -k --user 0 com.android.chrome
adb shell pm uninstall -k --user 0 com.example.android.notepad
adb shell pm uninstall -k --user 0 com.example.android.notepad
adb shell pm uninstall -k --user 0 com.android.apps.tag

##########

After letting it run, the following preinstalled apps didn’t work anymore:

messaging
calendar
contacts

I added them to the script and substituted them with free alternatives from F-Droid.
Use it at your own risk. Feel free to modify it :wink:

7 Likes

@Stefan
Thank you for putting the script part into shape.

@ All
If your’re willing to try it out please be careful.
I have found that the Setting “System > Systemupdate” had vanished. It could be something in the script but not necessarily. I have resetted my FP3 and now it’s back. Have to investigate …

3 Likes

I have cleaned up a bit and added some comments.
The System-Updater works again. Without com.google.android.gms and com.google.android.gsf it doesn’t.

Please note, that in case of an error every uninstalled package can be reinstalled by issuing the command “adb shell cmd package install-existing <package name>
No reset necessary :slightly_smiling_face:

#!/bin/bash

adb devices
#adb shell pm list packages

#google
adb shell pm uninstall -k --user 0 com.google.android.onetimeinitializer
adb shell pm uninstall -k --user 0 com.google.android.apps.photos
adb shell pm uninstall -k --user 0 com.google.android.googlequicksearchbox
adb shell pm uninstall -k --user 0 com.google.android.music
adb shell pm uninstall -k --user 0 com.google.android.videos
adb shell pm uninstall -k --user 0 com.google.android.feedback
adb shell pm uninstall -k --user 0 com.google.android.backuptransport
adb shell pm uninstall -k --user 0 com.google.android.gm
#adb shell pm uninstall -k --user 0 com.google.android.gms
#com.google.android.gms seems to be crucial for the FP3 System Updater to work
adb shell pm uninstall -k --user 0 com.google.android.gmsintegration
adb shell pm uninstall -k --user 0 com.google.android.apps.restore
adb shell pm uninstall -k --user 0 com.google.android.gms.policy_sidecar_aps
adb shell pm uninstall -k --user 0 com.google.android.tag
#adb shell pm uninstall -k --user 0 com.google.android.gsf
#com.google.android.gsf seems to be crucial for the FP3 System Updater to work
adb shell pm uninstall -k --user 0 com.android.vending
adb shell pm uninstall -k --user 0 com.google.android.apps.tachyon
adb shell pm uninstall -k --user 0 com.google.android.apps.maps
adb shell pm uninstall -k --user 0 com.google.android.apps.docs
adb shell pm uninstall -k --user 0 com.google.android.syncadapters.contacts
adb shell pm uninstall -k --user 0 com.google.android.ext.services
adb shell pm uninstall -k --user 0 com.google.android.ext.shared
adb shell pm uninstall -k --user 0 com.google.android.youtube
adb shell pm uninstall -k --user 0 com.google.android.apps.messaging
adb shell pm uninstall -k --user 0 com.google.android.calendar
adb shell pm uninstall -k --user 0 com.google.android.contacts
adb shell pm uninstall -k --user 0 com.google.android.dialer

#partner
adb shell pm uninstall -k --user 0 com.google.android.partnersetup
adb shell pm uninstall -k --user 0 com.android.providers.partnerbookmarks

#To reinstall the package simply use "adb shell cmd package install-existing <package name>" in ADB.
#Example: adb shell cmd package install-existing com.google.android.gms

6 Likes

Thanks a lot! I did it this way, but now unfortunately I can’t make or receive phone calls. I have installed Simple Contacts pro and Emerald Dialer. When I try to make a phone call, I get an option to “Complete action using - Phone or Dialer”, but nothing happens when I select either of those. When someone calls me, I only hear the ringtone but no screen pops up, and then I only see the number as a missed call notification. What am I missing?

EDIT: figured it out. Had to reinstall Dialer.

6 Likes

Many thanks, all, for this thread! My FP2 is literally falling apart, so I could not wait for a free OS for FP3, as I had initially planned to do. So this is the next best thing, I think, and it worked like a charm!

3 Likes

In newer Android versions, The Dialer app needs to provide In Call UI as well as the UI to accept a call on the lock screen. The Emerald Dialer doesn’t do that yet, although that’s apparently to-be-added feature.
( See Is there any alternative to the default Dialer app - that works on FP3? )
One option seems to be the dialer app from lineage OS which is linked in that thread.

4 Likes

would it make sense to also get rid of com.qualcomm.qti.qms.service.telemetry ? This system app regularky keeps wanting to talk home to the component manufacturer (via cloudfront ) according to NetGuard
(Interface name is “Qualcomm Mobile Security” )

2 Likes

com.qualcomm.qti.qms.service.telemetry

Not sure, trying it out now.

$ adb shell pm list packages | grep telemetry

Returned only that one.

$ adb shell pm list packages | grep qualcomm

Returned a while lot more.

I haven’t come across any negative aspect of it being disabled on my phone =)

3 Likes

In addition to @s99h’s list I uninstalled the following packages.
So far I did not encounter any problems.

#google phone app & gboard
#see note_1
pm uninstall --user 0 com.google.android.dialer
pm uninstall --user 0 google.android.inputmethod.latin

#standard launcher
#see note_2
pm uninstall --user 0 com.android.launcher3

pm uninstall --user 0 com.android.facelock
pm uninstall --user 0 com.android.protips
pm uninstall --user 0 com.google.android.apps.work.oobconfig
pm uninstall --user 0 com.google.android.tts
pm uninstall --user 0 com.google.android.marvin.talkback

note_1
Before uninstalling dialer and gboard you should read @corvuscorax’s thread “Is there any alternative to the default Dialer app - that works on FP3?

note_2
com.android.launcher3 seems to provide the “recent apps” ui for some other launchers. Disableing it just brings back the classic vertical design without any other consequences it seems.

2 Likes

What I’m wondering: Are all of these apps collecting data? For example, the TTS (text-to-speech) provider doesn’t need internet, right? So it doesn’t send text to a server, if I’m not mistaken.

2 Likes

That is the great mystery of this thread.

There are different interests at play. Some people want to replace proprietary software, others software which leaks data, while others have a focus on anything Google specific.

There’s not an analysis shared of what all these applications do. It is of course possible to do some search query, but a lot of work (which not everyone wants to replicate).

So I recommend other people to log what they’ve done, and share their findings, with references. Don’t be shy :slight_smile:

As for your specific example. TTS works locally. It is speech to text which FAMAG do remotely (even though I would argue they don’t need to).

2 Likes

All right, here’s my list:

REMOVED
com.google.android.music
com.google.android.youtube
com.google.android.apps.photos
com.google.android.onetimeinitializer
com.google.android.googlequicksearchbox
com.google.android.feedback
com.google.android.backuptransport
com.google.android.gm
com.google.android.gmsintegration
com.google.android.apps.restore
com.google.android.gms.policy_sidecar_aps
com.google.android.tag
com.google.android.apps.tachyon
com.google.android.apps.maps
com.google.android.apps.docs
com.google.android.syncadapters.contacts
com.google.android.ext.services
com.google.android.ext.shared
com.google.android.partnersetup
com.google.android.videos
com.google.android.inputmethod.latin
com.google.android.configupdater
com.google.android.setupwizard
com.google.android.calendar
com.google.android.apps.wellbeing
com.google.android.apps.work.oobconfig
com.google.android.tts
com.google.android.marvin.talkback
com.android.vending
com.com.android.chrome

STILL THERE
com.google.android.apps.messaging
com.google.android.deskclock
com.google.android.dialer
com.google.android.webview
com.google.android.contacts
com.google.android.calculator
com.google.android.packageinstaller
com.google.android.gms
com.google.android.gsf
com.google.android.ims
com.google.android.printservice.recommendation

I guess I could also get rid of messaging, dialer, contacts, calculator, and printservice, but what the heck.

Also, this site was very helpful to me: https://developers.google.com/android/reference/packages

4 Likes

I pretty much ungoogled my FP3 to the max. This is all that’s left:

$ adb shell pm list packages|grep google
package:com.google.android.dialer
package:com.google.android.webview
package:com.google.android.packageinstaller
package:com.google.android.inputmethod.latin

Sadly i was not able to replace the dialer. (Missing call overlay…). It’s definitely trying to call home… I use NetGuard in blacklist mode, blocking all system apps. But you can’t force android to use VPN-Only due to some bug or limitation… A real firewall would be better, but requires root access…

idk if you can replace webview somehow, but apps like nextcloud didn’t work without it.
com.google.android.inputmethod.latin is gboard afaik. I removed it & couldn’t log back in after reboot, because user apps get loaded AFTER the first login… RIP

I replaced all other apps with free alternatives from F-Droid. :kissing_heart:

To get rid of gms/google play services i needed to disable “google protection”-something and the “find my device”-“feature”. After that i could also disable the service via settings GUI.

I also disabled “Automatically install updates on boot” in the debug menu. IDK if it changes anything, but i thought it might prevent reinstallation of whatever.

Ony real bug so far: Signal wouldn’t work, because of missing gms. Normally the client should fall back to websockets, but i guess we need a clean OS for that.