user37421
user37421

Reputation: 435

How to restart adbd through computer terminal?

I use this command but I really cannot understand why it is working. I'm looking for a more clean way to restart adbd.

The command that I use and it actually works:

adb shell "( (su -c stop adbd &) && (su -c start adbd &) ) &"

I'm just looking for the best way to do this.

Upvotes: 3

Views: 9961

Answers (1)

Alex P.
Alex P.

Reputation: 31706

setprop ctl.restart adbd does that. It does require root so

adb shell su 0 setprop ctl.restart adbd

Upvotes: 6

Related Questions