IBM Support

PI69951: REGISTERDEVICE API MAY CAUSE APPLICATION HANG ON ANDROID IF REQUIRED PERMISSIONS ARE MISSING

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In an Android application that doesn't include all necessary
    Android application permissions in the Android application
    manifest, use of the registerDevice API may cause the
    application to hang.
    

Local fix

  • Ensure that all of the following permissions are included in
    the AndroidManifest.xml file for the application, outside of
    the "<application>" tag:
    
    <uses-permission android:name="android.permission.INTERNET" />
       <uses-permission
    android:name="android.permission.ACCESS_WIFI_STATE"
    />
       <uses-permission android:name="android.permission.GET_TASKS"
    />
       <uses-permission android:name="android.permission.WAKE_LOCK"
    />
    
       <!-- GCM Permissions -->
       <uses-permission
    android:name="com.google.android.c2dm.permission.RECEIVE" />
       <permission
           android:name="<Customer's
    package>.permission.C2D_MESSAGE"
           android:protectionLevel="signature" />
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Android app users.                                           *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * REGISTERDEVICE API MAY CAUSE APPLICATION HANG ON ANDROID IF  *
    * REQUIRED PERMISSIONS ARE MISSING                             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Required check added.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI69951

  • Reported component name

    MOBILE1ST PLATF

  • Reported component ID

    5725I4301

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-09-29

  • Closed date

    2016-11-16

  • Last modified date

    2016-11-16

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    MOBILE1ST PLATF

  • Fixed component ID

    5725I4301

Applicable component levels

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"800","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 November 2016