Skip to content

feat(island): add OTP notification handler filtering - #1386

Open
isaacsa51 wants to merge 3 commits into
sameerasw:developfrom
isaacsa51:feat/island/otp_plugin_handler
Open

isaacsa51 wants to merge 3 commits into
sameerasw:developfrom
isaacsa51:feat/island/otp_plugin_handler

Conversation

@isaacsa51

@isaacsa51 isaacsa51 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Description

Given any code that matches the regex for a OTP code or Single Code sign in, show island with copy and dismiss info with the code on the island.

That way if the user have the android heads up turn off via app, the Island gracefully show it to the user with different option to show from.

If the user enables this feature, in case that the app still don't have the Shizuku permission, once enable the user will be prompted to grant permission since android censors this types of notification since Android 14 afaik, granting access with ADB, shizuku or root obvs will enable island to show this info.

Type of change

  • Bug fix
  • New feature
  • UI / visual update
  • Performance improvement
  • Refactoring / cleanup
  • Translations
  • Build / CI tooling

UI changes

Showing island and code with default options and line peek mode:

Screen_recording_20261014_222457.mp4

while OTP testing can be difficult, this was tested using a real device using adb commands to mimick different cases of codes, arranging from 3 to 8 char codes, google OTPS like G-12345 and also depending on the email, long text still sometimes will match the logic, this depends on the notification data and it's preview to see if it's contain this.

Checklist

Before submitting, please make sure:

  • The base branch is set to develop (not main).
  • The app builds cleanly locally with ./gradlew assembleDebug.
  • Unit tests pass with ./gradlew testDebugUnitTest.
  • You tested the changes on a device or emulator (including Shizuku or Root if applicable).
  • New preferences use SettingsRepository for keys and getter/setter methods.
  • New user-facing settings are registered in FeatureRegistry.kt for search indexing.
  • New UI follows the design system in ui/core/ (RoundedCardContainer, IconToggleItem, etc.).
  • Strings are added to res/values/strings.xml and drawables use rounded variants (R.drawable.rounded_*).

@isaacsa51
isaacsa51 marked this pull request as ready for review October 15, 2026 05:37
@isaacsa51
isaacsa51 requested a review from sameerasw as a code owner October 15, 2026 05:37
@sameerasw

Copy link
Copy Markdown
Owner

Hi @isaacsa51 can you resolve the conflicts with new changes?

@sameerasw
sameerasw marked this pull request as draft October 15, 2026 12:25
@isaacsa51
isaacsa51 marked this pull request as ready for review October 15, 2026 18:56
@isaacsa51

Copy link
Copy Markdown
Contributor Author

ready now @sameerasw

…plugin_handler

# Conflicts:
#	app/src/main/java/com/sameerasw/essentials/island/plugins/notifications/NotificationsPlugin.kt
#	app/src/main/java/com/sameerasw/essentials/ui/features/display/IslandSubSettingsUI.kt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants