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
caf9fbd8
Commit
caf9fbd8
authored
Oct 16, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
72c95dc9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
16 deletions
+29
-16
script/garble/pkgname_generator.py
+25
-0
script/garble/rename_pkg.sh
+1
-1
script/pkgname_generator.py
+0
-13
script/script_help.sh
+2
-1
src/main/res/xml/network_security_config.xml
+1
-1
No files found.
script/garble/pkgname_generator.py
0 → 100755
View file @
caf9fbd8
import
random
import
sys
import
uuid
import
os
app_name
=
sys
.
argv
[
1
]
.
replace
(
" "
,
""
)
.
lower
()
start_name
=
[
"com"
,
"cn"
,
"id"
,
"app"
,
"host"
,
"in"
]
middle_name
=
[
"android"
,
"main"
,
"home"
,
"base"
,
"play"
,
"release"
,
"full"
,
"kredit"
,
"cepat"
,
"saku"
,
"wallet"
,
"coin"
,
"loan"
,
"flash"
,
"pjnm"
,
"indo"
,
"lib"
]
#start
pkg_name
=
start_name
[
random
.
randint
(
0
,
len
(
start_name
)
-
1
)]
+
"."
+
app_name
#middle
length
=
random
.
randint
(
1
,
3
)
for
i
in
range
(
0
,
length
):
pkg_name
+=
"."
+
middle_name
[
random
.
randint
(
0
,
len
(
middle_name
)
-
1
)]
#end
uuid_str
=
str
(
uuid
.
uuid1
())
.
replace
(
"-"
,
""
)
random_str
=
''
.
join
(
random
.
sample
(
uuid_str
,
random
.
randint
(
4
,
8
)))
pkg_name
+=
"."
+
random_str
os
.
system
(
'./rename_pkg.sh '
+
pkg_name
)
script/rename_pkg.sh
→
script/
garble/
rename_pkg.sh
View file @
caf9fbd8
#!/usr/bin/env bash
cd
../../
cd
../../
../
.
gradle.properties
v_code
=
$((${
version_code
}
+
1
))
...
...
script/pkgname_generator.py
deleted
100755 → 0
View file @
72c95dc9
#!/usr/bin/env python3
import
random
import
string
import
sys
,
os
def
radomStr
():
return
''
.
join
(
random
.
sample
(
'abcdefghijklmnopqrstuvwxyz'
,
random
.
randint
(
4
,
6
)))
appId
=
radomStr
()
+
'.'
+
radomStr
()
+
'.'
+
radomStr
()
+
'.'
+
radomStr
()
os
.
system
(
'./rename_pkg.sh '
+
appId
)
script/script_help.sh
View file @
caf9fbd8
...
...
@@ -44,8 +44,9 @@ read commod
if
((
$commod
==
'0'
))
then
cd
garble
chmod a+x pkgname_generator.py
./pkgname_generator.py
python pkgname_generator.py
"
${
app_name
}
"
elif
((
$commod
==
'1'
))
then
...
...
src/main/res/xml/network_security_config.xml
View file @
caf9fbd8
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config
cleartextTrafficPermitted=
"
tru
e"
/>
<base-config
cleartextTrafficPermitted=
"
fals
e"
/>
</network-security-config>
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