Repository navigation
Hacks for specific HU #1125
Closed
Anton111111
started this conversation in
Ideas
Replies: 1 comment
|
Anyway i've added pull request #1140 because with current issue not safe to drive with rear camer. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I’m encountering an issue with my head unit (HU): when I shift into reverse, the system launches a camera overlay (not an activity) on top of everything else. Because of this, the projection activity doesn’t trigger lifecycle events like
onPause,onStop, oronFocusChanged, and the "Open Headunit" app continues running underneath the camera overlay. Furthermore, since the head unit is slow, the camera feed ends up lagging.I’ve looked for a universal way to detect this overlay so I could pause the projection, but I haven’t found a solution. The closest option was
AccessibilityService, but on my head unit, it only allows me to detect when an overlay appears—it doesn’t provide a way to catch when it’s dismissed.At the same time, it looks like I might be able to interface with the MCU manager on my head unit to intercept the "reverse gear engaged" event.
This gave me the idea of adding a "hacks" section to the settings, specifically for certain head unit models. A user would simply need to go into that section and enable the relevant hack.
@andreknieriem , What do you think of this approach? Would it be worth submitting a pull request for this, and would you be open to accepting it?
All reactions