-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
3 changed files
with
33 additions
and
12 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,16 @@ | ||
|
||
HEADER = '\033[95m' | ||
OKBLUE = '\033[94m' | ||
OKGREEN = '\033[92m' | ||
WARNING = '\033[93m' | ||
FAIL = '\033[91m' | ||
ENDC = '\033[0m' | ||
BOLD = '\033[1m' | ||
UNDERLINE = '\033[4m' | ||
|
||
|
||
def printColored(str, option): | ||
print(option+str+ENDC) | ||
|
||
def setColored(str, oprtion): | ||
return oprtion+str+ENDC |
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
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 |
---|---|---|
@@ -1,20 +1,23 @@ | ||
from os import listdir | ||
from os.path import isfile, join | ||
import main_insert_border_regs, sys | ||
import main_insert_border_regs, sys, colored | ||
|
||
#path = 'data/com.instagram.android/lib/armeabi-v7a/' | ||
#path = 'data/noassertTel/lib/armeabi-v7a/' | ||
path = 'apps/telegram/lib/armeabi-v7a/' | ||
|
||
#path = sys.argv[1] #путь к папке todo uncomment | ||
#path = 'apps/telegram/lib/armeabi-v7a/' | ||
#harded_path = 'apps/app-debug/lib/armeabi-v7a/' | ||
harded_path = 'apps/test2/lib/armeabi-v7a/' | ||
DEBUG=1 | ||
path = sys.argv[1] if len(sys.argv) > 1 else harded_path | ||
start_group = sys.argv[2] if len(sys.argv)>2 else 0 | ||
end_group = sys.argv[3] if len(sys.argv)>3 else -1 #todo LAST ELEMENT!!! | ||
|
||
#todo debug only | ||
#start_group = 2314 | ||
#end_group = 2315 | ||
#start_group = 0 | ||
#end_group = 1000 | ||
#2314 | ||
|
||
files = [f for f in listdir(path) if isfile(join(path, f)) and f.endswith('_old.so')] | ||
for file in files: | ||
print (file[:-7]) | ||
main_insert_border_regs.run(join(path, file)[:-7], int(start_group), int(end_group)) | ||
colored.printColored (file[:-7], colored.HEADER) | ||
main_insert_border_regs.run(join(path, file)[:-7], int(start_group), int(end_group), DEBUG) |