Skip to content

Commit f75396d

Browse files
wilsonshihandroid-build-merge-worker-robot
authored andcommitted
Make WallpaperMS bind wallpaper component PendingIntent immutable. am: b392903
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12718696 Change-Id: I657d45a8a9358ae644cb074804242184f306292a
2 parents 9d81730 + b392903 commit f75396d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/core/java/com/android/server/wallpaper/WallpaperManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2104,7 +2104,7 @@ boolean bindWallpaperComponentLocked(ComponentName componentName, boolean force,
21042104
mContext, 0,
21052105
Intent.createChooser(new Intent(Intent.ACTION_SET_WALLPAPER),
21062106
mContext.getText(com.android.internal.R.string.chooser_wallpaper)),
2107-
0, null, new UserHandle(serviceUserId)));
2107+
PendingIntent.FLAG_IMMUTABLE, null, new UserHandle(serviceUserId)));
21082108
if (!mContext.bindServiceAsUser(intent, newConn,
21092109
Context.BIND_AUTO_CREATE | Context.BIND_SHOWING_UI
21102110
| Context.BIND_FOREGROUND_SERVICE_WHILE_AWAKE,

0 commit comments

Comments
 (0)