Raspberry Pi4 ~ ADB ~ wifi [Uninstall some google apps]

First use the terminal on your computer, in this case a Rasp-pi to log in to the phone’s OS via the command:-

adb shell
Logging in to the phone the terminal outputs
FP3:/ $

Now the commands to remove Youtube
pm uninstall --user 0 com.google.android.youtube
pm uninstall --user 0 com.google.android.apps.youtube.music

To get the names of the packages to uninstall etc. use
pm list packages

pm invoke the packet manager
uninstall command to pm
--user 0 That’s two minus signs and a space before the zero. Zero is the default or only user on the phone.

The rest is the name of the package. Should you want to reinstall some packages you will have lost all related data held in cache unless you add a parameter between uninstall and user i.e.

-k Do not delete cache

pm uninstall -k --user 0 com.google.android.apps.wellbeing

So on to debloat and de google where possible.

I am listing the uninstalls on the next post

Reinstalling apps