How to run command as background process using ADB?

前端 未结 2 928
无人共我
无人共我 2021-02-15 23:43

I am trying to run logcat in background using adb.

adb shell \"logcat -r 2000 -f /data/local/test.log &\"

But it does not work. If I do ad

2条回答
  •  梦毁少年i
    2021-02-16 00:15

    Adding nohup seems to work.
    adb shell "nohup logcat -r 2000 -f /data/local/test.log &"

提交回复
热议问题