Explictly Grant Background Activity Launch permission.
This is to fix tests that fail without granting BAL privileges from the creator's side. Test: atest MultiDisplayActivityLaunchTests ModelMultiCallbacksTest PreSimpleSaveActivityTest SimpleSaveActivityTest Bug: 261780465 Change-Id: Ic29b19412dbb0d7b9b9dd1dbc67a7534a6c1ba28
This commit is contained in:
@@ -3163,8 +3163,9 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
|
||||
}
|
||||
}
|
||||
|
||||
final ActivityOptions clientOptions = ActivityOptions.makeBasic();
|
||||
clientOptions.setIgnorePendingIntentCreatorForegroundState(true);
|
||||
final ActivityOptions clientOptions = ActivityOptions.makeBasic()
|
||||
.setPendingIntentCreatorBackgroundActivityStartMode(
|
||||
ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_DENIED);
|
||||
PendingIntent clientIntent = PendingIntent.getActivityAsUser(
|
||||
mContext, 0, Intent.createChooser(
|
||||
new Intent(Intent.ACTION_SET_WALLPAPER),
|
||||
|
||||
Reference in New Issue
Block a user