Which Google-related packages can I safely remove with ADB ? - Android Q&A, Help & Troubleshooting

Hi,
I have an LG K8 smartphone with Android 6.0. It's in developer mode and I have successfully connected ADB on my Linux workstation. For the record, F-Droid and Aurora Store are already installed. I'm planning to use mainly open source applications. I'd like to get rid of all the Google-related stuff.
./adb shell pm list packages | grep google | awk -F: '{ print $2 }'
This spews out a long list of all Google-related packages. There are also a few more like the Google Play Store (com.android.vending) or Chrome (com.android.chrome).
I'd like to know which Google-related packages I can safely remove without wrecking parts of my system. And which packages are more or less essential to other stuff.
Thanks & cheers from the sunny South of France.

Related

E97 from tabletexpress malware removal

The E97 tablet from tabletexpress comes preloaded with malware that could affect your security which is programmed into the rom; therefore it it impossible to uninstall without root. Even with root, you can only disable the affected apps. You can disable all the malicious software directly on the tablet itself. I bought this tablet from Amazon. I have written a tutorial to make your new tablet free of this pesky tabletexpress company's marketing and possibly theft tactics. Just be sure to use the root tool FIRST before attempting this. Here is the tutorial:
1) download Terminal Emulator, KingRoot & Malwarebytes off the App Store and run KingRoot first.
2) Next open Terminal Emulator and type in: su
3) Hit enter
4) Type in: mount -o rw,remount /system
5) Hit enter
6) Type in: pm (now follow along closely)
7) Each time you type in "pm" you are going to have to type in "disable" (without the quotes), then after type in the package name and hit enter. Below is the list of malware loaded apps you must disable.
EXAMPLE: pm disable com.android.browser
package:com.android.browser
package:com.google.android.marvin.talkback
package:com.mediatek.connectivity
package:com.mediatek.batterywarning
package:com.mediatek.thermalmanager
package:com.google.android.googlequicksearchbox
package:com.adups.fota.sysoper
package:com.mediatek.schpwronoff
package:elink.com
package:com.android.location.fused
package:com.android.magicsmoke
package:com.android.soundrecorder
package:com.samsung.smartviewad
package:com.android.inputdevices
package:com.android.wallpaper.holospiral
package:com.mediatek.videofavorites
package:com.android.galaxy4
package:com.mediatek
package:com.android.simmelock
package:com.mediatek.CrashService
package:com.android.keychain
package:com.mediatek.engineermode
package:com.adups.fota
package:com.mediatek.appguide.plugin
package:com.mediatek.ygps
package:com.mediatek.security
There is another tutorial on the internet about this tablet made by tabletexpress, however I found it was out of date, so I fixed it and uploaded the new and different packages you have to disable in order to stop this malicious software from compromising your security.
Thank you so much. My tablet is now usable and rooted!
Nice. Glad to hear.

Trying to install com.android.providers.calendar

Hi.
I've seen this one but it's pretty obsolete so i'll better start a new topic here.
The story is trivial:
Got a Meizu MX5, installed King Root, uninstalled all the crap possible, including native calendar app.
Now trying to install a google calendar and it doesn't work:
- when open it says: "Calendar Storage disabled"
- hiting "Enable" button does nothing
So i googled and end up reinstalling native calendar app for Meizu MX.
That was successful.
After that reinstalled google calendar again, restarted my phone, cleaned the cache (seems like have done all possible permuations), still no luck.
Then found com.android.providers.calendar and tried to install it.
An error is:
Code:
INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES
.
Then tried to remove calendar storage: adb uninstall
Code:
com.android.providers.calendar
results in error
Code:
DELETE_FAILED_INTERNAL_ERROR
.
Maybe i'm trying to uninstall package that doesn't exist ?
Here are possible ones:
Code:
adb shell 'pm list packages -f' | grep calendar
:
Code:
package:/data/app/com.android.calendar-1/base.apk=com.android.calendar
package:/system/priv-app/CalendarProvider/CalendarProvider.apk=com.android.providers.calendar
package:/data/app/com.google.android.calendar-1/base.apk=com.google.android.calendar
package:/system/app/GoogleCalendarSyncAdapter/GoogleCalendarSyncAdapter.apk=com.google.android.syncadapters.calendar
So, at this point i kind of stuck.
Any help ?
Thanks.

Google Backup not working on Chinese SHT-AL09 8.0.0.185 (C00)

I have been trying to get Google Drive backups to work for the last couple of days on an unrooted, Chinese stock rom MediaPad 8,4" LTE with 128GB internal storage. My Google account was successfully added as backup account, however, on the active backups list, all entries are stuck at "waiting to backup". I am currently outside of China, which should pretty much prevent any VPN or networking issues. Since the China stock rom came without the Google Play Store, I added the Google Store via Huawei's own AppStore. Downloading apps from the Google store works without any problems. So I am guessing the Google services are all up and running - at least I am seeing these:
Google Service Framework 8.0.0-4147944 Updated 10 Sept.
Google Play Store 10.3.12-all (0) (PR) 108814133 Updated 16 Sept.
Google Play Service 13.2.80 (04048-211705629) Updated 16 Sept.
Earlier today I tried to manually kickstart the backup via ADB, which unfortunately enough failed:
Code:
./adb shell
bmgr run
bmgr backupnow --all
resulted in:
Code:
Running incremental backup for all packages.
Package @[email protected] with result: Transport error
Backup finished with result: Transport error
while
Code:
bmgr list transports
android/com.android.internal.backup.LocalTransport
com.google.android.gms/.backup.migrate.service.D2dTransport
* com.google.android.gms/.backup.BackupTransportService
clearly states that the BackupTrasportService is selected as default and active.
Code:
bmgr list sets
returns a plain "No restore sets"
I am somewhat running out of ideas. Looking forward to any helpful pointers...

Install rsync in android termux

I am a newbie in android. My phone is rooted android pie and I want to install rsync on it.
In termux, I entered
pkg install rsync
I got the following output:
$ pkg install rsync
Ign:1 https://dl.bintray.com/termux/termux-packages-24 stable InRelease
Ign:2 https://dl.bintray.com/grimler/game-packages-24 games InRelease
Ign:3 https://dl.bintray.com/grimler/science-packages-24 science InRelease
Err:4 https://dl.bintray.com/termux/termux-packages-24 stable Release
403 Forbidden
Err:5 https://dl.bintray.com/grimler/game-packages-24 games Release
403 Forbidden
Err:6 https://dl.bintray.com/grimler/science-packages-24 science Release
403 Forbidden
Reading package lists... Done
E: The repository 'https://dl.bintray.com/termux/termux-packages-24 stable Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://dl.bintray.com/grimler/game-packages-24 games Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://dl.bintray.com/grimler/science-packages-24 science Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
$
What am I doing wrong?
How can I install rsync in android?
Thank you.
I think you've to run
Code:
apt-get install rsync
jwoegerbauer said:
I think you've to run
Code:
apt-get install rsync
Click to expand...
Click to collapse
Thank you for taking the time to reply. I really appreciate it.
I just tried and got this in reply.
$ apt-get install rsync
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package rsync
$
So, I'm stuck........
From where can I download (and then install) a version of rsync that can run on android?
Can rsync run in android?
RSYNC isn't part of TOYBOX nor BUSYBOX, and probably never will become part of these.
I only know of rsync4Android app.
jwoegerbauer said:
RSYNC isn't part of TOYBOX nor BUSYBOX, and probably never will become part of these.
I only know of rsync4Android app.
Click to expand...
Click to collapse
Aha! That explains it. Thank you.
For anyone who lands on this thread from a google search.... the problem is that Termux needs to be installed from the F-Droid app and not from the Google Play store.
You might also consider then installing termux-api from F-Droid then start up the Termux app and also run the command # pkg install termux-api. Both steps are needed if you want termux-api.
After this you can install rsync from within Termux with this command:
# pkg install rsync
FlexMcMurphy said:
For anyone who lands on this thread from a google search.... the problem is that Termux needs to be installed from the F-Droid app and not from the Google Play store.
You might also consider then installing termux-api from F-Droid then start up the Termux app and also run the command # pkg install termux-api. Both steps are needed if you want termux-api.
After this you can install rsync from within Termux with this command:
# pkg install rsync
Click to expand...
Click to collapse
Thank you.
How is the F-Droid version of Termux different from the G-store one? What does it have that is different?
If I understand you correctly (I'm a newbie) I need to download 2 different files from F-Droid:
—https://f-droid.org/packages/com.termux
and
—https://f-droid.org/packages/com.termux.api
Where do I download the correct rsync from or is it included in the api?
Thank you.
maybeme2 said:
Thank you.
How is the F-Droid version of Termux different from the G-store one? What does it have that is different?
If I understand you correctly (I'm a newbie) I need to download 2 different files from F-Droid:
—https://f-droid.org/packages/com.termux
and
—https://f-droid.org/packages/com.termux.api
Where do I download the correct rsync from or is it included in the api?
Thank you.
Click to expand...
Click to collapse
I think Termux is not properly officially supported from Google Play store anymore... as you found out when you try to install rsync in Termux that was downloaded from the Play Store it can't see any repositories that have it so you have to install it from F-Droid which is a bit like the Play Store but it is all open source software.
I spent a while googling and everything is out there although I think Termux should be remove from Play store if its not a full featured version or at least make it clearer that it is not.
I followed these instructions to set up F-Droid on my Android phone.
• I searched for Termux in F-Droid and installed “Termux Emulator with packages”.
• I then searched for and installed “Termux:API” from F-Droid
• Then open Termux and run this command which is ALSO necessary:
• # pkg install termux-api
I'm not even sure if I needed termux-api I installed it anyway because I am trying to get a backup script working as explained in this GitHub.
Then you install rsync from within Termux:
• # pkg install rsync
Enjoy,
Flex
Thank you very much.
Thanks, this worked.
Also, to fully back up your (rooted) phone to an external drive, you will need to install the tsu package:
pkg install tsu
Then, add a soft-link to the rsync binary:
sudo su
cd /
ln -s /data/data/com.termux/files/bin/rsync /bin/rsync

ADB usage question

Again not sure this is the best place for this question but I used the debloat guide (and linked uninstall guide) from https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/ and everything is pretty much operating the way I want it to. I have kept explicit records of packages that I've uninstalled just in case, but ...
Is there a combination of switches I can use to see the modules I explicitly uninstalled using this method?
Also there are a number of packages that would normally be downloaded and installed on my Walmart tablet that I disabled and deleted prior to net access. Is there a way to differentiate these from packages installed on device startup or by the store or by side-loaded APK from the ones I disabled using the above guide?
I do have some confusion as to why the -d, -e, -s -3, etc. options seem to list only that type whereas the -u option appears to list the uninstalled packages all mixed up with with all other package types without making the distinction as to which are which.
A pointer to an ADB command manual would be helpful or even an explanation of in-command help (I tried -q -? -h)
just type help after whichever main command you want to use.
PhotonIce said:
just type help after whichever main command you want to use.
Click to expand...
Click to collapse
Ah ... "pm help" not "pm list packages help"
OK thanks that does help.
However the documentation does seem to say what I thought it did which is -u shows uninstalled packages in addition to whatever is listed with no option.
Then I have to weed out the 180 "pm list packages" from the 205 "pm list packages -u" to get the 25 actual uninstalled packages.
I was kind of hoping that there was some combination of options that will just list the 25 uninstalled packages directly.
Code:
echo $(pm list packages) $(pm list packages -u)|tr ' ' '\n'|sort|uniq -u
CXZa said:
echo $(pm list packages) $(pm list packages -u)|tr ' ' '\n'|sort|uniq -u
Click to expand...
Click to collapse
Thanks. This is exactly what I was looking for.

Categories

Resources