Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Script] Delete unwanted apps

OP MoJo

26th December 2013, 02:47 PM   |  #1  
MoJo's Avatar
OP Senior Member
West New York
Thanks Meter: 74
 
217 posts
Join Date:Joined: Sep 2006
From the time I had HTC HD2 i use a script for deleting unwanted apps.
This script should be installed from custom recovery (works flawlessly with TWRP 2.6.3.4) like any app or kernel.
After script execution clear cache/Dalvik and reboot.
If any of the apps updated, then the updated apps will be in data/app and needs deleted from there as well.

Apps list may vary depending upon the particular firmware.
Using this script as example you may add/remove any apps in updater-script inside archive according to your needs.

List of apps I delete from /system/app (currently running Cataclysm ROM):
- BasicDreams
- Books
- Calculator (I use Calculator Mem Lite)
- Drive
- GenieWidget
- GoogleEars
- GoogleEarth
- GoogleHindiIME
- GoogleHome (I use Nova Launcher Prime)
- GooglePinyinIME
- GoogleTTS
- HTMLViewer
- iWnnIME
- iWnnIME_Kbd_White
- Keep
- KoreanIME
- LiveWallpapersPicker
- Magazines
- Music2 (I use WinAmp and PowerAmp)
- PlayGames
- PlusOne
- Stk
- Street
- Videos

P.S. I am not responsible for any damage to you phone, you do it on your own risk.
Attached Files
File Type: zip del_useless_apps_busybox.zip - [Click for QR Code] (191.3 KB, 1753 views)
Last edited by MoJo; 7th June 2014 at 07:06 AM.
The Following 20 Users Say Thank You to MoJo For This Useful Post: [ View ]
26th December 2013, 03:52 PM   |  #2  
AndrasLOHF's Avatar
Senior Member
Thanks Meter: 938
 
1,679 posts
Join Date:Joined: Jan 2013
More
Quote:
Originally Posted by MoJo

From the time I had HTC HD2 i use a script for deleting unwanted apps. This script should be installed from recovery like any app or kernel. After install just clear cache/Dalvik and reboot.

List of apps I delete from my Nexus 5 (using Cataclysm now):
- BasicDreams
- Books
- Calculator (I use Calculator Mem Lite)
- Drive
- GenieWidget
- GoogleEars
- GoogleEarth
- GoogleHindiIME
- GoogleHome (I use Nova Launcher Prime)
- GooglePinyinIME
- GoogleTTS
- HTMLViewer
- iWnnIME
- iWnnIME_Kbd_White
- Keep
- KoreanIME
- LiveWallpapersPicker
- Magazines
- Music2 (I use WinAmp and PowerAmp)
- PlayGames
- PlusOne
- Stk
- Street
- Videos

You may add any useless apps in list using this script as example.
P.S. Busybox must be installed.

How exactly do we add apps to the list to delete? I see the folder contains the recovery script but no list from which to edit. Do we just use 7zip, create a folder within the zip, then add apk names???? I miss having ROM Cleaner from my Evo LTE and have been looking for a suitable replacement on the Nexus 5. This way I don't have to keep waiting for the same 20 apps I delete from SlimKat to convert to ART when dirty flashing lol.
26th December 2013, 04:29 PM   |  #3  
MoJo's Avatar
OP Senior Member
West New York
Thanks Meter: 74
 
217 posts
Join Date:Joined: Sep 2006
Quote:
Originally Posted by AndrasLOHF

How exactly do we add apps to the list to delete? I see the folder contains the recovery script but no list from which to edit. Do we just use 7zip, create a folder within the zip, then add apk names???? I miss having ROM Cleaner from my Evo LTE and have been looking for a suitable replacement on the Nexus 5. This way I don't have to keep waiting for the same 20 apps I delete from SlimKat to convert to ART when dirty flashing lol.

Unpack archive, in /META-INF/com/google/android/updater-script make your changes, save, use 7Zip->save->archive format:zip, compression level:Store->press OK, that's all.
The Following User Says Thank You to MoJo For This Useful Post: [ View ]
26th December 2013, 05:29 PM   |  #4  
AndrasLOHF's Avatar
Senior Member
Thanks Meter: 938
 
1,679 posts
Join Date:Joined: Jan 2013
More
Thanks I think I got it. I used Notepad++ to edit the script. I added some priv-app apks too. Will that cause any issues? I just changed /app/ to /priv-app/ in the code.
Last edited by AndrasLOHF; 26th December 2013 at 05:35 PM.
26th December 2013, 05:34 PM   |  #5  
MoJo's Avatar
OP Senior Member
West New York
Thanks Meter: 74
 
217 posts
Join Date:Joined: Sep 2006
Post
Quote:
Originally Posted by AndrasLOHF

I used Notepad++ to edit the script.

You may view content of /system/app by Root Explorer on your device before.
And yes, you use right editor!
Last edited by MoJo; 26th December 2013 at 05:37 PM.
The Following User Says Thank You to MoJo For This Useful Post: [ View ]
26th December 2013, 09:15 PM   |  #6  
UgoBoss's Avatar
Senior Member
Flag Just there.
Thanks Meter: 228
 
470 posts
Join Date:Joined: Nov 2012
More
Thank's for sharing this ! Aweosme ! Every time, I was doing it with Titanium Backup xD

Just a curious question, was does happend if the app doesn't exist in the system ? Example 'delete("/system/app/Test.apk");' but Test.apk doesn't exist, does that change something ? I don't think so but just wanted to ask before I will try tomorrow

Thank's !
26th December 2013, 09:24 PM   |  #7  
MoJo's Avatar
OP Senior Member
West New York
Thanks Meter: 74
 
217 posts
Join Date:Joined: Sep 2006
Quote:
Originally Posted by UgoBoss

Example 'delete("/system/app/Test.apk");' but Test.apk doesn't exist, does that change something ?

Don't worry, if file doesn't exist, that does change nothing!
The Following 2 Users Say Thank You to MoJo For This Useful Post: [ View ]
27th December 2013, 02:41 PM   |  #8  
Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Dec 2013
Thanks, useful script!
27th December 2013, 07:30 PM   |  #9  
UgoBoss's Avatar
Senior Member
Flag Just there.
Thanks Meter: 228
 
470 posts
Join Date:Joined: Nov 2012
More
Can I take the same files (the folder META-INF) for Nexus 7 2013 ? Or I need to replace it by one in a rom for N7 ?

Thank's !

EDIT : I just saw this line in the updater-scrpit '#This script for Nexus 5 ONLY!' I will see how to do it on Nexus 7 !
Last edited by UgoBoss; 27th December 2013 at 09:52 PM.
28th December 2013, 07:23 AM   |  #10  
MoJo's Avatar
OP Senior Member
West New York
Thanks Meter: 74
 
217 posts
Join Date:Joined: Sep 2006
Quote:
Originally Posted by UgoBoss

Can I take the same files (the folder META-INF) for Nexus 7 2013 ? Or I need to replace it by one in a rom for N7 ?

Thank's !

EDIT : I just saw this line in the updater-scrpit '#This script for Nexus 5 ONLY!' I will see how to do it on Nexus 7 !

Yes, you can use META-INF folder.
Mount line for Nexus 7 (2012) will looks something like:
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/APP", "/system");

But it seems that N7 2013 has same partitions structure like N5, so this script should fit Nexus 7 (2013) w/o any changes.
Last edited by MoJo; 28th December 2013 at 08:30 AM.

The Following User Says Thank You to MoJo For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes