How to run Alljoyn Self-Certification Tool?

asked 2015-05-01 03:30:48 -0700

umeshagarwal61 gravatar image

updated 2015-05-13 03:03:58 -0700


I am starting with Alljoyn Self certification process to test my Alljoyn service which are running on Raspberry Pi.So for that purpose I am following below link

So as they mentioned in this link, I had done with my setup of JDK and Android SDK on windows system.And I have downloaded "AllseenValidation14.12.00b.02.apk" and installed it on my Android Tablet.So now I am getting some problems in running this apk using adb shell through my system.And I am also getting confusion that how it will detect our alljoyn device to certify it.

So please try to give suggestions so that I can proceed further with this process.

Thanks & Regards, -Umesh

edit retag flag offensive close merge delete


Regarding 'some problems in running this apk using adb shell', the question does not have enough details to know what is going on. Please be more specific and report the exact errors, you are observing when attempting to run Validation tool via adb. Also check whether device allows untrusted apps.

praveenb ( 2015-05-02 19:39:21 -0700 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2015-05-02 19:40:29 -0700

praveenb gravatar image

updated 2015-10-20 17:11:11 -0700

The way the Validation tool detects the AllJoyn application is via a Core functionality termed as About. You can find information on AllJoyn About here: https://allseenalliance.org/framework...

Your AllJoyn application must advertise itself using About announcement, for it to be discovered by Validation tool. The Validation tool using a mechanism called as Who-Implements (a particular interface, in this case org.alljoyn.About), can discover all nearby applications that have emitted About announcement.

Since there can be multiple applications running in the network, Validation tool requires some parameters unique to your application to interact exclusively and run the self-certification tests. These unique parameters are AppId and DeviceId, which your application should have mandatorily set when composing About metadata that is part of About announcement. AppId and DeviceId must be passed as parameters to the adb command that invokes the Validation tool to run self-certification tests. You might have already referred this wiki page: https://wiki.allseenalliance.org/cert...

edit flag offensive delete publish link more

answered 2015-05-04 01:42:24 -0700

OscarCastaneda gravatar image

updated 2015-05-13 07:00:56 -0700

Hi Umesh,

As mentioned before, we would appreciate if you can explain further which problems you are having with the tool.

You need to know your application DeviceId and AppId in order to run the tests. The tool can also help you to obtain DeviceId and AppId values.

You can get the user guide of the tool at https://wiki.allseenalliance.org/_media/certification/self_certification_tool_users_guide_14.12.pdf

Hi Umesh, Could you try with the commands as specified in the user guide and let us know the output, as for example to run test case About-v1-01:

adb shell am instrument -w -e appId 5b7a70f0-fd5b-49be-8e0a-9640f49cd587 -e deviceId 5b7a70f0-fd5b-49be-8e0a-9640f49cd597 -e testSuiteList org.alljoyn.validation.testing.suites.about.AboutTestSuite -e testCaseName About-v1-01 org.alljoyn.validation.validation_tests.validation_tests_it/org.alljoyn.validation.testing.instrument.ValidationInstrumentationTestRunner

-- This issue is solved now (reported by Umesh by email --

edit flag offensive delete publish link more


As in this document it mentioned that we can't run 'Validation apk' directly from our Android Device for that we have to connect Android device to our PC using USB and we have to use 'adb shell' to run this app.And whenever I am using "ddms" to check logs its is not detecting Validation App So I am thinking that this app is not running in my Android Device. So first I was trying to run our "AllseenValidation14.12.00b.02.apk" by passing following command :- "adb shell am start org.alljoyn.validation.validation_tests.validation_tests_it/org.alljoyn.validation.testing.instrument.ValidationInstrumentationTestActivity" For this command I got following output :- ErroR while running the apk: "Permission Denial: starting Intent { flg=0x10000000 cmp=org.alljoyn.validation.validation_tests.validation_tests_it/org.alljoyn.validation.testing.instrument.ValidationInstrumentationTestActivity } from null (pid=20088, uid=2000) not exported from uid 10142" So once check this. Thanks, Umesh

umeshagarwal61 ( 2015-05-13 03:00:44 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-05-01 03:30:48 -0700

Seen: 429 times

Last updated: Oct 20 '15