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
3a327410
Commit
3a327410
authored
Oct 19, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
feb834a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
python/tools/activity_garble.py
+8
-3
No files found.
python/tools/activity_garble.py
View file @
3a327410
...
...
@@ -87,22 +87,27 @@ class ActivityGarble:
directory
=
os
.
path
.
join
(
os
.
getcwd
(),
root
)
for
file
in
files
:
if
file
.
endswith
(
".java"
):
elf
.
__process_file_content
(
os
.
path
.
join
(
directory
,
file
),
file
)
s
elf
.
__process_file_content
(
os
.
path
.
join
(
directory
,
file
),
file
)
#四大组件混淆
def
activity_garble
(
self
,
config
):
#找到要混淆的java文件
print
(
"find activity..."
)
self
.
__find_activities
(
"
%
s/app/src/main"
%
config
[
'root'
])
self
.
__find_activities
(
"
%
s/lib_base/src/main"
%
config
[
'root'
])
#开始混淆
print
(
"start garble .java..."
)
self
.
__process_files
(
"
%
s/app/src/main"
%
config
[
'root'
])
self
.
__process_files
(
"
%
s/lib_base/src/main"
%
config
[
'root'
])
#混淆AndroidManifest.xml
print
(
"start garble 混淆AndroidManifest.xml ..."
)
manifest_path
=
os
.
path
.
join
(
"
%
s/app/src/main/"
%
config
[
'root'
],
"AndroidManifest.xml"
)
self
.
__process_file_content
(
manifest_path
,
"AndroidManifest.xml"
)
lib_manifest_path
=
os
.
path
.
join
(
"
%
s/lib_base/src/main/"
%
config
[
'root'
],
"AndroidManifest.xml"
)
self
.
__process_file_content
(
lib_manifest_path
,
"AndroidManifest.xml"
)
\ No newline at end of file
self
.
__process_file_content
(
lib_manifest_path
,
"AndroidManifest.xml"
)
print
(
"done"
)
\ 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