Repository navigation
Run on Android 9 (API 28) - #2
Closed
dicklamman wants to merge 1 commit into
Closed
dicklamman wants to merge 1 commit into
dicklamman wants to merge 1 commit into
Conversation
The upstream app needs Android 11 (minSdk 30); the release APK asks for API 33, so it cannot be installed on an Android 9 TV at all. This ports it to Android 9: - minSdk 30 -> 28. - Map.of (API 30) replaced with a HashMap, for the Netflix search link. - ACTION_IME_ENTER (API 30) has no equivalent on Android 9: Enter is now sent by clicking the search or send button beside the focused text field. - Volume: this ROM routes volume through a vendor service, so the standard adjustStreamVolume either throws "Bad direction" or goes through without changing the level. Each way of asking is tried in turn and the next one is used when the level did not actually move: adjustStreamVolume, then the suggested-stream call the ROM's own volume panel uses, then a volume media key, then setting the level outright. - Lint and R8 are off: their dependency resolution fails on Windows in long build trees (MAX_PATH). The app has no libraries to shrink. Verified on the Wanbo T6 Max (Android 9): pairing, the apps list, home, back, recents, the D-pad, OK, volume, mute, play/pause and launching apps.
maxhayim
added a commit
that referenced
this pull request
Oct 31, 2026
From #2 by @dicklamman, who ported Webmote to a Wanbo T6 Max projector (Android 9): - minSdk 30 -> 28; Map.of, which needs Android 11, is gone. - Enter on Android 9 and 10 clicks the app's search, send or go button, since ACTION_IME_ENTER needs Android 11 (it was gated at 13 in the PR). - Volume on Android 9 and 10 tries each way of changing it until the level moves, for ROMs that route volume through their own service. Android 11 and newer keep the single call, so a TV handing volume to a sound bar doesn't get each press twice. setStreamVolume is called directly. Lint and R8 stay on: turning them off only worked around a Windows path limit. Version 0.2.0. Co-authored-by: dicklamman <174199902+dicklamman@users.noreply.github.com>
Owner
|
Thank you @dicklamman! Android 9 support is in v0.2.0 (f0d8ed7), with you as co-author, and your Wanbo T6 Max is listed under Tested On in the README. I changed a few things on the way in:
If you can, please try the v0.2.0 APK on the projector, especially volume and Enter in a search box, and open an issue if anything misbehaves. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Ports the webmote remote app to Android 9 (API 28), so it can be installed and used on an Android 9 TV.
Why
The upstream release APK requires Android 11 (minSdk 30) and the release asks for API 33, so on an Android 9 TV it cannot be installed at all.
How
Map.of(API 30) replaced with aHashMap, for the Netflix search link.ACTION_IME_ENTER(API 30) has no equivalent on Android 9: Enter is now sent by clicking the search or send button beside the focused text field.adjustStreamVolumeeither throws "Bad direction" or goes through without changing the level. Each way of asking is tried in turn and the next one is used when the level did not actually move:adjustStreamVolume, then the suggested-stream call the ROM's own volume panel uses, then a volume media key, then setting the level outright.Tested on
Wanbo T6 Max, Android 9 (API 28), firmware
20220419. Pairing, the apps list, home, back, recents, the D-pad, OK, volume, mute, play/pause and launching apps were all verified against the real device.