Skip to content

Commit 4c22f6f

Browse files
feat(androidmanagement): update the API
#### androidmanagement:v1 The following keys were added: - schemas.DefaultApplication.description - schemas.DefaultApplication.id - schemas.DefaultApplication.properties.packageName.description - schemas.DefaultApplication.properties.packageName.type - schemas.DefaultApplication.type - schemas.DefaultApplicationContext.description - schemas.DefaultApplicationContext.id - schemas.DefaultApplicationContext.properties.defaultApplicationScope.description - schemas.DefaultApplicationContext.properties.defaultApplicationScope.enum - schemas.DefaultApplicationContext.properties.defaultApplicationScope.enumDescriptions - schemas.DefaultApplicationContext.properties.defaultApplicationScope.readOnly - schemas.DefaultApplicationContext.properties.defaultApplicationScope.type - schemas.DefaultApplicationContext.type - schemas.DefaultApplicationInfo.description - schemas.DefaultApplicationInfo.id - schemas.DefaultApplicationInfo.properties.defaultApplicationSettingAttempts.description - schemas.DefaultApplicationInfo.properties.defaultApplicationSettingAttempts.items.$ref - schemas.DefaultApplicationInfo.properties.defaultApplicationSettingAttempts.readOnly - schemas.DefaultApplicationInfo.properties.defaultApplicationSettingAttempts.type - schemas.DefaultApplicationInfo.properties.defaultApplicationType.description - schemas.DefaultApplicationInfo.properties.defaultApplicationType.enum - schemas.DefaultApplicationInfo.properties.defaultApplicationType.enumDescriptions - schemas.DefaultApplicationInfo.properties.defaultApplicationType.readOnly - schemas.DefaultApplicationInfo.properties.defaultApplicationType.type - schemas.DefaultApplicationInfo.properties.packageName.description - schemas.DefaultApplicationInfo.properties.packageName.readOnly - schemas.DefaultApplicationInfo.properties.packageName.type - schemas.DefaultApplicationInfo.type - schemas.DefaultApplicationSetting.description - schemas.DefaultApplicationSetting.id - schemas.DefaultApplicationSetting.properties.defaultApplicationScopes.description - schemas.DefaultApplicationSetting.properties.defaultApplicationScopes.items.enum - schemas.DefaultApplicationSetting.properties.defaultApplicationScopes.items.enumDescriptions - schemas.DefaultApplicationSetting.properties.defaultApplicationScopes.items.type - schemas.DefaultApplicationSetting.properties.defaultApplicationScopes.type - schemas.DefaultApplicationSetting.properties.defaultApplicationType.description - schemas.DefaultApplicationSetting.properties.defaultApplicationType.enum - schemas.DefaultApplicationSetting.properties.defaultApplicationType.enumDescriptions - schemas.DefaultApplicationSetting.properties.defaultApplicationType.type - schemas.DefaultApplicationSetting.properties.defaultApplications.description - schemas.DefaultApplicationSetting.properties.defaultApplications.items.$ref - schemas.DefaultApplicationSetting.properties.defaultApplications.type - schemas.DefaultApplicationSetting.type - schemas.DefaultApplicationSettingAttempt.description - schemas.DefaultApplicationSettingAttempt.id - schemas.DefaultApplicationSettingAttempt.properties.attemptOutcome.description - schemas.DefaultApplicationSettingAttempt.properties.attemptOutcome.enum - schemas.DefaultApplicationSettingAttempt.properties.attemptOutcome.enumDescriptions - schemas.DefaultApplicationSettingAttempt.properties.attemptOutcome.readOnly - schemas.DefaultApplicationSettingAttempt.properties.attemptOutcome.type - schemas.DefaultApplicationSettingAttempt.properties.packageName.description - schemas.DefaultApplicationSettingAttempt.properties.packageName.readOnly - schemas.DefaultApplicationSettingAttempt.properties.packageName.type - schemas.DefaultApplicationSettingAttempt.type - schemas.Device.properties.defaultApplicationInfo.description - schemas.Device.properties.defaultApplicationInfo.items.$ref - schemas.Device.properties.defaultApplicationInfo.readOnly - schemas.Device.properties.defaultApplicationInfo.type - schemas.Policy.properties.defaultApplicationSettings.description - schemas.Policy.properties.defaultApplicationSettings.items.$ref - schemas.Policy.properties.defaultApplicationSettings.type - schemas.SpecificNonComplianceContext.properties.defaultApplicationContext.$ref - schemas.SpecificNonComplianceContext.properties.defaultApplicationContext.description - schemas.SpecificNonComplianceContext.properties.defaultApplicationContext.readOnly - schemas.StatusReportingSettings.properties.defaultApplicationInfoReportingEnabled.description - schemas.StatusReportingSettings.properties.defaultApplicationInfoReportingEnabled.type The following keys were changed: - schemas.NonComplianceDetail.properties.specificNonComplianceReason.enum - schemas.NonComplianceDetail.properties.specificNonComplianceReason.enumDescriptions
1 parent b29f4bd commit 4c22f6f

