-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
AXON
committed
Dec 18, 2020
1 parent
568ca9e
commit 36e86ff
Showing
7 changed files
with
399 additions
and
153 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
[package] | ||
name = "rusty-magisk" | ||
version = "0.1.2" | ||
version = "0.1.3" | ||
authors = ["AXON <[email protected]>"] | ||
edition = "2018" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
nix = "0.19.1" | ||
sys-mount = "1.2.1" | ||
sys-mount = "1.2.1" | ||
likemod = "0.2.0" | ||
libmount = "0.1.15" | ||
faccess = "0.2.3" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
on early-init | ||
export PATH /sbin:/bin:/system/bin:/system/xbin:/system/vendor/bin:/gearlock/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin | ||
|
||
service su_daemon /sbin/magisk --daemon | ||
service su_daemon magisk_bin_path --daemon | ||
seclabel u:r:su:s0 | ||
oneshot | ||
|
||
on boot | ||
start su_daemon | ||
exec u:r:su:s0 -- /sbin/magisk --post-fs-data | ||
exec u:r:su:s0 -- magisk_bin_path --post-fs-data | ||
|
||
on property:sys.boot_completed=1 | ||
exec u:r:su:s0 -- /sbin/magisk --service | ||
exec u:r:su:s0 -- /sbin/magisk --boot-complete | ||
exec u:r:su:s0 -- magisk_bin_path --service | ||
exec u:r:su:s0 -- magisk_bin_path --boot-complete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
service su_daemon magisk_bin_path --daemon | ||
seclabel u:r:su:s0 | ||
oneshot | ||
|
||
on boot | ||
start su_daemon | ||
|
||
on property:sys.boot_completed=1 | ||
exec u:r:su:s0 -- magisk_bin_path --service | ||
exec u:r:su:s0 -- magisk_bin_path --boot-complete |
Oops, something went wrong.