Merge "Expose a testAPI in CrossProfileApps" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
76545798d7
@@ -707,6 +707,10 @@ package android.content.pm {
|
||||
field public int privateFlags;
|
||||
}
|
||||
|
||||
public class CrossProfileApps {
|
||||
method public boolean canConfigureInteractAcrossProfiles(@NonNull String);
|
||||
}
|
||||
|
||||
public class LauncherApps {
|
||||
ctor public LauncherApps(android.content.Context);
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.RequiresPermission;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.TestApi;
|
||||
import android.app.Activity;
|
||||
import android.app.AppOpsManager.Mode;
|
||||
import android.content.ComponentName;
|
||||
@@ -418,6 +419,7 @@ public class CrossProfileApps {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
public boolean canConfigureInteractAcrossProfiles(@NonNull String packageName) {
|
||||
try {
|
||||
return mService.canConfigureInteractAcrossProfiles(packageName);
|
||||
|
||||
Reference in New Issue
Block a user