Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
a13e2e4a
Commit
a13e2e4a
authored
Nov 15, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
feb46a34
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
python/main.py
+4
-0
python/shell.py
+7
-0
No files found.
python/main.py
View file @
a13e2e4a
...
...
@@ -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
)
python/shell.py
View file @
a13e2e4a
...
...
@@ -126,3 +126,9 @@ class Shell:
"java -jar
%
s -jiagu
%
s
%
s -autosign"
%
(
config
[
'jiagu_jar'
],
config
[
'apk_path'
],
config
[
'jiagu_output'
])
)
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment