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
44adccc1
Commit
44adccc1
authored
Aug 11, 2017
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add magisk binary mirror
parent
2a7e2c70
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
bootstages.c
jni/daemon/bootstages.c
+4
-1
magisk.h
jni/include/magisk.h
+0
-1
No files found.
jni/daemon/bootstages.c
View file @
44adccc1
...
@@ -396,14 +396,17 @@ static void mount_mirrors() {
...
@@ -396,14 +396,17 @@ static void mount_mirrors() {
symlink
(
MIRRDIR
"/system/vendor"
,
MIRRDIR
"/vendor"
);
symlink
(
MIRRDIR
"/system/vendor"
,
MIRRDIR
"/vendor"
);
LOGI
(
"link: %s -> %s
\n
"
,
MIRRDIR
"/system/vendor"
,
MIRRDIR
"/vendor"
);
LOGI
(
"link: %s -> %s
\n
"
,
MIRRDIR
"/system/vendor"
,
MIRRDIR
"/vendor"
);
}
}
mkdir_p
(
MIRRDIR
"/bin"
,
0755
);
bind_mount
(
DATABIN
,
MIRRDIR
"/bin"
);
}
}
static
void
link_busybox
()
{
static
void
link_busybox
()
{
mkdir_p
(
BBPATH
,
0755
);
mkdir_p
(
BBPATH
,
0755
);
char
*
const
command
[]
=
{
"busybox"
,
"--install"
,
"-s"
,
BBPATH
,
NULL
};
char
*
const
command
[]
=
{
"busybox"
,
"--install"
,
"-s"
,
BBPATH
,
NULL
};
int
pid
=
run_command
(
0
,
NULL
,
NULL
,
BBBIN
,
command
);
int
pid
=
run_command
(
0
,
NULL
,
NULL
,
MIRRDIR
"/bin/busybox"
,
command
);
if
(
pid
!=
-
1
)
if
(
pid
!=
-
1
)
waitpid
(
pid
,
NULL
,
0
);
waitpid
(
pid
,
NULL
,
0
);
symlink
(
MIRRDIR
"/bin/busybox"
,
BBPATH
"/busybox"
);
}
}
/****************
/****************
...
...
jni/include/magisk.h
View file @
44adccc1
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
#define MAINIMG "/data/magisk.img"
#define MAINIMG "/data/magisk.img"
#define DATABIN "/data/magisk"
#define DATABIN "/data/magisk"
#define MANAGERAPK DATABIN "/magisk.apk"
#define MANAGERAPK DATABIN "/magisk.apk"
#define BBBIN DATABIN "/busybox"
#define MAGISKTMP "/dev/magisk"
#define MAGISKTMP "/dev/magisk"
#define MIRRDIR MAGISKTMP "/mirror"
#define MIRRDIR MAGISKTMP "/mirror"
#define DUMMDIR MAGISKTMP "/dummy"
#define DUMMDIR MAGISKTMP "/dummy"
...
...
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