Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,786,281 Members 51,055 Now Online
XDA Developers Android and Mobile Development Forum

[Script] Delete unwanted apps

Tip us?
 
MoJo
Old
(Last edited by MoJo; 7th June 2014 at 06:06 AM.)
#1  
MoJo's Avatar
Senior Member - OP
Thanks Meter 74
Posts: 216
Join Date: Sep 2006
Location: West New York
Default [Script] Delete unwanted apps

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, 1510 views)
 
(ROM: Stock 4.4.3+Xposed+GravityBox | Kernel: Franco r53 | Recovery: TWRP 2.7.1.1)
(ROM: CM11 Nightly | Kernel: Franco r79 | Recovery: TWRP 2.7.0.0)
The Following 20 Users Say Thank You to MoJo For This Useful Post: [ Click to Expand ]
 
AndrasLOHF
Old
#2  
AndrasLOHF's Avatar
Senior Member
Thanks Meter 680
Posts: 1,415
Join Date: Jan 2013
Quote:
Originally Posted by MoJo View Post
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.
Nexus 5 PandaTrooper!!!

Get your eargasm herehttp://forum.xda-developers.com/goog...droid-t2543796
 
MoJo
Old
#3  
MoJo's Avatar
Senior Member - OP
Thanks Meter 74
Posts: 216
Join Date: Sep 2006
Location: West New York
Quote:
Originally Posted by AndrasLOHF View Post
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.
 
(ROM: Stock 4.4.3+Xposed+GravityBox | Kernel: Franco r53 | Recovery: TWRP 2.7.1.1)
(ROM: CM11 Nightly | Kernel: Franco r79 | Recovery: TWRP 2.7.0.0)
The Following User Says Thank You to MoJo For This Useful Post: [ Click to Expand ]
 
AndrasLOHF
Old
(Last edited by AndrasLOHF; 26th December 2013 at 04:35 PM.)
#4  
AndrasLOHF's Avatar
Senior Member
Thanks Meter 680
Posts: 1,415
Join Date: Jan 2013
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.
Nexus 5 PandaTrooper!!!

Get your eargasm herehttp://forum.xda-developers.com/goog...droid-t2543796
 
MoJo
Old
(Last edited by MoJo; 26th December 2013 at 04:37 PM.)
#5  
MoJo's Avatar
Senior Member - OP
Thanks Meter 74
Posts: 216
Join Date: Sep 2006
Location: West New York
Quote:
Originally Posted by AndrasLOHF View Post
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!
 
(ROM: Stock 4.4.3+Xposed+GravityBox | Kernel: Franco r53 | Recovery: TWRP 2.7.1.1)
(ROM: CM11 Nightly | Kernel: Franco r79 | Recovery: TWRP 2.7.0.0)
The Following User Says Thank You to MoJo For This Useful Post: [ Click to Expand ]
 
UgoBoss
Old
#6  
UgoBoss's Avatar
Senior Member
Thanks Meter 228
Posts: 465
Join Date: Nov 2012
Location: Just there.
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 !
<a href="www.forumgalaxys4.fr" target="_blank">Forum Samsung Galaxy S4</a>
<a href="www.forumsamsunggalaxys4.com" target="_blank">Samsung Galaxy S4 Forum</a>
 
MoJo
Old
#7  
MoJo's Avatar
Senior Member - OP
Thanks Meter 74
Posts: 216
Join Date: Sep 2006
Location: West New York
Quote:
Originally Posted by UgoBoss View Post
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!
 
(ROM: Stock 4.4.3+Xposed+GravityBox | Kernel: Franco r53 | Recovery: TWRP 2.7.1.1)
(ROM: CM11 Nightly | Kernel: Franco r79 | Recovery: TWRP 2.7.0.0)
The Following 2 Users Say Thank You to MoJo For This Useful Post: [ Click to Expand ]
 
_Russ_
Old
#8  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Dec 2013
Thanks, useful script!
 
UgoBoss
Old
(Last edited by UgoBoss; 27th December 2013 at 08:52 PM.)
#9  
UgoBoss's Avatar
Senior Member
Thanks Meter 228
Posts: 465
Join Date: Nov 2012
Location: Just there.
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 !
<a href="www.forumgalaxys4.fr" target="_blank">Forum Samsung Galaxy S4</a>
<a href="www.forumsamsunggalaxys4.com" target="_blank">Samsung Galaxy S4 Forum</a>
 
MoJo
Old
(Last edited by MoJo; 28th December 2013 at 07:30 AM.)
#10  
MoJo's Avatar
Senior Member - OP
Thanks Meter 74
Posts: 216
Join Date: Sep 2006
Location: West New York
Quote:
Originally Posted by UgoBoss View Post
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.
 
(ROM: Stock 4.4.3+Xposed+GravityBox | Kernel: Franco r53 | Recovery: TWRP 2.7.1.1)
(ROM: CM11 Nightly | Kernel: Franco r79 | Recovery: TWRP 2.7.0.0)

The Following User Says Thank You to MoJo For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes