[android-developers] Re: ICS: unlock screen in jUnit

2011-12-16 Thread Jakub Czaplicki
Hi David, Yes, that's what I tried. I guess I'd need to add the DISABLE_KEYGUARD permisson to the app that I am driving using jUnit, but I want to avoid code modification. At the moment the app only needs to be resigned before tests. I've written a separate app that unlocks the screen, and once t

[android-developers] ICS: unlock screen in jUnit

2011-12-13 Thread Jakub Czaplicki
Hi All, Is there a way to unlock the screen after boot-up in jUnit ? I tried the deprecated keyguardManager.newKeyguardLock() method. I've set the required DISABLE_KEYGUARD permission in jUnit manifest, but the test still claims : "java.lang.SecurityException: Requires DISABLE_KEYGUARD permission

[android-developers] monkeyrunner via TCP

2011-10-18 Thread Jakub Czaplicki
When connecting monkeyrunner to a device via TCP, it throws up the "Adb rejected adb port forwarding command: unknown host service" error. I can successfully talk to the device using just adb (adb shell, install, push, pull etc.) Is there something that I am forgetting to set ? Should I start ADB