2019-01-07 19:18:07 +00:00
|
|
|
ini_set("rom_name", "NanoDroid SetupWizard");
|
2019-08-02 17:48:24 +00:00
|
|
|
ini_set("rom_version", "22.3");
|
2018-01-23 20:11:52 +00:00
|
|
|
ini_set("rom_author", "Nanolx");
|
|
|
|
ini_set("rom_device", "Generic (LOS/AOSP)");
|
2019-08-05 17:24:17 +00:00
|
|
|
ini_set("rom_date", "20190805");
|
2018-01-23 20:11:52 +00:00
|
|
|
|
2019-01-07 18:33:15 +00:00
|
|
|
ini_set("force_colorspace","rgba");
|
|
|
|
splash(2000, "nanolx");
|
|
|
|
fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );
|
|
|
|
fontresload( "1", "ttf/Roboto-Regular.ttf", "18" );
|
2018-01-23 20:11:52 +00:00
|
|
|
theme("touchwiz");
|
|
|
|
|
|
|
|
viewbox(
|
|
|
|
"Welcome",
|
|
|
|
"Relevant information of the Package:\n\n"+
|
|
|
|
" Rom\t <b><#selectbg_g>"+ini_get("rom_name")+"</#></b>\n"+
|
2019-01-07 19:18:07 +00:00
|
|
|
" Version\t <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+
|
2018-01-23 20:11:52 +00:00
|
|
|
" Date\t <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n"+
|
2019-01-07 19:18:07 +00:00
|
|
|
" Device\t <b><#f00>"+ini_get("rom_device")+"</#></b>\n\n\n",
|
2018-01-23 20:11:52 +00:00
|
|
|
"@welcome"
|
|
|
|
);
|
|
|
|
|
|
|
|
agreebox(
|
2019-01-07 19:18:07 +00:00
|
|
|
"Terms Of Use",
|
|
|
|
"<@center>Please read the NanoDroid terms of use</@>",
|
2019-01-07 18:34:49 +00:00
|
|
|
"@license",
|
2019-01-07 19:18:07 +00:00
|
|
|
"<@center>" + readfile_aroma("license.txt") + "</@>",
|
2019-01-07 18:34:49 +00:00
|
|
|
"I agree with these terms of use",
|
2019-01-07 19:18:07 +00:00
|
|
|
"<@center>You must accept the terms</@>"
|
2018-01-23 20:11:52 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
selectbox(
|
|
|
|
"Configuration Location",
|
|
|
|
"Configuration Location",
|
2019-01-07 19:18:07 +00:00
|
|
|
"@customize",
|
2018-01-23 20:11:52 +00:00
|
|
|
"location.prop",
|
|
|
|
|
|
|
|
"Where to store configuration", "", 2, #-- Group 1. key = "selected.1"
|
2019-05-05 10:13:21 +00:00
|
|
|
"/data/media/0", "Internal Storage (wipe-safe)", 1, #-- selected.1 = 1
|
2018-01-23 20:11:52 +00:00
|
|
|
"/external_sd", "External SD Card (if any)", 0, #-- selected.1 = 2
|
2018-03-12 17:39:45 +00:00
|
|
|
"/data", "Data Storage (not wipe-safe) ", 0 #-- selected.1 = 3
|
2018-01-23 20:11:52 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
checkbox(
|
|
|
|
"Generic Setup",
|
|
|
|
"Generic Setup",
|
2019-01-07 19:18:07 +00:00
|
|
|
"@customize",
|
2018-01-23 20:11:52 +00:00
|
|
|
"setup.prop",
|
|
|
|
|
|
|
|
"Adjust the basic settings", "", 2, #-- Group 1
|
|
|
|
"Apps", "Install Apps (customized later)", 1,
|
2018-04-24 18:30:31 +00:00
|
|
|
"Overlay", "Debloat Apps (customized later)", 1,
|
2018-01-23 20:11:52 +00:00
|
|
|
"Zelda Tunes", "Install The Legend of Zelda rintones and sounds", 1,
|
|
|
|
"Maps API v1", "Install Google Maps API version 1", 1,
|
|
|
|
"Init Scripts", "Install init scripts", 1,
|
|
|
|
"Google Sync", "Install Google Contacts & Calendar Sync", 0,
|
|
|
|
"Swipe", "Install Swipe libraries", 0,
|
|
|
|
"Force System", "Force System Mode Installation", 0,
|
2018-03-12 17:39:45 +00:00
|
|
|
"GNU Bash", "Install GNU Bash Shell", 1,
|
|
|
|
"GNU Nano", "Install GNU Nano Terminal Editor", 1,
|
|
|
|
"Shell Utils", "Install Shell Utils from bsdmainutils and util-linux", 1,
|
2019-06-08 20:42:59 +00:00
|
|
|
"Nintendo Fonts", "Install Nintendo Fonts", 1
|
2018-01-23 20:11:52 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
selectbox(
|
2018-11-07 16:34:29 +00:00
|
|
|
"microG",
|
|
|
|
"microG",
|
2019-01-07 19:18:07 +00:00
|
|
|
"@customize",
|
2018-11-07 16:34:29 +00:00
|
|
|
"ug.prop",
|
2018-08-18 16:36:44 +00:00
|
|
|
|
2018-11-07 16:34:29 +00:00
|
|
|
"Select whether to install microG", "", 2, #-- Group 1. key = "selected.1"
|
2019-08-02 17:30:42 +00:00
|
|
|
"None", "Don't install microG (does not effect NanoDroid-microG)", 0, #-- selected.1 = 1
|
2018-11-07 16:34:29 +00:00
|
|
|
"Full", "Install microG [GmsCore, GsfProxy, DroidGuard Helper, Nominatim]", 1, #-- selected.1 = 2
|
|
|
|
"Minimal", "Install microG [GmsCore, Nominatim]", 0 #-- selected.1 = 3
|
2018-01-23 20:11:52 +00:00
|
|
|
);
|
|
|
|
|
2019-08-02 17:30:42 +00:00
|
|
|
selectbox(
|
|
|
|
"F-Droid",
|
|
|
|
"F-Droid",
|
|
|
|
"@customize",
|
|
|
|
"fd.prop",
|
|
|
|
|
|
|
|
"Select whether to install F-Droid", "", 2, #-- Group 1. key = "selected.1"
|
|
|
|
"None", "Don't install F-Droid (does not effect NanoDroid-FDroid)", 0, #-- selected.1 = 1
|
|
|
|
"Official", "Install official F-Droid client", 1, #-- selected.1 = 2
|
|
|
|
"Aurora Droid", "Install unofficial Aurora Droid client", 0 #-- selected.1 = 3
|
|
|
|
);
|
|
|
|
|
2018-11-27 18:28:58 +00:00
|
|
|
checkbox(
|
2018-01-23 20:11:52 +00:00
|
|
|
"nlpBackends",
|
|
|
|
"nlpBackends",
|
2019-01-07 19:18:07 +00:00
|
|
|
"@customize",
|
2018-01-23 20:11:52 +00:00
|
|
|
"nlp.prop",
|
|
|
|
|
2018-11-27 18:28:58 +00:00
|
|
|
"Select the location backends for microG", "", 2, #-- Group 1
|
|
|
|
"Déjà Vu", "Install Déjà Vu backend", 1,
|
|
|
|
"Ichnaea", "Install Mozilla backend", 0,
|
2019-01-07 19:18:07 +00:00
|
|
|
"Apple", "Install Apple backend", 0,
|
|
|
|
"Radiocell", "Install Radiocells.org backend", 0
|
2018-01-23 20:11:52 +00:00
|
|
|
);
|
|
|
|
|
2018-11-07 16:34:29 +00:00
|
|
|
selectbox(
|
|
|
|
"Google App Store",
|
|
|
|
"Google App Store",
|
2019-01-07 19:18:07 +00:00
|
|
|
"@customize",
|
2018-11-07 16:34:29 +00:00
|
|
|
"store.prop",
|
|
|
|
|
|
|
|
"Select the Google App Store you want", "", 2, #-- Group 1. key = "selected.1"
|
2019-01-07 19:18:07 +00:00
|
|
|
"None", "Install no Google App Store", 0, #-- selected.1 = 1
|
2019-06-09 10:06:37 +00:00
|
|
|
"Play Store (patched)", "Install patched Play Store with microG (in-)app-purchase support", 0, #-- selected.1 = 2
|
2019-05-04 16:00:34 +00:00
|
|
|
"Yalp Store", "Install alternative Yalp Store", 0, #-- selected.1 = 3
|
|
|
|
"Aurora Store", "Install alternative Aurora Store", 0, #-- selected.1 = 4
|
2018-11-26 15:20:08 +00:00
|
|
|
"Fake Store", "Install Fake Store only", 0, #-- selected.1 = 5
|
2019-05-04 16:00:34 +00:00
|
|
|
"Yalp + Fake Store", "Install alternative Yalp Store (and Fake Store)", 0, #-- selected.1 = 6
|
|
|
|
"Aurora + Fake Store", "Install alternative Aurora Store (and Fake Store)", 1 #-- selected.1 = 7
|
2018-11-07 16:34:29 +00:00
|
|
|
|
|
|
|
);
|
|
|
|
|
2018-01-23 20:11:52 +00:00
|
|
|
checkbox(
|
|
|
|
"App Setup",
|
|
|
|
"App Setup",
|
2019-01-07 19:18:07 +00:00
|
|
|
"@customize",
|
2018-01-23 20:11:52 +00:00
|
|
|
"apps.prop",
|
|
|
|
|
|
|
|
"Select which Apps to install (if enabled)", "", 2, #-- Group 1
|
2019-06-08 20:35:22 +00:00
|
|
|
"Alarmio", "Alarm Clock without pre-alerts", 1,
|
2018-01-23 20:11:52 +00:00
|
|
|
"Amaze", "Amazing File Manager", 1,
|
|
|
|
"AnysoftKeyboard", "Powerful Keyboard", 1,
|
2019-06-08 20:35:22 +00:00
|
|
|
"Blokada", "Powerful ad blocker (rootless)", 1,
|
|
|
|
"FaceSlim", "Facebook client", 1,
|
2019-06-09 18:41:17 +00:00
|
|
|
"HackersKeyboard", "Powerful developer Keyboard", 1,
|
2018-01-23 20:11:52 +00:00
|
|
|
"K9Mail", "Powerful Mail client", 1,
|
2018-03-17 16:08:36 +00:00
|
|
|
"KeePassDX", "Password Safe", 1,
|
2018-01-23 20:11:52 +00:00
|
|
|
"MPV", "Video Player", 1,
|
|
|
|
"NewPipe", "YouTube frontend and downloader", 1,
|
|
|
|
"Oandbackup", "Backup and Restore Apps", 1,
|
|
|
|
"Odyssey", "Feature-Rich Music Player", 1,
|
|
|
|
"OpenCamera", "Feature-Rich Camera", 1,
|
|
|
|
"OpenKeyChain", "Encrypt or Sign E-Mails", 1,
|
|
|
|
"OpenLauncher", "Customizable Launcher", 1,
|
|
|
|
"OpenVPN", "Connect to VPNs", 1,
|
|
|
|
"Orbot", "Connect to The Onion Router (TOR)", 1,
|
2018-09-15 17:21:42 +00:00
|
|
|
"Tor Browser", "Modified Firefox for TOR", 1,
|
2019-06-09 18:29:16 +00:00
|
|
|
"Privacy Browser", "Secure, Open Source Browser", 1,
|
2018-01-23 20:11:52 +00:00
|
|
|
"QKSMS", "Great SMS / MMS messenger", 1,
|
|
|
|
"SimpleCalendar", "Easy to use Calendar", 1,
|
|
|
|
"SimpleGallery", "Easy to use Gallery", 1,
|
2019-07-26 19:28:14 +00:00
|
|
|
"SmartPack-Kernel-Manager", "Customize Kernel Settings", 1,
|
2018-06-15 19:37:37 +00:00
|
|
|
"Substratum", "Substratum Theme Engine App", 1,
|
2018-01-23 20:11:52 +00:00
|
|
|
"Termux", "Powerful Terminal Emulator", 1,
|
|
|
|
"Twidere", "Customizable Twitter Client", 1,
|
2019-04-24 18:55:29 +00:00
|
|
|
"XDALabs", "XDA at the palm of your hands", 1
|
2018-01-23 20:11:52 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
checkbox(
|
2018-04-24 18:30:31 +00:00
|
|
|
"Debloat Setup",
|
|
|
|
"Debloat Setup",
|
2019-01-07 19:18:07 +00:00
|
|
|
"@customize",
|
2018-01-23 20:11:52 +00:00
|
|
|
"debloat.prop",
|
|
|
|
|
2018-04-24 18:30:31 +00:00
|
|
|
"Select which Apps to Debloat (if enabled)", "", 2, #-- Group 1
|
2018-01-23 20:11:52 +00:00
|
|
|
"BasicDreams", "Screensaver", 1,
|
|
|
|
"Browser", "Standard Browser", 1,
|
|
|
|
"Calendar", "Standard Calendar", 1,
|
|
|
|
"Camera2", "Standard Camera", 1,
|
|
|
|
"CMFileManager", "Cyanogen File Manager", 1,
|
2018-06-15 19:37:37 +00:00
|
|
|
"DeskClock", "Stock Clock app", 1,
|
2018-01-23 20:11:52 +00:00
|
|
|
"Eleven", "Standard Music Player", 1,
|
|
|
|
"Email", "Standard Mail Program", 1,
|
|
|
|
"Exchange2", "Exchange Services (Email)", 1,
|
|
|
|
"FMRadio", "FM Radio/Tuner", 1,
|
|
|
|
"Gallery2", "Standard Gallery", 1,
|
|
|
|
"Gello", "Cyanogen Browser", 1,
|
|
|
|
"Jelly", "LineAge Browser", 1,
|
|
|
|
"messaging", "Standard SMS/MMS Program", 1,
|
|
|
|
"mGerrit", "Bug Tracker", 1,
|
|
|
|
"OmniSwitch", "OmniROM App Switcher", 1,
|
|
|
|
"Phonograph", "Music Player", 1,
|
|
|
|
"PhotoTable", "Screensaver", 1,
|
|
|
|
"Recorder", "Sound Recorder", 1,
|
|
|
|
"ResurrectionStats", "RR Statistics", 1,
|
|
|
|
"Screencast", "Screen Recorder", 1,
|
|
|
|
"Slimperience", "Web Browser", 1,
|
|
|
|
"Snap", "Camera", 1,
|
|
|
|
"SnapdragonCamera", "Snapdragon optmized Camera", 1,
|
|
|
|
"SoundRecorder", "Sound Recorder", 1,
|
|
|
|
"Stk", "SIM Card ToolKit", 1,
|
|
|
|
"ViaBrowser", "Web Browser", 1,
|
|
|
|
"Wallpaper", "Wallpaper App (Google)", 1,
|
|
|
|
"WallpaperBackup", "Wallpaper Backup (Google)", 1,
|
|
|
|
"WallpaperPickerGoogle", "Wallpaper App (Google)", 1
|
|
|
|
);
|
|
|
|
|
2019-01-07 19:18:07 +00:00
|
|
|
menubox(
|
|
|
|
"NanoDroid SetupWizard",
|
|
|
|
"<@center>Ready to create configuration.</@>",
|
|
|
|
"@update",
|
|
|
|
"menu.prop",
|
|
|
|
"Create Configuration", "", "@install",
|
|
|
|
"Abort SetupWizard", "", "@exit"
|
2018-01-23 20:11:52 +00:00
|
|
|
);
|
|
|
|
|
2019-01-07 19:18:07 +00:00
|
|
|
if prop("menu.prop","selected")=="2"
|
|
|
|
then
|
|
|
|
exit("");
|
|
|
|
endif;
|
|
|
|
|
2018-01-23 20:11:52 +00:00
|
|
|
setvar("retstatus",
|
|
|
|
install(
|
2019-01-07 19:23:25 +00:00
|
|
|
"Creating Configuration...",
|
2019-01-07 19:18:07 +00:00
|
|
|
"<@center><b>"+ini_get("rom_name")+"</b></@>",
|
2019-01-07 19:23:25 +00:00
|
|
|
"");
|
2018-01-23 20:11:52 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
ini_set("text_next", "Finish");
|
|
|
|
|
2019-01-07 18:33:15 +00:00
|
|
|
if getvar("retstatus")=="0" then
|
|
|
|
viewbox(
|
|
|
|
"Installation Completed",
|
2019-01-07 19:18:07 +00:00
|
|
|
"<@center>\nCongratulations!\n\n"+
|
2019-01-07 19:23:25 +00:00
|
|
|
"NanoDroid Configuration successfully created.</@>",
|
2019-01-07 19:18:07 +00:00
|
|
|
"");
|
2019-01-07 18:33:15 +00:00
|
|
|
else
|
|
|
|
viewbox("Installation Failed",
|
2019-01-07 19:23:25 +00:00
|
|
|
"\n\SetupWizard Status: "+ getvar("retstatus"),
|
2019-01-07 18:33:15 +00:00
|
|
|
"@alert");
|
|
|
|
endif;
|