Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
7f8ba74d
Commit
7f8ba74d
authored
Aug 21, 2017
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add hide Magisk Manager feature
parent
e3df62d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
MagiskManager
MagiskManager
+1
-1
build.py
build.py
+13
-3
No files found.
MagiskManager
@
657f4ab3
Subproject commit
ea6552615d25fb107fd8ecab06a80102acdc1354
Subproject commit
657f4ab3036aca81bdf415a32b65ea76efae88fe
build.py
View file @
7f8ba74d
...
@@ -85,14 +85,24 @@ def build_apk(args):
...
@@ -85,14 +85,24 @@ def build_apk(args):
print
(
'cp: {} -> {}'
.
format
(
source
,
target
))
print
(
'cp: {} -> {}'
.
format
(
source
,
target
))
shutil
.
copyfile
(
source
,
target
)
shutil
.
copyfile
(
source
,
target
)
os
.
chdir
(
'MagiskManager'
)
# Build unhide app and place in assets
proc
=
subprocess
.
run
(
'{} unhide::assembleRelease'
.
format
(
os
.
path
.
join
(
'.'
,
'gradlew'
)),
shell
=
True
)
if
proc
.
returncode
!=
0
:
error
(
'Build Magisk Manager failed!'
)
source
=
os
.
path
.
join
(
'unhide'
,
'build'
,
'outputs'
,
'apk'
,
'release'
,
'unhide-release-unsigned.apk'
)
target
=
os
.
path
.
join
(
'app'
,
'src'
,
'main'
,
'assets'
,
'unhide.apk'
)
print
(
'cp: {} -> {}'
.
format
(
source
,
target
))
shutil
.
copyfile
(
source
,
target
)
print
(
''
)
print
(
''
)
os
.
chdir
(
'MagiskManager'
)
if
args
.
release
:
if
args
.
release
:
if
not
os
.
path
.
exists
(
os
.
path
.
join
(
'..'
,
'release_signature.jks'
)):
if
not
os
.
path
.
exists
(
os
.
path
.
join
(
'..'
,
'release_signature.jks'
)):
error
(
'Please generate a java keystore and place it in
\'
release_signature.jks
\'
'
)
error
(
'Please generate a java keystore and place it in
\'
release_signature.jks
\'
'
)
proc
=
subprocess
.
run
(
'{} assembleRelease'
.
format
(
os
.
path
.
join
(
'.'
,
'gradlew'
)),
shell
=
True
)
proc
=
subprocess
.
run
(
'{} a
pp::a
ssembleRelease'
.
format
(
os
.
path
.
join
(
'.'
,
'gradlew'
)),
shell
=
True
)
if
proc
.
returncode
!=
0
:
if
proc
.
returncode
!=
0
:
error
(
'Build Magisk Manager failed!'
)
error
(
'Build Magisk Manager failed!'
)
...
@@ -122,7 +132,7 @@ def build_apk(args):
...
@@ -122,7 +132,7 @@ def build_apk(args):
silentremove
(
unsigned
)
silentremove
(
unsigned
)
silentremove
(
aligned
)
silentremove
(
aligned
)
else
:
else
:
proc
=
subprocess
.
run
(
'{} assembleDebug'
.
format
(
os
.
path
.
join
(
'.'
,
'gradlew'
)),
shell
=
True
)
proc
=
subprocess
.
run
(
'{} a
pp::a
ssembleDebug'
.
format
(
os
.
path
.
join
(
'.'
,
'gradlew'
)),
shell
=
True
)
if
proc
.
returncode
!=
0
:
if
proc
.
returncode
!=
0
:
error
(
'Build Magisk Manager failed!'
)
error
(
'Build Magisk Manager failed!'
)
...
...
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