[Xperia SP Android Development] mrjraider:
Bloatware Removal Script​

Hi all,

The Sony Xperia SP comes with a lot of Bloatware. Some can be removed but others can't and that is annoying.

So I've made a small script that removes all the Bloatware..

I did make one for the Samsung Galaxy S Plus (did not get much feedback :( so I give it a go here​

)
​

Disclaimer​

Easy one: Dont come cry to me when your phone blows up.. I am not held responsible when something goes wrong. Altho I am a person that needs and wants feedback to enhance my skillz.​

Features​

This script does one simple thing. It removes .apk and .odex files from Bloatware. This means that the entire application will be removed. It clears not only some storage space on your device but also clears the ammount of active applications and thus saves a bit RAM (some bloatware will always run in the background ;) )​

The Script​

Below I will add the entire script so that you all can see what will be removed! I will give some more explanation later on!

ui_print(" Xperia Bloatware Remover ");
ui_print("+++++++++++++++++++++++++++");
ui_print(" by ");
ui_print(" Mrjraider ");
ui_print(" ");
ui_print("+++++++++++++++++++++++++++");
ui_print(" For Sony Xperia SP	");
ui_print(" Let's go!!! ");
ui_print("+++++++++++++++++++++++++++");
ui_print(" ");
ui_print("Starting to remove Bloatware");
show_progress(0.500000, 0);
ui_print(" ");
ui_print("Mounting system ...");
run_program("/sbin/busybox", "mount", "/system");
ui_print(" ");
ui_print("Deleting bloatware applications...");
delete("/system/app/AnonymousData.apk");
delete("/system/app/Books.apk");
delete("/system/app/CarHome.apk");
delete("/system/app/Chrome.apk");
delete("/system/app/CivilAlerts.apk");
delete("/system/app/ExternalKeyboardJP.apk");
delete("/system/app/facebook.apk");
delete("/system/app/FBCalendarSync.apk");
delete("/system/app/FBIAppShare.apk");
delete("/system/app/FBMediaDiscovery.apk");
delete("/system/app/FBMusicLike.apk");
delete("/system/app/GenieWidget.apk");
delete("/system/app/Gmail2.apk");
delete("/system/app/gmail-reader-service.apk");
delete("/system/app/GMS_Maps.apk");
delete("/system/app/GoogleFeedback.apk");
delete("/system/app/GoogleTTS.apk");
delete("/system/app/GoogleLyricsPlugin.apk");
delete("/system/app/Hangouts.apk");
delete("/system/app/helpapp.apk");
delete("/system/app/HTMLviewer.apk");
delete("/system/app/JapaneseIME.apk");
delete("/system/app/Magazines.apk");
delete("/system/app/PicoTts.apk");
delete("/system/app/PlayGames.apk");
delete("/system/app/PlusOne.apk");
delete("/sytem/app/Protips.apk");
delete("/system/app/retaildemo.apk");
delete("/system/app/SEMCFacebookProxy.apk");
delete("/system/app/SemcUnplugChargerReminder.apk");
delete("/system/app/sociallife.apk");
delete("/system/app/SocialEngineTwitterShareFrwkPlugin.apk");
delete("/system/app/sonyselect.apk");
delete("/system/app/sonyselectdata.apk");
delete("/system/app/SonySelectWidget.apk");
delete("/system/app/Street.apk");
delete("/system/app/talkback.apk");
delete("/system/app/UnsupportedHeadsetNotifier.apk");
delete("/system/app/velvet.apk");
delete("/system/app/VideoEditorGoogle.apk");
delete("/system/app/VoiceDialer.apk");
delete("/system/app/VoiceSearchStub.apk");
delete("/system/app/WikipediaPlugin.apk");
delete("/system/app/YouTube.apk");
delete("/system/app/YouTubeKaraokePlugin.apk");
delete("/system/app/YouTubePlugin.apk");
delete("/system/app/.apk");
ui_print("DONE");
ui_print(" ");
ui_print("Deleting bloatware odexfiles...");
delete("/system/app/AnonymousData.odex");
delete("/system/app/HTMLviewer.odex");
delete("/system/app/PicoTts.odex");
delete("/system/app/Protips.odex");
delete("/system/app/UnsupportedHeadsetNotifier.odex");
delete("/system/app/VoiceDialer.odex");
ui_print("DONE");
ui_print("Unmounting system...");
unmount("/system");
ui_print(" ");
ui_print(" ");
ui_print("Removing complete!");
ui_print("++++++++++++++++++");
show_progress(0.900000, 0);
ui_print(" ");
ui_print(" ");
ui_print("Enjoy a Bloatware free Phone. Leave a thanks on XDA!!");
show_progress(1.000000, 0);

How to use this​

To remove bloatware just follow the steps below:

Root the device and get a custom recovery

Download the .zip and put in on your phone

Make a NanDroid backup (just in case!)

Flash it

Reboot

Done
​

Adding and removing to the list​

If you want you can add and remove lines from the script to give it your own twist. You can safe applications from deleting and you can add applications for deleting. This is very easy to do.

Just add the name of an application behind:

delete("/system/app/nameofapplication.apk);

If it has an .odex file do the same:

delete("/system/app/nameofapplication.odex);

Safe the file and flash it again!​

Credits​

encik_racun - initial script for Samsung Galaxy S Plus

Me for making a new Sony version

Furrydaus for confirming that my script works​