Commit a13e2e4a by sikang

update script

parent feb46a34
......@@ -58,6 +58,7 @@ print("24、插入混淆代码")
print("25、插入混淆layout")
print("26、启用/禁用代码")
print("27、签名SHA1")
print("28、安装apk到手机")
command = int(input("请输入指令编号:"))
......@@ -172,3 +173,6 @@ elif command == 26:
elif command == 27:
Function().upate_keytore_sign(config)
elif command == 28:
Shell().install_app(config)
......@@ -125,4 +125,10 @@ class Shell:
"java -jar %s -config -update -nocert" % config['jiagu_jar'],
"java -jar %s -jiagu %s %s -autosign"% (config['jiagu_jar'], config['apk_path'], config['jiagu_output'])
)
os.system(command)
\ No newline at end of file
os.system(command)
def install_app(self,config):
file_name = "%s_%s" % (
config['corp_id'], config['app_name'].replace(" ", "_"))
apk_local = "%s/resGuardApks/%s_release.apk" % (config['root'], file_name)
os.system("adb install %s"%apk_local)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment