[Galaxy Y GT-S5360 General] mai77:
aroma-config

WIP ! not yet finished !!

### LICENSE:

#

# Copyright (C) 2011 Ahmad Amarullah ( http://amarullz.com/ )

# xperia version converted to SGY by mai77

#calibrate("0.9718","4","1.0176","-9"); xperia

ini_set("rom_name", "SGY Bloat Remover");

ini_set("rom_version", "0.1");

ini_set("rom_author", "mai77");

ini_set("rom_device", "SGY");

ini_set("rom_date", "Dec. 26th, 2012");

#theme("ics");

viewbox(

#-- Title

"Welcome to SGY unbloater",

#-- Text

"You are about to use "+ini_get("rom_name")+"\n\n"+

" VERSION\t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+

" AUTHOR\t: <b><#selectbg_g>"+ini_get("rom_author")+"</#></b>\n"+

" UPDATED\t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n\n"+

"Press Next to Continue...",

#-- Icon

"@welcome"

);

textbox(

#-- Title

"Changelog",

#-- Subtitle

"Changelog",

#-- Icon

"@update",

#-- Arg 4

resread("changelog.txt")

);

# STEP 1 - BLOATREMOVER

checkbox(

# Title

"Remove Bloatware",

# Sub Title

"Applications that are 'checked' will be removed.",

# Icon

"@personalize",

# Will be saved in /tmp/aroma/mods.prop

"apps.prop",

#---------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------#

# TITLE | SUBTITLE | Initial Value #

#---------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------#

# put an itemlist here with the large files = space hogs

# to quickly gain space where only safe files are removed

"Applications", "", 2, #-- Group 1

"Calendar", "Cal__.apk\nS_.apk\nG_.apk", 0, #-- item.1.1

"Default Widgets", "Cl_.apk\nG_.apk\nM_.apk\nP_.apk", 1, #-- item.1.2

"Wallpapers", "Remove Default WallPapers", 1, #-- item.1.3

"VPN", "V_.apk", 1, #-- item.1.4

"Default Themes", "D_.apk\nT_.apk", 1, #-- item.1.5

"Launcher", "L_.apk\nA_.apk\nP_.apk\nP_.apk", 0, #-- item.1.6

"Live Wallpaper Picker", "D_.apk\nL_.apk", 1, #-- item.1.7

"Email", "S_.apk", 1, #-- item.1.8

"Dummy Apps", "D_.apk\nD__.apk\nD3_.apk\nD4_.apk\nS_.apk", 1, #-- item.1.9

"Calculator", "C_.apk", 1, #-- item.1.10

"WAP Push", "W_.apk\nW_.apk", 1, #-- item.1.11

"Text To Speech", "T_.apk\nP_.apk", 1, #-- item.1.12

"MTP Mode", "M_.apk", 0, #-- item.1.13

"Facebook Bloatware", "F.apk\nF2_.apk\nF3_.apk\nF4_.apk\nFB5_.apk\nf_.apk", 1, #-- item.1.14

"space hogs - safe removal - 30MB = 50% of all bloat", "E.apk\nE.apk\nE.apk\nE.apk\nE.apk", 1, #-- item.1.15

# default tagged for fast and safe gaining of storage space

"Bloatware Part 1", "A.apk\nA.apk\nF.apk\nM.apk\nR.apk\nu.apk\nu.apk", 1, #-- item.1.16

"Bloatware Part 2", "W.apk\nV.apk\nU.apk\nt.apk\nS.apk\nS.apk", 1, #-- item.1.17

"Bloatware Part 3", "S.apk\nS.apk\nS.apk\nS.apk\nS.apk\nS.apk\nr.apk", 1, #-- item.1.18

"Bloatware Part 4", "p.apk\no.apk\nM.apk\nli.apk\nI.apk\nG.apk\nP.apk", 1, #-- item.1.19

"Chinese Keyboard", "c.apk", 1 #-- item.1.20

#---------------------------+----------------------------------------------------------------------------------------------------------------------------------+--------------------------------+---------------#

# TITLE | SUBTITLE | Initial Value #

#---------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------#

);

# STEP 2 - MODULE CHOOSER

selectbox(

# Title

"Choose Wifi Modules",

# put CW compiled module here by whiteXP for testing

# Sub Title

"Choose Stock Kernel / whiteKernel / MT Kernel",

# Icon

"@personalize",

# Will be saved in /tmp/aroma/mods.prop

"modules.prop",

#-------------------------------+--------------------------+---------------#

# TITLE | SUBTITLE | Initial Value #

#-------------------------------+--------------------------+---------------#

"Which Kernel Are You Using?", "", 2, #-- Group 1

"whiteKernel", "Use Doom Kernel WiFi Modules", 1, #-- item.1.1

"StockKernel", "Use Stock Kernel WiFi Modules", 0 #-- item.1.2

#-------------------------------+--------------------------+---------------#

# TITLE | SUBTITLE | Initial Value #

#-------------------------------+--------------------------+---------------#

);

# STEP 3 - TWEAK CHOOSER

checkbox(

# Title

"Tweaks",

# Sub Title

"Tweaks that are 'checked' will be enabled.",

# Icon

"@personalize",

# Will be saved in /tmp/aroma/mods.prop

"tweaks.prop",

#-----------------------+----------------------------+---------------#

# TITLE | SUBTITLE | Initial Value #

#-----------------------+----------------------------+---------------#

"Tweaks", "", 2, #-- Group 1

"ZipAlign At Boot", "Zipalign all apps at boot", 1, #-- item.1.1

"Enable ZRAM Swap", "Enable ZRAM swap", 1 #-- item.1.2

#-----------------------+----------------------------+---------------#

# TITLE | SUBTITLE | Initial Value #

#-----------------------+----------------------------+---------------#

);

ini_set("text_next", "Kill Bloat");

viewbox(

#-- Title

"Ready to run bloatkiller",

#-- Text

"Press <b>Kill Bloat</b> to begin the bloatware removal..\n\n"+

"If you want to review or change any of your installation settings, press <b>Back</b>. Press Menu Key -> Quit Installation to exit the wizard.",

#-- Icon

"@install"

);

ini_set("text_next", "Next >");

setvar("retstatus",

install(

#-- Title

"Installing",

#-- Installation Process message

"<b>"+ini_get("rom_name")+"</b> is removing the bloat you chose\n\n"+

"Please wait for approx. 1 minute.",

#-- Installation Icon

"@install",

#-- Installation Finish Message

"aroma installation wizard has successfully installed <b>"+ini_get("rom_name")+

"</b>. Press Next to continue."

)

);

ini_set("text_next", "Finish");

checkviewbox(

#-- Title

"Installation Completed",

#-- Text

"<#selectbg_g><b>Congratulations...</b></#>\n\n"+

"<b>"+ini_get("rom_name")+"</b> has removed all the bloatware that hogs your storage. possible sources of concern in terms of privacy have been eradicated. \n\n"+

"Installer Status: "+getvar("retstatus")+"\n\n",

#-- Icon

"@welcome",

#-- Checkbox Text

"you may want to reboot your SGY device now.",

#-- Initial Checkbox value ( 0=unchecked, 1=checked ) - (Optional, default:0)

"1",

#-- Save checked value in variable "reboot_it" (Optional)

"reboot_it"

);

###

#

# Check if reboot checkbox was checked

if

getvar("reboot_it")=="1"

then

#

# reboot("onfinish"); - Reboot if anything finished

# reboot("now"); - Reboot Directly

# reboot("disable"); - If you set reboot("now") before, use this command to revert it.

#

reboot("onfinish");

endif;

#---- FINISH