Can't run systrace as root

1.9k views Asked by At

I'm trying to get systrace to provide disk output.

I've rooted my device and I'm able to switch to superuser in adb shell just fine.

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

produces

'error: tracing disk activity requires root privileges'

If I try to restart adb with root privileges by running

adb root

I get

'adbd cannot run as root in production builds'

It may be that I'm just not understanding what's meant by "production builds". Any insight would be appreciated.

1

There are 1 answers

5
fadden On BEST ANSWER

The adb sources do this:

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

In other words, if it doesn't see ro.debuggable set to 1 it won't let you run adb root. Check the contents of your /default.prop.