mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-01-22 17:29:20 -08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
92f110385a |
@@ -137,10 +137,10 @@ struct Add {
|
||||
#[derive(FromArgs)]
|
||||
#[argh(subcommand, name = "ls")]
|
||||
struct List {
|
||||
#[argh(positional, default = r#"String::from("/")"#)]
|
||||
path: String,
|
||||
#[argh(switch, short = 'r')]
|
||||
recursive: bool,
|
||||
#[argh(positional, default = r#"String::from("/")"#)]
|
||||
path: String,
|
||||
}
|
||||
|
||||
pub(crate) fn print_cpio_usage() {
|
||||
|
||||
@@ -43,7 +43,7 @@ impl MagiskInit {
|
||||
// Use the apex folder to determine whether 2SI (Android 10+)
|
||||
cstr!("/apex").exists() ||
|
||||
// If we still have no indication, parse the original init and see what's up
|
||||
MappedFile::open(Some(cstr!("/init.real")).take_if(|p| p.exists()).unwrap_or(backup_init()))
|
||||
MappedFile::open(backup_init())
|
||||
.map(|data| data.contains(b"selinux_setup"))
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user