Languages

Menu
Sites
Language
Helloaccessory installation failed on Gear 2 lite

Hello everybody,

I'm trying to build and run the helloaccessy sample on my samsung galaxy s5 (android 5.0) and Samsung Gear 2 lite but I have a problem.

Tizen Side (tizen sdk for wearable Version : 1.0.0, Build id : 20140905-2017): build work fine. I created CSR, CRT,device-profile.xml and *.p12 file and i sign my app correctly.

Android Side (android studio 1.0.1): I copy the .wgt file in assets folder, build and run project but...

After many seconde i have a message "installation failed". see the log below:

D/WearableDeviceFactory? getDeviceManager() deviceID = B4:3A:28:F4:D2:76 mDeviceManagerList = {B4:3A:28:F4:D2:76=com.samsung.android.hostmanager.manager.GearDeviceManager@b43392d}
02-13 10:52:45.390    4176-5824/? D/Json obj? Json object mypayload  ={ "msgId" : "mgr_wapps_install_res", "returncode" : 2, "packagename" : "VbsgE6bms2", "isclock" : false, "appname" : "", "classname" : "", "apptype" : "false", "imagedata" : "", "from_where" : 2, "ismultifavorite" : false, "settingfilename" : "", "settingfiledata" : "" }
02-13 10:52:45.390    4176-5824/? D/HMSAPProviderService? inside try MSGID....mgr_wapps_install_res
02-13 10:52:45.390    4176-5824/? D/HMSAPProviderService? onDataAvailable() : MGR_WAPPS_INSTALL_RES
02-13 10:52:45.400    4176-5824/? D/HMSAPProviderService? handleWappsInstallResultResponse()
02-13 10:52:45.400    4176-5824/? D/HMSAPProviderService? handleWappsInstallResultResponse(), reset-->sInstallFileTransferFlag = false
02-13 10:52:45.400    4176-5824/? W/System.err? org.json.JSONException: No value for version
02-13 10:52:45.400    4176-5824/? W/System.err? at org.json.JSONObject.get(JSONObject.java:389)
02-13 10:52:45.400    4176-5824/? W/System.err? at org.json.JSONObject.getString(JSONObject.java:550)
02-13 10:52:45.400    4176-5824/? W/System.err? at com.samsung.android.hostmanager.jsonmodel.HMJSONDataModel$WappsInstallResMessage.fromJSON(HMJSONDataModel.java:1380)
02-13 10:52:45.400    4176-5824/? W/System.err? at com.samsung.android.hostmanager.service.HMSAPProviderService.handleWappsInstallResultResponse(HMSAPProviderService.java:10918)
02-13 10:52:45.400    4176-5824/? W/System.err? at com.samsung.android.hostmanager.service.HMSAPProviderService.onDataAvailable(HMSAPProviderService.java:3049)
02-13 10:52:45.400    4176-5824/? W/System.err? at com.samsung.android.hostmanager.connection.HMSAPSASocket.onReceive(HMSAPSASocket.java:350)
02-13 10:52:45.400    4176-5824/? W/System.err? at com.samsung.android.sdk.accessory.SASocket$ChannelCallback.onRead(SASocket.java:722)
02-13 10:52:45.400    4176-5824/? W/System.err? at com.samsung.accessory.api.SAServiceChannel$EventCallBackResultReceiver.onReceiveResult(SAServiceChannel.java:220)
02-13 10:52:45.400    4176-5824/? W/System.err? at android.os.ResultReceiver$MyRunnable.run(ResultReceiver.java:50)
02-13 10:52:45.400    4176-5824/? W/System.err? at android.os.Handler.handleCallback(Handler.java:739)
02-13 10:52:45.400    4176-5824/? W/System.err? at android.os.Handler.dispatchMessage(Handler.java:95)
02-13 10:52:45.400    4176-5824/? W/System.err? at android.os.Looper.loop(Looper.java:145)
02-13 10:52:45.400    4176-5824/? W/System.err? at android.os.HandlerThread.run(HandlerThread.java:61)
02-13 10:52:45.400    4176-5824/? D/HMSAPProviderService? handleWappsInstallResultResponse(), returnCode = 2
02-13 10:52:45.400    4176-5824/? D/HMSAPProviderService? handleWappsInstallResultResponse(), packageName = VbsgE6bms2
02-13 10:52:45.400    4176-5824/? D/HMSAPProviderService? handleWappsInstallResultResponse(), packageType = 2
02-13 10:52:45.400    4176-5824/? D/HMSAPProviderService? handleWappsInstallResultResponse(), where = 2
02-13 10:52:45.400    4176-5824/? D/HMSAPProviderService? handleWappsInstallResultResponse(), Installation failed.
02-13 10:52:45.400    4176-5824/? D/HMSAPProviderService? handleWappsInstallFailure(VbsgE6bms2, B4:3A:28:F4:D2:76, 2, 2)
02-13 10:52:45.400    4176-5824/? D/HMSAPProviderService? handleWappsInstallFailure()-->name: VbsgE6bms2 in [set_origin] updating to [set_update]
02-13 10:52:45.400    4176-5824/? D/HMSAPProviderService? handleWappsInstallFailure()-->Installation failed and dummy count = 1
02-13 10:52:45.420    4176-5824/? D/HMSAPProviderService? Other than wgtOnly case, install failed: hPackageName = com.samsung.android.sdk.accessory.example.helloaccessoryprovider, bPackageName = VbsgE6bms2
02-13 10:52:45.430    4176-5824/? I/HMSAPProviderService? file is deleted at: /data/data/com.samsung.android.hostmanager/files/PM_temp/SM-R381/Consumer.wgt
02-13 10:52:45.430    4176-5824/? D/HMSAPProviderService? removeProviderApp(com.samsung.android.sdk.accessory.example.helloaccessoryprovider)
02-13 10:52:45.430    4176-5824/? D/HMSAPProviderService? platform key available, uninstall provider: com.samsung.android.sdk.accessory.example.helloaccessoryprovider
02-13 10:52:45.430   4176-10111/? D/PackageController? PackageController Context : com.samsung.android.hostmanager.HMApplication@1333f2ec
02-13 10:52:45.430   4176-10111/? D/PackageController? uninstallPackage() called with packagename = com.samsung.android.sdk.accessory.example.helloaccessoryprovider
02-13 10:52:45.430    1026-2696/? D/PackageManager? START PACKAGE DELETE: observer{146445372}

 

After, application is removed from the phone and watch.

I have same error on window 7 64bit and Mac os x yosemite.

I can send more logs if necessary.

please help me !!!!

Responses

3 Replies
daniel kim

Hi

I suggest you to try to install standalone sample on the Gear2 side first as you failed to install wgt file into your Gear 2 device.

Similar thing can be happened if you mistyped the password when you regsitered your device-profile.xml.

I wish this will help you.

 

daniel kim

Hi

I suggest you to try to install standalone sample on the Gear2 side first as you failed to install wgt file into your Gear 2 device.

Similar thing can be happened if you mistyped the password when you regsitered your device-profile.xml.

I wish this will help you.

 

philippe wronski

Hi

Thank you for your answer.

I'll try to install standalone sample and I come back to you once did.

For information, I already install application on gear 2 device but without service and without problems. Just a demo app (template).

Thank you for your help.