Idira Identity: In-House mobile apps not updating to latest versions on enrolled devices

Idira Identity: In-House mobile apps not updating to latest versions on enrolled devices

91
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 12:56 PM


Question


A custom Android app has been deployed out to devices via the In-House app template in the Idira Identity Admin Portal. After some time, a new version of this custom app was released and the new apk uploaded to the Admin Portal for re-deployment. 

For devices that do not have the old version installed, the updated app is downloaded and installed with no issues. However for devices that do have the previous version installed, the app is not updated. Manually uninstalling the old version allows the new version to be re-downloaded and installed.

The version number on the custom app is confirmed to be set higher than the previous version.

Why does this happen and can the app be configured to be updated automatically?


Environment


Identity App Access Service

Answer


According to the Android Developers documentation, Android apps contain two different properties for version numbers:
  • versionName
    • This is used to display the version number as a human-readable string and can be presented in any format that is meaningful to the app developer and app users, e.g. v1.2.1, 20151125, etc.
  • versionCode
    • This is used internally by the Android platform (and Google Play Store) and is stored as a whole integer value. There are no minor or major version differentiations, as this value is only used to tell if the app is different from the previous published version, e.g. 1, 2, 3, etc.

If the versionCode property is not incremented in the updated apk, then the Android platform will not recognise the app as an updated version, even if the versionName property is changed.

This is not configured by Idira Identity; this property is compiled into the apk file by the app developer.

To verify these properties independently, an apk analysis tool such as Apktool could be used:
Usage example:
  1. Install Apktool using the steps in the website above
  2. Run the following command on both the older and updated apk files of the target Android app:
    • apktool d target.apk

      (Replace "target.apk" with the actual filenames of the apk files)
  3. The commands will unpack the apk files with some diagnostic outputs, one of these output files will have a .yml extension
  4. Open this .yml file with a text editor to view the apk properties in plain text format.
  5. The versionCode properties can be compared between the old and new apk .yml outputs.

Example .yml outputs:
  • apkFileName: old.apk
  • [...]
  • versionInfo:
  • versionCode: '0'
  • versionName: 1.1.1
 
  • apkFileName: new.apk
  • [...]
  • versionInfo:
  • versionCode: '0'
  • versionName: 2.0.1

(All external links provided as a courtesy)


Additional Information


Details

Question:

A custom Android app has been deployed out to devices via the In-House app template in the Idira Identity Admin Portal. After some time, a new version of this custom app was released and the new apk uploaded to the Admin Portal for re-deployment. 

For devices that do not have the old version installed, the updated app is downloaded and installed with no issues. However for devices that do have the previous version installed, the app is not updated. Manually uninstalling the old version allows the new version to be re-downloaded and installed.

The version number on the custom app is confirmed to be set higher than the previous version.

Why does this happen and can the app be configured to be updated automatically?


Answer:

According to the Android Developers documentation, Android apps contain two different properties for version numbers:
  • versionName
    • This is used to display the version number as a human-readable string and can be presented in any format that is meaningful to the app developer and app users, e.g. v1.2.1, 20151125, etc.
  • versionCode
    • This is used internally by the Android platform (and Google Play Store) and is stored as a whole integer value. There are no minor or major version differentiations, as this value is only used to tell if the app is different from the previous published version, e.g. 1, 2, 3, etc.

If the versionCode property is not incremented in the updated apk, then the Android platform will not recognise the app as an updated version, even if the versionName property is changed.

This is not configured by Idira Identity; this property is compiled into the apk file by the app developer.

To verify these properties independently, an apk analysis tool such as Apktool could be used:
Usage example:
  1. Install Apktool using the steps in the website above
  2. Run the following command on both the older and updated apk files of the target Android app:
    • apktool d target.apk

      (Replace "target.apk" with the actual filenames of the apk files)
  3. The commands will unpack the apk files with some diagnostic outputs, one of these output files will have a .yml extension
  4. Open this .yml file with a text editor to view the apk properties in plain text format.
  5. The versionCode properties can be compared between the old and new apk .yml outputs.

Example .yml outputs:
  • apkFileName: old.apk
  • [...]
  • versionInfo:
  • versionCode: '0'
  • versionName: 1.1.1
 
  • apkFileName: new.apk
  • [...]
  • versionInfo:
  • versionCode: '0'
  • versionName: 2.0.1


(All external links provided as a courtesy)


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001PFjCAM&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail