Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.13 KB | None | 0 0
  1. calibrate("0.9718","4","1.0176","-9");
  2.  
  3. ini_set("rom_name", "Miui10");
  4. ini_set("rom_version", "8.7.19");
  5. ini_set("rom_author", "Đình Lập");
  6. ini_set("rom_device", "Redmi Note 3 Pro");
  7. ini_set("rom_date", "20.07.2018");
  8. ##
  9.  
  10. splash(2000, "a1");
  11.  
  12. ##
  13. splash(
  14. 1500,
  15. ini_set("force_colorspace","rgba");
  16. #-- <AROMA Resource Dir>/sample.png
  17. "dinhlap"
  18. );
  19.  
  20. #
  21.  
  22. loadlang("langs/en.lang");
  23. #fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );
  24. #fontresload( "1", "ttf/Roboto-Regular.ttf", "18" );
  25. fontresload( "0", "ttf/DroidSans.ttf", "12" );
  26. fontresload( "1", "ttf/DroidSans.ttf", "18" );
  27. loadlang("langs/en.lang");
  28. theme("XPERIA");
  29.  
  30. viewbox(
  31. #-- Title
  32. "Welcome!",
  33.  
  34. #-- Text
  35. "Flashing <b>"+
  36. #-- Get Config Value
  37. ini_get("rom_name")+
  38. "</b> for <b>"+ini_get("rom_device")+"</b>\n\n"+
  39.  
  40. " ROM \t: <b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+
  41. " Date\t\t: <b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n\n"+
  42. " \n"+
  43. " Base\t: <b><#selectbg_g> MiuiPro</#></b>\n"+
  44. " \n"+
  45. "Press <b>NEXT</b> to install",
  46.  
  47. #-- Icon
  48. "@welcome"
  49. );
  50. ###################################################################################################################
  51. #
  52. # SELECT MODS
  53. #
  54. menubox(
  55. "Selecting the Installation Menu",
  56. "Select an option",
  57. "icons/customize",
  58. "rom.prop",
  59. "Restore Menu","<#selectbg_g>Allows you to rollback, change and restore the mod's & system tweaks</#>", "@default1",
  60. "MiuiPro","<#selectbg_g>Full ROM flashing (choosing tweaks and settings)</#>", "@default1"
  61. );
  62.  
  63. if prop("rom.prop","selected")=="1" then
  64. viewbox("Rolling back Changes",
  65. "This item allows you to roll back some modifications\n\n\n Press <b>NEXT</b> to proceed ",
  66. "@customize1");
  67.  
  68. checkbox(
  69. "Restore Menu",
  70. "Choose what you want to change",
  71. "icons/personalize",
  72. "delete.prop",
  73.  
  74. "Uninstall SuperSu","<#selectbg_g>The default kernel will be restored!!!</#>",0,
  75. "Uninstall Magisk","Uninstalls Magisk",0,
  76. "Remove additional features of the fingerprint scanner","<#selectbg_g>Lock the phone with a fingerprint scanner, display the reset menu, control the flashlight</#>",0,
  77. "Remove passwords and keys","Removing paswords after restoring recovery backup",0,
  78. "Remove passwords in apps","Removes passwords in apps",0,
  79. "Defreeze the apps","Defreezing all apps",0,
  80. "Flash stock modem for KENZO","<#selectbg_g>Returns the stock modem for Kenzo</#>",0,
  81. "Flash stock modem for KATE","<#selectbg_g>Returns the stock modem for Kate</#>",0,
  82. "Restore the work of sensors","Restores the work of sensors",0,
  83. "Uninstall Dolby ATMOS","Uninstalls Dolby ATMOS",0
  84. );
  85.  
  86.  
  87. selectbox(
  88. "Kernel Selection",
  89. "Select the required kernel",
  90. "icons/customize",
  91. "boot.prop",
  92.  
  93. "Don't change","<#selectbg_g>Your kernel will remain if you did not remove SuperSu</#>",1,
  94. "AGNi 11.6","<#selectbg_g>You need to reinstall the root</#>",0,
  95. "AGNi 12.2","<#selectbg_g>You need to reinstall the root</#>",0,
  96. "AGNi 12.5","<#selectbg_g>You need to reinstall the root</#>",0
  97.  
  98. );
  99.  
  100. checkbox(
  101. "MIUI Application Removal",
  102. "Select the apps to remove:",
  103. "icons/personalize",
  104. "enhancements1.prop",
  105.  
  106. "Remove MIUI trash","YellowPage,Stk1,BugReport,talkback,klobugreport will be deleted",0,
  107. "Delete Mi Browser","",0,
  108. "Delete Mi Video","",0,
  109. "Delete Mi Mail","",0,
  110. "Delete Mi Explorer","",0,
  111. "Delete Mi Notes","",0,
  112. "Delete Mi Search","Googlе will be instead of it",0,
  113. "Delete Mi Daily Wallpaper","",0,
  114. "Delete Mi Gallery","",0
  115. );
  116.  
  117. checkbox(
  118. "System Tweaks",
  119. "Tick required tweaks:",
  120. "icons/default",
  121. "twik.prop",
  122.  
  123. "Busybox","Busybox installation",0,
  124. "Clock located in the lock screen's center","Clock will be displayed in the center",0,
  125. "To change the picture in the Toolbar","Alternative weather picture in the Toolbar",0,
  126. "Operators' Logo in the Status Bar","Adds MC operators' logo in the Status Bar",0,
  127. "Installation Daily Wallpaper","<#selectbg_g>You have to allow access to the device's desktop</#>",0,
  128. "Modified HOST file","Ad removal from MiuiPro",0,
  129. "Additional features of the fingerprint scanner","<#selectbg_g>Lock the phone with a fingerprint scanner, display the reset menu, control the flashlight</#>",0,
  130. "Colored reboot menu","",0,
  131. "Alternative Icons","A large rounded edges icon pack",0,
  132. "My Icons","My favorite pack of icons",0,
  133. "Widgets of clocks","Additional clock widgets",0,
  134. "To replace the font","GD fonts installation",0,
  135. "Icon coloring","Mod for picking icons color in Status Bar",0
  136. );
  137.  
  138. selectbox(
  139. "GPS Modification",
  140. "Choose one of the variants",
  141. "icons/customize",
  142. "gps.prop",
  143.  
  144. "Default","Without changing the GPS settings",1,
  145. "GPS Configuration №1","GPS Mod",0,
  146. "GPS Configuration №2","GPS Mod",0,
  147. "GPS Configuration №3","GPS Mod",0
  148.  
  149. );
  150.  
  151. selectbox(
  152. "Sound Modification",
  153. "Choose one of the variants",
  154. "icons/customize",
  155. "music.prop",
  156.  
  157. "Thanks, not necessary, I’m deaf!!!","Modifications won’t be installed",1,
  158. "Enable the HI-FI mode","Increase the volume and sound quality in Hi-Fi mode",0,
  159. "Improve the sound quality in LP","Increase the volume and sound quality",0,
  160. "Dolby ATMOS","Improving of the sound quality",0,
  161. "Viper for Android ","<#selectbg_g>Root, Magisk or Super SU’s needed to function</#>",0,
  162. "SONY SOUND","<#selectbg_g>Stock EQ will be deleted</#>",0
  163.  
  164. );
  165.  
  166. selectbox(
  167. "Dialer Modification",
  168. "Choose one of the variants",
  169. "icons/customize",
  170. "incall.prop",
  171. "Without modification","Modifications will not be installed",1,
  172. "Minimize the window (incoming and outcoming calls)","Minimize photo by default",0,
  173. "Stock Miui picture","",0,
  174. "Ghostbusters","",0,
  175. "Smiley with a phone","",0,
  176. "Smile","",0,
  177. "Winking smiley","",0,
  178. "Dude in a circle","",0,
  179. "One more Dude","",0,
  180. "Nerd with a book","",0,
  181. "Color circle","",0,
  182. "Contact in color circle","",0,
  183. "Minion with a loudspeaker","",0,
  184. "Fiery Horse","",0,
  185. "Abstraction","",0,
  186. "State USSR emblem","",0,
  187. "A kind minion","",0,
  188. "Unidentified subscriber 1","",0,
  189. "Unidentified subscriber 2","",0
  190.  
  191. );
  192.  
  193. checkbox(
  194. "Apps Installation",
  195. "Tick required applications",
  196. "icons/customize",
  197. "apps.prop",
  198.  
  199. "Total Commander","Advanced Explorer",0,
  200. "Telegram+","Plus Messenger",0,
  201. "ES Explorer","File manager",0,
  202. "Root Explorer","The best Explorer",0,
  203. "Kernel Adiutor","Customize the kernel",0,
  204. "MX Player","Video Player",0,
  205. "Titanium Backup","Backup and Restore",0,
  206. "True Phone","Advanced application for contacts",0,
  207. "QuickPic Gallery","",0,
  208. "Sberbank Online","Sberbank patched version, you need a root SuperSu",0,
  209. "Google Camera","",0,
  210. "Snap Camera","Good Camera",0,
  211. "Mi Browser GD","<#selectbg_g>Browser from Global Developer ROM</#>",0,
  212. "Mi Music GD","<#selectbg_g>Music Player from Global Developer ROM</#>",0,
  213. "Mi Explorer GD","<#selectbg_g>Explorer from Global Developer ROM</#>",0,
  214. "YouTube","<#selectbg_g>YouTube (no ads)</#>",0,
  215. "AGNi ScreenModes","<#selectbg_g>Controlling the color of the display</#>",0,
  216. "MTS Music","MTS Music for free",0,
  217. "Yandex.Music","Yandex.Music for free",0
  218. );
  219.  
  220. selectbox(
  221. "Root Installing",
  222. "Choose one of the variants",
  223. "icons/customize",
  224. "su.prop",
  225.  
  226. "I don’t need ROOT","ROOT won’t be installed",1,
  227. "Yes, I want to install ROOT","ROOT (Super SU) will be installed",0,
  228. "Yes, I want to install Magisk","The non-system ROOT will be installed",0
  229. );
  230.  
  231. # INSTALLING
  232. #
  233.  
  234. ini_set("text_next", "Installing");
  235.  
  236. viewbox(
  237. "You’re done!",
  238. "Everything’s ready for installation\n\n"+
  239. "Press <b>Install</b> to flash \n\n"+
  240. "or <b>Back</b> to make some changes",
  241. "@install"
  242. );
  243.  
  244. ini_set("text_next", "Finish");
  245.  
  246. install(
  247. "Installation",
  248. "Flashing a ROM <b>"+ini_get("rom_name")+"</b>...\n"+
  249. "Wait a bit...",
  250. "icons/install",
  251. "Hurrah! Press <b>Finish</b>"
  252. );
  253.  
  254. viewbox(
  255. "Installation’s been completed!",
  256. "Installed <b>"+ini_get("rom_name")+"</b>.\n\n"+
  257. "<b>Boot the system!</b>\n\n"+
  258. "<#selectbg_g><b>Thank you for feedback and suggestions.</b></#>\n\n",
  259. "@welcome"
  260. );
  261. endif;
  262.  
  263. if prop("rom.prop","selected")=="2" then
  264. viewbox("Flashing a ROM",
  265. "A custom ROM with modifications and selected components will be installed.\n\n\n Press <b>NEXT</b> to proceed",
  266. "@customize1");
  267.  
  268. ###################################################################################################################
  269. #
  270. # SELECT ENHANCEMENTS
  271. #
  272. selectbox(
  273. "Device Selection",
  274. "Select Your Device",
  275. "icons/customize",
  276. "device.prop",
  277.  
  278. "Redmi Note 3 Pro (Kenzo)","<#selectbg_g>Kenzo</#>",0,
  279. "Redmi Note 3 Pro SE (Kate)","<#selectbg_g> Kate</#>",0
  280.  
  281. );
  282.  
  283. selectbox(
  284. "Kernel Selection",
  285. "Select the required kernel",
  286. "icons/customize",
  287. "boot.prop",
  288.  
  289. "AGNi 11.6","Default",1,
  290. "AGNi 12.2","Custom kernel",0,
  291. "AGNi 12.5","Custom kernel",0
  292.  
  293. );
  294.  
  295. checkbox(
  296. "MIUI Application Removal",
  297. "Select the apps to remove:",
  298. "icons/personalize",
  299. "enhancements1.prop",
  300.  
  301. "Remove MIUI trash","YellowPage,Stk1,BugReport,talkback,klobugreport will be deleted",0,
  302. "Delete Mi Browser","",0,
  303. "Delete Mi Video","",0,
  304. "Delete Mi Mail","",0,
  305. "Delete Mi Explorer","",0,
  306. "Delete Mi Notes","",0,
  307. "Delete Mi Search","Googlе will be instead of it",0,
  308. "Delete Mi Daily Wallpaper","",0,
  309. "Delete Mi Gallery","",0
  310. );
  311.  
  312. checkbox(
  313. "System Tweaks",
  314. "Tick required tweaks:",
  315. "icons/default",
  316. "twik.prop",
  317.  
  318. "Busybox","Busybox installation",0,
  319. "Clock located in the lock screen's center","Clock will be displayed in the center",0,
  320. "To change the picture in the Toolbar","Alternative weather picture in the Toolbar",0,
  321. "Operators' Logo in the Status Bar","Adds MC operators' logo in the Status Bar",0,
  322. "Installation Daily Wallpaper","<#selectbg_g>You have to allow access to the device's desktop</#>",0,
  323. "Modified HOST file","Ad removal from MiuiPro",0,
  324. "Additional features of the fingerprint scanner","<#selectbg_g>Lock the phone with a fingerprint scanner, display the reset menu, control the flashlight</#>",0,
  325. "Colored reboot menu","",0,
  326. "Alternative Icons","A large rounded edges icon pack",0,
  327. "My Icons","My favorite pack of icons",0,
  328. "Widgets of clocks","Additional clock widgets",0,
  329. "To replace the font","GD fonts installation",0,
  330. "Icon coloring","Mod for picking icons color in Status Bar",0
  331. );
  332.  
  333. selectbox(
  334. "GPS Modification",
  335. "Choose one of the variants",
  336. "icons/customize",
  337. "gps.prop",
  338.  
  339. "Default","Without changing the GPS settings",1,
  340. "GPS Configuration №1","GPS Mod",0,
  341. "GPS Configuration №2","GPS Mod",0,
  342. "GPS Configuration №3","GPS Mod",0
  343.  
  344. );
  345.  
  346. selectbox(
  347. "Sound Modification",
  348. "Choose one of the variants",
  349. "icons/customize",
  350. "music.prop",
  351.  
  352. "Thanks, not necessary, I’m deaf!!!","Modifications won’t be installed",1,
  353. "Enable the HI-FI mode","Increase the volume and sound quality in Hi-Fi mode",0,
  354. "Improve the sound quality in LP","Increase the volume and sound quality",0,
  355. "Dolby ATMOS","Improving of the sound quality",0,
  356. "Viper for Android ","<#selectbg_g>Root, Magisk or Super SU’s needed to function</#>",0,
  357. "SONY SOUND","<#selectbg_g>Stock EQ will be deleted</#>",0
  358.  
  359. );
  360.  
  361. selectbox(
  362. "Dialer Modification",
  363. "Choose one of the variants",
  364. "icons/customize",
  365. "incall.prop",
  366. "Without modification","Modifications will not be installed",1,
  367. "Minimize the window (incoming and outcoming calls)","Minimize photo by default",0,
  368. "Stock Miui picture","",0,
  369. "Ghostbusters","",0,
  370. "Smiley with a phone","",0,
  371. "Smile","",0,
  372. "Winking smiley","",0,
  373. "Dude in a circle","",0,
  374. "One more Dude","",0,
  375. "Nerd with a book","",0,
  376. "Color circle","",0,
  377. "Contact in color circle","",0,
  378. "Minion with a loudspeaker","",0,
  379. "Fiery Horse","",0,
  380. "Abstraction","",0,
  381. "State USSR emblem","",0,
  382. "A kind minion","",0,
  383. "Unidentified subscriber 1","",0,
  384. "Unidentified subscriber 2","",0
  385.  
  386. );
  387.  
  388. checkbox(
  389. "Apps Installation",
  390. "Tick required applications",
  391. "icons/customize",
  392. "apps.prop",
  393.  
  394. "Total Commander","Advanced Explorer",0,
  395. "Telegram+","Plus Messenger",0,
  396. "ES Explorer","File manager",0,
  397. "Root Explorer","The best Explorer",0,
  398. "Kernel Adiutor","Customize the kernel",0,
  399. "MX Player","Video Player",0,
  400. "Titanium Backup","Backup and Restore",0,
  401. "True Phone","Advanced application for contacts",0,
  402. "QuickPic Gallery","",0,
  403. "Sberbank Online","Sberbank patched version, you need a root SuperSu",0,
  404. "Google Camera","",0,
  405. "Snap Camera","Good Camera",0,
  406. "Mi Browser GD","<#selectbg_g>Browser from Global Developer ROM</#>",0,
  407. "Mi Music GD","<#selectbg_g>Music Player from Global Developer ROM</#>",0,
  408. "Mi Explorer GD","<#selectbg_g>Explorer from Global Developer ROM</#>",0,
  409. "YouTube","<#selectbg_g>YouTube (no ads)</#>",0,
  410. "AGNi ScreenModes","<#selectbg_g>Controlling the color of the display</#>",0,
  411. "MTS Music","MTS Music for free",0,
  412. "Yandex.Music","Yandex.Music for free",0
  413. );
  414.  
  415. selectbox(
  416. "Root Installing",
  417. "Choose one of the variants",
  418. "icons/customize",
  419. "su.prop",
  420.  
  421. "I don’t need ROOT","ROOT won’t be installed",1,
  422. "Yes, I want to install ROOT","ROOT (Super SU) will be installed",0,
  423. "Yes, I want to install Magisk","The non-system ROOT will be installed",0
  424. );
  425.  
  426. # INSTALLING
  427. #
  428.  
  429. ini_set("text_next", "Installing");
  430.  
  431. viewbox(
  432. "You’re done!",
  433. "Everything’s ready for installation\n\n"+
  434. "Press <b>Install</b> to flash \n\n"+
  435. "or <b>Back</b> to make some changes",
  436. "@install"
  437. );
  438.  
  439. ini_set("text_next", "Finish");
  440.  
  441. install(
  442. "Installation",
  443. "Flashing a ROM <b>"+ini_get("rom_name")+"</b>...\n"+
  444. "Wait a bit...",
  445. "icons/install",
  446. "Hurrah! Press <b>Finish</b>"
  447. );
  448.  
  449. viewbox(
  450. "Installation’s been completed!",
  451. "Installed <b>"+ini_get("rom_name")+"</b>.\n\n"+
  452. "<b>Boot the system!</b>\n\n"+
  453. "<#selectbg_g><b>Thank you for feedback and suggestions.</b></#>\n\n",
  454. "@welcome"
  455. );
  456. endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement