Languages

Menu
Sites
Language
Gear 2 Integrated app: Warning: "Failed to install the app"

I am getting a “Failed to load the app” warning on my S3 device. (Please note I am trying use the integrated approach of installing the app on gear, as mentioned on http://img-developer.samsung.com/contents/cmm/SamsungGearApplication_GettingStarted_1.0.pdf). 

 

I am using Integrated Type application as described here: http://developer.samsung.com/samsung-gear

 

I have using the steps given at Tizen SDK > Help > Help Contents > Getting Started with Tizen Wearable > Development Environment > Tizen SDK for Wearable > Certificates

 

I am using the second option of generating the certificate-request.xml from Android Keystore. 

 

I am doing following steps:

  1. Click the 2nd Button "Generate Certificate from Android keystore" button on the Tizen IDE for Wearable toolbar. The Import Android Keystore and Generate Certificate Request dialog opens. Enter the requisite information and generate the certificate-request.xml
  2. Send the files to you guys for certificate-registration.xml
  3. Received the file certificate-registration.xml
  4. Imported the certificate-registration.xml in tizen sdk. This got loaded into my Secuirty profiles.
  5. Both author and distributor certificated got added successfully
  6. Clean and build the project again  
  7. Copied certificate-registration.xml in /home/developer folder of gear2 
  8. Copied .wgt file in "assets/" folder in native android app
  9. Connected Gear 2 and android device using the device manager
  10. Tried sample app which is working fine. Also my app is working fine on emulator (note i am using Tizen emulator and genymotion s4 emulator for device). 
  11. Installed my debug app on Galaxy S3 (this contains wgt file) signed by the same debug.keystore. (This debug.keystore was used in step 1 for generating the certificate-request.xml)
  12. I am installing the app in S3, I get the warning dialog "Failed to installed the app”. I have checked logcats but couldn’t find anything alarming.

Please let me know if i am missing something.

 

Please note HelloAccessory and all the othe sample apps are working fine. My application is also working fine on emulators.

 

Some of the log around failure 

.

.

.

05-07 22:30:55.620: D/dalvikvm(19093): GC_CONCURRENT freed 507K, 53% free 10177K/21532K, paused 2ms+4ms, total 35ms
05-07 22:30:55.630: D/HMSettingActivity(19212): getWappListPackageName return : none
05-07 22:30:55.630: D/HMSettingActivity(19212): Current DPKEY Value : none
05-07 22:30:55.630: D/HMSettingActivity(19212): Current DPKEY mPackageName : none
05-07 22:30:55.630: D/HMSettingActivity(19212): Current DPKEY mClassName : none
05-07 22:30:55.630: D/HMSettingActivity(19212): getWappListIndex classname = [none]
05-07 22:30:55.630: D/HMSettingActivity(19212): getWappListIndex mPowerKeyDoublePressing_no[0] = 
05-07 22:30:55.630: D/HMSettingActivity(19212): getWappListIndex return 0
05-07 22:30:55.630: D/HMSettingActivity(19212): Current_getWappListIndex return 0
05-07 22:30:55.630: D/HMSettingActivity(19212): getWappListString getWappListString index = [0], mPowerKeyDoublePressing_no[0] = [0]
05-07 22:30:55.630: D/HMSettingActivity(19212): getWappListString : mWappItemsList is not null
05-07 22:30:55.630: D/HMSettingActivity(19212): getWappListString mPowerKeyDoublePressing_no[0] = 0
05-07 22:30:55.630: D/HMSettingActivity(19212): getWappListString mAppName[None],
05-07 22:30:55.630: D/HMSettingActivity(19212):  mClassName[none]
05-07 22:30:55.630: D/HMSettingActivity(19212):  mPackageName[]
05-07 22:30:55.630: D/HMSettingActivity(19212): getWappListString() : None
05-07 22:30:55.630: D/HMSettingActivity(19212): Inside onStart()
05-07 22:30:55.640: D/LockPatternUtils(19212): isPcwEnable = null
05-07 22:30:55.645: I/StatusManager(19093): ST::getHostStatus()
05-07 22:30:55.645: D/StatusManager(19093): ST::fileChk=/data/data/com.samsung.android.hostmanager/files/HostStatus.xml true
05-07 22:30:55.645: I/StatusParser(19093): ST::ParseDeviceStatusFromXML()
05-07 22:30:55.700: D/dalvikvm(19093): GC_CONCURRENT freed 555K, 53% free 10133K/21532K, paused 2ms+2ms, total 24ms
05-07 22:30:55.700: D/dalvikvm(19093): WAIT_FOR_CONCURRENT_GC blocked 8ms
05-07 22:30:55.760: D/dalvikvm(19093): GC_CONCURRENT freed 506K, 53% free 10139K/21532K, paused 2ms+2ms, total 20ms
05-07 22:30:55.760: D/dalvikvm(19093): WAIT_FOR_CONCURRENT_GC blocked 5ms
05-07 22:30:55.820: I/StatusManager(19093): ST::getHostStatus()
05-07 22:30:55.820: D/StatusManager(19093): ST::fileChk=/data/data/com.samsung.android.hostmanager/files/HostStatus.xml true
05-07 22:30:55.820: I/StatusParser(19093): ST::ParseDeviceStatusFromXML()
05-07 22:30:55.865: D/dalvikvm(19093): GC_CONCURRENT freed 1016K, 53% free 10147K/21532K, paused 2ms+2ms, total 24ms
05-07 22:30:55.865: D/dalvikvm(19093): WAIT_FOR_CONCURRENT_GC blocked 11ms
05-07 22:30:56.005: D/HMSettingActivity(19212): Autolock value _ PASSWORD_QUALITY_SMARTUNLOCK : 589824
05-07 22:30:56.005: D/HMSettingActivity(19212): SupportCapabilityCheck() mIsSupportSafetyAssistance is false. So SafetyAssistance is disabled.
05-07 22:30:56.110: D/HMSettingActivity(19212): GM version Name = 2.0.14041404
05-07 22:30:56.110: D/HMSettingActivity(19212): onStart
05-07 22:30:56.110: D/HMSecondFragmentActivity(19212): HMSecondFragmentActivity onResume
05-07 22:30:56.110: D/HMSettingActivity(19212): Inside onResume
05-07 22:30:56.115: D/AbsListView(19212): unregisterIRListener() is called 
05-07 22:30:56.120: D/AbsListView(19212): unregisterIRListener() is called 
05-07 22:30:56.165: I/SurfaceFlinger(1930): id=216 createSurf (1x1),2 flag=404, IMSecondFra
05-07 22:30:56.165: D/STATUSBAR-StatusBarManagerService(2336): manageDisableList what=0x0 pkg=WindowManager.LayoutParams
05-07 22:30:56.210: W/ResourceType(2336): Skipping entry 0x7f040000 in package table 0 because it is not complex!
05-07 22:30:56.210: E/EnterpriseContainerManager(2336): ContainerPolicy Service is not yet ready!!!
05-07 22:30:56.210: D/EnterpriseDeviceManager(2336): ContainerId: 0
05-07 22:30:56.215: W/LicenseLogService(2336): log() is called by non admin
05-07 22:30:56.215: W/ResourceType(2336): Skipping entry 0x7f040001 in package table 0 because it is not complex!
05-07 22:30:56.220: V/WindowManager(2336): Window{42c736d8 u0 Keyguard}mOrientationRequetedFromKeyguard=false
05-07 22:30:56.270: V/WindowManager(2336): Window{42c736d8 u0 Keyguard}mOrientationRequetedFromKeyguard=false
05-07 22:30:56.280: D/BaseActivity(19212): onSaveInstanceState
05-07 22:30:56.285: D/HMMainFragmentActivity(19212): Gear2Plugin onStop
05-07 22:30:56.285: D/HMMainActivity(19212): CM::HMMainActivity-->onStop()
05-07 22:30:56.285: D/HostManagerInterface(19212): initConnType()
05-07 22:30:56.285: D/IUHostManager(19093): initConnType()
05-07 22:30:56.285: D/HostManager(19093): initConnType()
05-07 22:30:56.285: D/HMSAPProviderService(19093): cm::setHostManagerConnectionType() set mHMConnType = -1
05-07 22:30:56.285: D/AbsListView(19212): onVisibilityChanged() is called, visibility : 4
05-07 22:30:56.285: D/AbsListView(19212): unregisterIRListener() is called 
05-07 22:30:56.285: D/AbsListView(19212): onVisibilityChanged() is called, visibility : 4
05-07 22:30:56.285: D/AbsListView(19212): unregisterIRListener() is called 
05-07 22:30:56.285: V/WindowManager(2336): Window{42c736d8 u0 Keyguard}mOrientationRequetedFromKeyguard=false
05-07 22:30:56.290: D/SABtRfConnection(19110): Read protocol frame of length: 275
05-07 22:30:56.290: V/SABtRfConnection(19110): >>> Dispatching frame buffer to transport layer
05-07 22:30:56.290: D/SATransportManager(19110): Received a message from accessory ID: 23036
05-07 22:30:56.290: V/SANoAcknowledger(19110): Processing Data Frame for accessory 23036
05-07 22:30:56.290: D/SAReassembler(19110): UNFRAGMENTED pkt, Sending to SL
05-07 22:30:56.290: D/SASessionManager(19110): >> ReceiverDequeTask : processing session id : 169 priority : 2
05-07 22:30:56.290: V/SASocket(19093): In onRead() : Thread Name DataReceiver-103 mIsOpened true
05-07 22:30:56.290: I/SASocket(19093): Ready to receive flag enabled
05-07 22:30:56.290: V/SASocket(19093): IsFragment:false Is Last :false
05-07 22:30:56.290: V/SASocket(19093): total read272
05-07 22:30:56.290: I/HMSAPServiceConnection(19093): SAP::onReceive  Arg: channID = 103
05-07 22:30:56.290: I/HMSAPServiceConnection(19093): Single Chunk. It is not fragmented...
05-07 22:30:56.290: I/HMSAPProviderService(19093): onDataAvailable() channelId=103  { "msgId" : "mgr_wapps_install_res", "returncode" : 2, "packagename" : "6KiRx7F6po", "isclock" : false, "appname" : "", "classname" : "", "apptype" : "false", "imagedata" : "", "from_where" : 2, "ismultifavorite" : false, "settingfilename" : "", "settingfiledata" : "" }
05-07 22:30:56.290: D/Json obj(19093): Json object mypayload  ={ "msgId" : "mgr_wapps_install_res", "returncode" : 2, "packagename" : "6KiRx7F6po", "isclock" : false, "appname" : "", "classname" : "", "apptype" : "false", "imagedata" : "", "from_where" : 2, "ismultifavorite" : false, "settingfilename" : "", "settingfiledata" : "" }
05-07 22:30:56.290: D/HMSAPProviderService(19093): inside try MSGID....mgr_wapps_install_res
05-07 22:30:56.290: D/HMSAPProviderService(19093): onDataAvailable() : MGR_WAPPS_INSTALL_RES 
05-07 22:30:56.290: D/HMSAPProviderService(19093): HandleWappsInstallResultResponse()
05-07 22:30:56.290: D/HMSAPProviderService(19093): HandleWappsInstallResultResponse, reset installFileSent_noInstallResponse=false
05-07 22:30:56.295: D/HMSAPProviderService(19093): HandleWappsInstallResultResponse() packageName = 6KiRx7F6po
05-07 22:30:56.295: D/HMSAPProviderService(19093): HandleWappsInstallResultResponse() returnCode = 2
05-07 22:30:56.295: D/HMSAPProviderService(19093): HandleWappsInstallResultResponse() where = 2
05-07 22:30:56.295: D/HMSAPProviderService(19093): HandleWappsInstallResultResponse() installation failed.
05-07 22:30:56.295: D/HMSAPProviderService(19093): name:6KiRx7F6po in [set_origin] update to [set_update]
05-07 22:30:56.295: D/HMSAPProviderService(19093): HandleWappsInstallResultResponse() install fail dummy count = 1
05-07 22:30:56.305: D/HMSAPProviderService(19093): Other than wgtOnly case: hPackageName = com.expedia.bookings.debug, bPackageName = 6KiRx7F6po
05-07 22:30:56.305: D/HMSAPProviderService(19093): Noti msg: Failed to install the app.
05-07 22:30:56.310: D/PMErrorNotiReceiver(19212): PM Error show alert dialog request received.
05-07 22:30:56.310: D/PMErrorNotiReceiver(19212): com.samsung.android.gear2plugin.ACTION_INSTALL_FAIL_B_SIDE
05-07 22:30:56.315: I/power(2336): *** release_dvfs_lock : lockType : 1 
05-07 22:30:56.315: I/power(2336): *** acquire_dvfs_lock : lockType : 1  freq : 1200000 
05-07 22:30:56.315: D/SSRMv2:CustomFrequencyManagerService(2336): releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT  frequency : 1200000  uid : 1000  pid : 2336  tag : ACTIVITY_RESUME_BOOSTER@5
05-07 22:30:56.315: D/SSRMv2:CustomFrequencyManagerService(2336): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT  frequency : 1200000  uid : 1000  pid : 2336  pkgName : ACTIVITY_RESUME_BOOSTER@5
05-07 22:30:56.315: W/ActivityManager(2336): mDVFSHelper.acquire()
05-07 22:30:56.485: D/dalvikvm(2336): GC_FOR_ALLOC freed 886K, 23% free 35180K/45592K, paused 110ms, total 110ms
05-07 22:30:56.495: D/HMSecondFragmentActivity(19212): HMSecondFragmentActivity onPause
05-07 22:30:56.495: D/HMSettingActivity(19212): Inside onPause()
05-07 22:30:56.500: D/WindowManager(2336): computeScreenConfigurationLocked() set config.orientation=1 dw=720 dh=1280 Callers=com.android.server.wm.WindowManagerService.updateOrientationFromAppTokensLocked:5171 com.android.server.wm.WindowManagerService.updateOrientationFromAppTokens:5142 com.android.server.am.ActivityStack.realStartActivityLocked:1021 
05-07 22:30:56.500: D/PowerManagerService(2336): setKeyboardVisibility: false
05-07 22:30:56.510: D/PMErrorNotiActivity(19212): onCreate()
05-07 22:30:56.510: D/PMErrorNotiActivity(19212): Noti msg: Failed to install the app.

 

Responses

5 Replies
Pitter Bacher

Hi,

Have you copied the certificate-registration.xml to your Gear? That did the trick for me - after three days of "Failed to install the app" :-)

From the guidelines about registering the certificate

To install, without the Tizen IDE for Wearable, a wearable application on a wearable device on which no wearable applications have previously been installed:

  1. In the Connection Explorer, select the /home/developer folder.
  2. Copy the certificate-registration.xml file containing the DUID of the target device to the /home/developer folder of the Wearable device.

 

dutch slab

Pitter, I am having the same issue, and I'm eager to try your suggestion. How do I register my gear 2 watch into the connection manager?

Pitter Bacher

Hi,

I connected Gear 2 to the mac using the usb cable and Tizen (connection explorer) found it instantly. 

 

dutch slab

a bb, I am having the same exact issue, did you ever resolve it?

dutch slab

@Pitter, thanks! Wasn't sure if I had to somehow go through the Android device (phone for this). Also, I had to enable USB debug on the watch. I'm now in!  Thanks for your help!