0

我正在尝试让 systrace 提供磁盘输出。

我已经植根了我的设备,并且可以在 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'

可能是我只是不理解“生产构建”的含义。任何见解将不胜感激。

4

1 回答 1

1

adb 来源这样做:

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

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

于 2013-09-13T20:32:50.150 回答