How to run an adb shell command and remain in the shell?

前端 未结 3 880
攒了一身酷
攒了一身酷 2021-01-11 12:48

Does anyone know how to run commands from adb shell and remain in shell session? What I`m trying to achieve is to set aliases in adb shell.

I have tried the followi

3条回答
  •  误落风尘
    2021-01-11 13:26

    When you run:

    adb shell ls
    

    You are running this command currently outside of ADB.

    First, you need to enter ADB:

    adb shell
    

    Once you enter ADB shell, you can continue to see output and input more commands.

    ls
    help
    

    To exit ADB, simply type "exit" or hit "Ctrl + C"

提交回复
热议问题