user3789645
user3789645

Reputation: 91

How to type adb shell commands in one line?

I want to type multiple adb shell commands in one line,
for example, i want to type adb shell and su and cd sys together. i tried to connect them with && and &
bzw.adb shell && su && cd sys,
but it seems like not work with adb commands, but works with windows commands.
does anybody knows what is the problem?

Upvotes: 2

Views: 5031

Answers (1)

user3789645
user3789645

Reputation: 91

Sovled by myself adb shell "su -c 'cd sys'"

Upvotes: 6

Related Questions