Is it possible to get capabilities or Android appPackage from the Appium server?

Hi,

I have to test few Android apps which have different appPackage names but they share the same appActivity name and unfortunately I cannot extract appPackage from appActivity name.

I want my test to know only appActivity and I will set appPackage on the server side which app I want to test.

The problem is element resource-id is prefixed with appPackage and I need it to find the element.

Is there a way to get capabilities set on the server or extract this package name from somewhere.
I tried find an element and getId() from it but I got “1” instead.

Thanks

I think I fixed that, should be in the next release.

Cool solution!. Thanks.