-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2e12ea
commit e61ca17
Showing
5 changed files
with
356 additions
and
594 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from os import path | ||
from json import loads, dump | ||
|
||
|
||
async def compare() -> bool: | ||
if not path.isfile("process_info.json"): | ||
return False | ||
|
||
with open("process_info.json", 'r') as json_file: | ||
current_info = loads(json_file.read()) | ||
json_file.close() | ||
|
||
game_package_name = current_info["game_pkg"] | ||
|
||
if game_package_name == "": | ||
return False | ||
|
||
elif path.exists("/storage/emulated/0/Android/data/{}".format(game_package_name)): | ||
return True | ||
|
||
else: | ||
print("[-] Package Not found. Please type again or press ctrl+c to exit.") | ||
return False | ||
|
||
|
||
async def get_data() -> None: | ||
while not (await compare()): | ||
pkg_name = input("[x] Enter package name: ") | ||
process_info = {"game_pkg": pkg_name} | ||
dump(process_info, open("process_info.json", "w")) |
Oops, something went wrong.