Skip to content

Commit

Permalink
Many many improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
AXON committed Dec 18, 2020
1 parent 568ca9e commit 36e86ff
Show file tree
Hide file tree
Showing 7 changed files with 399 additions and 153 deletions.
75 changes: 69 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions Cargo.toml
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 added src/asset/chmod
Binary file not shown.
8 changes: 4 additions & 4 deletions src/config/su
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
10 changes: 10 additions & 0 deletions src/config/su_minimal
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
Loading

0 comments on commit 36e86ff

Please sign in to comment.