Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-androidmanagement</artifactId>
<version>v1-rev20260917-2.0.0</version>
<version>v1-rev20260928-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-androidmanagement:v1-rev20260917-2.0.0'
implementation 'com.google.apis:google-api-services-androidmanagement:v1-rev20260928-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ public final class CrossDevicePolicies extends com.google.api.client.json.Generi
@com.google.api.client.util.Key
private java.lang.String nearbyNotificationStreaming;

/**
* Optional. Controls the task continuity handoff
* (https://developer.android.com/partners/android-17/features#handoff) feature. This policy
* applies to the entire device for fully managed devices, and to the work profile for devices
* with a work profile. Requires Android 17 QPR1 or higher.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String taskContinuityHandoff;

/**
* Optional. Manages video streaming of apps on the device for fully managed devices or in the
* work profile for devices with work profiles to nearby devices. This is supported on Android 13
Expand Down Expand Up @@ -90,6 +100,29 @@ public CrossDevicePolicies setNearbyNotificationStreaming(java.lang.String nearb
return this;
}

/**
* Optional. Controls the task continuity handoff
* (https://developer.android.com/partners/android-17/features#handoff) feature. This policy
* applies to the entire device for fully managed devices, and to the work profile for devices
* with a work profile. Requires Android 17 QPR1 or higher.
* @return value or {@code null} for none
*/
public java.lang.String getTaskContinuityHandoff() {
return taskContinuityHandoff;
}

/**
* Optional. Controls the task continuity handoff
* (https://developer.android.com/partners/android-17/features#handoff) feature. This policy
* applies to the entire device for fully managed devices, and to the work profile for devices
* with a work profile. Requires Android 17 QPR1 or higher.
* @param taskContinuityHandoff taskContinuityHandoff or {@code null} for none
*/
public CrossDevicePolicies setTaskContinuityHandoff(java.lang.String taskContinuityHandoff) {
this.taskContinuityHandoff = taskContinuityHandoff;
return this;
}

