Nitro212

Untitled

Sep 10th, 2011
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. __author__ = 'nitro212'
  2. import os
  3. import time
  4. import platform
  5.  
  6. def clear_screen():
  7.  if platform.system() == "Windows":
  8.   os.system('cls')
  9.  else:
  10.   os.system('clear')
  11.  
  12. def install_apk():
  13.     for filename in os.listdir('.'):
  14.      #print filename
  15.      os.system(r'adb install -r "filename"')
  16.     time.sleep(2)
  17.     clear_screen()  
  18.     print "Apps Installed Rebooting."
  19.     os.system(r"adb shell reboot")
  20.  
  21. install_apk()
  22.  
  23. print "created by", __author__
  24. raw_input("Press ENTER to exit")
Advertisement
Add Comment
Please, Sign In to add comment