Google removal script for Android

This is an update on my Google removal script I use on updates of the OxygeN ROM as I don’t use or like most the Google stuff installed so it easier to remove on the first boot after ROM update and before unlocking SIM. This will probably work on other ROM but I hold no guarantee that it will, as per usual use at your own risk.

#!/bin/sh
#       This program is free software; you can redistribute it and/or modify
#       it under the terms of the GNU General Public License as published by
#       the Free Software Foundation; either version 2 of the License, or
#       (at your option) any later version.
#       
#       This program is distributed in the hope that it will be useful,
#       but WITHOUT ANY WARRANTY; without even the implied warranty of
#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#       GNU General Public License for more details.
#       
#       You should have received a copy of the GNU General Public License
#       along with this program; if not, write to the Free Software
#       Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
#       MA 02110-1301, USA.
## Author:
## Dale http://dale.id.au

## edit path to adb
PATH=/your/path/to/android-sdk-linux_86/platform-tools

$PATH/adb remount

echo "Removing Genie News and Weather Widget..."
$PATH/adb shell rm -f /system/app/GenieWidget.apk
$PATH/adb uninstall com.google.android.apps.genie.geniewidget

echo "Removing Gmail..."
$PATH/adb shell rm -f /system/app/Gmail.apk
$PATH/adb uninstall com.google.android.gm

echo "Removing Google Backup Transport..."
$PATH/adb shell rm -f /system/app/GoogleBackupTransport.apk
$PATH/adb uninstall com.google.android.backup

echo "Removing Google Calendar Sync..."
$PATH/adb shell rm -f /system/app/GoogleCalendarSyncAdapter.apk
$PATH/adb uninstall com.google.android.syncadapters.calendar

echo "Removing Google Contact Sync..."
$PATH/adb shell rm -f /system/app/GoogleContactsSyncAdapter.apk
$PATH/adb uninstall com.google.android.syncadapters.contacts

echo "Removing Google Partener Setup..."
$PATH/adb shell rm -f /system/app/GooglePartnerSetup.apk
$PATH/adb uninstall com.google.android.partnersetup

echo "Removing Google Talk..."
$PATH/adb shell rm -f /system/app/Talk2.apk
$PATH/adb uninstall com.google.android.talk

wait 1

echo "All Done, rebooting now"
$PATH/adb reboot

Leave a Reply