You've already forked ZygiskNext
mirror of
https://github.com/Dr-TSNG/ZygiskNext.git
synced 2025-08-27 23:46:34 +00:00
No inline for root_impl
This commit is contained in:
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-bin.zip
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ pluginManagement {
|
|||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
}
|
}
|
||||||
plugins {
|
plugins {
|
||||||
id("com.android.library") version "7.4.1"
|
id("com.android.library") version "7.4.2"
|
||||||
id("com.android.application") version "7.4.1"
|
id("com.android.application") version "7.4.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ pub fn get_kernel_su() -> Option<Version> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline(never)]
|
||||||
pub fn uid_on_allowlist(uid: i32) -> bool {
|
pub fn uid_on_allowlist(uid: i32) -> bool {
|
||||||
let mut size = 1024u32;
|
let mut size = 1024u32;
|
||||||
let mut uids = vec![0; size as usize];
|
let mut uids = vec![0; size as usize];
|
||||||
@@ -32,6 +33,7 @@ pub fn uid_on_allowlist(uid: i32) -> bool {
|
|||||||
uids.contains(&uid)
|
uids.contains(&uid)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline(never)]
|
||||||
pub fn uid_on_denylist(uid: i32) -> bool {
|
pub fn uid_on_denylist(uid: i32) -> bool {
|
||||||
let mut size = 1024u32;
|
let mut size = 1024u32;
|
||||||
let mut uids = vec![0; size as usize];
|
let mut uids = vec![0; size as usize];
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ pub fn get_magisk() -> Option<Version> {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline(never)]
|
||||||
pub fn uid_on_allowlist(uid: i32) -> bool {
|
pub fn uid_on_allowlist(uid: i32) -> bool {
|
||||||
let output: Option<String> = Command::new("magisk")
|
let output: Option<String> = Command::new("magisk")
|
||||||
.arg("--sqlite")
|
.arg("--sqlite")
|
||||||
@@ -40,6 +41,7 @@ pub fn uid_on_allowlist(uid: i32) -> bool {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline(never)]
|
||||||
pub fn uid_on_denylist(uid: i32) -> bool {
|
pub fn uid_on_denylist(uid: i32) -> bool {
|
||||||
// TODO: uid_on_denylist
|
// TODO: uid_on_denylist
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ fn handle_daemon_action(mut stream: UnixStream, context: &Context) -> Result<()>
|
|||||||
match root_impl::get_impl() {
|
match root_impl::get_impl() {
|
||||||
root_impl::RootImpl::KernelSU => flags |= constants::PROCESS_ROOT_IS_KSU,
|
root_impl::RootImpl::KernelSU => flags |= constants::PROCESS_ROOT_IS_KSU,
|
||||||
root_impl::RootImpl::Magisk => flags |= constants::PROCESS_ROOT_IS_MAGISK,
|
root_impl::RootImpl::Magisk => flags |= constants::PROCESS_ROOT_IS_MAGISK,
|
||||||
_ => ()
|
_ => unreachable!(),
|
||||||
}
|
}
|
||||||
// TODO: PROCESS_IS_SYSUI?
|
// TODO: PROCESS_IS_SYSUI?
|
||||||
stream.write_u32(flags)?;
|
stream.write_u32(flags)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user