@@ -122,7 +122,9 @@ class AdvancedSecurityOverrides
122122
123123 # Optional. Controls Memory Tagging Extension (MTE) (https://source.android.com/
124124 # docs/security/test/memory-safety/arm-mte) on the device. The device needs to
125- # be rebooted to apply changes to the MTE policy.
125+ # be rebooted to apply changes to the MTE policy. On Android 15 and above, a
126+ # NonComplianceDetail with PENDING is reported if the policy change is pending a
127+ # device reboot.
126128 # Corresponds to the JSON property `mtePolicy`
127129 # @return [String]
128130 attr_accessor :mte_policy
@@ -1959,6 +1961,157 @@ def update!(**args)
19591961 end
19601962 end
19611963
1964+ # Information about the application to be set as the default.
1965+ class DefaultApplication
1966+ include Google ::Apis ::Core ::Hashable
1967+
1968+ # Required. The package name that should be set as the default application. The
1969+ # policy is rejected if the package name is invalid.
1970+ # Corresponds to the JSON property `packageName`
1971+ # @return [String]
1972+ attr_accessor :package_name
1973+
1974+ def initialize ( **args )
1975+ update! ( **args )
1976+ end
1977+
1978+ # Update properties of this object
1979+ def update! ( **args )
1980+ @package_name = args [ :package_name ] if args . key? ( :package_name )
1981+ end
1982+ end
1983+
1984+ # Additional context for non-compliance related to default application settings.
1985+ class DefaultApplicationContext
1986+ include Google ::Apis ::Core ::Hashable
1987+
1988+ # Output only. The scope of non-compliant default application setting.
1989+ # Corresponds to the JSON property `defaultApplicationScope`
1990+ # @return [String]
1991+ attr_accessor :default_application_scope
1992+
1993+ def initialize ( **args )
1994+ update! ( **args )
1995+ end
1996+
1997+ # Update properties of this object
1998+ def update! ( **args )
1999+ @default_application_scope = args [ :default_application_scope ] if args . key? ( :default_application_scope )
2000+ end
2001+ end
2002+
2003+ # The default application information for a specific DefaultApplicationType.
2004+ class DefaultApplicationInfo
2005+ include Google ::Apis ::Core ::Hashable
2006+
2007+ # Output only. Details on the default application setting attempts, in the same
2008+ # order as listed in defaultApplications.
2009+ # Corresponds to the JSON property `defaultApplicationSettingAttempts`
2010+ # @return [Array<Google::Apis::AndroidmanagementV1::DefaultApplicationSettingAttempt>]
2011+ attr_accessor :default_application_setting_attempts
2012+
2013+ # Output only. The default application type.
2014+ # Corresponds to the JSON property `defaultApplicationType`
2015+ # @return [String]
2016+ attr_accessor :default_application_type
2017+
2018+ # Output only. The package name of the current default application.
2019+ # Corresponds to the JSON property `packageName`
2020+ # @return [String]
2021+ attr_accessor :package_name
2022+
2023+ def initialize ( **args )
2024+ update! ( **args )
2025+ end
2026+
2027+ # Update properties of this object
2028+ def update! ( **args )
2029+ @default_application_setting_attempts = args [ :default_application_setting_attempts ] if args . key? ( :default_application_setting_attempts )
2030+ @default_application_type = args [ :default_application_type ] if args . key? ( :default_application_type )
2031+ @package_name = args [ :package_name ] if args . key? ( :package_name )
2032+ end
2033+ end
2034+
2035+ # The default application setting for a DefaultApplicationType.
2036+ class DefaultApplicationSetting
2037+ include Google ::Apis ::Core ::Hashable
2038+
2039+ # Required. The scopes to which the policy should be applied. This list must not
2040+ # be empty or contain duplicates.A NonComplianceDetail with MANAGEMENT_MODE
2041+ # reason and DEFAULT_APPLICATION_SETTING_UNSUPPORTED_SCOPES specific reason is
2042+ # reported if none of the specified scopes can be applied to the management mode
2043+ # (e.g. a fully managed device receives a policy with only
2044+ # SCOPE_PERSONAL_PROFILE in the list).
2045+ # Corresponds to the JSON property `defaultApplicationScopes`
2046+ # @return [Array<String>]
2047+ attr_accessor :default_application_scopes
2048+
2049+ # Required. The app type to set the default application.
2050+ # Corresponds to the JSON property `defaultApplicationType`
2051+ # @return [String]
2052+ attr_accessor :default_application_type
2053+
2054+ # Required. The list of applications that can be set as the default app for a
2055+ # given type. This list must not be empty or contain duplicates. The first app
2056+ # in the list that is installed and qualified for the defaultApplicationType (e.
2057+ # g. SMS app for DEFAULT_SMS) is set as the default app. The signing key
2058+ # certificate fingerprint of the app on the device must also match one of the
2059+ # signing key certificate fingerprints obtained from Play Store or one of the
2060+ # entries in ApplicationPolicy.signingKeyCerts in order to be set as the default.
2061+ # If the defaultApplicationScopes contains SCOPE_FULLY_MANAGED or
2062+ # SCOPE_WORK_PROFILE, the app must have an entry in applications with
2063+ # installType set to a value other than BLOCKED.A NonComplianceDetail with
2064+ # APP_NOT_INSTALLED reason and DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE
2065+ # specific reason is reported if none of the apps in the list are installed. A
2066+ # NonComplianceDetail with INVALID_VALUE reason and
2067+ # DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE specific reason is reported if at
2068+ # least one app is installed but the policy fails to apply due to other reasons (
2069+ # e.g. the app is not of the right type).When applying to SCOPE_PERSONAL_PROFILE
2070+ # on a company-owned device with a work profile, only pre-installed system apps
2071+ # can be set as the default. A NonComplianceDetail with INVALID_VALUE reason and
2072+ # DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE specific reason is reported if
2073+ # the policy fails to apply to the personal profile.
2074+ # Corresponds to the JSON property `defaultApplications`
2075+ # @return [Array<Google::Apis::AndroidmanagementV1::DefaultApplication>]
2076+ attr_accessor :default_applications
2077+
2078+ def initialize ( **args )
2079+ update! ( **args )
2080+ end
2081+
2082+ # Update properties of this object
2083+ def update! ( **args )
2084+ @default_application_scopes = args [ :default_application_scopes ] if args . key? ( :default_application_scopes )
2085+ @default_application_type = args [ :default_application_type ] if args . key? ( :default_application_type )
2086+ @default_applications = args [ :default_applications ] if args . key? ( :default_applications )
2087+ end
2088+ end
2089+
2090+ # Details on a default application setting attempt.
2091+ class DefaultApplicationSettingAttempt
2092+ include Google ::Apis ::Core ::Hashable
2093+
2094+ # Output only. The outcome of setting the app as the default.
2095+ # Corresponds to the JSON property `attemptOutcome`
2096+ # @return [String]
2097+ attr_accessor :attempt_outcome
2098+
2099+ # Output only. The package name of the attempted application.
2100+ # Corresponds to the JSON property `packageName`
2101+ # @return [String]
2102+ attr_accessor :package_name
2103+
2104+ def initialize ( **args )
2105+ update! ( **args )
2106+ end
2107+
2108+ # Update properties of this object
2109+ def update! ( **args )
2110+ @attempt_outcome = args [ :attempt_outcome ] if args . key? ( :attempt_outcome )
2111+ @package_name = args [ :package_name ] if args . key? ( :package_name )
2112+ end
2113+ end
2114+
19622115 # A device owned by an enterprise. Unless otherwise noted, all fields are read-
19632116 # only and can't be modified by enterprises.devices.patch.
19642117 class Device
@@ -2009,6 +2162,19 @@ class Device
20092162 # @return [Google::Apis::AndroidmanagementV1::CommonCriteriaModeInfo]
20102163 attr_accessor :common_criteria_mode_info
20112164
2165+ # Output only. The default application information for the
2166+ # DefaultApplicationType. This information is only available if
2167+ # defaultApplicationInfoReportingEnabled is true in the device's policy.
2168+ # Available on Android 16 and above.All app types are reported on fully managed
2169+ # devices. DEFAULT_BROWSER, DEFAULT_CALL_REDIRECTION, DEFAULT_CALL_SCREENING and
2170+ # DEFAULT_DIALER types are reported for the work profiles on company-owned
2171+ # devices with a work profile and personally-owned devices. DEFAULT_WALLET is
2172+ # also reported for company-owned devices with a work profile, but will only
2173+ # include work profile information.
2174+ # Corresponds to the JSON property `defaultApplicationInfo`
2175+ # @return [Array<Google::Apis::AndroidmanagementV1::DefaultApplicationInfo>]
2176+ attr_accessor :default_application_info
2177+
20122178 # Information about security related device settings on device.
20132179 # Corresponds to the JSON property `deviceSettings`
20142180 # @return [Google::Apis::AndroidmanagementV1::DeviceSettings]
@@ -2198,6 +2364,7 @@ def update!(**args)
21982364 @applied_policy_version = args [ :applied_policy_version ] if args . key? ( :applied_policy_version )
21992365 @applied_state = args [ :applied_state ] if args . key? ( :applied_state )
22002366 @common_criteria_mode_info = args [ :common_criteria_mode_info ] if args . key? ( :common_criteria_mode_info )
2367+ @default_application_info = args [ :default_application_info ] if args . key? ( :default_application_info )
22012368 @device_settings = args [ :device_settings ] if args . key? ( :device_settings )
22022369 @disabled_reason = args [ :disabled_reason ] if args . key? ( :disabled_reason )
22032370 @displays = args [ :displays ] if args . key? ( :displays )
@@ -5245,6 +5412,16 @@ class Policy
52455412 attr_accessor :debugging_features_allowed
52465413 alias_method :debugging_features_allowed? , :debugging_features_allowed
52475414
5415+ # Optional. The default application setting for supported types. If the default
5416+ # application is successfully set for at least one app type on a profile, users
5417+ # are prevented from changing any default applications on that profile.Only one
5418+ # DefaultApplicationSetting is allowed for each DefaultApplicationType.See
5419+ # Default application settings (https://developers.google.com/android/management/
5420+ # default-application-settings) guide for more details.
5421+ # Corresponds to the JSON property `defaultApplicationSettings`
5422+ # @return [Array<Google::Apis::AndroidmanagementV1::DefaultApplicationSetting>]
5423+ attr_accessor :default_application_settings
5424+
52485425 # The default permission policy for runtime permission requests.
52495426 # Corresponds to the JSON property `defaultPermissionPolicy`
52505427 # @return [String]
@@ -5750,6 +5927,7 @@ def update!(**args)
57505927 @cross_profile_policies = args [ :cross_profile_policies ] if args . key? ( :cross_profile_policies )
57515928 @data_roaming_disabled = args [ :data_roaming_disabled ] if args . key? ( :data_roaming_disabled )
57525929 @debugging_features_allowed = args [ :debugging_features_allowed ] if args . key? ( :debugging_features_allowed )
5930+ @default_application_settings = args [ :default_application_settings ] if args . key? ( :default_application_settings )
57535931 @default_permission_policy = args [ :default_permission_policy ] if args . key? ( :default_permission_policy )
57545932 @device_connectivity_management = args [ :device_connectivity_management ] if args . key? ( :device_connectivity_management )
57555933 @device_owner_lock_screen_info = args [ :device_owner_lock_screen_info ] if args . key? ( :device_owner_lock_screen_info )
@@ -6606,6 +6784,11 @@ def update!(**args)
66066784 class SpecificNonComplianceContext
66076785 include Google ::Apis ::Core ::Hashable
66086786
6787+ # Additional context for non-compliance related to default application settings.
6788+ # Corresponds to the JSON property `defaultApplicationContext`
6789+ # @return [Google::Apis::AndroidmanagementV1::DefaultApplicationContext]
6790+ attr_accessor :default_application_context
6791+
66096792 # Additional context for non-compliance related to Wi-Fi configuration.
66106793 # Corresponds to the JSON property `oncWifiContext`
66116794 # @return [Google::Apis::AndroidmanagementV1::OncWifiContext]
@@ -6622,6 +6805,7 @@ def initialize(**args)
66226805
66236806 # Update properties of this object
66246807 def update! ( **args )
6808+ @default_application_context = args [ :default_application_context ] if args . key? ( :default_application_context )
66256809 @onc_wifi_context = args [ :onc_wifi_context ] if args . key? ( :onc_wifi_context )
66266810 @password_policies_context = args [ :password_policies_context ] if args . key? ( :password_policies_context )
66276811 end
@@ -6756,6 +6940,12 @@ class StatusReportingSettings
67566940 attr_accessor :common_criteria_mode_enabled
67576941 alias_method :common_criteria_mode_enabled? , :common_criteria_mode_enabled
67586942
6943+ # Optional. Whether defaultApplicationInfo reporting is enabled.
6944+ # Corresponds to the JSON property `defaultApplicationInfoReportingEnabled`
6945+ # @return [Boolean]
6946+ attr_accessor :default_application_info_reporting_enabled
6947+ alias_method :default_application_info_reporting_enabled? , :default_application_info_reporting_enabled
6948+
67596949 # Whether device settings reporting is enabled.
67606950 # Corresponds to the JSON property `deviceSettingsEnabled`
67616951 # @return [Boolean]
@@ -6816,6 +7006,7 @@ def update!(**args)
68167006 @application_reporting_settings = args [ :application_reporting_settings ] if args . key? ( :application_reporting_settings )
68177007 @application_reports_enabled = args [ :application_reports_enabled ] if args . key? ( :application_reports_enabled )
68187008 @common_criteria_mode_enabled = args [ :common_criteria_mode_enabled ] if args . key? ( :common_criteria_mode_enabled )
7009+ @default_application_info_reporting_enabled = args [ :default_application_info_reporting_enabled ] if args . key? ( :default_application_info_reporting_enabled )
68197010 @device_settings_enabled = args [ :device_settings_enabled ] if args . key? ( :device_settings_enabled )
68207011 @display_info_enabled = args [ :display_info_enabled ] if args . key? ( :display_info_enabled )
68217012 @hardware_status_enabled = args [ :hardware_status_enabled ] if args . key? ( :hardware_status_enabled )
0 commit comments