Skip to content

feat: Sony/Xperia device compatibility#899

Closed
Hayao0819 wants to merge 1 commit intoMahmud0808:stablefrom
Hayao0819:pr/feat-sony-compat
Closed

feat: Sony/Xperia device compatibility#899
Hayao0819 wants to merge 1 commit intoMahmud0808:stablefrom
Hayao0819:pr/feat-sony-compat

Conversation

@Hayao0819
Copy link
Copy Markdown
Contributor

Tested on Xperia 5 V (XQ-DE44, Android 15). Xperia's SystemUI is close to AOSP so most hooks work out of the box, but a few things needed fixing.

Sony's super_notification_shade.xml has two KeyguardRootView with the same id (keyguard_root_view). The one we want has clipChildren="false", the other doesn't. All lockscreen modules (clock, widgets, weather, depth wallpaper, lock icon) now check for this on Sony and skip the wrong one. The listener stays attached so the correct view still gets picked up.

QSLT/QSDT overlays fail on Sony because their framework doesn't have the same QS resource structure as AOSP. Since calculateColors() already handles the theming through Xposed hooks, the overlay enable/disable calls are just skipped on Sony.

Also wrapped all overlay operations in Utils.kt with try-catch — not Sony-specific, just good practice since these were silently failing before.

Everything is behind OemUtils.isSony (Build.MANUFACTURER == "Sony"), no effect on other devices.

Introduce OemUtils for OEM detection. Fix Sony-specific issues:

- Disambiguate duplicate keyguard_root_view on Sony devices using
  clipChildren attribute (6 lockscreen modules)
- Skip QSLT/QSDT overlay operations on Sony where framework overlay
  manager cannot locate these overlays
- Add defensive try-catch to all overlay enable/disable operations
@Mahmud0808
Copy link
Copy Markdown
Owner

Hi, appreciate the contribution! A15 support is EOL and the stable branch is no longer accepting changes. Please retarget this PR to the beta branch (A16+) if you’d like to continue. Thanks!

@Hayao0819
Copy link
Copy Markdown
Contributor Author

Closing as Android 15 is EOL. I'll maintain these changes in my own fork.

@Hayao0819 Hayao0819 closed this Apr 11, 2026
@Hayao0819 Hayao0819 deleted the pr/feat-sony-compat branch April 11, 2026 15:01
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