Skip to content

Commit ae90fbc

Browse files
committed
Check for already-root during ADB setup
1 parent 6c1b37b commit ae90fbc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/interceptors/android/adb-commands.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ export async function pushFile(
144144
}
145145

146146
const runAsRootCommands = [
147+
// Maybe we're already root?
148+
(...cmd: string[]) => [...cmd],
147149
// 'su' as available on official emulators:
148150
(...cmd: string[]) => ['su', 'root', ...cmd],
149151
// Su on many physical rooted devices requires quotes:

0 commit comments

Comments
 (0)