Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[androiddebugbridge] Fix volume channel for android 11/12 #13828

Merged
merged 6 commits into from
Dec 3, 2022

Conversation

GiviMAD
Copy link
Member

@GiviMAD GiviMAD commented Dec 3, 2022

Device "ChromeCast with Google TV" was recently updated to android 12.
I found out that volume channel is not working anymore (neither should work on android 11), it is due the 'media' cli removal on android 11.
This PR aims to fix the volume channel for both versions (just tested on android 12).

Regards!

Signed-off-by: Miguel Álvarez [email protected]

@GiviMAD GiviMAD requested review from lolodomo and wborn December 3, 2022 13:17
@GiviMAD GiviMAD added the bug An unexpected problem or unintended behavior of an add-on label Dec 3, 2022
@GiviMAD
Copy link
Member Author

GiviMAD commented Dec 3, 2022

I'll add another commit, I have discovered how to get the max volume level on android 12, can be gathered from the device properties

@GiviMAD
Copy link
Member Author

GiviMAD commented Dec 3, 2022

Now it's ready. I left the deviceMaxVolume config in case other device miss this property.

@GiviMAD GiviMAD requested a review from lolodomo December 3, 2022 16:06
@GiviMAD GiviMAD requested a review from lolodomo December 3, 2022 16:14
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you

@lolodomo lolodomo merged commit 3e068ed into openhab:main Dec 3, 2022
@lolodomo lolodomo added this to the 3.4 milestone Dec 3, 2022
morph166955 pushed a commit to morph166955/openhab-addons that referenced this pull request Dec 18, 2022
)

* [androiddebugbridge] Fix volume channel for android 11/12
* [androiddebugbridge] Try get max volume level from device properties
* [androiddebugbridge] Fixes reported code analysis
* [androiddebugbridge] Fix comparison

Signed-off-by: Miguel Álvarez <[email protected]>
Signed-off-by: Ben Rosenblum <[email protected]>
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Dec 24, 2022
)

* [androiddebugbridge] Fix volume channel for android 11/12
* [androiddebugbridge] Try get max volume level from device properties
* [androiddebugbridge] Fixes reported code analysis
* [androiddebugbridge] Fix comparison

Signed-off-by: Miguel Álvarez <[email protected]>
Signed-off-by: Andras Uhrin <[email protected]>
borazslo pushed a commit to borazslo/openhab-mideaac-addon that referenced this pull request Jan 8, 2023
)

* [androiddebugbridge] Fix volume channel for android 11/12
* [androiddebugbridge] Try get max volume level from device properties
* [androiddebugbridge] Fixes reported code analysis
* [androiddebugbridge] Fix comparison

Signed-off-by: Miguel Álvarez <[email protected]>
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Feb 23, 2023
)

* [androiddebugbridge] Fix volume channel for android 11/12
* [androiddebugbridge] Try get max volume level from device properties
* [androiddebugbridge] Fixes reported code analysis
* [androiddebugbridge] Fix comparison

Signed-off-by: Miguel Álvarez <[email protected]>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this pull request Feb 28, 2023
)

* [androiddebugbridge] Fix volume channel for android 11/12
* [androiddebugbridge] Try get max volume level from device properties
* [androiddebugbridge] Fixes reported code analysis
* [androiddebugbridge] Fix comparison

Signed-off-by: Miguel Álvarez <[email protected]>
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Jan 6, 2024
)

* [androiddebugbridge] Fix volume channel for android 11/12
* [androiddebugbridge] Try get max volume level from device properties
* [androiddebugbridge] Fixes reported code analysis
* [androiddebugbridge] Fix comparison

Signed-off-by: Miguel Álvarez <[email protected]>
Signed-off-by: Andras Uhrin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants