Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- ### OPOINTRO
- ##### VERSION: 1.3.1 STABLE
- ##### RELEASE DATE: SEPTEMBER 13, 2014
- ##### AUTHOR: vvn
- ##### DESCRIPTION: intro and menu for opotoolkit.py to support windows' lack of support for ANSI colors
- ##### to show colors in windows, install "colorama" python library
- #####
- ##### USER LICENSE AGREEMENT & DISCLAIMER
- ##### copyright (C) 2014 vvn <vvn@notworth.it>
- #####
- ##### This program is FREE software: you can use it, redistribute it and/or modify
- ##### it as you wish. Copying and distribution of this file, with or without modification,
- ##### are permitted in any medium without royalty provided the copyright
- ##### notice and this notice are preserved. This program is offered AS-IS,
- ##### WITHOUT ANY WARRANTY; without even the implied warranty of
- ##### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ##### GNU General Public License for more details.
- #####
- ##### For more information, please refer to the "LICENSE AND NOTICE" file that should
- ##### accompany all official download releases of this program.
- #####
- ##### getting credited for my work is nice. so are donations.
- ##### but to really show your appreciation, you should buy my EP instead!
- ##### you can stream and purchase it at: dreamcorp.bandcamp.com
- ##### (you might even enjoy listening to it)
- ##### questions, comments, feedback, bugs, complaints, death threats, marriage proposals?
- ##### contact me at:
- ##### vvn (at) notworth (dot) it
- import time
- class opointro(object):
- def cleanlogo(self):
- print ("##################################################################################")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~~~~~~~~~ HALF-ASSED ONEPLUS ONE TOOLKIT ~~~~~~~~~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ v1.3.1 STABLE ~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~ 77~~~~~~ 7~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~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~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~ 7~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~ 7~~~~~ SUPPORT MY WORK - BUY MY EP! ~~~~~ 7~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~ 7~~~~ http://dreamcorp.bandcamp.com ~~~~~ 7~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~ 7~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ AUTHOR: VVN ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~~~~~~~~ RELEASE DATE: SEPTEMBER 13, 2014 ~~~~~~~~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~ COPYRIGHT (C) 2014 VVN ~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#")
- time.sleep(0.1)
- print ("##################################################################################")
- time.sleep(4.5)
- print ("\n\n")
- def colorlogo(self):
- print ("\033[41m\033[37;1m#################################################################\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~ \033[40m\033[33;1mTHE HALF-ASSED\033[41m\033[37;1m ~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- 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")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~ \033[41m\033[40;1mv1.3.1 STABLE\033[41m\033[37;1m ~~~~~~~~~~~I 7~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I 7~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~I 77~~~~~I 7~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~I 7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I 7~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~I 7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I 7~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~I 7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I 7~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~I 7~~~~~~~~~~I 7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
- time.sleep(0.2)
- print ("\033[41m\033[37;1m#~~~~~~~~I 7~~~~~~~~~~~~~~~~I 7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
- time.sleep(0.2)
- print ("\033[41m\033[37;1m#~~~~~~~~I 7~~~~~~~~~~~~~~~~I 7~~~~~~~~~~~~~~~I 7~~~~~~~~~#\033[0m")
- time.sleep(0.2)
- print ("\033[41m\033[37;1m#~~~~~~~~I 7~~~~~~~~~~~~~~~~I 7~~~~~~~~~~~~~~~I 7~~~~~~~~~#\033[0m")
- time.sleep(0.2)
- print ("\033[41m\033[37;1m#~~~~~~~~I 7~~~~~~~~~~~~~~~~I 7~~~~~~~~~~~~~~~I 7~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~I 7~~~~~~~~~~~~~~~~I 7~~~~~~~~~~~~~~~I 7~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~I 7~~~~~~~~~~~~~~~~I 7~~~~~~~~~~~~~~~I 7~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~I 7~~~~~~~~~~~~~~~~I 7~~~~~~~~~~~~~~~I 7~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~I 7~~~~~~~~~~I 7~~~~~~~~~I 7~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~I 7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I 7~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~I 7~~~ SUPPORT MY WORK - BUY MY EP! ~~~I 7~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~I 7~~ http://dreamcorp.bandcamp.com ~~~I 7~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~I 7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I 7~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~I 7~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~~~ \033[40m\033[35;1mAUTHOR: VVN \033[41m\033[37;1m~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~ \033[40m\033[36;1mRELEASE DATE: SEPTEMBER 13, 2014 \033[41m\033[37;1m~~~~~~~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\033[0m")
- time.sleep(0.1)
- print ("\033[41m\033[37;1m#################################################################\033[0m")
- time.sleep(4.5)
- print("\n\n")
- cleanmenu = '''
- ***********************************************************
- ************ THE HALF-ASSED ONEPLUS ONE TOOLKIT ***********
- ************** VERSION: 1.3.1 STABLE * by vvn *************
- ***********************************************************
- *** this is a FREE program, released AS-IS: NO WARRANTY ***
- ****************** USE AT YOUR OWN RISK! ******************
- ***********************************************************
- *************** support my work: buy my EP! ***************
- ************** http://dreamcorp.bandcamp.com **************
- *********************************************************** \n
- DEVICE MUST BE CONNECTED VIA USB WITH ANDROID DEBUGGING ENABLED. \n
- MAIN MENU:
- -[1] reboot into android, bootloader, or recovery
- -[2] wipe device or flash partitions
- -[3] boot once into custom recovery without flashing - need unlocked bootloader
- -[4] install or uninstall APK
- -[5] copy files between computer and device, or sync
- -[6] backup or restore device
- -[7] root device and/or install ZIP in fastboot
- -[8] unlock bootloader and/or flash custom image
- -[9] run shell command on device
- -[10] get bug report from device
- -[11] view logcat from device
- -[0] quit \n'''
- colormenu = '''
- \033[40m\033[34m***********************************************************\033[0m
- \033[40m\033[34m************ \033[36mTHE HALF-ASSED ONEPLUS ONE TOOLKIT \033[34m***********\033[0m
- \033[40m\033[34m************** \033[37mVERSION: 1.3.1 STABLE \033[34m* \033[35mby vvn \033[34m*************\033[0m
- \033[40m\033[34m***********************************************************\033[0m
- \033[40m\033[34m*** \033[33mthis is a FREE program, released AS-IS: NO WARRANTY \033[34m***\033[0m
- \033[40m\033[34m****************** \033[32mUSE AT YOUR OWN RISK! \033[34m******************\033[0m
- \033[40m\033[34m***********************************************************\033[0m
- \033[40m\033[34m*************** \033[37msupport my work: buy my EP! \033[34m***************\033[0m
- \033[40m\033[34m************** \033[37mhttp://dreamcorp.bandcamp.com \033[34m**************\033[0m
- \033[40m\033[34m***********************************************************\033[0m \n
- \033[33mDEVICE MUST BE CONNECTED VIA USB WITH ANDROID DEBUGGING ENABLED. \033[0m \n
- \033[32mMAIN MENU:\033[0m
- -\033[31m[1]\033[37m reboot into android, bootloader, or recovery\033[0m
- -\033[31m[2]\033[37m wipe device or flash partitions\033[0m
- -\033[31m[3]\033[37m boot once into custom recovery without flashing - need unlocked bootloader\033[0m
- -\033[31m[4]\033[37m install or uninstall APK\033[0m
- -\033[31m[5]\033[37m copy files between computer and device, or sync\033[0m
- -\033[31m[6]\033[37m backup or restore device\033[0m
- -\033[31m[7]\033[37m root device and/or install ZIP in fastboot\033[0m
- -\033[31m[8]\033[37m unlock bootloader and/or flash custom image\033[0m
- -\033[31m[9]\033[37m run shell command on device\033[0m
- -\033[31m[10]\033[37m get bug report from device\033[0m
- -\033[31m[11]\033[37m view logcat from device\033[0m
- -\033[31m[0]\033[37m quit \033[0m\n'''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement