Merge "Make WallpaperMS bind wallpaper component PendingIntent immutable." into rvc-dev

This commit is contained in:
Wei Sheng Shih
2020-05-14 02:16:28 +00:00
committed by Android (Google) Code Review

View File

@@ -2743,7 +2743,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
mContext, 0, mContext, 0,
Intent.createChooser(new Intent(Intent.ACTION_SET_WALLPAPER), Intent.createChooser(new Intent(Intent.ACTION_SET_WALLPAPER),
mContext.getText(com.android.internal.R.string.chooser_wallpaper)), mContext.getText(com.android.internal.R.string.chooser_wallpaper)),
0, null, new UserHandle(serviceUserId))); PendingIntent.FLAG_IMMUTABLE, null, new UserHandle(serviceUserId)));
if (!mContext.bindServiceAsUser(intent, newConn, if (!mContext.bindServiceAsUser(intent, newConn,
Context.BIND_AUTO_CREATE | Context.BIND_SHOWING_UI Context.BIND_AUTO_CREATE | Context.BIND_SHOWING_UI
| Context.BIND_FOREGROUND_SERVICE_WHILE_AWAKE | Context.BIND_FOREGROUND_SERVICE_WHILE_AWAKE