Skip to content

android: add Live Update notification and popup toggles#561

Open
thisisAcidic wants to merge 6 commits intokavishdevar:mainfrom
thisisAcidic:popup-customization-clean
Open

android: add Live Update notification and popup toggles#561
thisisAcidic wants to merge 6 commits intokavishdevar:mainfrom
thisisAcidic:popup-customization-clean

Conversation

@thisisAcidic
Copy link
Copy Markdown
Contributor

Adds three options in Settings under a new "Popup Animations" section:

  1. Toggle to disable the bottom-sheet popup that appears on every connection.
  2. Toggle to disable the Dynamic Island style popup at the top of the screen.
  3. A Live Update notification (Notification.ProgressStyle, setRequestPromotedOngoing) with persistent battery, heads-up on connect/takeover/listening-mode/low-battery, and a case-open reminder when case battery is below 30%.

The Live Update notification declares the Samsung Now Bar opt-in metadata for One UI 7+ and uses CATEGORY_STATUS plus ongoingActivityNoti.style extras. Android 16 surfaces it as a Live Update on systems that adopt the API (ColorOS 16, One UI 8). On systems with a hardcoded whitelist (ColorOS 15, One UI 7) the same notification appears as a regular HIGH-importance heads-up plus an ongoing entry in the shade.

First Live Update fires from the BLE-advertised battery so it shows up immediately on connect rather than waiting for the L2CAP socket handshake.

Migration: existing installs (connection_successful pref already true) default the new Live Update toggle to OFF, keeping the legacy LOW-priority shade notification. Fresh installs default to ON.

Tested on Oppo with ColorOS 16. Build clean.

@thisisAcidic thisisAcidic force-pushed the popup-customization-clean branch from cb0c0ce to 7434569 Compare May 2, 2026 16:59
@kavishdevar
Copy link
Copy Markdown
Owner

Thanks for the PR!

Could you please share a screenshot of how this looks on Oppo?

@kavishdevar kavishdevar added enhancement New feature or request android Android app related issues labels May 2, 2026
@thisisAcidic
Copy link
Copy Markdown
Contributor Author

thisisAcidic commented May 2, 2026

Sure, here are two from my Oppo Find X9 Pro. On connection the live notif goes into heads-up state, meaning it shows the live notif in full for 2 seconds (First pic), then it automatically goes into the normal background pill only showing the lowest percentage (second pic). Heads up will trigger on events and low battery.

heads-up compact

@thisisAcidic thisisAcidic force-pushed the popup-customization-clean branch 2 times, most recently from 6b71f74 to d4a2b18 Compare May 2, 2026 23:47
@thisisAcidic thisisAcidic force-pushed the popup-customization-clean branch from d4a2b18 to a22c5b8 Compare May 3, 2026 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

android Android app related issues enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants