无法以根用户身份运行系统跟踪



我正在尝试让系统跟踪提供磁盘输出。

我已经植根了我的设备,我可以很好地切换到 adb shell 中的超级用户。

python systrace.py -d -o ~/systrace1.html 

生产

'error: tracing disk activity requires root privileges'

如果我尝试通过运行以root权限重新启动adb

adb root

我得到

'adbd cannot run as root in production builds'

可能是我只是不明白"生产构建"是什么意思。任何见解将不胜感激。

adb 来源这样做:

    property_get("ro.debuggable", value, "");
    if (strcmp(value, "1") != 0) {
        snprintf(buf, sizeof(buf), "adbd cannot run as root in production buildsn");

换句话说,如果它没有看到设置为 1 ro.debuggable,它就不会让你运行adb root。 检查您的/default.prop的内容。

最新更新