Merge "Fix device admin access with permission checks." into udc-dev
This commit is contained in:
@@ -6413,7 +6413,7 @@ public class DevicePolicyManager {
|
|||||||
public void lockNow(@LockNowFlag int flags) {
|
public void lockNow(@LockNowFlag int flags) {
|
||||||
if (mService != null) {
|
if (mService != null) {
|
||||||
try {
|
try {
|
||||||
mService.lockNow(flags, mParentInstance);
|
mService.lockNow(flags, mContext.getPackageName(), mParentInstance);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
throw e.rethrowFromSystemServer();
|
throw e.rethrowFromSystemServer();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ interface IDevicePolicyManager {
|
|||||||
void setRequiredStrongAuthTimeout(in ComponentName who, String callerPackageName, long timeMs, boolean parent);
|
void setRequiredStrongAuthTimeout(in ComponentName who, String callerPackageName, long timeMs, boolean parent);
|
||||||
long getRequiredStrongAuthTimeout(in ComponentName who, int userId, boolean parent);
|
long getRequiredStrongAuthTimeout(in ComponentName who, int userId, boolean parent);
|
||||||
|
|
||||||
void lockNow(int flags, boolean parent);
|
void lockNow(int flags, String callerPackageName, boolean parent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param factoryReset only applicable when `targetSdk >= U`, either tries to factoryReset/fail or removeUser/fail otherwise
|
* @param factoryReset only applicable when `targetSdk >= U`, either tries to factoryReset/fail or removeUser/fail otherwise
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user