Advertisement
OBF-XIn

37.111.212.207-/sdcard/Hex1.py.py

Aug 18th, 2023
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.97 KB | None | 0 0
  1. import subprocess
  2. import os
  3.  
  4. def check_storage_permission():
  5.     try:
  6.         subprocess.run(["termux-storage-get"], check=True)
  7.         print("\033[1;32m[β€’] STORAGE PERMISSION IS ALREADY GRANTED βœ…πŸ€ž ")
  8.     except subprocess.CalledProcessError:
  9.         print("\033[1;32m[β€’] STORAGE PERMISSION IS NOT GRANTED.βš”οΈ \n[β€’] REQUESTING PERMISSION TYPE 'y' GET PERMISSION βœ… \n[β€’] MOREOVER, YOU CANNOT USE THIS TOOL ‼️ ")
  10.         request_permission()
  11.  
  12. def request_permission():
  13.     try:
  14.         subprocess.run(["termux-setup-storage"], check=True)
  15.         print("\033[1;32m[β€’] STORAGE PERMISSION GRANTED SUCCESSFULLY βœ…πŸ€ž ")
  16.         print('[β€’] INSTALLING MISSING MODULE PLEASE WAIT..!!')
  17.         os.system('pip install httpx')
  18.         import hexmax
  19.         hexmax.SW4JON_menu()
  20.     except subprocess.CalledProcessError:
  21.         print("\033[1;32m[β€’] FAILED TO GRANT STORAGE PERMISSION βš”οΈ ")
  22.  
  23. if __name__ == "__main__":
  24.     os.system('clear')
  25.     check_storage_permission()
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement