Question

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.

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top