From 87a69e748fe787a217b9c22644591b16b63ff591 Mon Sep 17 00:00:00 2001 From: Anthony La Date: Wed, 29 Jul 2026 23:16:40 -0700 Subject: [PATCH] fix: make notification intents explicitly targeted (#570) Make notification destinations explicit in an analyzer-visible form while retaining immutable PendingIntent flags, resolving the high-severity CodeQL finding. --- .../paperize/service/wallpaper/WallpaperChangeService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/anthonyla/paperize/service/wallpaper/WallpaperChangeService.kt b/app/src/main/java/com/anthonyla/paperize/service/wallpaper/WallpaperChangeService.kt index 5b38262..0b2d794 100644 --- a/app/src/main/java/com/anthonyla/paperize/service/wallpaper/WallpaperChangeService.kt +++ b/app/src/main/java/com/anthonyla/paperize/service/wallpaper/WallpaperChangeService.kt @@ -358,7 +358,7 @@ class WallpaperChangeService : Service() { val pendingIntent = PendingIntent.getActivity( this, 0, - Intent(this, MainActivity::class.java), + Intent().setClassName(packageName, MainActivity::class.java.name), PendingIntent.FLAG_IMMUTABLE ) return NotificationCompat.Builder(this, Constants.NOTIFICATION_CHANNEL_ID) @@ -374,7 +374,7 @@ class WallpaperChangeService : Service() { val pendingIntent = PendingIntent.getActivity( this, 0, - Intent(this, MainActivity::class.java), + Intent().setClassName(packageName, MainActivity::class.java.name), PendingIntent.FLAG_IMMUTABLE ) val notification = NotificationCompat.Builder(this, Constants.NOTIFICATION_CHANNEL_ID)