@Override
public CrossDevicePolicies set(String fieldName, Object value) {
return (CrossDevicePolicies) super.set(fieldName, value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,27 @@ public final class CrossProfilePolicies extends com.google.api.client.json.Gener
private java.lang.String crossProfileAppFunctions;

/**
* Whether text copied from one profile (personal or work) can be pasted in the other profile.
* Optional. Whether text copied from one profile (personal or work) can be pasted in the other
* profile.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String crossProfileCopyPaste;

/**
* Whether data from one profile (personal or work) can be shared with apps in the other profile.
* Specifically controls simple data sharing via intents. Management of other cross-profile
* communication channels, such as contact search, copy/paste, or connected work & personal apps,
* are configured separately.
* Optional. Whether data from one profile (personal or work) can be shared with apps in the other
* profile. Specifically controls simple data sharing via intents. Management of other cross-
* profile communication channels, such as contact search, copy/paste, or connected work &
* personal apps, are configured separately.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String crossProfileDataSharing;

/**
* List of apps which are excluded from the ShowWorkContactsInPersonalProfile setting. For this to
* be set, ShowWorkContactsInPersonalProfile must be set to one of the following values:
* SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED. In this case, these exemptions act as a
* Optional. List of apps which are excluded from the ShowWorkContactsInPersonalProfile setting.
* For this to be set, ShowWorkContactsInPersonalProfile must be set to one of the following
* values: SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED. In this case, these exemptions act as a
* blocklist. SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED. In this case, these exemptions
* act as an allowlist. SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM. In this
* case, these exemptions act as an allowlist, in addition to the already allowlisted system
Expand All @@ -72,16 +73,16 @@ public final class CrossProfilePolicies extends com.google.api.client.json.Gener
private PackageNameList exemptionsToShowWorkContactsInPersonalProfile;

/**
* Whether personal apps can access contacts stored in the work profile.See also
* Optional. Whether personal apps can access contacts stored in the work profile.See also
* exemptions_to_show_work_contacts_in_personal_profile.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String showWorkContactsInPersonalProfile;

/**
* Specifies the default behaviour for work profile widgets. If the policy does not specify
* work_profile_widgets for a specific application, it will behave according to the value
* Optional. Specifies the default behaviour for work profile widgets. If the policy does not
* specify work_profile_widgets for a specific application, it will behave according to the value
* specified here.
* The value may be {@code null}.
*/
Expand All @@ -108,15 +109,17 @@ public CrossProfilePolicies setCrossProfileAppFunctions(java.lang.String crossPr
}

/**
* Whether text copied from one profile (personal or work) can be pasted in the other profile.
* Optional. Whether text copied from one profile (personal or work) can be pasted in the other
* profile.
* @return value or {@code null} for none
*/
public java.lang.String getCrossProfileCopyPaste() {
return crossProfileCopyPaste;
}

/**
* Whether text copied from one profile (personal or work) can be pasted in the other profile.
* Optional. Whether text copied from one profile (personal or work) can be pasted in the other
* profile.
* @param crossProfileCopyPaste crossProfileCopyPaste or {@code null} for none
*/
public CrossProfilePolicies setCrossProfileCopyPaste(java.lang.String crossProfileCopyPaste) {
Expand All @@ -125,21 +128,21 @@ public CrossProfilePolicies setCrossProfileCopyPaste(java.lang.String crossProfi
}

/**
* Whether data from one profile (personal or work) can be shared with apps in the other profile.
* Specifically controls simple data sharing via intents. Management of other cross-profile
* communication channels, such as contact search, copy/paste, or connected work & personal apps,
* are configured separately.
* Optional. Whether data from one profile (personal or work) can be shared with apps in the other
* profile. Specifically controls simple data sharing via intents. Management of other cross-
* profile communication channels, such as contact search, copy/paste, or connected work &
* personal apps, are configured separately.
* @return value or {@code null} for none
*/
public java.lang.String getCrossProfileDataSharing() {
return crossProfileDataSharing;
}

/**
* Whether data from one profile (personal or work) can be shared with apps in the other profile.
* Specifically controls simple data sharing via intents. Management of other cross-profile
* communication channels, such as contact search, copy/paste, or connected work & personal apps,
* are configured separately.
* Optional. Whether data from one profile (personal or work) can be shared with apps in the other
* profile. Specifically controls simple data sharing via intents. Management of other cross-
* profile communication channels, such as contact search, copy/paste, or connected work &
* personal apps, are configured separately.
* @param crossProfileDataSharing crossProfileDataSharing or {@code null} for none
*/
public CrossProfilePolicies setCrossProfileDataSharing(java.lang.String crossProfileDataSharing) {
Expand All @@ -148,9 +151,9 @@ public CrossProfilePolicies setCrossProfileDataSharing(java.lang.String crossPro
}

/**
* List of apps which are excluded from the ShowWorkContactsInPersonalProfile setting. For this to
* be set, ShowWorkContactsInPersonalProfile must be set to one of the following values:
* SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED. In this case, these exemptions act as a
* Optional. List of apps which are excluded from the ShowWorkContactsInPersonalProfile setting.
* For this to be set, ShowWorkContactsInPersonalProfile must be set to one of the following
* values: SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED. In this case, these exemptions act as a
* blocklist. SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED. In this case, these exemptions
* act as an allowlist. SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM. In this
* case, these exemptions act as an allowlist, in addition to the already allowlisted system
Expand All @@ -163,9 +166,9 @@ public PackageNameList getExemptionsToShowWorkContactsInPersonalProfile() {
}

/**
* List of apps which are excluded from the ShowWorkContactsInPersonalProfile setting. For this to
* be set, ShowWorkContactsInPersonalProfile must be set to one of the following values:
* SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED. In this case, these exemptions act as a
* Optional. List of apps which are excluded from the ShowWorkContactsInPersonalProfile setting.
* For this to be set, ShowWorkContactsInPersonalProfile must be set to one of the following
* values: SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED. In this case, these exemptions act as a
* blocklist. SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED. In this case, these exemptions
* act as an allowlist. SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM. In this
* case, these exemptions act as an allowlist, in addition to the already allowlisted system
Expand All @@ -179,7 +182,7 @@ public CrossProfilePolicies setExemptionsToShowWorkContactsInPersonalProfile(Pac
}

/**
* Whether personal apps can access contacts stored in the work profile.See also
* Optional. Whether personal apps can access contacts stored in the work profile.See also
* exemptions_to_show_work_contacts_in_personal_profile.
* @return value or {@code null} for none
*/
Expand All @@ -188,7 +191,7 @@ public java.lang.String getShowWorkContactsInPersonalProfile() {
}

/**
* Whether personal apps can access contacts stored in the work profile.See also
* Optional. Whether personal apps can access contacts stored in the work profile.See also
* exemptions_to_show_work_contacts_in_personal_profile.
* @param showWorkContactsInPersonalProfile showWorkContactsInPersonalProfile or {@code null} for none
*/
Expand All @@ -198,8 +201,8 @@ public CrossProfilePolicies setShowWorkContactsInPersonalProfile(java.lang.Strin
}

/**
* Specifies the default behaviour for work profile widgets. If the policy does not specify
* work_profile_widgets for a specific application, it will behave according to the value
* Optional. Specifies the default behaviour for work profile widgets. If the policy does not
* specify work_profile_widgets for a specific application, it will behave according to the value
* specified here.
* @return value or {@code null} for none
*/
Expand All @@ -208,8 +211,8 @@ public java.lang.String getWorkProfileWidgetsDefault() {
}

/**
* Specifies the default behaviour for work profile widgets. If the policy does not specify
* work_profile_widgets for a specific application, it will behave according to the value
* Optional. Specifies the default behaviour for work profile widgets. If the policy does not
* specify work_profile_widgets for a specific application, it will behave according to the value
* specified here.
* @param workProfileWidgetsDefault workProfileWidgetsDefault or {@code null} for none
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,53 +32,54 @@
public final class KioskCustomization extends com.google.api.client.json.GenericJson {

/**
* Specifies whether the Settings app is allowed in kiosk mode.
* Optional. Specifies whether the Settings app is allowed in kiosk mode.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String deviceSettings;

/**
* Sets the behavior of a device in kiosk mode when a user presses and holds (long-presses) the
* Power button.
* Optional. Sets the behavior of a device in kiosk mode when a user presses and holds (long-
* presses) the Power button.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String powerButtonActions;

/**
* Specifies whether system info and notifications are disabled in kiosk mode.
* Optional. Specifies whether system info and notifications are disabled in kiosk mode.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String statusBar;

/**
* Specifies whether system error dialogs for crashed or unresponsive apps are blocked in kiosk
* mode. When blocked, the system will force-stop the app as if the user chooses the "close app"
* option on the UI.
* Optional. Specifies whether system error dialogs for crashed or unresponsive apps are blocked
* in kiosk mode. When blocked, the system will force-stop the app as if the user chooses the
* "close app" option on the UI.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String systemErrorWarnings;

/**
* Specifies which navigation features are enabled (e.g. Home, Overview buttons) in kiosk mode.
* Optional. Specifies which navigation features are enabled (e.g. Home, Overview buttons) in
* kiosk mode.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String systemNavigation;

/**
* Specifies whether the Settings app is allowed in kiosk mode.
* Optional. Specifies whether the Settings app is allowed in kiosk mode.
* @return value or {@code null} for none
*/
public java.lang.String getDeviceSettings() {
return deviceSettings;
}

/**
* Specifies whether the Settings app is allowed in kiosk mode.
* Optional. Specifies whether the Settings app is allowed in kiosk mode.
* @param deviceSettings deviceSettings or {@code null} for none
*/
public KioskCustomization setDeviceSettings(java.lang.String deviceSettings) {
Expand All @@ -87,17 +88,17 @@ public KioskCustomization setDeviceSettings(java.lang.String deviceSettings) {
}

/**
* Sets the behavior of a device in kiosk mode when a user presses and holds (long-presses) the
* Power button.
* Optional. Sets the behavior of a device in kiosk mode when a user presses and holds (long-
* presses) the Power button.
* @return value or {@code null} for none
*/
public java.lang.String getPowerButtonActions() {
return powerButtonActions;
}

/**
* Sets the behavior of a device in kiosk mode when a user presses and holds (long-presses) the
* Power button.
* Optional. Sets the behavior of a device in kiosk mode when a user presses and holds (long-
* presses) the Power button.
* @param powerButtonActions powerButtonActions or {@code null} for none
*/
public KioskCustomization setPowerButtonActions(java.lang.String powerButtonActions) {
Expand All @@ -106,15 +107,15 @@ public KioskCustomization setPowerButtonActions(java.lang.String powerButtonActi
}

/**
* Specifies whether system info and notifications are disabled in kiosk mode.
* Optional. Specifies whether system info and notifications are disabled in kiosk mode.
* @return value or {@code null} for none
*/
public java.lang.String getStatusBar() {
return statusBar;
}

/**
* Specifies whether system info and notifications are disabled in kiosk mode.
* Optional. Specifies whether system info and notifications are disabled in kiosk mode.
* @param statusBar statusBar or {@code null} for none
*/
public KioskCustomization setStatusBar(java.lang.String statusBar) {
Expand All @@ -123,19 +124,19 @@ public KioskCustomization setStatusBar(java.lang.String statusBar) {
}

/**
* Specifies whether system error dialogs for crashed or unresponsive apps are blocked in kiosk
* mode. When blocked, the system will force-stop the app as if the user chooses the "close app"
* option on the UI.
* Optional. Specifies whether system error dialogs for crashed or unresponsive apps are blocked
* in kiosk mode. When blocked, the system will force-stop the app as if the user chooses the
* "close app" option on the UI.
* @return value or {@code null} for none
*/
public java.lang.String getSystemErrorWarnings() {
return systemErrorWarnings;
}

/**
* Specifies whether system error dialogs for crashed or unresponsive apps are blocked in kiosk
* mode. When blocked, the system will force-stop the app as if the user chooses the "close app"
* option on the UI.
* Optional. Specifies whether system error dialogs for crashed or unresponsive apps are blocked
* in kiosk mode. When blocked, the system will force-stop the app as if the user chooses the
* "close app" option on the UI.
* @param systemErrorWarnings systemErrorWarnings or {@code null} for none
*/
public KioskCustomization setSystemErrorWarnings(java.lang.String systemErrorWarnings) {
Expand All @@ -144,15 +145,17 @@ public KioskCustomization setSystemErrorWarnings(java.lang.String systemErrorWar
}

/**
* Specifies which navigation features are enabled (e.g. Home, Overview buttons) in kiosk mode.
* Optional. Specifies which navigation features are enabled (e.g. Home, Overview buttons) in
* kiosk mode.
* @return value or {@code null} for none
*/
public java.lang.String getSystemNavigation() {
return systemNavigation;
}

/**
* Specifies which navigation features are enabled (e.g. Home, Overview buttons) in kiosk mode.
* Optional. Specifies which navigation features are enabled (e.g. Home, Overview buttons) in
* kiosk mode.
* @param systemNavigation systemNavigation or {@code null} for none
*/
public KioskCustomization setSystemNavigation(java.lang.String systemNavigation) {
Expand Down
Loading
Loading