installType property

String? installType
getter/setter pair

The type of installation to perform. Possible string values are:

  • "INSTALL_TYPE_UNSPECIFIED" : Unspecified. Defaults to AVAILABLE.
  • "PREINSTALLED" : The app is automatically installed and can be removed by the user.
  • "FORCE_INSTALLED" : The app is automatically installed regardless of a set maintenance window and can't be removed by the user.
  • "BLOCKED" : The app is blocked and can't be installed. If the app was installed under a previous policy, it will be uninstalled. This also blocks its instant app functionality.
  • "AVAILABLE" : The app is available to install.
  • "REQUIRED_FOR_SETUP" : The app is automatically installed and can't be removed by the user and will prevent setup from completion until installation is complete.
  • "KIOSK" : The app is automatically installed in kiosk mode: it's set as the preferred home intent and whitelisted for lock task mode. Device setup won't complete until the app is installed. After installation, users won't be able to remove the app. You can only set this installType for one app per policy. When this is present in the policy, status bar will be automatically disabled.If there is any app with KIOSK role, then this install type cannot be set for any app.
  • "CUSTOM" : The app can only be installed and updated via AMAPI SDK command (https://developers.google.cn/android/management/extensibility-sdk-integration).Note: This only affects fully managed devices. Play related fields minimumVersionCode, accessibleTrackIds, autoUpdateMode, installConstraint and installPriority cannot be set for the app. The app isn't available in the Play Store. The app installed on the device has applicationSource set to CUSTOM. The signing key certificate fingerprint of the app on the device must match one of the entries in ApplicationPolicy.signingKeyCerts . Otherwise, a NonComplianceDetail with APP_SIGNING_CERT_MISMATCH is reported. Changing the installType to and from CUSTOM uninstalls the existing app if its signing key certificate fingerprint doesn't match the one from the new app source. Removing the app from applications doesn't uninstall the existing app if it conforms to playStoreMode. See also customAppConfig. This is different from the Google Play Custom App Publishing (https://developers.google.cn/android/work/play/custom-app-api/get-started) feature.

Implementation

core.String? installType;