Unhide getLockTaskPackages
getLockTaskPackages is currently hidden, and can only be called by a device or profile owner, which doesn't make much sense. Unhidding it to be consistent with the rest of the DevicePolicyManager APIs that have a getter for each setter. Bug: 34614754 Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_affiliatedSecondaryUser Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_unaffiliatedUser Test: Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_deviceOwnerUser Change-Id: I6e03c2f47c0f9e7a635e798a1bf7f131a8e37c65
This commit is contained in:
@@ -6195,6 +6195,7 @@ package android.app.admin {
|
||||
method public java.lang.CharSequence getDeviceOwnerLockScreenInfo();
|
||||
method public java.util.List<byte[]> getInstalledCaCerts(android.content.ComponentName);
|
||||
method public int getKeyguardDisabledFeatures(android.content.ComponentName);
|
||||
method public java.lang.String[] getLockTaskPackages(android.content.ComponentName);
|
||||
method public java.lang.CharSequence getLongSupportMessage(android.content.ComponentName);
|
||||
method public int getMaximumFailedPasswordsForWipe(android.content.ComponentName);
|
||||
method public long getMaximumTimeToLock(android.content.ComponentName);
|
||||
|
||||
@@ -6406,6 +6406,7 @@ package android.app.admin {
|
||||
method public java.lang.CharSequence getDeviceOwnerOrganizationName();
|
||||
method public java.util.List<byte[]> getInstalledCaCerts(android.content.ComponentName);
|
||||
method public int getKeyguardDisabledFeatures(android.content.ComponentName);
|
||||
method public java.lang.String[] getLockTaskPackages(android.content.ComponentName);
|
||||
method public java.lang.CharSequence getLongSupportMessage(android.content.ComponentName);
|
||||
method public int getMaximumFailedPasswordsForWipe(android.content.ComponentName);
|
||||
method public long getMaximumTimeToLock(android.content.ComponentName);
|
||||
|
||||
@@ -6216,6 +6216,7 @@ package android.app.admin {
|
||||
method public long getLastBugReportRequestTime();
|
||||
method public long getLastNetworkLogRetrievalTime();
|
||||
method public long getLastSecurityLogRetrievalTime();
|
||||
method public java.lang.String[] getLockTaskPackages(android.content.ComponentName);
|
||||
method public java.lang.CharSequence getLongSupportMessage(android.content.ComponentName);
|
||||
method public int getMaximumFailedPasswordsForWipe(android.content.ComponentName);
|
||||
method public long getMaximumTimeToLock(android.content.ComponentName);
|
||||
|
||||
@@ -6108,8 +6108,6 @@ public class DevicePolicyManager {
|
||||
* @throws SecurityException if {@code admin} is not the device owner, or the profile owner of
|
||||
* an affiliated user or profile.
|
||||
* @see #setLockTaskPackages
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public @NonNull String[] getLockTaskPackages(@NonNull ComponentName admin) {
|
||||
throwIfParentInstance("getLockTaskPackages");
|
||||
|
||||
@@ -8610,9 +8610,6 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function returns the list of components allowed to start the task lock mode.
|
||||
*/
|
||||
@Override
|
||||
public String[] getLockTaskPackages(ComponentName who) {
|
||||
Preconditions.checkNotNull(who, "ComponentName is null");
|
||||
|
||||
Reference in New Issue
Block a user