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
ee1f45aa
Commit
ee1f45aa
authored
Feb 29, 2020
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new commandline option to get tmpfs root
parent
915fd302
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
magisk.cpp
native/jni/core/magisk.cpp
+9
-5
No files found.
native/jni/core/magisk.cpp
View file @
ee1f45aa
...
@@ -27,19 +27,19 @@ Options:
...
@@ -27,19 +27,19 @@ Options:
--list list all available applets
--list list all available applets
--daemon manually start magisk daemon
--daemon manually start magisk daemon
--remove-modules remove all modules and reboot
--remove-modules remove all modules and reboot
--[init trigger] start service for init trigger
Advanced Options (Internal APIs):
Advanced Options (Internal APIs):
--[init trigger] start service for init trigger
Supported init triggers:
post-fs-data, service, boot-complete
--unlock-blocks set BLKROSET flag to OFF for all block devices
--unlock-blocks set BLKROSET flag to OFF for all block devices
--restorecon restore selinux context on Magisk files
--restorecon restore selinux context on Magisk files
--clone-attr SRC DEST clone permission, owner, and selinux context
--clone-attr SRC DEST clone permission, owner, and selinux context
--clone SRC DEST clone SRC to DEST
--clone SRC DEST clone SRC to DEST
--sqlite SQL exec SQL commands to Magisk database
--sqlite SQL exec SQL commands to Magisk database
--path print internal tmpfs mount path
Supported init triggers:
Available applets:
post-fs-data, service, boot-complete
Supported applets:
)EOF"
);
)EOF"
);
for
(
int
i
=
0
;
applet_names
[
i
];
++
i
)
for
(
int
i
=
0
;
applet_names
[
i
];
++
i
)
...
@@ -115,6 +115,10 @@ int magisk_main(int argc, char *argv[]) {
...
@@ -115,6 +115,10 @@ int magisk_main(int argc, char *argv[]) {
int
fd
=
connect_daemon
();
int
fd
=
connect_daemon
();
write_int
(
fd
,
REMOVE_MODULES
);
write_int
(
fd
,
REMOVE_MODULES
);
return
read_int
(
fd
);
return
read_int
(
fd
);
}
else
if
(
argv
[
1
]
==
"--path"
sv
)
{
// TODO: hardcode /sbin for now, actual logic will be used for Android 11
printf
(
"/sbin
\n
"
);
return
0
;
}
}
#if 0
#if 0
/* Entry point for testing stuffs */
/* Entry point for testing stuffs */
...
...
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