Skip to content

Commit d04f7dc

Browse files
committed
Improve compatibility of Android root-detection for Frida
1 parent c130570 commit d04f7dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interceptors/android/adb-commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export async function pushFile(
163163
}
164164

165165
export async function isProbablyRooted(deviceClient: Adb.DeviceClient) {
166-
return run(deviceClient, ['which', 'su'], { timeout: 500, skipLogging: true })
166+
return run(deviceClient, ['command', '-v', 'su'], { timeout: 500 })
167167
.then((result) => result.includes('/su'))
168168
.catch(() => false);
169169
}

0 commit comments

Comments
 (0)