Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 147d274f authored by Eric Sandness's avatar Eric Sandness
Browse files

Doc Change For DPM.setPermittedInputMethods

Update javadoc to say that setPermittedInputMethods only restricts the
IMEs inside the profile when called by a Profile Owner.  In the past, a
Profile Owner could restrict the IMEs used across the entire device.

Change-Id: If1df3509327ef131a21db5645d9e2378622800e6
Bug: 124291520
Test: atest android.admin.cts.DevicePolicyManagerTest
parent e4f26ef2
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -7036,9 +7036,9 @@ public class DevicePolicyManager {
     }

    /**
     * Called by a profile or device owner to set the permitted input methods services. When set by
     * a device owner or profile owner the restriction applies to all profiles of the user the
     * device owner or profile owner is an admin for. By default, the user can use any input method.
     * Called by a profile or device owner to set the permitted input methods services for this
     * user. By default, the user can use any input method.
     * <p>
     * When zero or more packages have been added, input method that are not in the list and not
     * part of the system can not be enabled by the user. This method will fail if it is called for
     * a admin that is not for the foreground user or a profile of the foreground user. Any
@@ -7047,7 +7047,7 @@ public class DevicePolicyManager {
     * Calling with a null value for the list disables the restriction so that all input methods can
     * be used, calling with an empty list disables all but the system's own input methods.
     * <p>
     * System input methods are always available to the user this method can't modify this.
     * System input methods are always available to the user - this method can't modify this.
     *
     * @param admin Which {@link DeviceAdminReceiver} this request is associated with.
     * @param packageNames List of input method package names.