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
bd438ca2
Commit
bd438ca2
authored
Jan 02, 2020
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update docs
parent
e0d02a61
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
README.md
docs/README.md
+1
-1
tools.md
docs/tools.md
+9
-9
No files found.
docs/README.md
View file @
bd438ca2
# Magisk Documentation
# Magisk Documentation
(Updated on 20
19.12.29
)
(Updated on 20
20.1.2
)
-
[
Installation
](
install.md
)
-
[
Installation
](
install.md
)
-
[
Tutorials
](
tutorials.md
)
-
[
Tutorials
](
tutorials.md
)
...
...
docs/tools.md
View file @
bd438ca2
...
@@ -119,20 +119,22 @@ Usage: magiskpolicy [--options...] [policy statements...]
...
@@ -119,20 +119,22 @@ Usage: magiskpolicy [--options...] [policy statements...]
Options:
Options:
--help show help message for policy statements
--help show help message for policy statements
--load FILE load policies from FILE
--load FILE load policies from FILE
--load-split load from pre
load
ed sepolicy or compile
--load-split load from pre
compil
ed sepolicy or compile
split policies
split policies
--compile-split compile split cil policies
--compile-split compile split cil policies
--save FILE save policies to FILE
--save FILE save policies to FILE
--live directly apply sepolicy live
--live directly apply sepolicy live
--magisk inject built-in rules for a minimal
--magisk inject built-in rules for a minimal
Magisk selinux environment
Magisk selinux environment
--apply FILE apply rules from FILE, read and parsed
line by line as policy statements
If neither --load or --compile-split is specified, it will load
If neither --load or --compile-split is specified, it will load
from current live policies (/sys/fs/selinux/policy)
from current live policies (/sys/fs/selinux/policy)
One policy statement should be treated as one parameter;
One policy statement should be treated as one parameter;
this means a full policy statement should be enclosed in quotes
;
this means a full policy statement should be enclosed in quotes
.
multiple policy statements can be provided in a single command
Multiple policy statements can be provided in a single command.
The statements has a format of "<rule_name> [args...]"
The statements has a format of "<rule_name> [args...]"
Multiple types and permissions can be grouped into collections
Multiple types and permissions can be grouped into collections
...
@@ -173,10 +175,10 @@ Notes:
...
@@ -173,10 +175,10 @@ Notes:
Example: allow { s1 s2 } { t1 t2 } class *
Example: allow { s1 s2 } { t1 t2 } class *
Will be expanded to:
Will be expanded to:
allow s1 t1 class { all
permissions }
allow s1 t1 class { all
-
permissions }
allow s1 t2 class { all
permissions }
allow s1 t2 class { all
-
permissions }
allow s2 t1 class { all
permissions }
allow s2 t1 class { all
-
permissions }
allow s2 t2 class { all
permissions }
allow s2 t2 class { all
-
permissions }
```
```
...
@@ -202,7 +204,6 @@ Advanced Options (Internal APIs):
...
@@ -202,7 +204,6 @@ Advanced Options (Internal APIs):
--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
--use-broadcast use broadcast for su logging and notify
Supported init triggers:
Supported init triggers:
post-fs-data, service, boot-complete
post-fs-data, service, boot-complete
...
@@ -269,5 +270,4 @@ Actions:
...
@@ -269,5 +270,4 @@ Actions:
ls Print the current hide list
ls Print the current hide list
exec CMDs... Execute commands in isolated mount
exec CMDs... Execute commands in isolated mount
namespace and do all hide unmounts
namespace and do all hide unmounts
test Run process monitor test
```
```
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