cancel
Showing results for 
Search instead for 
Did you mean: 

"Afaria has stopped working on your device" error with Android devices

former_member196814
Active Participant
0 Kudos

I am facing one error with some android devices enrolled in Afaria 7 SP4 environment.

Some Android users are getting Afaria client error on their devices randomly: " Unfortunately, Afaria has stopped working on your device "

below are the details of those Android devices:

Motorola Moto X

Android version 4.4.2 (KitKat)

Samsung Galaxy S 5

Android version 4.4.2 (KitKat)


Is there any workaround or hotfix to remove this error. Appreciate your views.


Regards

Rahul

Message was edited by: Michael Appleby

Accepted Solutions (1)

Accepted Solutions (1)

former_member196814
Active Participant
0 Kudos

Applying the latest hotfix resolved this issue.

Regards

Rahul

Answers (1)

Answers (1)

nick_mackerness
Participant
0 Kudos

Hi Rahul

Can you tell me if you're using the newest Afaria Android client?  We released an updated version in the Play store recently.  The latest one is 6.60.6410.

An issue was corrected in this release which was causing the Afaria client to crash, when switching between cellular and WiFi networks, could this be the scenario your users are experiencing?

If you are running the latest client and the data switch scenario I mentioned is not applicable, we may need to capture some debug, so it can identified which exception is being thrown.

Regards

Nick

former_member196814
Active Participant
0 Kudos

Hi Nick

Thanks for your inputs.

Yes the Users are using the newest Afaria Android client 6.60.6410 .

Data switch scenario is not the issue here.

I also checked all other scenarios causing Afaria client to crash( as mentioned in the newest release of Afaria client)

please help me to debug this exception.

Regards

Rahul

former_member196814
Active Participant
0 Kudos

Hi Nick,

I am not able to debug the Android device since the server is on cloud and i cannot connect the device using USB cord( As per the instructions provided in SCN doc for debugging).

Is there any other way to debug devices(Without connecting via Data cord)

Appreciate your help.

Regards

Rahul

nick_mackerness
Participant
0 Kudos

Hi Rahul

Are you referring to the guide here?

How to Debug Android Device Instructions - SAP Mobility - SCN Wiki

If so, you do not need access to the Afaria Server, just any computer to which you can connect the Android device via USB cable plus the Android SDK installed.

As your devices are running KitKat, it's not so easy to read system logs on the device, unless you have Root permissions or are using a System app.  Google stopped apps using the READ_LOGS permission to read other apps log data in Jelly Bean for security/privacy purposes.

Regards

Nick

former_member196814
Active Participant
0 Kudos

Hi Nick,

Yes i am referring to the same document.

OK I got your point.

Can you please tell me how can i provide root permissions to allow reading afaria client app logs.

Regards

rahul

nick_mackerness
Participant
0 Kudos

Hi Rahul

Rooting is beyond the scope of this forum, but you should be able to pull the logs using ADB as described in that document, as it should have the required permission.

Regards

Nick

former_member196814
Active Participant
0 Kudos

Hi Nick,

Yes i am trying it via using ADB but according to document when i am trying to push the debug file on device under mnt>>sd card It is not showing up there. I mean i am not getting the AfariaLogSetting.dbg file on device.

Any idea why it is not getting pushed on  device.

Regards

Rahul

nick_mackerness
Participant
0 Kudos

Hi Rahul

If the push is problematic, you can also open the Windows File Explorer while the Android device is plugged into your computer via USB, and select your Android device and open the device folder. Then, copy the AfariaLogSettings.dbg file to the root of the SD Card.

Regards

Nick

former_member196814
Active Participant
0 Kudos

Hi Nick,

Below are the debugging log details. the error was noticed around 10:44 am.

Please let me know if you find anything relevant. I can also see some logs related to Network issue.

believe you can explain me better.

06-04-14 10:04:20|i|ClientProperties: GET(B) - cronConnectOnConnectivity:false

06-04-14 10:04:20|d|Session: Heartbeat Connect on Connectivity = False

06-04-14 10:04:20|v|Session: Extra NO CONNECTIVITY: true

