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
6f74ed6c
Commit
6f74ed6c
authored
Jun 13, 2022
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup manager.sh
parent
71205bc5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
manager.sh
app/src/main/res/raw/manager.sh
+3
-4
No files found.
app/src/main/res/raw/manager.sh
View file @
6f74ed6c
...
...
@@ -10,7 +10,7 @@ env_check() {
for
file
in
busybox magiskboot magiskinit util_functions.sh boot_patch.sh
;
do
[
-f
"
$MAGISKBIN
/
$file
"
]
||
return
1
done
if
[
"
$2
"
-ge
2
4302
]
;
then
if
[
"
$2
"
-ge
2
5000
]
;
then
[
-f
"
$MAGISKBIN
/magiskpolicy"
]
||
return
1
fi
grep
-xqF
"MAGISK_VER='
$1
'"
"
$MAGISKBIN
/util_functions.sh"
||
return
1
...
...
@@ -206,7 +206,8 @@ get_flags() {
fi
# Preset PATCHVBMETAFLAG to false in the non-root case
PATCHVBMETAFLAG
=
false
# Do NOT preset RECOVERYMODE here
# Make sure RECOVERYMODE has value
[
-z
$RECOVERYMODE
]
&&
RECOVERYMODE
=
false
}
run_migrations
()
{
return
;
}
...
...
@@ -225,8 +226,6 @@ app_init() {
run_migrations
SHA1
=
$(
grep_prop SHA1
$MAGISKTMP
/config
)
check_encryption
# Make sure RECOVERYMODE has value
[
-z
$RECOVERYMODE
]
&&
RECOVERYMODE
=
false
}
export
BOOTMODE
=
true
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