Advertisement
eudemonics

opointro.py v1.3.1 - REQUIRED FOR OPOTOOLKIT.PY!

Nov 27th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 13.20 KB | None | 0 0
  1. #!/usr/bin/env python
  2. ### OPOINTRO
  3. ##### VERSION: 1.3.1 STABLE
  4. ##### RELEASE DATE: SEPTEMBER 13, 2014
  5. ##### AUTHOR: vvn
  6. ##### DESCRIPTION: intro and menu for opotoolkit.py to support windows' lack of support for ANSI colors
  7. ##### to show colors in windows, install "colorama" python library
  8. #####
  9. ##### USER LICENSE AGREEMENT & DISCLAIMER
  10. ##### copyright (C) 2014  vvn <vvn@notworth.it>
  11. #####
  12. ##### This program is FREE software: you can use it, redistribute it and/or modify
  13. ##### it as you wish. Copying and distribution of this file, with or without modification,
  14. ##### are permitted in any medium without royalty provided the copyright
  15. ##### notice and this notice are preserved. This program is offered AS-IS,
  16. ##### WITHOUT ANY WARRANTY; without even the implied warranty of
  17. ##### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18. ##### GNU General Public License for more details.
  19. #####
  20. ##### For more information, please refer to the "LICENSE AND NOTICE" file that should
  21. ##### accompany all official download releases of this program.
  22. #####
  23. ##### getting credited for my work is nice. so are donations.
  24. ##### but to really show your appreciation, you should buy my EP instead!
  25. ##### you can stream and purchase it at: dreamcorp.bandcamp.com
  26. ##### (you might even enjoy listening to it)
  27. ##### questions, comments, feedback, bugs, complaints, death threats, marriage proposals?
  28. ##### contact me at:
  29. ##### vvn (at) notworth (dot) it
  30.  
  31. import time
  32.  
  33. class opointro(object):
  34.  
  35.    def cleanlogo(self):
  36.       print ("##################################################################################")
  37.       time.sleep(0.1)
  38.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  39.       time.sleep(0.1)
  40.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~ HALF-ASSED ONEPLUS ONE TOOLKIT ~~~~~~~~~~~~~~~~~~~~~~~~#")
  41.       time.sleep(0.1)
  42.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  43.       time.sleep(0.1)
  44.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ v1.3.1 STABLE ~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  45.       time.sleep(0.1)
  46.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  47.       time.sleep(0.1)
  48.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  49.       time.sleep(0.1)
  50.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  51.       time.sleep(0.1)
  52.       print ("#~~~~~~~~~~~~~~~~                            77~~~~~~                   7~~~~~~~~#")
  53.       time.sleep(0.1)
  54.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  55.       time.sleep(0.1)
  56.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  57.       time.sleep(0.1)
  58.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  59.       time.sleep(0.1)
  60.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  61.       time.sleep(0.1)
  62.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~         7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  63.       time.sleep(0.1)
  64.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~         7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  65.       time.sleep(0.1)
  66.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  67.       time.sleep(0.1)
  68.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  69.       time.sleep(0.1)
  70.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  71.       time.sleep(0.1)
  72.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  73.       time.sleep(0.1)
  74.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  75.       time.sleep(0.1)
  76.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  77.       time.sleep(0.1)
  78.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  79.       time.sleep(0.1)
  80.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  81.       time.sleep(0.1)
  82.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  83.       time.sleep(0.1)
  84.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  85.       time.sleep(0.1)
  86.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~               7~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  87.       time.sleep(0.1)
  88.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~               7~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  89.       time.sleep(0.1)
  90.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  91.       time.sleep(0.1)
  92.       print ("#~~~~~~~~~~~~~~~~   7~~~~~ SUPPORT MY WORK - BUY MY EP! ~~~~~   7~~~~~~~~~~~~~~~~#")
  93.       time.sleep(0.1)
  94.       print ("#~~~~~~~~~~~~~~~~   7~~~~ http://dreamcorp.bandcamp.com ~~~~~   7~~~~~~~~~~~~~~~~#")
  95.       time.sleep(0.1)
  96.       print ("#~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   7~~~~~~~~~~~~~~~~#")
  97.       time.sleep(0.1)
  98.       print ("#~~~~~~~~~~~~~~~~                                               7~~~~~~~~~~~~~~~~#")
  99.       time.sleep(0.1)
  100.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  101.       time.sleep(0.1)
  102.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  103.       time.sleep(0.1)
  104.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ AUTHOR: VVN ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  105.       time.sleep(0.1)
  106.       print ("#~~~~~~~~~~~~~~~~~~~~~~~ RELEASE DATE: SEPTEMBER 13, 2014 ~~~~~~~~~~~~~~~~~~~~~~~#")
  107.       time.sleep(0.1)
  108.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~ COPYRIGHT (C) 2014 VVN ~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  109.       time.sleep(0.1)
  110.       print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
  111.       time.sleep(0.1)
  112.       print ("##################################################################################")
  113.       time.sleep(4.5)
  114.       print ("\n\n")
  115.  
  116.    def colorlogo(self):
  117.    
  118.       print ("\033[41m\033[37;1m#################################################################\033[0m")
  119.       time.sleep(0.1)
  120.       print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
  121.       time.sleep(0.1)
  122.       print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~ \033[40m\033[33;1mTHE HALF-ASSED\033[41m\033[37;1m ~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
  123.       time.sleep(0.1)
  124.       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")
  125.       time.sleep(0.1)
  126.       print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~ \033[41m\033[40;1mv1.3.1 STABLE\033[41m\033[37;1m ~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  127.       time.sleep(0.1)
  128.       print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  129.       time.sleep(0.1)
  130.       print ("\033[41m\033[37;1m#~~~~~~~~I                           77~~~~~I               7~~~#\033[0m")
  131.       time.sleep(0.1)
  132.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  133.       time.sleep(0.1)
  134.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  135.       time.sleep(0.1)
  136.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  137.       time.sleep(0.1)
  138.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~I         7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
  139.       time.sleep(0.2)
  140.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~I   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
  141.       time.sleep(0.2)
  142.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~I   7~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  143.       time.sleep(0.2)
  144.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~I   7~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  145.       time.sleep(0.2)
  146.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~I   7~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  147.       time.sleep(0.1)
  148.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~I   7~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  149.       time.sleep(0.1)
  150.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~I   7~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  151.       time.sleep(0.1)
  152.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~I   7~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  153.       time.sleep(0.1)
  154.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~I               7~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  155.       time.sleep(0.1)
  156.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  157.       time.sleep(0.1)
  158.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~ SUPPORT MY WORK - BUY MY EP! ~~~I   7~~~~~~~~~#\033[0m")
  159.       time.sleep(0.1)
  160.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~ http://dreamcorp.bandcamp.com ~~~I   7~~~~~~~~~#\033[0m")
  161.       time.sleep(0.1)
  162.       print ("\033[41m\033[37;1m#~~~~~~~~I   7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I   7~~~~~~~~~#\033[0m")
  163.       time.sleep(0.1)
  164.       print ("\033[41m\033[37;1m#~~~~~~~~I                                            7~~~~~~~~~#\033[0m")
  165.       time.sleep(0.1)
  166.       print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
  167.       time.sleep(0.1)
  168.       print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~~~ \033[40m\033[35;1mAUTHOR: VVN \033[41m\033[37;1m~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
  169.       time.sleep(0.1)
  170.       print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~ \033[40m\033[36;1mRELEASE DATE: SEPTEMBER 13, 2014 \033[41m\033[37;1m~~~~~~~~~~~~~~~#\033[0m")
  171.       time.sleep(0.1)
  172.       print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
  173.       time.sleep(0.1)
  174.       print ("\033[41m\033[37;1m#################################################################\033[0m")
  175.       time.sleep(4.5)
  176.       print("\n\n")
  177.      
  178.    cleanmenu = '''
  179. ***********************************************************
  180. ************ THE HALF-ASSED ONEPLUS ONE TOOLKIT ***********
  181. ************** VERSION: 1.3.1 STABLE * by vvn *************
  182. ***********************************************************
  183. *** this is a FREE program, released AS-IS: NO WARRANTY ***
  184. ****************** USE AT YOUR OWN RISK! ******************
  185. ***********************************************************
  186. *************** support my work: buy my EP! ***************
  187. ************** http://dreamcorp.bandcamp.com **************
  188. *********************************************************** \n
  189. DEVICE MUST BE CONNECTED VIA USB WITH ANDROID DEBUGGING ENABLED.  \n
  190. MAIN MENU:
  191. -[1] reboot into android, bootloader, or recovery
  192. -[2] wipe device or flash partitions
  193. -[3] boot once into custom recovery without flashing - need unlocked bootloader
  194. -[4] install or uninstall APK
  195. -[5] copy files between computer and device, or sync
  196. -[6] backup or restore device
  197. -[7] root device and/or install ZIP in fastboot
  198. -[8] unlock bootloader and/or flash custom image
  199. -[9] run shell command on device
  200. -[10] get bug report from device
  201. -[11] view logcat from device
  202. -[0] quit \n'''
  203.    
  204.    colormenu = '''
  205. \033[40m\033[34m***********************************************************\033[0m
  206. \033[40m\033[34m************ \033[36mTHE HALF-ASSED ONEPLUS ONE TOOLKIT \033[34m***********\033[0m
  207. \033[40m\033[34m************** \033[37mVERSION: 1.3.1 STABLE \033[34m* \033[35mby vvn \033[34m*************\033[0m
  208. \033[40m\033[34m***********************************************************\033[0m
  209. \033[40m\033[34m*** \033[33mthis is a FREE program, released AS-IS: NO WARRANTY \033[34m***\033[0m
  210. \033[40m\033[34m****************** \033[32mUSE AT YOUR OWN RISK! \033[34m******************\033[0m
  211. \033[40m\033[34m***********************************************************\033[0m
  212. \033[40m\033[34m*************** \033[37msupport my work: buy my EP! \033[34m***************\033[0m
  213. \033[40m\033[34m************** \033[37mhttp://dreamcorp.bandcamp.com \033[34m**************\033[0m
  214. \033[40m\033[34m***********************************************************\033[0m \n
  215. \033[33mDEVICE MUST BE CONNECTED VIA USB WITH ANDROID DEBUGGING ENABLED. \033[0m \n
  216. \033[32mMAIN MENU:\033[0m
  217. -\033[31m[1]\033[37m reboot into android, bootloader, or recovery\033[0m
  218. -\033[31m[2]\033[37m wipe device or flash partitions\033[0m
  219. -\033[31m[3]\033[37m boot once into custom recovery without flashing - need unlocked bootloader\033[0m
  220. -\033[31m[4]\033[37m install or uninstall APK\033[0m
  221. -\033[31m[5]\033[37m copy files between computer and device, or sync\033[0m
  222. -\033[31m[6]\033[37m backup or restore device\033[0m
  223. -\033[31m[7]\033[37m root device and/or install ZIP in fastboot\033[0m
  224. -\033[31m[8]\033[37m unlock bootloader and/or flash custom image\033[0m
  225. -\033[31m[9]\033[37m run shell command on device\033[0m
  226. -\033[31m[10]\033[37m get bug report from device\033[0m
  227. -\033[31m[11]\033[37m view logcat from device\033[0m
  228. -\033[31m[0]\033[37m quit \033[0m\n'''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement