[Galaxy Y GT-S5360 General] mai77:
updater-script

## updater-script under aroma for SGY bloatware remover

## modded by mai77 from xperia source

## WIP not yet finished !

# SGY unapplicable

#mount("MTD", "system", "/system");

#mount("MTD", "userdata", "/data");

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.1") == "1"

then

ui_print("Removing Calendar");

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

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

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.2") == "1"

then

ui_print("Removing Default Widgets");

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

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

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

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.3") == "1"

then

ui_print("Removing Default WallPapers");

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

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

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.4") == "1"

then

ui_print("Removing VPN Services");

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.5") == "1"

then

ui_print("Removing Default Themes");

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

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.6") == "1"

then

ui_print("Removing Sony Ericsson Suite");

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

ui_print("Removing Fun And Downloads");

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

ui_print("Removing PS Pocket");

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

ui_print("Removing PS Store");

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.7") == "1"

then

ui_print("Removing Live WallPapers");

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.8") == "1"

then

ui_print("Removing Email App");

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.9") == "1"

then

ui_print("Removing Dummy Apps");

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

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

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

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

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.10") == "1"

then

ui_print("Removing Calculator");

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.11") == "1"

then

ui_print("Removing WAP Push App");

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

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.12") == "1"

then

ui_print("Removing TTS and Pico");

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

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.13") == "1"

then

ui_print("Removing MTP USB Mode");

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.14") == "1"

then

ui_print("Removing FaceBook Bloatware");

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

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

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

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

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

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

endif;

# space hog section

# only active by default, put large files here safe for removal

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.15") == "1"

then

ui_print("Removing space hog Bloatware");

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

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

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

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

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.16") == "1"

then

ui_print("Removing Some Bloatware");

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

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

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

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

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

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

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.17") == "1"

then

ui_print("Removing Some More Bloatware");

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

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

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

delete("/system/app/textinput-chn.apk");

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

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.18") == "1"

then

ui_print("Removing Even More Bloatware");

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

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

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

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

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

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

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.19") == "1"

then

ui_print("Removing Last Bloatware");

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

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

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

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

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

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

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

endif;

if

file_getprop("/tmp/aroma-data/apps.prop","item.1.20") == "1"

then

ui_print("Removing Chinese Keyboard");

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

endif;

if

file_getprop("/tmp/aroma-data/modules.prop","item.1.1") == "1"

then

ui_print("Using DoomKernel Modules");

package_extract_dir("modules/doom", "/system/lib/modules");

endif;

if

file_getprop("/tmp/aroma-data/modules.prop","item.1.2") == "1"

then

ui_print("Using Stock Kernel Modules");

package_extract_dir("modules/stock", "/system/lib/modules");

endif;

if

file_getprop("/tmp/aroma-data/tweaks.prop","item.1.1") == "1"

then

ui_print("Installing ZipAlign At Boot");

package_extract_file("tweaks/S70zipalign", "/etc/init.d/S70zipalign");

package_extract_file("tweaks/zipalign", "/system/bin/zipalign");

set_perm(0, 0, 0777, "/etc/init.d/S70zipalign");

endif;

if

file_getprop("/tmp/aroma-data/tweaks.prop","item.1.2") == "1"

then

ui_print("Enabling DoomKernel ZRam Tweak");

package_extract_file("tweaks/00zram", "/etc/init.d/00zram");

set_perm(0, 0, 0777, "/system/etc/init.d/00zram");

endif;

unmount("/system");

show_progress(1, 0);

ui_print("@Installation complete.");