Skip to content

Commit b7553a8

Browse files
author
bmax
committed
compat: termux's su
1 parent 2cdf5a3 commit b7553a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apd/src/cli.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ pub fn run() -> Result<()> {
7575
#[cfg(not(target_os = "android"))]
7676
env_logger::init();
7777

78-
// the kernel executes su with argv[0] = "/system/bin/kp" or "/system/bin/su" or "su" and replace it with us
78+
// the kernel executes su with argv[0] = "/system/bin/kp" or "/system/bin/su" or "su" or "kp" and replace it with us
7979
let arg0 = std::env::args().next().unwrap_or_default();
80-
if arg0 == "/system/bin/kp" || arg0 == "/system/bin/su" || arg0 == "su" {
80+
if arg0 == "/system/bin/kp" || arg0 == "/system/bin/su" || arg0 == "su" || arg0 == "kp" {
8181
return crate::apd::root_shell();
8282
}
8383

0 commit comments

Comments
 (0)