How to run command as background process using ADB? Adding nohup seems to work. adb shell "nohup logcat -r 2000 -f /data/local/test.log &"