﻿ini_set("force_colorspace","rgba");
theme("material_blue");
fontresload( "0", "ttf/Roboto-Regular.ttf;ttf/DroidSansFallback.ttf;", "12" );
fontresload( "1", "ttf/Roboto-Regular.ttf;ttf/DroidSansFallback.ttf;", "14" );
agreebox(
  "Terms and Conditions",
  "Please read the Terms and Conditions below",
  "@agreement",
  resread("readme.txt"),
  "I agree to the Terms and Conditions",
  "You must agree to the Terms and Conditions to continue"
);
    checkbox(
      "Bloatware - System partition apps",
      "Select the apps which you want to remove: ",
      "@apps",
      "apps.prop",
		"Google Apps",               "",	2,        #-- Group 1. key = "item.1"
	"AndroidPay",                 	 	"Android payment system",	0,        #-- item.1.1
	"Chrome",				 			"Browser",	0,        #-- item.1.2
	"Drive",				 			"Google's cloud storage",	0,        #-- item.1.3
	"Duo",					 			"Video chats",	0,        #-- item.1.4
	"Gmail2",						 	"Google mail client",	0,        #-- item.1.5
	"Hangouts",				 			"Chat client",	0,        #-- item.1.6
	"Google Maps",				 		"",	0,        #-- item.1.7
	"Google Music",			 			"",	0,        #-- item.1.8
	"Google Search",			 		"or Google Now",	0,        #-- item.1.9
	"Google Calendar",			 		"",	0,        #-- item.1.10
	"Google Video",			 			"",	0,        #-- item.1.11
	"Google Photos",			 		"",	0,        #-- item.1.12
	"YouTube",				 			"",	0,        #-- item.1.13
	"TalkBack",				 			"",	0,        #-- item.1.14
"MIUI Apps",               "",	2,        #-- Group 2. key = "item.2"
	"Analytics",			    "Analytics collector",	0,        #-- item.2.1
	"BugReport",			    "BugReport application",	0,    	  #-- item.2.2
	"Email",   					"",	0,        #-- item.2.3
	"FileExplorer",			 	"",	0,        #-- item.2.4
	"MiPlay",			        "", 0,        #-- item.2.5
	"Xiaomi Scanner",			"",	0,        #-- item.2.6
	"Personal Assistant",			"",	0,        #-- item.2.7
"Keybaords - Delete only ONE!",               "",	2,        #-- Group 3. key = "item.3"
	"SwiftKey",			"Don't delete GoogleKeybaord if you're deleting this one",	0,        #-- item.3.1
	"GoogleKeyboard",	"Don't delete SwiftKey if you're deleting this one",		0        #-- item.3.2
    );

ini_set("text_next", "Uninstall now");
ini_set("icon_next", "@installbutton");

viewbox(
    "Ready to Uninstall",
    "Press <b>Uninstall Now</b> to begin the uninstallation.\n\n\n\n\n\n\n<#selectbg_g>"+
    "If you want to review or change any of your settings, press <b>Back</b>. Press 3 dot Button -> Quit Uninstallation to exit the wizard.</#>",
    "@install"
);

ini_set("text_next", "Next");
ini_set("icon_next", "@next");

setvar("retstatus",
  install(
	"Uninstalling",
	
	"Please wait. This may take several minutes.",
	
	"@install",
	
	"The uninstallation has successfully. Press Next to continue."
  )
);

ini_set("text_next", "Finish");
ini_set("icon_next", "@finish");

checkviewbox(
  "Uninstalled Complete",
  
  "<b>Congratulation...</b>\n\n"+
    "Selected applications have been removed from your device.\n\n\n\n <#selectbg_g><b>IMPORTANT: \n If you still see some of the apps you've removed in your app drawer, please uninstall them manually, these are updates from Google Play.</b></#>\n",

  "@welcome",

  "Reboot your device now.",

  "0",

  "reboot_it"
);

if
  getvar("reboot_it")=="1"
then
  reboot("onfinish");
endif;

