adb hell命令(不是拼写错误)

EvZ*_*EvZ 23 android adb

我对ADB有疑问,有谁知道:
adb shell&adb hell命令之间有什么区别?

我想知道除了"地狱般的"终端颜色(仅在Linux上,在Windows中你只是得到一些前缀)还有其他差异吗?
认真检查自己.

在此输入图像描述

laa*_*lto 24

阅读来源:

if(!strcmp(argv[0], "shell") || !strcmp(argv[0], "hell")) {
    int r;
    int fd;

    char h = (argv[0][0] == 'h');

    if (h) {
        printf("\x1b[41;33m");
        fflush(stdout);
    }

    if(argc < 2) {
        D("starting interactive shell\n");
        r = interactive_shell();
        if (h) {
            printf("\x1b[0m");
            fflush(stdout);
        }
Run Code Online (Sandbox Code Playgroud)

...

            if (h) {
                printf("\x1b[0m");
                fflush(stdout);
            }
Run Code Online (Sandbox Code Playgroud)

此代码确认如果shellhell命令以a开头,h则输出用于更改终端颜色的额外控制序列,但不输出任何其他内容.