문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top