[arquillian-issues] [JBoss JIRA] (ARQ-1534) There is no way how to set server port of Android Debug Bridge

Stefan Miklosovic (JIRA) jira-events at lists.jboss.org
Fri Nov 22 10:11:07 EST 2013


    [ https://issues.jboss.org/browse/ARQ-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12926162#comment-12926162 ] 

Stefan Miklosovic commented on ARQ-1534:
----------------------------------------

[~kpiwko]

{quote}
That should be avoided. AndroidDebugBridge should be run in a separate process instead.
{quote}

The problem is that it is just a method to call and that method in is AndroidDebugBridge ddmlib Droidium depends on so there is not really any process to execute.

>From Droidium point of view we call this:

{code}
AndroidDebugBridge.initIfNeeded(false);
{code}

and this method propagates internally to method in ddmlib which gets environment property via System.getenv("ANDROID_ADB_SERVER_PORT") so that port is set. As I said, it seems there is no (sane) way how to change environment property once JVM started.

You are right about the possiblity to be able to use environment properties in arquillian.xml via ${env.SOME_ENV_PROPERTY} but how would you change some in runtime?
                
> There is no way how to set server port of Android Debug Bridge
> --------------------------------------------------------------
>
>                 Key: ARQ-1534
>                 URL: https://issues.jboss.org/browse/ARQ-1534
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Extension - Droidium
>    Affects Versions: droidium_1.0.0.Alpha2
>            Reporter: Karel Piwko
>            Assignee: Stefan Miklosovic
>
> *Given*:
> I have Android tooling installed in Eclipse/JBDS.
> *When:*
> I use Droidium in tests fro IDE.
> *Expect*:
> No having any errors in DDMS output in IDE.
> *Additional information*:
> It looks like that the problem is that Droidium does not allow to set android bridge server port and hence DDMS is already connected to given port. This leads to various errors logged, as DDMS is not prepared to handle external process changing it's environment on the fly.
> See AndroidDebugBridge.determineAndValidateAdbPort() method for more details. While Drodium allows you to change adbPort for running emulator, it always runs the bridge on default port 5037.
> We need a way how to change this server port in Droidium configuration.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the arquillian-issues mailing list