Hi all,
We need to perform tests on our webpage using different browsers on Android devices (physically, not using emulators).
We managed to have Android native browser and Chrome working but we're stuck with Firefox.
As far from now we have the following (not working) source code that creates our webdriver and Firefox 40.0.3 is already installed on our device
SelendroidConfiguration androidConfig = new SelendroidConfiguration();
SelendroidLauncher selendroidServer = new SelendroidLauncher(androidConfig);
selendroidServer.launchSelendroid();
SelendroidCapabilities capa = new SelendroidCapabilities("org.mozilla.firefox:40.0.3");
capa.setLaunchActivity("org.mozilla.gecko.BrowserApp");
return new RemoteWebDriver(capa);
What we get is the following stack and nothing happens on our device (it seems that the port forward doesn't work but we don't figure out why) :
sept. 10, 2015 5:58:34 PM io.selendroid.standalone.SelendroidLauncher launchServer
INFOS: Starting Selendroid standalone on port 4444
sept. 10, 2015 5:58:35 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\build-tools\23.0.1\aapt.exe, remove, D:\Users\Romain\AppData\Local\Temp\android-driver6749212377690626313.apk, META-INF/MANIFEST.MF]
sept. 10, 2015 5:58:35 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
<--
sept. 10, 2015 5:58:35 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\build-tools\23.0.1\aapt.exe, remove, D:\Users\Romain\AppData\Local\Temp\android-driver6749212377690626313.apk, META-INF/CERT.RSA]
sept. 10, 2015 5:58:35 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
<--
sept. 10, 2015 5:58:35 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\build-tools\23.0.1\aapt.exe, remove, D:\Users\Romain\AppData\Local\Temp\android-driver6749212377690626313.apk, META-INF/CERT.SF]
sept. 10, 2015 5:58:35 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
<--
sept. 10, 2015 5:58:35 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\build-tools\23.0.1\aapt.exe, remove, D:\Users\Romain\AppData\Local\Temp\android-driver6749212377690626313.apk, META-INF/ANDROIDD.SF]
sept. 10, 2015 5:58:35 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\build-tools\23.0.1\aapt.exe, remove, D:\Users\Romain\AppData\Local\Temp\android-driver6749212377690626313.apk, META-INF/ANDROIDD.RSA]
sept. 10, 2015 5:58:35 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\build-tools\23.0.1\aapt.exe, remove, D:\Users\Romain\AppData\Local\Temp\android-driver6749212377690626313.apk, META-INF/NDKEYSTO.SF]
sept. 10, 2015 5:58:35 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\build-tools\23.0.1\aapt.exe, remove, D:\Users\Romain\AppData\Local\Temp\android-driver6749212377690626313.apk, META-INF/NDKEYSTO.RSA]
sept. 10, 2015 5:58:35 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\JDK\jdk1.8.0_60\bin\jarsigner.exe, -sigalg, MD5withRSA, -digestalg, SHA1, -signedjar, D:\Users\Romain\AppData\Local\Temp\resigned-android-driver6749212377690626313.apk, -storepass, android, -keystore, D:\Users\Romain\.android\debug.keystore, D:\Users\Romain\AppData\Local\Temp\android-driver6749212377690626313.apk, androiddebugkey]
sept. 10, 2015 5:58:35 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
jar signed.
Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2054-01-08) or after any future revocation date.
<--
sept. 10, 2015 5:58:35 PM io.selendroid.standalone.builder.SelendroidServerBuilder signTestServer
INFOS: App signing output: jar signed.
Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2054-01-08) or after any future revocation date.
sept. 10, 2015 5:58:35 PM io.selendroid.standalone.builder.SelendroidServerBuilder signTestServer
INFOS: The app has been signed: D:\Users\Romain\AppData\Local\Temp\resigned-android-driver6749212377690626313.apk
sept. 10, 2015 5:58:39 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, shell, ls, /system/framework/*map*]
sept. 10, 2015 5:58:40 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
/system/framework/com.google.android.maps.jar
<--
sept. 10, 2015 5:58:40 PM io.selendroid.standalone.server.model.DeviceStore addDevice
INFOS: Adding: HardwareDevice [serial=c0808041abaf45f, model=null, targetVersion=null, apiTargetType=google]
sept. 10, 2015 5:58:40 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, shell, ls, /system/framework/*map*]
sept. 10, 2015 5:58:40 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
/system/framework/com.google.android.maps.jar
<--
sept. 10, 2015 5:58:40 PM io.selendroid.standalone.server.model.DeviceStore addDevice
INFOS: Adding: HardwareDevice [serial=c0808041abaf45f, model=GT-P3110, targetVersion=ANDROID16, apiTargetType=google]
sept. 10, 2015 5:58:40 PM io.selendroid.standalone.android.impl.DefaultDeviceManager initializeAdbConnection
INFOS: my devices: null
sept. 10, 2015 5:58:40 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\tools\android.bat, list, avds]
sept. 10, 2015 5:58:41 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
Available Android Virtual Devices:
<--
sept. 10, 2015 5:58:41 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, devices]
sept. 10, 2015 5:58:41 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
List of devices attached
c0808041abaf45f device
<--
sept. 10, 2015 5:58:41 PM io.selendroid.standalone.server.model.DeviceStore addEmulators
INFOS: No emulators has been found.
sept. 10, 2015 5:58:41 PM io.selendroid.standalone.server.SelendroidStandaloneServer start
INFOS: Selendroid standalone server has been started on port: 4444
log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
sept. 10, 2015 5:58:42 PM io.selendroid.standalone.server.model.SelendroidStandaloneDriver getAndroidApp
INFOS: The requested application under test is not configured in selendroid server, assuming the org.mozilla.firefox:40.0.3/org.mozilla.gecko.BrowserApp is installed on the device.
sept. 10, 2015 5:58:42 PM io.selendroid.standalone.server.model.SelendroidStandaloneDriver createNewTestSession
INFOS: 'org.mozilla.firefox:40.0.3' will be used as app under test.
sept. 10, 2015 5:58:42 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, shell, dumpsys, power]
sept. 10, 2015 5:58:42 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
Power Manager State:
mIsPowered=true mPowerState=1 mScreenOffTime=282188 ms
mPartialCount=1
mWakeLockState=SCREEN_ON_BIT
mUserState=
mPowerState=SCREEN_ON_BIT
mLocks.gather=SCREEN_ON_BIT
mNextTimeout=13975343 now=14250528 -275s from now
mDimScreen=true mStayOnConditions=3 mPreparingForScreenOn=false mSkippedScreenOn=false
mScreenOffReason=3 mUserState=0
mBroadcastQueue={-1,-1,-1}
mBroadcastWhy={0,0,0}
mPokey=0 mPokeAwakeonSet=false
mKeyboardVisible=false mUserActivityAllowed=true
mKeylightDelay=1500 mDimDelay=1791500 mScreenOffDelay=7000
mPreventScreenOn=false mScreenBrightnessOverride=-1 mButtonBrightnessOverride=-1
mScreenOffTimeoutSetting=1800000 mMaximumScreenOffTimeout=2147483647
mButtonOffTimeoutSetting=1500
mIsSipVisible=false
mLastScreenOnTime=6435827
mBroadcastWakeLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mHeld=false)
mStayOnWhilePluggedInScreenDimLock=UnsynchronizedWakeLock(mFlags=0x6 mCount=0 mHeld=true)
mStayOnWhilePluggedInPartialLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mHeld=true)
mPreventScreenOnPartialLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mHeld=false)
mProximityPartialLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mHeld=false)
mProximityWakeLockCount=0
mProximitySensorEnabled=false
mProximitySensorActive=false
mProximityPendingValue=-1
mLastProximityEventTime=0
mLightSensorEnabled=false mLightSensorAdjustSetting=0.0
mLightSensorValue=-1.0 mLightSensorPendingValue=-1.0
mHighestLightSensorValue=-1 mWaitingForFirstLightSensor=false
mLightSensorPendingDecrease=false mLightSensorPendingIncrease=false
mLightSensorScreenBrightness=-1 mLightSensorButtonBrightness=-1 mLightSensorKeyboardBrightness=-1
mLightSensorScreenBrightnessUpperLimit=-1
mLightSensorScreenBrightnessLowerLimit=-1
mUseSoftwareAutoBrightness=true
mAutoBrightessEnabled=false
mScreenBrightnessAnimator:
animating: start:137, end:10, duration:208, current:10
startSensorValue:-1 endSensorValue:-1
startTimeMillis:13968333 now:14250526
currentMask:SCREEN_BRIGHT_BIT
mMaxBrightness=-1
mIsDeviceLockTime=false
mDeviceLockTimeoutSetting=-1
mLocks.size=2:
SCREEN_DIM_WAKE_LOCK 'StayOnWhilePluggedIn Screen Dim' activated (minState=1, uid=1000, pid=323)activeT=2912451
PARTIAL_WAKE_LOCK 'StayOnWhilePluggedIn Partial' activated (minState=0, uid=1000, pid=323)activeT=2912451
mForceDisableWakeLock=false
mPokeLocks.size=0:
mDVFSLocks.size=1:
type : DVFS_MAX_LIMIT freq : 800000 elapsed time : 14205050 tag : PowerNotiReceiver <--- mCurrentDVFSMaxLock
mPersistentDVFSLocksInfo=0x1
<--
sept. 10, 2015 5:58:42 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, shell, pm, list, packages, org.mozilla.firefox]
sept. 10, 2015 5:58:43 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
package:io.selendroid.org.mozilla.firefox
package:org.mozilla.firefox
<--
sept. 10, 2015 5:58:43 PM io.selendroid.standalone.server.model.SelendroidStandaloneDriver createNewTestSession
INFOS: the app under test is already installed.
sept. 10, 2015 5:58:43 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, shell, pm, clear, org.mozilla.firefox]
sept. 10, 2015 5:58:44 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
Success
<--
sept. 10, 2015 5:58:44 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, shell, pm, list, packages, io.selendroid.org.mozilla.firefox]
sept. 10, 2015 5:58:45 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
package:io.selendroid.org.mozilla.firefox
<--
sept. 10, 2015 5:58:45 PM io.selendroid.standalone.server.model.SelendroidStandaloneDriver createNewTestSession
INFOS: Not creating and installing selendroid-server because it is already installed for this app under test.
sept. 10, 2015 5:58:45 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, shell, setprop, log.tag.SELENDROID, ERROR]
sept. 10, 2015 5:58:45 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
<--
sept. 10, 2015 5:58:45 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, shell, am, instrument, -e, main_activity, org.mozilla.gecko.BrowserApp, -e, server_port, 8080, io.selendroid.org.mozilla.firefox/io.selendroid.server.ServerInstrumentation]
sept. 10, 2015 5:58:46 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
java.lang.SecurityException: Permission Denial: starting instrumentation ComponentInfo{io.selendroid.org.mozilla.firefox/io.selendroid.server.ServerInstrumentation} from pid=17067, uid=17067 not allowed because package io.selendroid.org.mozilla.firefox does not have a signature matching the target org.mozilla.firefox
at android.os.Parcel.readException(Parcel.java:1425)
at android.os.Parcel.readException(Parcel.java:1379)
at android.app.ActivityManagerProxy.startInstrumentation(ActivityManagerNative.java:2835)
at com.android.commands.am.Am.runInstrument(Am.java:615)
at com.android.commands.am.Am.run(Am.java:118)
at com.android.commands.am.Am.main(Am.java:81)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:237)
at dalvik.system.NativeStart.main(Native Method)
<--
sept. 10, 2015 5:58:46 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, forward, tcp:8080, tcp:8080]
sept. 10, 2015 5:58:46 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, forward, --list]
sept. 10, 2015 5:58:46 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
<--
sept. 10, 2015 5:58:46 PM io.selendroid.standalone.server.model.SelendroidStandaloneDriver createNewTestSession
GRAVE: Error occurred while starting Selendroid session
io.selendroid.server.common.exceptions.SelendroidException: Could not forward port: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, forward, tcp:8080, tcp:8080]
List of forwarded ports:
at io.selendroid.standalone.android.impl.AbstractDevice.forwardPort(AbstractDevice.java:287)
at io.selendroid.standalone.android.impl.AbstractDevice.forwardSelendroidPort(AbstractDevice.java:294)
at io.selendroid.standalone.android.impl.AbstractDevice.startSelendroid(AbstractDevice.java:268)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.createNewTestSession(SelendroidStandaloneDriver.java:275)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.createNewTestSession(SelendroidStandaloneDriver.java:214)
at io.selendroid.standalone.server.handler.CreateSessionHandler.handleRequest(CreateSessionHandler.java:40)
at io.selendroid.standalone.server.BaseSelendroidStandaloneHandler.handle(BaseSelendroidStandaloneHandler.java:45)
at io.selendroid.standalone.server.SelendroidServlet.handleRequest(SelendroidServlet.java:131)
at io.selendroid.server.common.BaseServlet.handleHttpRequest(BaseServlet.java:67)
at io.selendroid.server.common.http.ServerHandler.channelRead(ServerHandler.java:53)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.handler.traffic.AbstractTrafficShapingHandler.channelRead(AbstractTrafficShapingHandler.java:223)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)
at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:148)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:125)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)
Caused by: io.selendroid.standalone.exceptions.ShellCommandException: Error executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, forward, tcp:8080, tcp:8080]
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:53)
at io.selendroid.standalone.android.impl.AbstractDevice.forwardPort(AbstractDevice.java:278)
... 30 more
Caused by: io.selendroid.standalone.exceptions.ShellCommandException: error: cannot bind to socket: No error
error: cannot bind to socket: No error
... 32 more
sept. 10, 2015 5:58:46 PM io.selendroid.standalone.server.model.DeviceStore release
INFOS: Releasing device HardwareDevice [serial=c0808041abaf45f, model=GT-P3110, targetVersion=ANDROID16, apiTargetType=google]
sept. 10, 2015 5:58:46 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, shell, am, force-stop, org.mozilla.firefox]
sept. 10, 2015 5:58:47 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
<--
sept. 10, 2015 5:58:47 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, forward, --remove, tcp:8080]
sept. 10, 2015 5:58:47 PM io.selendroid.standalone.android.impl.AbstractDevice freeSelendroidPort
AVERTISSEMENT: Could not free Selendroid port
io.selendroid.standalone.exceptions.ShellCommandException: Error executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, forward, --remove, tcp:8080]
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:53)
at io.selendroid.standalone.android.impl.AbstractDevice.freeSelendroidPort(AbstractDevice.java:220)
at io.selendroid.standalone.android.impl.AbstractDevice.kill(AbstractDevice.java:204)
at io.selendroid.standalone.server.model.DeviceStore.release(DeviceStore.java:92)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.createNewTestSession(SelendroidStandaloneDriver.java:312)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.createNewTestSession(SelendroidStandaloneDriver.java:214)
at io.selendroid.standalone.server.handler.CreateSessionHandler.handleRequest(CreateSessionHandler.java:40)
at io.selendroid.standalone.server.BaseSelendroidStandaloneHandler.handle(BaseSelendroidStandaloneHandler.java:45)
at io.selendroid.standalone.server.SelendroidServlet.handleRequest(SelendroidServlet.java:131)
at io.selendroid.server.common.BaseServlet.handleHttpRequest(BaseServlet.java:67)
at io.selendroid.server.common.http.ServerHandler.channelRead(ServerHandler.java:53)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.handler.traffic.AbstractTrafficShapingHandler.channelRead(AbstractTrafficShapingHandler.java:223)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)
at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:148)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:125)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)
Caused by: io.selendroid.standalone.exceptions.ShellCommandException: error: listener not found
error: listener not found
... 32 more
sept. 10, 2015 5:58:47 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, shell, pm, clear, org.mozilla.firefox]
sept. 10, 2015 5:58:48 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
Success
<--
sept. 10, 2015 5:58:48 PM io.selendroid.standalone.server.model.SelendroidStandaloneDriver getAndroidApp
INFOS: The requested application under test is not configured in selendroid server, assuming the org.mozilla.firefox:40.0.3/org.mozilla.gecko.BrowserApp is installed on the device.
sept. 10, 2015 5:58:48 PM io.selendroid.standalone.server.model.SelendroidStandaloneDriver createNewTestSession
INFOS: 'org.mozilla.firefox:40.0.3' will be used as app under test.
sept. 10, 2015 5:58:48 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, shell, dumpsys, power]
sept. 10, 2015 5:58:48 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
Power Manager State:
mIsPowered=true mPowerState=1 mScreenOffTime=288653 ms
mPartialCount=1
mWakeLockState=SCREEN_ON_BIT
mUserState=
mPowerState=SCREEN_ON_BIT
mLocks.gather=SCREEN_ON_BIT
mNextTimeout=13975343 now=14256994 -281s from now
mDimScreen=true mStayOnConditions=3 mPreparingForScreenOn=false mSkippedScreenOn=false
mScreenOffReason=3 mUserState=0
mBroadcastQueue={-1,-1,-1}
mBroadcastWhy={0,0,0}
mPokey=0 mPokeAwakeonSet=false
mKeyboardVisible=false mUserActivityAllowed=true
mKeylightDelay=1500 mDimDelay=1791500 mScreenOffDelay=7000
mPreventScreenOn=false mScreenBrightnessOverride=-1 mButtonBrightnessOverride=-1
mScreenOffTimeoutSetting=1800000 mMaximumScreenOffTimeout=2147483647
mButtonOffTimeoutSetting=1500
mIsSipVisible=false
mLastScreenOnTime=6435827
mBroadcastWakeLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mHeld=false)
mStayOnWhilePluggedInScreenDimLock=UnsynchronizedWakeLock(mFlags=0x6 mCount=0 mHeld=true)
mStayOnWhilePluggedInPartialLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mHeld=true)
mPreventScreenOnPartialLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mHeld=false)
mProximityPartialLock=UnsynchronizedWakeLock(mFlags=0x1 mCount=0 mHeld=false)
mProximityWakeLockCount=0
mProximitySensorEnabled=false
mProximitySensorActive=false
mProximityPendingValue=-1
mLastProximityEventTime=0
mLightSensorEnabled=false mLightSensorAdjustSetting=0.0
mLightSensorValue=-1.0 mLightSensorPendingValue=-1.0
mHighestLightSensorValue=-1 mWaitingForFirstLightSensor=false
mLightSensorPendingDecrease=false mLightSensorPendingIncrease=false
mLightSensorScreenBrightness=-1 mLightSensorButtonBrightness=-1 mLightSensorKeyboardBrightness=-1
mLightSensorScreenBrightnessUpperLimit=-1
mLightSensorScreenBrightnessLowerLimit=-1
mUseSoftwareAutoBrightness=true
mAutoBrightessEnabled=false
mScreenBrightnessAnimator:
animating: start:137, end:10, duration:208, current:10
startSensorValue:-1 endSensorValue:-1
startTimeMillis:13968333 now:14256994
currentMask:SCREEN_BRIGHT_BIT
mMaxBrightness=-1
mIsDeviceLockTime=false
mDeviceLockTimeoutSetting=-1
mLocks.size=2:
SCREEN_DIM_WAKE_LOCK 'StayOnWhilePluggedIn Screen Dim' activated (minState=1, uid=1000, pid=323)activeT=2918921
PARTIAL_WAKE_LOCK 'StayOnWhilePluggedIn Partial' activated (minState=0, uid=1000, pid=323)activeT=2918921
mForceDisableWakeLock=false
mPokeLocks.size=0:
mDVFSLocks.size=1:
type : DVFS_MAX_LIMIT freq : 800000 elapsed time : 14211521 tag : PowerNotiReceiver <--- mCurrentDVFSMaxLock
mPersistentDVFSLocksInfo=0x1
<--
sept. 10, 2015 5:58:48 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, shell, pm, list, packages, org.mozilla.firefox]
sept. 10, 2015 5:58:49 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
package:io.selendroid.org.mozilla.firefox
package:org.mozilla.firefox
<--
sept. 10, 2015 5:58:49 PM io.selendroid.standalone.server.model.SelendroidStandaloneDriver createNewTestSession
INFOS: the app under test is already installed.
sept. 10, 2015 5:58:49 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, shell, pm, clear, org.mozilla.firefox]
sept. 10, 2015 5:58:50 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
Success
<--
sept. 10, 2015 5:58:50 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, shell, pm, list, packages, io.selendroid.org.mozilla.firefox]
sept. 10, 2015 5:58:51 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
package:io.selendroid.org.mozilla.firefox
<--
sept. 10, 2015 5:58:51 PM io.selendroid.standalone.server.model.SelendroidStandaloneDriver createNewTestSession
INFOS: Not creating and installing selendroid-server because it is already installed for this app under test.
sept. 10, 2015 5:58:51 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, shell, setprop, log.tag.SELENDROID, ERROR]
sept. 10, 2015 5:58:51 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
<--
sept. 10, 2015 5:58:51 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, shell, am, instrument, -e, main_activity, org.mozilla.gecko.BrowserApp, -e, server_port, 8081, io.selendroid.org.mozilla.firefox/io.selendroid.server.ServerInstrumentation]
sept. 10, 2015 5:58:52 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
java.lang.SecurityException: Permission Denial: starting instrumentation ComponentInfo{io.selendroid.org.mozilla.firefox/io.selendroid.server.ServerInstrumentation} from pid=17157, uid=17157 not allowed because package io.selendroid.org.mozilla.firefox does not have a signature matching the target org.mozilla.firefox
at android.os.Parcel.readException(Parcel.java:1425)
at android.os.Parcel.readException(Parcel.java:1379)
at android.app.ActivityManagerProxy.startInstrumentation(ActivityManagerNative.java:2835)
at com.android.commands.am.Am.runInstrument(Am.java:615)
at com.android.commands.am.Am.run(Am.java:118)
at com.android.commands.am.Am.main(Am.java:81)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:237)
at dalvik.system.NativeStart.main(Native Method)
<--
sept. 10, 2015 5:58:52 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Executing shell command: [D:\androidSdk\platform-tools\adb.exe, -s, c0808041abaf45f, forward, tcp:8081, tcp:8081]
sept. 10, 2015 5:58:52 PM io.selendroid.standalone.io.ShellCommand exec
INFOS: Shell command output
-->
<--
sept. 10, 2015 5:58:52 PM io.selendroid.standalone.android.impl.AbstractDevice startLogging
INFOS: starting logcat:
sept. 10, 2015 5:58:52 PM io.selendroid.standalone.server.model.SelendroidStandaloneDriver waitForServerStart
INFOS: Waiting for the Selendroid server to start.
sept. 10, 2015 5:58:52 PM io.selendroid.standalone.android.impl.AbstractDevice isSelendroidRunning
INFOS: Checking if the Selendroid server is running: http://localhost:8081/wd/hub/status
sept. 10, 2015 5:58:52 PM io.selendroid.standalone.android.impl.AbstractDevice isSelendroidRunning
INFOS: Can't connect to Selendroid server, assuming it is not running.
Any idea on it ?
Thanks in advance.
RT.