Like many around here, I had a Droid 1 and loved it. Vanilla Android, little to no Bloat, it was great. Then, a couple weeks ago, I "upgraded" to the Droid 2 Global which like the Droid X and standard Droid 2, is full of tons of extra system apps, and, unlike the original Droid, not vanilla Android. While some of this bloatware runs constantly using both battery and memory I really just don't like a cluttered app drawer.

After rooting there are a few options for getting rid of the extra apps (bloatware) some of which are discussed in depth Here but basically they include Renaming the Apk's (with terminal or Root Explorer), Freezing them (with Titanium Backup), or installing a completely custom rom. Whatever you do, don't delete them!

Whichever option you go with, in order to get system updates (pushed by Verizon) all that bloatware needs to be put back. Since this can be time consuming (especially if using a manual method like root explorer or typing terminal commands) I thought it might be fun to build a script to automate the process of renaming apk's that I don't use. This way, when the next update comes, it is easy to get the apk's back.

After searching around these forums, I found very little clear cut info on writing a script from scratch. I did find a script to mount system as writable and used that as a base (Here). After a little trial and error, I was finally able to write a working script that will automatically remove and/or replace the following apps:

com.vzw.hss.myverizon-2.apk (this one is in /data/app not /system/app like the others)

Prerequisites

If you are running Fission or some other custom rom, you do not need this script, it is only useful to those that want the stock rom without bloatware.[*] You must take responsibility for your own actions. There is always some inherent risk in messing with /system files, if you don't accept that risk, don't mess with your phone.

The Terminal script and Update.zip script will rename all ".bak" files in /system/app to ".apk", that means that if you manually renamed bloatware not included in this script to ".bak", it will get put back as well.

Discussed below are three methods of installing and executing scripts, choose one. Each method just executes a script that renames the bloatware.

Getting rid of the bloatware the easy way
(Executing the scripts as an Update.zip. This Update.zip does not add or delete any files, it just runs a script to rename the files. Essentially the same as manually renaming with terminal, root explorer or freezing with Titanium Backup.)

Step 1: Download the zip file at the end of this excessively long post. (Moto_Bloat_Update.zip)

Step 2: Mount up you're phone and copy the zip files to your sdcard, when done, unplug your phone from the computer. (or download the file directly to your phone and copy it from /sdcard/downloads to /sdcard

Step 1: If your using a Mac or Linux machine the basic text editors should be fine. If your using Windows (like me) both notepad and wordpad were adding charaters and screwing the scripts up so you'll need to download something like Jedit. Found HERE

Step 2: For a little bit of script basics read this article It will at least give you the basics but not all of it applies to Android.

Step 3: Open up jedit and choose make new script (or use your favorite text editor if using Mac or Linux) . The very first line tells the script how it is to be executed. I started mine with "#!/system/bin/busybox sh" but another option would be "#!/system/bin/sh" or if you've installed bash then "#!/system/bin/bash"

Step 4: Tell the script to do something like "mv /system/app/Blockbuster.apk /system/app/Blockbuster.bak" Now the whole thing should look something like this:

All this will do is rename the Blockbuster app to something that Android doesn't recognize rendering it useless. Pretty simple really, standard terminal commands, although this simple script above wont work unless the system is mounted as Read-Write.

Some very basic terminal commands include:

mv = move (this one is also used for renaming)
cp = copy
rm = remove

The attached script (bloat.txt) is similar but it starts with a line to mount the system as Read-Write and then ends with a line to put the system back to Read-Only. It also has two options, one to remove the bloatware and one to put it all back when it comes time to update.

bloat -add puts all the bloatware back (changes their extension back to .apk)

Installing the script

Step 5: Save the script without an extension (or download the attached bloat.txt file and rename it to "bloat").

Step 6: Mount up you're phone and copy the script to your sdcard, when done, unplug your phone from the computer.

Step 7: Install Terminal Emulator from the Market

Step 8: Open Terminal emulator

Step 9: Type the following commands, hitting enter after typing each line (if this is your first time using terminal emulator, Superuser.apk will ask for permissions after typing "su" and hitting enter. Choose allow, and if you wish, check the box "remember").

Step 10: Reboot Phone (not required but some apps won't get out of the drawer until you do)

Congratulations the bloatware is now gone!

Putting the bloatware back

Now that the script is installed, the bloatware can easily be put back by doing the following:

Open terminal emulator

Log in as "su"

type "bloat -add" and press enter.

Reboot and everything will be back to normal

Again, I made this for my personal use to remove the apps that I don't find useful. Since I couldn't find much on scripts (especially relating to the Droid 2 Global) I thought this might be useful to others. Good Luck! View the script in a text editor if you want to see exactly what it is doing.

Another way of executing script without terminal commands is by using GScript Lite (Available in the market for free). This program uses modified scripts and executes them in a convenient GUI. This option requires two scripts, one to remove the bloat and a second to put it all back.

Installing a Script for use with Gscript Lite
A typical script begins with a line to tell the terminal how to execute the script. Gscript automatically includes this line, so it should not be included in the script, and therefore requires a slightly modified script. Like method one, a nandroid backup is a very good idea, and I strongly recommend making one prior to making any changes to the /system folder.

Step 1: Download "Remove Bloatware.txt" and "Put Bloatware Back.txt". Change the extension of each file to ".sh", they should now be "Remove Bloatware.sh" and "Put Bloatware Back.sh"

Hey sorry I'm a noob to Android but I wanted to do this so I could get rid of all of Verizons crap. My phone is rooted and I created a system/xbin folder and put "bloat" in there however I can't find any options to make it R/W or to edit the properties of "bloat". I downloaded an app called Mount /system or something and tried mounting r/w with that but I still can't seem to get the options you're talking about. What am I doing wrong?

Lunatics,
You will need a program such as root explorer. If you use the regular "file explorer" that is in the app drawer, in only allows access to the sdcard. You should not need to create the folder /system/xbin, it should already exist, if you had to create it, you were probably viewing the sdcard contents rather than the phones /system directory. Root explorer is a couple bucks on the market.

Rather than using terminal emulator, some steps can be done with root explorer. Here are those steps:

Step 1: Copy "bloat" to the top level of the sdcard (not within any folders)

Step 2: (Now would be a good time to make a clean nandroid back-up if you don't have one already.) Using Root explorer, navigate to your sdcard and long press your script and select copy.

Step 3: Navigate to the /system/xbin folder, mount it as R/W (the button at the top) and past the file.

Step 4: Long press the file and choose "permissions" It will show a three by three grid, the top row should be all checked, the next two rows should have only the first and last columns checked (this will set the permissions to rwxr-xr-x)

Step 5: Remount System as R/O (press the button at the top)

Step 6: Press the menu button, select "more", and choose "exit"

Step 7: Download a terminal emulator from the market, a free one should work fine. Install it and open it.

Step 8: You should now see a $ symbol, type "su" and press enter

Step 9: Type "sync" and press enter

Step 10: type "bloat -rm" and press enter

Hook,
I could only wish this were an easy alternative to rooting that allowed manipulating system files. Unfortunately access to system files still requires root or adb.

There is absolutely nothing wrong with manually changing each file to ".bak" and then changing them back to ".apk", it just takes time, and you have to do it for each and every apk you wish to disable.

The script does all the individual steps but in one fell swoop. Rather than spending time long pressing 17-20 files so that you can click rename 17-20 times, then highlighting and pasting ".apk" 17-20 times, this script automates the process so that you can "hide" unnecessary applications with one, quick command.

This script also lets you "unhide" very quickly as well.

If you want to remove fewer or more apps, just remove or add lines to the script.

Just for fun, I just tried a factory reset from within stock recovery (hold x on boot, when the exclamation point shows press the search button/magnifying glass on the keyboard, choose wipe data/factory reset and then when that's done choose wipe cache). It wiped and rebooted fine, when I got back into the os, the hidden apps were still gone, as was all my user data. A reboot put me into bootstrap (clockwork) recovery where I restored nandroid to get my data back (so a factory reset doesn't really touch the system partition, mostly just the data partition).

So as far as I could tell a factory reset does not add or remove anything from the system partition, it only wipes the data partition killing user installed apps and data. If a system app has been disabled or removed, it will still be gone after a factory reset. (This has been shown already with the droid 1 and other android phones)

A Nandroid restore (from within clockwork) on the other hand will put things back the way they were at the time the restore point was made.

Thanks for trying. My concern was will phone go thru setup proces after hard reset without those applications. Sometimes, due to certain app being disabled/removed, system cannot go past initialization step. If phone is able to boot normally after hard reset with those applications disabled - then all is good!

Alright, I was happy to read some of this but when I got to the WHATEVER YOU DO DON'T DELETE THEM part... my face sank... when I unboxed my droid 2 I was immediately upset by all the preloaded crap that was on the phone. Not thinking about how it would effect the ota updates I got z4 root. rooted. and nuked about half of the preinstalled junk. aka DELETED all the apks. the recovery system on the phone is stock as well as the system itself. (2.4.29.A956.Verizon.en.US) would it at all be possible to re-install what i've nuked and the ota update will work or would it not because of something with the other files associated with the apks?? please help i dont want to flash a complete new system or risk bricking my phone at all (

P Dizzay -- yeah, I was in the EXACT same boat as you. I made the switch from an old BlackBerry Curve and was extremely excited about trying out Android. I'm also the type of person who likes bare minimum / stock stuff so I can customize it from the ground up and know every inch of what's been done... so I experienced the same letdown when I came to realize how it was going to have to be with the D2G. Not only is the bootloader locked so Cyanogenmod probably won't happen, but it's also so full of bloated crap... makes my head spin...!

And like you, I went on a spree and killed a bunch of stuff early on. Oops.

Use 7Zip to open the several layers of that, and eventually you'll get to all the APKs and ODEXs in system/app. Whew!

It's still a damn crying shame that the D2G is so far removed from Google's stock Android. I have really come to appreciate my D2G in the ~month I've had it, but to this day, this is the one thing that nags at me and makes me question my decision.

Download the link ComradeF posted above (the Droid 2 Global system dump). Unfortunately you cant just install them like you would an app from the market. They must be pushed to the /system/app folder and then the permissions must be properly set. Here are some more detailed instructions if you need them:

Useful Searches

About DroidForums.net

DroidForums.net was founded in 2009 originally dedicated for the Motorola Droid, the first Verizon Android Phone. We have since expanded our community to cover all Android Phones, Android Tablets, and Android Wearables. We discuss various topics including Android Help, Android Device Reviews, Android Apps, Phone Accessories, Android Games and more. Our ultimate goal is to be the Internet's best and largest Android Forum.