06-04-14 10:04:20|v|Session: NetworkInfo: type: WIFI[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: <unknown ssid>, roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false

06-04-14 10:04:20|v|Session: NetworkInfo: null

06-04-14 10:04:20|i|ClientProperties: GET(B) - cronConnectOnConnectivity:false

06-04-14 10:04:20|d|Session: Heartbeat Connect on Connectivity = False

06-04-14 10:04:20|v|Session: Extra NO CONNECTIVITY: true

06-04-14 10:04:20|v|Session: NetworkInfo: type: WIFI[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: <unknown ssid>, roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false

06-04-14 10:04:20|v|Session: NetworkInfo: null

06-04-14 10:04:21|i|ClientProperties: GET(B) - cronConnectOnConnectivity:false

06-04-14 10:04:21|d|Session: Heartbeat Connect on Connectivity = False

06-04-14 10:04:21|v|Session: Extra NO CONNECTIVITY: false

06-04-14 10:04:21|v|Session: NetworkInfo: type: mobile[LTE], state: CONNECTED/CONNECTED, reason: connected, extra: VZWINTERNET, roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false

06-04-14 10:04:21|v|Session: NetworkInfo: null

06-04-14 10:04:21|i|ClientProperties: GET(B) - cronConnectOnConnectivity:false

06-04-14 10:04:21|d|Session: Heartbeat Connect on Connectivity = False

06-04-14 10:04:21|v|Session: Extra NO CONNECTIVITY: false

06-04-14 10:04:21|v|Session: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "WiFi", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false

06-04-14 10:04:21|v|Session: NetworkInfo: null

06-04-14 10:04:21|i|ClientProperties: GET(B) - cronConnectOnConnectivity:false

06-04-14 10:04:21|d|Session: Heartbeat Connect on Connectivity = False

06-04-14 10:04:21|v|Session: Extra NO CONNECTIVITY: false

06-04-14 10:04:21|v|Session: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "WiFi", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false

06-04-14 10:04:21|v|Session: NetworkInfo: null

06-04-14 10:04:21|i|ClientProperties: GET(B) - cronConnectOnConnectivity:false

06-04-14 10:04:21|d|Session: Heartbeat Connect on Connectivity = False

06-04-14 10:04:22|v|Session: Extra NO CONNECTIVITY: false

06-04-14 10:04:22|v|Session: NetworkInfo: type: mobile[LTE], state: DISCONNECTED/DISCONNECTED, reason: dataDisabled, extra: VZWINTERNET, roaming: false, failover: true, isAvailable: true, isConnectedToProvisioningNetwork: false

06-04-14 10:04:22|v|Session: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "WiFi", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false

06-04-14 10:04:22|i|ClientProperties: GET(B) - cronConnectOnConnectivity:false

06-04-14 10:04:22|d|Session: Heartbeat Connect on Connectivity = False

06-04-14 10:04:22|v|Session: Extra NO CONNECTIVITY: false

06-04-14 10:04:22|v|Session: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "WiFi", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false

06-04-14 10:04:22|v|Session: NetworkInfo: null

06-04-14 10:13:53|i|ClientProperties: GET(S) - ClientPropertiesTimestamp:06.03.2014 04:50

06-04-14 10:13:53|i|ClientProperties: GET(B) - cronEnabled:false

06-04-14 10:13:53|i|ClientProperties: GET(B) - Remediation_Policy_Processed:true

06-04-14 10:13:53|i|ClientProperties: GET(B) - Remediation_Policy_Processed:true

06-04-14 10:13:53|i|ClientProperties: GET(B) - Device_Compliant:true

06-04-14 10:13:53|i|ClientProperties: GET(S) - Remediation_Cause:

06-04-14 10:13:53|i|ClientProperties: GET(B) - Disable_Admin_Remediation:false

06-04-14 10:13:53|i|ClientProperties: GET(B) - Disable_Pass_Remediation:false

06-04-14 10:13:53|i|ClientProperties: GET(B) - Device_Rooted_Remediation:true

06-04-14 10:13:53|i|ClientProperties: GET(S) - ClientPropertiesTimestamp:06.03.2014 04:50

06-04-14 10:13:53|i|ClientProperties: GET(B) - device_rooted:false

06-04-14 10:13:53|i|ClientProperties: SET(B) - device_rooted : false

06-04-14 10:22:21|i|ClientProperties: GET(S) - ClientPropertiesTimestamp:06.03.2014 04:50

06-04-14 10:22:21|i|ClientProperties: GET(B) - cronEnabled:false

06-04-14 10:22:21|i|ClientProperties: GET(B) - Remediation_Policy_Processed:true

06-04-14 10:22:21|i|ClientProperties: GET(B) - Remediation_Policy_Processed:true

06-04-14 10:22:21|i|ClientProperties: GET(B) - Device_Compliant:true

06-04-14 10:22:21|i|ClientProperties: GET(S) - Remediation_Cause:

06-04-14 10:22:21|i|ClientProperties: GET(B) - Disable_Admin_Remediation:false

06-04-14 10:22:21|i|ClientProperties: GET(B) - Disable_Pass_Remediation:false

06-04-14 10:22:21|i|ClientProperties: GET(B) - Device_Rooted_Remediation:true

06-04-14 10:22:21|i|ClientProperties: GET(S) - ClientPropertiesTimestamp:06.03.2014 04:50

06-04-14 10:22:21|i|ClientProperties: GET(B) - device_rooted:false

06-04-14 10:22:21|i|ClientProperties: SET(B) - device_rooted : false

06-04-14 10:22:59|i|ClientProperties: GET(S) - ClientPropertiesTimestamp:06.03.2014 04:50

06-04-14 10:22:59|i|ClientProperties: GET(B) - cronEnabled:false

06-04-14 10:22:59|i|ClientProperties: GET(B) - Remediation_Policy_Processed:true

06-04-14 10:22:59|i|ClientProperties: GET(B) - Remediation_Policy_Processed:true

06-04-14 10:22:59|i|ClientProperties: GET(B) - Device_Compliant:true

06-04-14 10:22:59|i|ClientProperties: GET(S) - Remediation_Cause:

06-04-14 10:22:59|i|ClientProperties: GET(B) - Disable_Admin_Remediation:false

06-04-14 10:22:59|i|ClientProperties: GET(B) - Disable_Pass_Remediation:false

06-04-14 10:22:59|i|ClientProperties: GET(B) - Device_Rooted_Remediation:true

06-04-14 10:22:59|i|ClientProperties: GET(S) - ClientPropertiesTimestamp:06.03.2014 04:50

06-04-14 10:22:59|i|ClientProperties: GET(B) - device_rooted:false

06-04-14 10:22:59|i|ClientProperties: SET(B) - device_rooted : false

06-04-14 10:22:59|i|ClientProperties: GET(S) - ClientPropertiesTimestamp:06.03.2014 04:50

06-04-14 10:22:59|i|ClientProperties: GET(B) - cronEnabled:false

06-04-14 10:22:59|i|ClientProperties: GET(B) - Remediation_Policy_Processed:true

06-04-14 10:22:59|i|ClientProperties: GET(B) - Remediation_Policy_Processed:true

06-04-14 10:22:59|i|ClientProperties: GET(B) - Device_Compliant:true

06-04-14 10:22:59|i|ClientProperties: GET(S) - Remediation_Cause:

06-04-14 10:22:59|i|ClientProperties: GET(B) - Disable_Admin_Remediation:false

06-04-14 10:22:59|i|ClientProperties: GET(B) - Disable_Pass_Remediation:false

06-04-14 10:22:59|i|ClientProperties: GET(B) - Device_Rooted_Remediation:true

06-04-14 10:22:59|i|ClientProperties: GET(S) - ClientPropertiesTimestamp:06.03.2014 04:50

06-04-14 10:22:59|i|ClientProperties: GET(B) - device_rooted:false

06-04-14 10:22:59|i|ClientProperties: SET(B) - device_rooted : false

06-04-14 10:22:59|i|ClientProperties: GET(S) - ClientPropertiesTimestamp:06.03.2014 04:50

06-04-14 10:22:59|i|ClientProperties: GET(B) - cronEnabled:false

06-04-14 10:22:59|i|ClientProperties: GET(B) - Remediation_Policy_Processed:true

06-04-14 10:22:59|i|ClientProperties: GET(B) - Remediation_Policy_Processed:true

06-04-14 10:22:59|i|ClientProperties: GET(B) - Device_Compliant:true

06-04-14 10:22:59|i|ClientProperties: GET(S) - Remediation_Cause:

06-04-14 10:22:59|i|ClientProperties: GET(B) - Disable_Admin_Remediation:false

06-04-14 10:22:59|i|ClientProperties: GET(B) - Disable_Pass_Remediation:false

06-04-14 10:22:59|i|ClientProperties: GET(B) - Device_Rooted_Remediation:true

06-04-14 10:22:59|i|ClientProperties: GET(S) - ClientPropertiesTimestamp:06.03.2014 04:50

06-04-14 10:22:59|i|ClientProperties: GET(B) - device_rooted:false

06-04-14 10:22:59|i|ClientProperties: SET(B) - device_rooted : false

06-04-14 10:34:32|i|ClientProperties: GET(B) - cronConnectOnConnectivity:false

06-04-14 10:34:32|d|Session: Heartbeat Connect on Connectivity = False

06-04-14 10:34:32|v|Session: Extra NO CONNECTIVITY: true

06-04-14 10:34:32|v|Session: NetworkInfo: type: WIFI[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: <unknown ssid>, roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false

06-04-14 10:34:32|v|Session: NetworkInfo: null

06-04-14 10:34:32|i|ClientProperties: GET(B) - cronConnectOnConnectivity:false

06-04-14 10:34:32|d|Session: Heartbeat Connect on Connectivity = False

06-04-14 10:34:32|v|Session: Extra NO CONNECTIVITY: true

06-04-14 10:34:32|v|Session: NetworkInfo: type: WIFI[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: <unknown ssid>, roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false

06-04-14 10:34:32|v|Session: NetworkInfo: null

06-04-14 10:34:33|i|ClientProperties: GET(B) - cronConnectOnConnectivity:false

06-04-14 10:34:33|d|Session: Heartbeat Connect on Connectivity = False

06-04-14 10:34:33|v|Session: Extra NO CONNECTIVITY: false

06-04-14 10:34:33|v|Session: NetworkInfo: type: mobile[LTE], state: CONNECTED/CONNECTED, reason: connected, extra: VZWINTERNET, roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false

06-04-14 10:34:33|v|Session: NetworkInfo: null

06-04-14 10:34:33|i|ClientProperties: GET(B) - cronConnectOnConnectivity:false

06-04-14 10:34:33|d|Session: Heartbeat Connect on Connectivity = False

06-04-14 10:34:33|v|Session: Extra NO CONNECTIVITY: false

06-04-14 10:34:33|v|Session: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "WiFi", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false

06-04-14 10:34:33|v|Session: NetworkInfo: null

06-04-14 10:34:33|i|ClientProperties: GET(B) - cronConnectOnConnectivity:false

06-04-14 10:34:33|d|Session: Heartbeat Connect on Connectivity = False

06-04-14 10:34:33|v|Session: Extra NO CONNECTIVITY: false

06-04-14 10:34:33|v|Session: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "WiFi", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false

06-04-14 10:34:33|v|Session: NetworkInfo: null

06-04-14 10:34:34|i|ClientProperties: GET(B) - cronConnectOnConnectivity:false

06-04-14 10:34:34|d|Session: Heartbeat Connect on Connectivity = False

06-04-14 10:34:34|v|Session: Extra NO CONNECTIVITY: false

06-04-14 10:34:34|v|Session: NetworkInfo: type: mobile[LTE], state: DISCONNECTED/DISCONNECTED, reason: dataDisabled, extra: VZWINTERNET, roaming: false, failover: true, isAvailable: true, isConnectedToProvisioningNetwork: false

06-04-14 10:34:34|v|Session: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "WiFi", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false

06-04-14 10:34:34|i|ClientProperties: GET(B) - cronConnectOnConnectivity:false

06-04-14 10:34:34|d|Session: Heartbeat Connect on Connectivity = False

06-04-14 10:34:34|v|Session: Extra NO CONNECTIVITY: false

06-04-14 10:34:34|v|Session: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "WiFi", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false

06-04-14 10:34:34|v|Session: NetworkInfo: null

06-04-14 10:38:09|i|ClientProperties: GET(B) - PasswordSecurity.AllowAfariaScreenShots:false

06-04-14 10:38:09|i|ClientProperties: GET(S) - ClientPropertiesTimestamp:06.03.2014 04:50

06-04-14 10:38:09|v|ClientProperties: GETENCRYPTED(S) - EncryptInternalStorage

06-04-14 10:38:12|v|Apps: destroyItem 0

06-04-14 10:48:16|i|ClientProperties: GET(B) - EnableDebugLog:true

06-04-14 10:48:16|i|Afaria: onCreate()

06-04-14 10:48:16|v|ClientProperties: GETENCRYPTED(S) - PrivateKey

06-04-14 10:48:16|i|ClientProperties: GET(B) - cronEnabled:false

06-04-14 10:48:17|i|ClientProperties: GET(S) - ClientPropertiesTimestamp:06.03.2014 04:50

06-04-14 10:48:17|v|ClientProperties: GETENCRYPTED(S) - EncryptInternalStorage

06-04-14 10:48:17|v|ClientProperties: GETENCRYPTED(S) - serverIP

06-04-14 10:48:17|i|ClientProperties: GET(B) - seed_data_flag:true

06-04-14 10:48:17|v|ClientProperties: GETENCRYPTED(S) - appServerIP

Regards

Rahul

nick_mackerness
Participant
0 Kudos

Hi Rahul

If this Afaria log reflects the time when a crash happened, we see some WiFi network state changes here, which is the bug that was fixed in client 6.60.6410.

Do you think you can also get the LogCat from the device using the Android SDK depicted in the document previously referenced, so we can see crashes from an Android OS exception level?

Regards

Nick