File tree

2 files changed

+290
-3
lines changed

2 files changed

+290
-3
lines changed

discovery/androidmanagement-v1.json

Lines changed: 203 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@
12651265
}
12661266
}
12671267
},
1268-
"revision": "20250924",
1268+
"revision": "20251014",
12691269
"rootUrl": "https://androidmanagement.googleapis.com/",
12701270
"schemas": {
12711271
"AdbShellCommandEvent": {
@@ -3055,6 +3055,178 @@
30553055
},
30563056
"type": "object"
30573057
},
3058+
"DefaultApplication": {
3059+
"description": "Information about the application to be set as the default.",
3060+
"id": "DefaultApplication",
3061+
"properties": {
3062+
"packageName": {
3063+
"description": "Required. The package name that should be set as the default application. The policy is rejected if the package name is invalid.",
3064+
"type": "string"
3065+
}
3066+
},
3067+
"type": "object"
3068+
},
3069+
"DefaultApplicationContext": {
3070+
"description": "Additional context for non-compliance related to default application settings.",
3071+
"id": "DefaultApplicationContext",
3072+
"properties": {
3073+
"defaultApplicationScope": {
3074+
"description": "Output only. The scope of non-compliant default application setting.",
3075+
"enum": [
3076+
"DEFAULT_APPLICATION_SCOPE_UNSPECIFIED",
3077+
"SCOPE_FULLY_MANAGED",
3078+
"SCOPE_WORK_PROFILE",
3079+
"SCOPE_PERSONAL_PROFILE"
3080+
],
3081+
"enumDescriptions": [
3082+
"Unspecified. This value must not be used.",
3083+
"Sets the application as the default on fully managed devices.",
3084+
"Sets the application as the work profile default.Only supported for DEFAULT_BROWSER, DEFAULT_CALL_REDIRECTION, DEFAULT_CALL_SCREENING, DEFAULT_DIALER and DEFAULT_WALLET.",
3085+
"Sets the application as the personal profile default on company-owned devices with a work profile. Only pre-installed system apps can be set as the default.Only supported for DEFAULT_BROWSER, DEFAULT_DIALER, DEFAULT_SMS and DEFAULT_WALLET."
3086+
],
3087+
"readOnly": true,
3088+
"type": "string"
3089+
}
3090+
},
3091+
"type": "object"
3092+
},
3093+
"DefaultApplicationInfo": {
3094+
"description": "The default application information for a specific DefaultApplicationType.",
3095+
"id": "DefaultApplicationInfo",
3096+
"properties": {
3097+
"defaultApplicationSettingAttempts": {
3098+
"description": "Output only. Details on the default application setting attempts, in the same order as listed in defaultApplications.",
3099+
"items": {
3100+
"$ref": "DefaultApplicationSettingAttempt"
3101+
},
3102+
"readOnly": true,
3103+
"type": "array"
3104+
},
3105+
"defaultApplicationType": {
3106+
"description": "Output only. The default application type.",
3107+
"enum": [
3108+
"DEFAULT_APPLICATION_TYPE_UNSPECIFIED",
3109+
"DEFAULT_ASSISTANT",
3110+
"DEFAULT_BROWSER",
3111+
"DEFAULT_CALL_REDIRECTION",
3112+
"DEFAULT_CALL_SCREENING",
3113+
"DEFAULT_DIALER",
3114+
"DEFAULT_HOME",
3115+
"DEFAULT_SMS",
3116+
"DEFAULT_WALLET"
3117+
],
3118+
"enumDescriptions": [
3119+
"Unspecified. This value must not be used.",
3120+
"The assistant app type. This app type is only allowed to be set for SCOPE_FULLY_MANAGED.Supported on fully managed devices on Android 16 and above. A NonComplianceDetail with MANAGEMENT_MODE is reported for other management modes. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 16.",
3121+
"The browser app type.Supported on Android 16 and above. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 16.",
3122+
"The call redirection app type. This app type cannot be set for SCOPE_PERSONAL_PROFILE.Supported on Android 16 and above. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 16.",
3123+
"The call screening app type. This app type cannot be set for SCOPE_PERSONAL_PROFILE.Supported on Android 16 and above. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 16.",
3124+
"The dialer app type.Supported on fully managed devices on Android 14 and 15. A NonComplianceDetail with MANAGEMENT_MODE is reported for other management modes. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 14.Supported on all management modes on Android 16 and above.",
3125+
"The home app type. This app type is only allowed to be set for SCOPE_FULLY_MANAGED.Supported on fully managed devices on Android 16 and above. A NonComplianceDetail with MANAGEMENT_MODE is reported for other management modes. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 16.",
3126+
"The SMS app type. This app type cannot be set for SCOPE_WORK_PROFILE.Supported on company-owned devices on Android 16 and above. A NonComplianceDetail with MANAGEMENT_MODE is reported for personally-owned devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 16.",
3127+
"The wallet app type. The default application of this type applies across profiles.On a company-owned device with a work profile, admins can set the scope to SCOPE_PERSONAL_PROFILE to set a personal profile pre-installed system app as the default, or to SCOPE_WORK_PROFILE to set a work profile app as the default. It is not allowed to specify both scopes at the same time.Due to a known issue, the user may be able to change the default wallet even when this is set on a fully managed device.Supported on company-owned devices on Android 16 and above. A NonComplianceDetail with MANAGEMENT_MODE is reported for personally-owned devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 16."
3128+
],
3129+
"readOnly": true,
3130+
"type": "string"
3131+
},
3132+
"packageName": {
3133+
"description": "Output only. The package name of the current default application.",
3134+
"readOnly": true,
3135+
"type": "string"
3136+
}
3137+
},
3138+
"type": "object"
3139+
},
3140+
"DefaultApplicationSetting": {
3141+
"description": "The default application setting for a DefaultApplicationType.",
3142+
"id": "DefaultApplicationSetting",
3143+
"properties": {
3144+
"defaultApplicationScopes": {
3145+
"description": "Required. The scopes to which the policy should be applied. This list must not be empty or contain duplicates.A NonComplianceDetail with MANAGEMENT_MODE reason and DEFAULT_APPLICATION_SETTING_UNSUPPORTED_SCOPES specific reason is reported if none of the specified scopes can be applied to the management mode (e.g. a fully managed device receives a policy with only SCOPE_PERSONAL_PROFILE in the list).",
3146+
"items": {
3147+
"enum": [
3148+
"DEFAULT_APPLICATION_SCOPE_UNSPECIFIED",
3149+
"SCOPE_FULLY_MANAGED",
3150+
"SCOPE_WORK_PROFILE",
3151+
"SCOPE_PERSONAL_PROFILE"
3152+
],
3153+
"enumDescriptions": [
3154+
"Unspecified. This value must not be used.",
3155+
"Sets the application as the default on fully managed devices.",
3156+
"Sets the application as the work profile default.Only supported for DEFAULT_BROWSER, DEFAULT_CALL_REDIRECTION, DEFAULT_CALL_SCREENING, DEFAULT_DIALER and DEFAULT_WALLET.",
3157+
"Sets the application as the personal profile default on company-owned devices with a work profile. Only pre-installed system apps can be set as the default.Only supported for DEFAULT_BROWSER, DEFAULT_DIALER, DEFAULT_SMS and DEFAULT_WALLET."
3158+
],
3159+
"type": "string"
3160+
},
3161+
"type": "array"
3162+
},
3163+
"defaultApplicationType": {
3164+
"description": "Required. The app type to set the default application.",
3165+
"enum": [
3166+
"DEFAULT_APPLICATION_TYPE_UNSPECIFIED",
3167+
"DEFAULT_ASSISTANT",
3168+
"DEFAULT_BROWSER",
3169+
"DEFAULT_CALL_REDIRECTION",
3170+
"DEFAULT_CALL_SCREENING",
3171+
"DEFAULT_DIALER",
3172+
"DEFAULT_HOME",
3173+
"DEFAULT_SMS",
3174+
"DEFAULT_WALLET"
3175+
],
3176+
"enumDescriptions": [
3177+
"Unspecified. This value must not be used.",
3178+
"The assistant app type. This app type is only allowed to be set for SCOPE_FULLY_MANAGED.Supported on fully managed devices on Android 16 and above. A NonComplianceDetail with MANAGEMENT_MODE is reported for other management modes. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 16.",
3179+
"The browser app type.Supported on Android 16 and above. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 16.",
3180+
"The call redirection app type. This app type cannot be set for SCOPE_PERSONAL_PROFILE.Supported on Android 16 and above. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 16.",
3181+
"The call screening app type. This app type cannot be set for SCOPE_PERSONAL_PROFILE.Supported on Android 16 and above. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 16.",
3182+
"The dialer app type.Supported on fully managed devices on Android 14 and 15. A NonComplianceDetail with MANAGEMENT_MODE is reported for other management modes. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 14.Supported on all management modes on Android 16 and above.",
3183+
"The home app type. This app type is only allowed to be set for SCOPE_FULLY_MANAGED.Supported on fully managed devices on Android 16 and above. A NonComplianceDetail with MANAGEMENT_MODE is reported for other management modes. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 16.",
3184+
"The SMS app type. This app type cannot be set for SCOPE_WORK_PROFILE.Supported on company-owned devices on Android 16 and above. A NonComplianceDetail with MANAGEMENT_MODE is reported for personally-owned devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 16.",
3185+
"The wallet app type. The default application of this type applies across profiles.On a company-owned device with a work profile, admins can set the scope to SCOPE_PERSONAL_PROFILE to set a personal profile pre-installed system app as the default, or to SCOPE_WORK_PROFILE to set a work profile app as the default. It is not allowed to specify both scopes at the same time.Due to a known issue, the user may be able to change the default wallet even when this is set on a fully managed device.Supported on company-owned devices on Android 16 and above. A NonComplianceDetail with MANAGEMENT_MODE is reported for personally-owned devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 16."
3186+
],
3187+
"type": "string"
3188+
},
3189+
"defaultApplications": {
3190+
"description": "Required. The list of applications that can be set as the default app for a given type. This list must not be empty or contain duplicates. The first app in the list that is installed and qualified for the defaultApplicationType (e.g. SMS app for DEFAULT_SMS) is set as the default app. The signing key certificate fingerprint of the app on the device must also match one of the signing key certificate fingerprints obtained from Play Store or one of the entries in ApplicationPolicy.signingKeyCerts in order to be set as the default.If the defaultApplicationScopes contains SCOPE_FULLY_MANAGED or SCOPE_WORK_PROFILE, the app must have an entry in applications with installType set to a value other than BLOCKED.A NonComplianceDetail with APP_NOT_INSTALLED reason and DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE specific reason is reported if none of the apps in the list are installed. A NonComplianceDetail with INVALID_VALUE reason and DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE specific reason is reported if at least one app is installed but the policy fails to apply due to other reasons (e.g. the app is not of the right type).When applying to SCOPE_PERSONAL_PROFILE on a company-owned device with a work profile, only pre-installed system apps can be set as the default. A NonComplianceDetail with INVALID_VALUE reason and DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE specific reason is reported if the policy fails to apply to the personal profile.",
3191+
"items": {
3192+
"$ref": "DefaultApplication"
3193+
},
3194+
"type": "array"
3195+
}
3196+
},
3197+
"type": "object"
3198+
},
3199+
"DefaultApplicationSettingAttempt": {
3200+
"description": "Details on a default application setting attempt.",
3201+
"id": "DefaultApplicationSettingAttempt",
3202+
"properties": {
3203+
"attemptOutcome": {
3204+
"description": "Output only. The outcome of setting the app as the default.",
3205+
"enum": [
3206+
"ATTEMPT_OUTCOME_UNSPECIFIED",
3207+
"SUCCESS",
3208+
"APP_NOT_INSTALLED",
3209+
"APP_SIGNING_CERT_MISMATCH",
3210+
"OTHER_FAILURE"
3211+
],
3212+
"enumDescriptions": [
3213+
"Attempt outcome is unspecified. This is not used.",
3214+
"App is successfully set as the default.",
3215+
"Attempt failed as the app is not installed.",
3216+
"Attempt failed as the signing key certificate fingerprint of the app from Play Store or from ApplicationPolicy.signingKeyCerts does not match the one on the device.",
3217+
"Attempt failed due to other reasons."
3218+
],
3219+
"readOnly": true,
3220+
"type": "string"
3221+
},
3222+
"packageName": {
3223+
"description": "Output only. The package name of the attempted application.",
3224+
"readOnly": true,
3225+
"type": "string"
3226+
}
3227+
},
3228+
"type": "object"
3229+
},
30583230
"Device": {
30593231
"description": "A device owned by an enterprise. Unless otherwise noted, all fields are read-only and can't be modified by enterprises.devices.patch.",
30603232
"id": "Device",
@@ -3115,6 +3287,14 @@
31153287
"$ref": "CommonCriteriaModeInfo",
31163288
"description": "Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device's policy the device is company-owned."
31173289
},
3290+
"defaultApplicationInfo": {
3291+
"description": "Output only. The default application information for the DefaultApplicationType. This information is only available if defaultApplicationInfoReportingEnabled is true in the device's policy. Available on Android 16 and above.All app types are reported on fully managed devices. DEFAULT_BROWSER, DEFAULT_CALL_REDIRECTION, DEFAULT_CALL_SCREENING and DEFAULT_DIALER types are reported for the work profiles on company-owned devices with a work profile and personally-owned devices. DEFAULT_WALLET is also reported for company-owned devices with a work profile, but will only include work profile information.",
3292+
"items": {
3293+
"$ref": "DefaultApplicationInfo"
3294+
},
3295+
"readOnly": true,
3296+
"type": "array"
3297+
},
31183298
"deviceSettings": {
31193299
"$ref": "DeviceSettings",
31203300
"description": "Device settings information. This information is only available if deviceSettingsEnabled is true in the device's policy."
@@ -5263,7 +5443,9 @@
52635443
"ONC_WIFI_KEY_PAIR_ALIAS_NOT_CORRESPONDING_TO_EXISTING_KEY",
52645444
"PERMISSIBLE_USAGE_RESTRICTION",
52655445
"REQUIRED_ACCOUNT_NOT_IN_ENTERPRISE",
5266-
"NEW_ACCOUNT_NOT_IN_ENTERPRISE"
5446+
"NEW_ACCOUNT_NOT_IN_ENTERPRISE",
5447+
"DEFAULT_APPLICATION_SETTING_UNSUPPORTED_SCOPES",
5448+
"DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE"
52675449
],
52685450
"enumDescriptions": [
52695451
"Specific non-compliance reason is not specified. Fields in specific_non_compliance_context are not set.",
@@ -5277,7 +5459,9 @@
52775459
"Key pair alias specified via ClientCertKeyPairAlias (https://chromium.googlesource.com/chromium/src/+/main/components/onc/docs/onc_spec.md#eap-type) field in openNetworkConfiguration does not correspond to an existing key installed on the device. nonComplianceReason is set to INVALID_VALUE.",
52785460
"This policy setting is restricted and cannot be set for this Google Cloud Platform project. More details (including how to enable usage of this policy setting) are available in the Permissible Usage policy (https://developers.google.com/android/management/permissible-usage). nonComplianceReason is set to PROJECT_NOT_PERMITTED.",
52795461
"Work account required by the workAccountSetupConfig policy setting is not part of the enterprise anymore. nonComplianceReason is set to USER_ACTION.",
5280-
"Work account added by the user is not part of the enterprise. nonComplianceReason is set to USER_ACTION."
5462+
"Work account added by the user is not part of the enterprise. nonComplianceReason is set to USER_ACTION.",
5463+
"The default application setting is applied to the scopes that are not supported by the management mode, even if the management mode itself is supported for the app type (e.g., a policy with DEFAULT_BROWSER app type and SCOPE_PERSONAL_PROFILE list sent to a fully managed device results in the scopes being inapplicable for the management mode). If the management mode is not supported for the app type, a NonComplianceDetail with MANAGEMENT_MODE is reported, without a specificNonComplianceReason.nonComplianceReason is set to MANAGEMENT_MODE.",
5464+
"The default application setting failed to apply for a specific scope. defaultApplicationContext is set. nonComplianceReason is set to INVALID_VALUE or APP_NOT_INSTALLED."
52815465
],
52825466
"type": "string"
52835467
}
@@ -6004,6 +6188,13 @@
60046188
"description": "Whether the user is allowed to enable debugging features.",
60056189
"type": "boolean"
60066190
},
6191+
"defaultApplicationSettings": {
6192+
"description": "Optional. The default application setting for supported types. If the default application is successfully set for at least one app type on a profile, users are prevented from changing any default applications on that profile.Only one DefaultApplicationSetting is allowed for each DefaultApplicationType.See Default application settings (https://developers.google.com/android/management/default-application-settings) guide for more details.",
6193+
"items": {
6194+
"$ref": "DefaultApplicationSetting"
6195+
},
6196+
"type": "array"
6197+
},
60076198
"defaultPermissionPolicy": {
60086199
"description": "The default permission policy for runtime permission requests.",
60096200
"enum": [
@@ -7132,6 +7323,11 @@
71327323
"description": "Additional context for SpecificNonComplianceReason.",
71337324
"id": "SpecificNonComplianceContext",
71347325
"properties": {
7326+
"defaultApplicationContext": {
7327+
"$ref": "DefaultApplicationContext",
7328+
"description": "Output only. Additional context for non-compliance related to default application settings. See DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE.",
7329+
"readOnly": true
7330+
},
71357331
"oncWifiContext": {
71367332
"$ref": "OncWifiContext",
71377333
"description": "Additional context for non-compliance related to Wi-Fi configuration. See ONC_WIFI_INVALID_VALUE and ONC_WIFI_API_LEVEL"
@@ -7238,6 +7434,10 @@
72387434
"description": "Whether Common Criteria Mode reporting is enabled. This is supported only on company-owned devices.",
72397435
"type": "boolean"
72407436
},
7437+
"defaultApplicationInfoReportingEnabled": {
7438+
"description": "Optional. Whether defaultApplicationInfo reporting is enabled.",
7439+
"type": "boolean"
7440+
},
72417441
"deviceSettingsEnabled": {
72427442
"description": "Whether device settings reporting is enabled.",
72437443
"type": "boolean"

0 commit comments

Comments
 (0)