Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import subprocess
- import os
- def check_storage_permission():
- try:
- subprocess.run(["termux-storage-get"], check=True)
- print("\033[1;32m[•] STORAGE PERMISSION IS ALREADY GRANTED ✅🤞 ")
- except subprocess.CalledProcessError:
- print("\033[1;32m[•] STORAGE PERMISSION IS NOT GRANTED.⚔️ \n[•] REQUESTING PERMISSION TYPE 'y' GET PERMISSION ✅ \n[•] MOREOVER, YOU CANNOT USE THIS TOOL ‼️ ")
- request_permission()
- def request_permission():
- try:
- subprocess.run(["termux-setup-storage"], check=True)
- print("\033[1;32m[•] STORAGE PERMISSION GRANTED SUCCESSFULLY ✅🤞 ")
- print('[•] INSTALLING MISSING MODULE PLEASE WAIT..!!')
- os.system('pip install httpx')
- import hexmax
- hexmax.SW4JON_menu()
- except subprocess.CalledProcessError:
- print("\033[1;32m[•] FAILED TO GRANT STORAGE PERMISSION ⚔️ ")
- if __name__ == "__main__":
- os.system('clear')
- check_storage_permission()
Add Comment
Please, Sign In to add comment