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
ef62272d
Commit
ef62272d
authored
Jul 09, 2018
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small adjustments to prevent seccomp errors
parent
375cd0e4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
15 deletions
+5
-15
flash_script.sh
scripts/flash_script.sh
+0
-4
update_binary.sh
scripts/update_binary.sh
+5
-11
No files found.
scripts/flash_script.sh
View file @
ef62272d
...
@@ -13,10 +13,6 @@
...
@@ -13,10 +13,6 @@
# Preparation
# Preparation
##########################################################################################
##########################################################################################
# This path should work in any cases
TMPDIR
=
/dev/tmp
INSTALLER
=
$TMPDIR
/install
COMMONDIR
=
$INSTALLER
/common
COMMONDIR
=
$INSTALLER
/common
APK
=
$COMMONDIR
/magisk.apk
APK
=
$COMMONDIR
/magisk.apk
CHROMEDIR
=
$INSTALLER
/chromeos
CHROMEDIR
=
$INSTALLER
/chromeos
...
...
scripts/update_binary.sh
View file @
ef62272d
# EX_ARM, EX_X86, BB_ARM, and BB_X86 should be generated in build.py
# EX_ARM, EX_X86, BB_ARM, and BB_X86 should be generated in build.py
getdir
()
{
case
"
$1
"
in
*
/
*
)
dir
=
${
1
%/*
}
;
[
-z
$dir
]
&&
echo
"/"
||
echo
$dir
;;
*
)
echo
"."
;;
esac
}
extract_bb
()
{
extract_bb
()
{
EXBIN
=
$BBDIR
/b64xz
;
BBBIN
=
$BBDIR
/busybox
EXBIN
=
$BBDIR
/b64xz
;
BBBIN
=
$BBDIR
/busybox
touch
$EXBIN
;
touch
$BBBIN
;
chmod
755
$EXBIN
$BBBIN
touch
$EXBIN
;
touch
$BBBIN
;
chmod
755
$EXBIN
$BBBIN
...
@@ -29,12 +23,12 @@ case "$1" in
...
@@ -29,12 +23,12 @@ case "$1" in
extract_bb
extract_bb
;;
;;
"indep"
)
"indep"
)
TMPDIR
=
"
`
getdir
"
${
BASH_SOURCE
:-
$0
}
"
`
"
;
setup_bb
TMPDIR
=
.
;
setup_bb
;
shift
shift
;
exec
sh
"
$@
"
exec
/system/bin/
sh
"
$@
"
;;
;;
*
)
*
)
TMPDIR
=
/dev/tmp
;
rm
-rf
$TMPDIR
2>/dev/null
;
setup_bb
export
TMPDIR
=
/dev/tmp
;
rm
-rf
$TMPDIR
2>/dev/null
;
setup_bb
INSTALLER
=
$TMPDIR
/install
;
mkdir
-p
$INSTALLER
;
unzip
-o
"
$3
"
-d
$INSTALLER
>
&2
export
INSTALLER
=
$TMPDIR
/install
;
mkdir
-p
$INSTALLER
;
unzip
-o
"
$3
"
-d
$INSTALLER
>
&2
exec
sh
$INSTALLER
/META-INF/com/google/android/updater-script
$@
exec
sh
$INSTALLER
/META-INF/com/google/android/updater-script
"
$@
"
;;
;;
esac
esac
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