DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Droid X Bloatware Removal Script

  1. Beta Team
    buryboi's Avatar
    Member #
    17603
    Join Date
    Dec 2009
    Posts
    234
    Liked
    3 times
    Phone
    Droid
    DroidForums.net Developer
    Premium Member
    #1

    Droid X Bloatware Removal (The easy way)

    Overview

    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:

    amazonmp3_1.8.11_signed_zipaligned.apk
    Blockbuster.apk
    CityID.apk
    FriendFeed.apk
    redding-7648-signed-zipped.apk (Kindle)
    Madden (Added to Update.zip Script on 10:38pm Jan-8-2011)
    Mynet.apk
    MyVerizon.apk
    NewsWidget.apk
    Skype_mobile.live.apk
    SocialMessaging.bak (Added on Jan-12-2011)
    SocialShare.bak (Added on Jan-12-2011)
    com.vznavigator.DROIDX.apk
    Vvm.apk
    WeatherWidget.apk (Added on Jan-12-2011)

    Prerequisites

    • If you are running a 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.
    • You must have root, the easiest method is z4root, found here:[APP] z4root - xda-developers
    • You must have access to Clockwork Recovery/Droid X Bootstrapper and make a nandroid backup, Discussed in depth here: Creating and Restoring Backups - Complete Guide
    • The 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 two 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. Thanks to maderschramm for the great idea!)

    If you have already run this and now want to remove Madden you will need to re-download the script, and run it twice. The first time will add everything back and the second will remove everything including Madden. If you have never run this script before, proceed to step 1 below.

    Step 1: Download the zip file at the end of this 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 3: Reboot into Clockwork Recovery.

    Step 4: To remove the bloatware choose "Install zip from sdcard", then pick "choose zip from sdcard", choose "Moto_Bloat_Update.zip", then choose "Yes - Install Moto_Bloat_Update.zip."

    Step 5: When finished, it will say done. Back out to the main menu and, Reboot your phone.

    When your phone reboots the bloat will be gone (it has just been renamed to .bak)

    Returning The Bloatware
    Reboot into Clockwork Recovery and Install "Moto_Bloat_Update.zip" again.

    When you reboot, all the bloatware will be back.

    Or type the following terminal commands (hitting enter after each line):
    Code:
    $su
    
    #bloat -add

    Alternate Method: 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. 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 "DX Remove Bloatware.txt" and "DX Put Bloatware Back.txt". Change the extension of each file to ".sh", they should now be "DX Remove Bloatware.sh" and "DX Put Bloatware Back.sh"

    Step 2: Download and install Gscript Lite from the Android Market. Open Gscript Lite.

    Step 3: Mount up your phone and copy both files to your sdcard. They need to go in the "/sdcard/gscript" folder, when done, unplug your phone from the computer.

    Step 4: Open Gscript Lite.

    Step 5: Press the Menu Button and Choose "Add Script", you can now create your own script or "load" a previously created script.

    Step 6: Press "Load" and you will be presented with a list of available scripts to load. This list loads from the "/sdcard/gscript" folder.

    Step 7: Press "DX Remove Bloatware.sh", this will take you back to the previous screen. The name should be filled in as should the body of the script.

    Step 8: Make sure the "su" checkbox is checked and press "Save"

    Step 9: Repeat steps 5 - 8 for "DX Put Bloatware Back.sh"

    Step 10: Now, to remove the bloatware simply press the button in Gscript Lite labeled "DX Remove Bloatware"

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

    Putting the bloatware back

    Step 1: Open Gscript Lite.

    Step 2: Press "DX Put Bloatware Back"

    Step 3: Reboot and everything will be back to normal

    What are these scripts actually doing?
    A script simply executes terminal commands. Rather than manually mounting the system directory and renaming each bloatware app they automate the process. These scripts do not delete the apps, the simply "hide" them from Android. Open the text files to see exactly what the scripts are doing.
    Attached Files
    Last edited by buryboi; 01-12-2011 at 09:24 PM. Reason: Updated to include DX_Bloat_Update.zip method
  2.  
     
     
     
  3. Master Droid
    maderschramm's Avatar
    Member #
    83905
    Join Date
    Jul 2010
    Location
    Madison, WI
    Posts
    672
    Phone
    Droid X Custom Setup
    #2
    looks a little messy with this gscript business. If you want, I could compile these into update.zips to flash quite easily.
  4. Beta Team
    buryboi's Avatar
    Member #
    17603
    Join Date
    Dec 2009
    Posts
    234
    Liked
    3 times
    Phone
    Droid
    DroidForums.net Developer
    Premium Member
    #3
    Thats a great idea, go for it. Thanks maderschramm
  5. Master Droid
    maderschramm's Avatar
    Member #
    83905
    Join Date
    Jul 2010
    Location
    Madison, WI
    Posts
    672
    Phone
    Droid X Custom Setup
    #4
    yeah no problem, didn't want to steal your thunder or anything, it's just it would be simpler. I'll get on developing that and post here when done, you can put it in your op when it's complete.
  6. Beta Team
    buryboi's Avatar
    Member #
    17603
    Join Date
    Dec 2009
    Posts
    234
    Liked
    3 times
    Phone
    Droid
    DroidForums.net Developer
    Premium Member
    #5
    Anything to make things easier! I've been running it as a terminal script on my D2G, since the X has no keyboard, I figured gscript would be easier, but an update.zip would be the best route.

    maderschramm,

    If you haven't started yet, don't worry about it. I learned something new and created the update.zips myself. Took a bit to figure out how to get updater-script to execute my script, (dos2unix is my friend and there is not a lot of info on updater-script syntax), but I got it working. Thanks for the idea! I haven't tried the Droid X versions yet, but the D2G versions worked great.
    Last edited by buryboi; 01-04-2011 at 12:49 PM.
  7. Beta Team
    buryboi's Avatar
    Member #
    17603
    Join Date
    Dec 2009
    Posts
    234
    Liked
    3 times
    Phone
    Droid
    DroidForums.net Developer
    Premium Member
    #6
    Complied Scripts into DX_Bloat_Update.zip to be run through Clockwork Recovery/Droid X Bootstrapper. Tested it several times on my Droid X, works as expected. First run removes the bloatware, second run puts it back. This works by using an if/then script, if it finds CityID.apk, it renames all the bloatware to ".bak", it CityID.apk is not there (because it is already CityID.bak), it renames everything back to ".apk". If you manually change the CityID.apk or delete it (with root explore or terminal), the script could get out of sync.

    Thanks again for the idea maderschramm!
    Last edited by buryboi; 01-07-2011 at 09:05 AM.
  8. Master Droid
    maderschramm's Avatar
    Member #
    83905
    Join Date
    Jul 2010
    Location
    Madison, WI
    Posts
    672
    Phone
    Droid X Custom Setup
    #7
    no problem - I was trying to combine our ideas and find a way to execute a bash script right out of the update.zip file - glad to see you got it working yourself. great work. sorry I didn't get to it sooner, I've been really busy with my .340 ota update.zip sbf replacement
  9. Junior Droid
    jarvik1394's Avatar
    Member #
    156555
    Join Date
    Jan 2011
    Posts
    24
    #8
    Awesome thank you!

    Sent from my DROIDX using DroidForums App
  10. Beta Team
    buryboi's Avatar
    Member #
    17603
    Join Date
    Dec 2009
    Posts
    234
    Liked
    3 times
    Phone
    Droid
    DroidForums.net Developer
    Premium Member
    #9
    maderschramm,
    I thought that might be the case, if you need any more beta testers let me know, I can give it a shot tonight. Edit:I checked out your sig and now see that you've got links in your post.

    jarvik,
    Glad you like it!
    Last edited by buryboi; 01-07-2011 at 09:09 AM.
  11. Junior Droid
    ufish2's Avatar
    Member #
    114514
    Join Date
    Sep 2010
    Posts
    14
    Phone
    Enter Current Phone Model Here
    #10
    Can I use your zip file if I have changed some of the apps with root exploreer to bak. And to restore them back to stock on my X

    Sent from my DROIDX using DroidForums App
Page 1 of 3 123 LastLast

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Droid 2 Global Bloatware Removal Script
    By buryboi in forum Motorola Droid 2 Global
    Replies: 63
    Last Post: 02-07-2012, 12:17 AM
  2. Bloatware removal with titanium backup
    By jsw6380a in forum Droid X Hacks
    Replies: 2
    Last Post: 12-20-2010, 04:44 PM
  3. Replies: 2
    Last Post: 12-17-2010, 02:44 PM
  4. Bloatware Removal For Droid-X
    By jsw6380a in forum Droid X General Discussions
    Replies: 4
    Last Post: 12-14-2010, 03:19 PM
  5. Stuck at droid animation when trying to restore bloatware
    By sanguines in forum Droid X Hacks
    Replies: 0
    Last Post: 07-31-2010, 12:09 PM

Search tags for this page

droid x bloatware

,
droid x bloatware removal
,
droid x bloatware removal script
,

droid x remove bloatware

,
droid x remove bloatware script
,
droid x script
,
droid x scripts
,

moto bloat update.zip

,
motobloat.zip
,

remove bloatware droid x

Click on a term to search our site for related topics.
Find us on Google+