Advertisement
eudemonics

opointro.py v1.3.3.7 - required for opotoolkit.py

Feb 9th, 2015
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 17.39 KB | None | 0 0
  1. #!/usr/bin/env python
  2. ### OPOINTRO
  3. ##### VERSION: 1.3.3.7 BETA
  4. ##### RELEASE DATE: FEBRUARY 06, 2014
  5. ##### AUTHOR: vvn
  6. ##### DESCRIPTION: simple library to port ADB and FASTBOOT functions to PYTHON
  7. #####
  8. ##### USER LICENSE AGREEMENT & DISCLAIMER
  9. ##### copyright (C) 2014-15  vvn <vvn@notworth.it>
  10. #####
  11. ##### This program is FREE software: you can use it, redistribute it and/or modify
  12. ##### it as you wish. Copying and distribution of this file, with or without modification,
  13. ##### are permitted in any medium without royalty provided the copyright
  14. ##### notice and this notice are preserved. This program is offered AS-IS,
  15. ##### WITHOUT ANY WARRANTY; without even the implied warranty of
  16. ##### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. ##### GNU General Public License for more details.
  18. #####
  19. ##### For more information, please refer to the "LICENSE AND NOTICE" file that should
  20. ##### accompany all official download releases of this program.
  21. #####
  22. ##### getting credited for my work is nice. so are donations.
  23. ##### but to really show your appreciation, you should buy my EP instead!
  24. ##### you can stream and purchase it at: dreamcorp.bandcamp.com
  25. ##### (you might even enjoy listening to it)
  26. ##### questions, comments, feedback, bugs, complaints, death threats, marriage proposals?
  27. ##### contact me at:
  28. ##### vvn (at) notworth (dot) it
  29.  
  30. import time
  31.  
  32. class opointro(object):
  33.  
  34. #################################
  35. #################################
  36. ######## SCROLLING INTRO ########
  37. #################################
  38. #################################
  39.  
  40. ##### CLEAN #####
  41.  
  42.    def cleanlogo(self):
  43.       print ("##################################################################################")
  44.       time.sleep(0.1)
  45.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  46.       time.sleep(0.1)
  47.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~ HALF-ASSED ONEPLUS ONE TOOLKIT ~~~~~~~~~~~~~~~~~~~~~~~~#")
  48.       time.sleep(0.1)
  49.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  50.       time.sleep(0.1)
  51.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ v1.3.3.7 BETA ~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  52.       time.sleep(0.1)
  53.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  54.       time.sleep(0.1)
  55.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  56.       time.sleep(0.1)
  57.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  58.       time.sleep(0.1)
  59.       print ("#~~~~~~~~~~~~~~~~                            77~~~~~~                   7~~~~~~~~#")
  60.       time.sleep(0.1)
  61.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  62.       time.sleep(0.1)
  63.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  64.       time.sleep(0.1)
  65.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  66.       time.sleep(0.1)
  67.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  68.       time.sleep(0.1)
  69.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~         7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  70.       time.sleep(0.1)
  71.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~         7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  72.       time.sleep(0.1)
  73.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  74.       time.sleep(0.1)
  75.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  76.       time.sleep(0.1)
  77.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  78.       time.sleep(0.1)
  79.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  80.       time.sleep(0.1)
  81.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  82.       time.sleep(0.1)
  83.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  84.       time.sleep(0.1)
  85.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  86.       time.sleep(0.1)
  87.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  88.       time.sleep(0.1)
  89.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  90.       time.sleep(0.1)
  91.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  92.       time.sleep(0.1)
  93.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~               7~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  94.       time.sleep(0.1)
  95.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~               7~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  96.       time.sleep(0.1)
  97.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  98.       time.sleep(0.1)
  99.       print ("#~~~~~~~~~~~~~~~~   7~~~~~ SUPPORT MY WORK - BUY MY EP! ~~~~~   7~~~~~~~~~~~~~~~~#")
  100.       time.sleep(0.1)
  101.       print ("#~~~~~~~~~~~~~~~~   7~~~~ http://dreamcorp.bandcamp.com ~~~~~   7~~~~~~~~~~~~~~~~#")
  102.       time.sleep(0.1)
  103.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  104.       time.sleep(0.1)
  105.       print ("#~~~~~~~~~~~~~~~~                                               7~~~~~~~~~~~~~~~~#")
  106.       time.sleep(0.1)
  107.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  108.       time.sleep(0.1)
  109.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  110.       time.sleep(0.1)
  111.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ AUTHOR: VVN ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  112.       time.sleep(0.1)
  113.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~ RELEASE DATE: FEBRUARY 06, 2014 ~~~~~~~~~~~~~~~~~~~~~~~#")
  114.       time.sleep(0.1)
  115.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~ COPYRIGHT (C) 2014 VVN ~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  116.       time.sleep(0.1)
  117.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  118.       time.sleep(0.1)
  119.       print ("##################################################################################")
  120.       time.sleep(4.5)
  121.       print ("\n\n")
  122.  
  123. ##### COLOR #####
  124.  
  125.    def colorlogo(self):
  126.    
  127.       print ("\033[41m\033[37;1m#################################################################\033[0m")
  128.       time.sleep(0.1)
  129.       print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
  130.       time.sleep(0.1)
  131.       print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~ \033[40m\033[33;1mTHE HALF-ASSED\033[41m\033[37;1m ~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
  132.       time.sleep(0.1)
  133.       print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~ \033[40m\033[33mONEPLUS ONE TOOLKIT\033[41m\033[37m ~~~~~~~~I\033[41m\033[37;1m   7~~~~~~~~~#\033[0m")
  134.       time.sleep(0.1)
  135.       print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~~ \033[41m\033[40;1mv1.3.3.7 BETA\033[41m\033[37;1m ~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  136.       time.sleep(0.1)
  137.       print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  138.       time.sleep(0.1)
  139.       print ("\033[41m\033[37;1m#~~~~~~~~I                           77~~~~~I               7~~~#\033[0m")
  140.       time.sleep(0.1)
  141.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  142.       time.sleep(0.1)
  143.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  144.       time.sleep(0.1)
  145.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  146.       time.sleep(0.1)
  147.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~I         7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
  148.       time.sleep(0.2)
  149.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~I   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
  150.       time.sleep(0.2)
  151.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~I   7~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  152.       time.sleep(0.2)
  153.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~I   7~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  154.       time.sleep(0.2)
  155.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~I   7~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  156.       time.sleep(0.1)
  157.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~I   7~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  158.       time.sleep(0.1)
  159.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~I   7~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  160.       time.sleep(0.1)
  161.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~I   7~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  162.       time.sleep(0.1)
  163.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~I               7~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  164.       time.sleep(0.1)
  165.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  166.       time.sleep(0.1)
  167.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~ SUPPORT MY WORK - BUY MY EP! ~~~I   7~~~~~~~~~#\033[0m")
  168.       time.sleep(0.1)
  169.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~ http://dreamcorp.bandcamp.com ~~~I   7~~~~~~~~~#\033[0m")
  170.       time.sleep(0.1)
  171.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  172.       time.sleep(0.1)
  173.       print ("\033[41m\033[37;1m#~~~~~~~~I                                            7~~~~~~~~~#\033[0m")
  174.       time.sleep(0.1)
  175.       print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
  176.       time.sleep(0.1)
  177.       print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~~~ \033[40m\033[35;1mAUTHOR: VVN \033[41m\033[37;1m~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
  178.       time.sleep(0.1)
  179.       print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~ \033[40m\033[36;1mRELEASE DATE: FEBRUARY 06, 2014 \033[41m\033[37;1m~~~~~~~~~~~~~~~~#\033[0m")
  180.       time.sleep(0.1)
  181.       print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
  182.       time.sleep(0.1)
  183.       print ("\033[41m\033[37;1m#################################################################\033[0m")
  184.       time.sleep(4.5)
  185.       print("\n\n")
  186.  
  187. #####################
  188. #####################
  189. ##### MAIN MENU #####
  190. #####################
  191. #####################
  192.  
  193. ##### CLEAN #####
  194.      
  195.    cleanmenu = '''
  196. ***********************************************************
  197. ************ THE HALF-ASSED ONEPLUS ONE TOOLKIT ***********
  198. *************** VERSION: 1.3.3.7 BETA * by vvn ************
  199. ***********************************************************
  200. *** this is a FREE program, released AS-IS: NO WARRANTY ***
  201. ****************** USE AT YOUR OWN RISK! ******************
  202. ***********************************************************
  203. *************** support my work: buy my EP! ***************
  204. ************** http://dreamcorp.bandcamp.com **************
  205. ***********************************************************
  206. DEVICE MUST BE CONNECTED VIA USB WITH ANDROID DEBUGGING ENABLED.
  207. MAIN MENU:
  208. -[1] reboot into android, bootloader, or recovery
  209. -[2] flash partitions or wipe device
  210. -[3] boot once into custom recovery without flashing - need unlocked bootloader
  211. -[4] install or uninstall APK
  212. -[5] copy files between computer and device, or sync
  213. -[6] backup or restore device
  214. -[7] root device and/or install ZIP in fastboot
  215. -[8] flash stock or custom ROM image
  216. -[9] unlock bootloader or flash custom recovery
  217. -[10] run shell command on device
  218. -[11] get bug report from device
  219. -[12] list installed apps
  220. -[13] list services
  221. -[14] view logcat from device
  222. -[0] quit
  223. '''
  224.  
  225. ##### COLOR #####  
  226.  
  227.    colormenu = '''
  228. \033[40m\033[34m***********************************************************\033[0m
  229. \033[40m\033[34m************ \033[36mTHE HALF-ASSED ONEPLUS ONE TOOLKIT \033[34m***********\033[0m
  230. \033[40m\033[34m*************** \033[37mVERSION: 1.3.3.7 BETA \033[34m* \033[35mby vvn \033[34m************\033[0m
  231. \033[40m\033[34m***********************************************************\033[0m
  232. \033[40m\033[34m*** \033[33mthis is a FREE program, released AS-IS: NO WARRANTY \033[34m***\033[0m
  233. \033[40m\033[34m****************** \033[32mUSE AT YOUR OWN RISK! \033[34m******************\033[0m
  234. \033[40m\033[34m***********************************************************\033[0m
  235. \033[40m\033[34m*************** \033[37msupport my work: buy my EP! \033[34m***************\033[0m
  236. \033[40m\033[34m************** \033[37mhttp://dreamcorp.bandcamp.com \033[34m**************\033[0m
  237. \033[40m\033[34m***********************************************************\033[0m \n
  238. \033[33mDEVICE MUST BE CONNECTED VIA USB WITH ANDROID DEBUGGING ENABLED. \033[0m \n
  239. \033[32mMAIN MENU:\033[0m
  240. -\033[31m[1]\033[37m reboot into android, bootloader, or recovery\033[0m
  241. -\033[31m[2]\033[37m flash partitions or wipe device\033[0m
  242. -\033[31m[3]\033[37m boot once into custom recovery without flashing - need unlocked bootloader\033[0m
  243. -\033[31m[4]\033[37m install or uninstall APK\033[0m
  244. -\033[31m[5]\033[37m copy files between computer and device, or sync\033[0m
  245. -\033[31m[6]\033[37m backup or restore device\033[0m
  246. -\033[31m[7]\033[37m root device and/or install ZIP in fastboot\033[0m
  247. -\033[31m[8]\033[37m flash stock or custom ROM image\033[0m
  248. -\033[31m[9]\033[37m unlock bootloader or flash custom recovery\033[0m
  249. -\033[31m[10]\033[37m run shell command on device\033[0m
  250. -\033[31m[11]\033[37m get bug report from device\033[0m
  251. -\033[31m[12]\033[37m list packages\033[0m
  252. -\033[31m[13]\033[37m list services\033[0m
  253. -\033[31m[14]\033[37m view logcat from device\033[0m
  254. -\033[31m[0]\033[37m quit \033[0m\n'''
  255.  
  256. ######################
  257. ######################
  258. ##### WIPE  MENU #####
  259. ######################
  260. ######################
  261.  
  262. ##### CLEAN #####
  263.  
  264. cleanwipemenu = '''
  265. ***WIPING SOME PARTITIONS WILL ERASE YOUR DATA.***
  266. please make sure to back up any important data before proceeding!\n\n
  267. CHOOSE AN OPTION 1-8:
  268. -[1] perform a full system wipe [system, data, and cache partitions]
  269. -[2] wipe only the system partition
  270. -[3] wipe only the data partition
  271. -[4] wipe only the cache partition
  272. -[5] wipe only the boot partition
  273. -[6] wipe only the recovery partition
  274. -[7] flash device to factory images [flash system, boot, and recovery]
  275. -[8] return to main menu
  276. '''
  277.  
  278. ##### COLOR #####
  279.  
  280. colorwipemenu = '''
  281. \033[35m***WIPING SOME PARTITIONS WILL ERASE YOUR DATA.***
  282. please make sure to back up any important data before proceeding!\n\n
  283. \033[36mCHOOSE AN OPTION 1-8:\033[32m
  284. -[1]\033[37m perform a full system wipe [system, data, and cache partitions]\033[32m
  285. -[2]\033[37m wipe only the system partition\033[32m
  286. -[3]\033[37m wipe only the data partition\033[32m
  287. -[4]\033[37m wipe only the cache partition\033[32m
  288. -[5]\033[37m wipe only the boot partition\033[32m
  289. -[6]\033[37m wipe only the recovery partition\033[32m
  290. -[7]\033[37m flash device to factory images [flash system, boot, and recovery]\033[32m
  291. -[8]\033[37m return to main menu\n\033[0m
  292. '''
  293.  
  294. ######################
  295. ######################
  296. ##### FLASH MENU #####
  297. ######################
  298. ######################
  299.  
  300. ##### CLEAN #####
  301.  
  302. cleanversionmenu = '''
  303. CHOOSE A RELEASE VERSION - must be your current version or earlier to restore, or ONE version higher to upgrade. [1-6]
  304. -[1] XNPH25R
  305. -[2] XNPH30O
  306. -[3] XNPH33R
  307. -[4] XNPH38R
  308. -[5] XNPH44S
  309. -[6] return to main menu
  310. '''
  311.  
  312. ##### COLOR #####
  313.  
  314. colorversionmenu = '''
  315. CHOOSE A RELEASE VERSION - must be your current version or earlier to restore, or ONE version higher to upgrade. [1-6]
  316. -\033[36m[1]\033[37m XNPH25R \033[0m
  317. -\033[36m[2]\033[37m XNPH30O \033[0m
  318. -\033[36m[3]\033[37m XNPH33R \033[0m
  319. -\033[36m[4]\033[37m XNPH38R \033[0m
  320. -\033[36m[5]\033[37m XNPH44S \033[0m
  321. -\033[36m[6]\033[37m return to main menu \033[0m
  322. '''
  323.  
  324. ######################
  325. ######################
  326. ##### FLASH MENU #####
  327. ######################
  328. ######################
  329.  
  330. ##### CLEAN #####
  331.  
  332. cleanflashmenu = '''
  333. STOCK IMAGES AVAILABLE TO FLASH - THIS WILL REPLACE YOUR CURRENT PARTITION!
  334. FLASH IN SEQUENTIAL ORDER IF POSSIBLE - BOOT.IMG SHOULD GO FIRST
  335. -[1] stock BOOT.IMG
  336. -[2] stock USERDATA.IMG -or- USERDATA_64.IMG [WIPES USER DATA!]
  337. -[3] stock SYSTEM.IMG
  338. -[4] stock RECOVERY.IMG
  339. -[5] stock CACHE.IMG
  340. -[6] stock NON-HLOS.BIN, modem, aboot, & more [flash-radio.sh]
  341. -[7] stock radio, modem, sbl1, aboot [flash-extras.sh]
  342. -[8] FLASH ENTIRE STOCK OR CUSTOM ROM IMAGE
  343. -[9] return to main menu
  344. CHECK THAT DEVICE IS UNLOCKED AND COMPUTER IS AUTHORIZED FOR ADB ACCESS.
  345. '''
  346.  
  347. ##### COLOR #####
  348.  
  349. colorflashmenu = '''
  350. \n\033[36mSTOCK IMAGES AVAILABLE TO FLASH - THIS WILL REPLACE YOUR CURRENT PARTITION!
  351. \033[37mFLASH IN SEQUENTIAL ORDER IF POSSIBLE - BOOT.IMG SHOULD GO FIRST
  352. -\033[31m[1]\033[37m stock BOOT.IMG \033[0m
  353. -\033[31m[2]\033[37m stock USERDATA.IMG -or- USERDATA_64.IMG \033[35m[WIPES USER DATA!]\033[0m
  354. -\033[31m[3]\033[37m stock SYSTEM.IMG \033[0m
  355. -\033[31m[4]\033[37m stock RECOVERY.IMG \033[0m
  356. -\033[31m[5]\033[37m stock CACHE.IMG \033[0m
  357. -\033[31m[6]\033[37m stock NON-HLOS.BIN, modem, aboot & more [flash-radio.sh]\033[0m
  358. -\033[31m[7]\033[37m stock radio, modem, sbl1, aboot \033[34m[flash-extras.sh]\033[0m
  359. -\033[31m[8]\033[37m flash complete stock or ROM image \033[0m
  360. -\033[31m[9]\033[37m return to main menu\033[0m\n
  361. \033[35mCHECK THAT DEVICE IS UNLOCKED AND COMPUTER IS AUTHORIZED FOR ADB ACCESS.\n\033[0m'''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement