Skip to content

Refactor reminder PendingIntent calls to satisfy CodeQL#30

Merged
r0073rr0r merged 1 commit intomainfrom
fix/codeql-implicit-pendingintent
Apr 20, 2026
Merged

Refactor reminder PendingIntent calls to satisfy CodeQL#30
r0073rr0r merged 1 commit intomainfrom
fix/codeql-implicit-pendingintent

Conversation

@r0073rr0r
Copy link
Copy Markdown
Contributor

Summary

  • inline PendingIntent creation at reminder call sites to make the flow explicit to static analysis
  • use explicit component intents scoped to app package
  • keep all reminder PendingIntents immutable

Why

CodeQL alerts remained open after the first hardening pass, so this change removes indirection and unknown flag flow that can confuse the analyzer.

Targets:

Verification

  • ./gradlew.bat :app:compileDebugKotlin :app:testDebugUnitTest

@r0073rr0r r0073rr0r merged commit 799dabb into main Apr 20, 2026
4 of 8 checks passed
@r0073rr0r r0073rr0r deleted the fix/codeql-implicit-pendingintent branch April 20, 2026 07:35
if (triggerAt <= 0L || noteId.isBlank()) return

val intent = Intent(context, NoteReminderReceiver::class.java).apply {
`package` = context.packageName
putExtra(ReminderConstants.EXTRA_NOTE_ID, noteId)
}
val pendingIntent = PendingIntent.getBroadcast(
context,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants