Assigned
Status Update
Comments
du...@google.com <du...@google.com> #2
This looks like the task is failing to run as root as you described (note the uid).
When you run adb shell su 0 /data/local/tmp/lockClocks.sh
manually, does it ask you for a password by any chance?
One alternative also worth trying - if you first run adb root
to reboot adbd as root, does that allow the Gradle task to run successfully?
kr...@gmail.com <kr...@gmail.com> #3
Faced the same problem, gradle task fails with same error.
As an alternative to adb shell
into the device, I was able to run shell script with this one-liner: adb shell su 0 -c "/data/local/tmp/lockClocks.sh"
Description
When I run
./gradlew lockClocks
on my rooted Moto G5, the command consistently fails with> Timeout waiting for /Users/mcomella/Library/Android/sdk/platform-tools/adb shell su 0 /data/local/tmp/lockClocks.sh
.It seems to work if I
adb shell
into the device, runsu
, and then run the script (and this is the workaround I've been using).I followed the instructions inhttps://medium.com/androiddevelopers/testing-app-startup-performance-36169c27ee55 to figure out how to add Benchmark.
If this is a bug in the library, we would appreciate if you could attach: