fix: Force HD on Videoland 1.118.0, declare 1.118.0 (TV) as tested #161

Merged
midas merged 4 commits from fix/156-videoland-1.118.0 into dev 2026-11-17 10:12:19 +01:00
Owner

Closes #156

  • APKPure's Videoland 1.118.0 is the Android TV build (TV marker SettingsFragment present, no MobileReplayControl). The "Auto skip intro" failure was its own TV message, not a broken fingerprint: 1.118.0 now goes into TV_ONLY_VERSIONS, so the check skips it.
  • Force HD: the getLinkDownstreamBandwidthKbps() < 54000 check moved from CreateMediaContentUseCase into GetAssetContentUseCase.a(). AssetQualityBandwidthFingerprint no longer names the class; it matches the com.bedrockstreaming method with that call and the literal 54000 (unique in the app).
  • bump: commit: AppTarget("1.118.0") + docs.

Verification (scripts/check-patches.sh, all patches incl. opt-in):

  • 1.118.0 (TV, APKPure): Applied Hide ads, Log video assets, Force HD, Midas Settings; Skipped Auto skip intro
  • 1.116.3 (TV): same
  • 1.115.2 (phone): Applied all five incl. Auto skip intro

Before merge: the 1.118.0 XAPK must be in the APK store, or the dev Patch check fails (not uploaded; needs a write token). Not device-tested.

🤖 Generated with Claude Code

Closes #156 - APKPure's Videoland 1.118.0 is the **Android TV build** (TV marker `SettingsFragment` present, no `MobileReplayControl`). The "Auto skip intro" failure was its own TV message, not a broken fingerprint: 1.118.0 now goes into `TV_ONLY_VERSIONS`, so the check skips it. - **Force HD**: the `getLinkDownstreamBandwidthKbps() < 54000` check moved from `CreateMediaContentUseCase` into `GetAssetContentUseCase.a()`. `AssetQualityBandwidthFingerprint` no longer names the class; it matches the `com.bedrockstreaming` method with that call and the literal 54000 (unique in the app). - `bump:` commit: `AppTarget("1.118.0")` + docs. Verification (`scripts/check-patches.sh`, all patches incl. opt-in): - 1.118.0 (TV, APKPure): Applied Hide ads, Log video assets, Force HD, Midas Settings; Skipped Auto skip intro - 1.116.3 (TV): same - 1.115.2 (phone): Applied all five incl. Auto skip intro **Before merge:** the 1.118.0 XAPK must be in the APK store, or the dev Patch check fails (not uploaded; needs a write token). Not device-tested. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Videoland 1.118.0 moved the getLinkDownstreamBandwidthKbps() >= 54000 check
out of CreateMediaContentUseCase, so Force HD no longer matched. Match the
Bedrock method with that call and the literal 54000 instead of the class.

Closes #156

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bump: declare Videoland 1.118.0 as tested
Some checks failed
CI / Build (pull_request) Successful in 3m40s
CI / Patch check (pull_request) Failing after 40s
5c89b1fbe4
APKPure's 1.118.0 is the Android TV build, so it also goes into
TV_ONLY_VERSIONS (Auto skip intro hooks the mobile player).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix: hide Videoland pause ads on Android TV builds that request them again
All checks were successful
CI / Build (pull_request) Successful in 5m17s
CI / Patch check (pull_request) Successful in 8m35s
7a8d33abc1
TV 1.118.0 has GetFirstPlayablePauseAdItemUseCaseImpl.a again (TvReplayControl
requests pause ads), but Hide ads skipped the hook on every TV build, so it
reported Applied while pause ads stayed. Apply the hook on a TV build whenever
the use case has the method (class lookup first, as methodOrNull throws when
the class matches without the method); the phone build still requires it.

Closes #165

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Owner

Pushed 7a8d33a (fix for #165): Hide ads now applies the pause-ad hook on an Android TV build whenever GetFirstPlayablePauseAdItemUseCaseImpl has the PauseAdAdRequestUrlData method (TV 1.118.0 has it again; 1.116.3 does not and logs a skip line). Phone still requires it. check-patches.sh: TV 1.118.0, TV 1.116.3 and phone 1.115.2 all ok.

Closes #165

🤖 Generated with Claude Code

Pushed 7a8d33a (fix for #165): Hide ads now applies the pause-ad hook on an Android TV build whenever GetFirstPlayablePauseAdItemUseCaseImpl has the PauseAdAdRequestUrlData method (TV 1.118.0 has it again; 1.116.3 does not and logs a skip line). Phone still requires it. check-patches.sh: TV 1.118.0, TV 1.116.3 and phone 1.115.2 all ok. Closes #165 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

Review for #165: 7a8d33a resolves it, so this PR can say Closes #165. Checked on the merge of origin/dev into the branch: buildAndroid passes. check-patches.sh exits 0 on phone 1.115.2 (all 5 patches Applied), TV 1.116.3 (Auto skip intro skipped as declared; Hide ads logs 'no pause-ad request method, nothing to hook') and TV 1.118.0 (Auto skip intro skipped as declared; Force HD, Hide ads, Log video assets and Midas Settings Applied, without the skip log line). In the 1.118.0 decompile GetFirstPlayablePauseAdItemUseCaseImpl.a(PauseAdAdRequestUrlData, c) exists, so the class lookup finds it and the fingerprint-backed .method hook is injected (it would throw if it did not match). The class lookup avoids the methodOrNull throw when the class exists without the method. Not verified: playback on the TV box.

Review for #165: 7a8d33a resolves it, so this PR can say `Closes #165`. Checked on the merge of origin/dev into the branch: buildAndroid passes. check-patches.sh exits 0 on phone 1.115.2 (all 5 patches Applied), TV 1.116.3 (Auto skip intro skipped as declared; Hide ads logs 'no pause-ad request method, nothing to hook') and TV 1.118.0 (Auto skip intro skipped as declared; Force HD, Hide ads, Log video assets and Midas Settings Applied, without the skip log line). In the 1.118.0 decompile GetFirstPlayablePauseAdItemUseCaseImpl.a(PauseAdAdRequestUrlData, c) exists, so the class lookup finds it and the fingerprint-backed .method hook is injected (it would throw if it did not match). The class lookup avoids the methodOrNull throw when the class exists without the method. Not verified: playback on the TV box.
chore: merge dev into fix/156-videoland-1.118.0
All checks were successful
CI / Build (pull_request) Successful in 6m34s
CI / Patch check (pull_request) Successful in 9m52s
8d4aa3d0fa
midas referenced this pull request from a commit 2026-11-17 10:10:51 +01:00
Sign in to join this conversation.
No description provided.