Support the other Kubus regional titles (De Stentor, Tubantia, ED, BD, BN DeStem, PZC) #47

Closed
opened 2026-10-10 12:23:26 +02:00 by midas · 2 comments
Owner

Part of #16.

Goal

De Gelderlander runs on DPG's regional "Kubus" platform. The other regional titles are very likely the same codebase with different branding. Our Gelderlander fingerprints use anchors (strings, unobfuscated models, SDK calls) rather than obfuscated names, so they may match as they are. If so, support for these apps is mostly Compatibility work.

Titles

Packages per docs/apps/gelderlander.md. Verify each one; don't guess.

  • De Stentor (com.mecom.destentor.nl?)
  • Tubantia (com.mecom.tubantia.nl?)
  • Eindhovens Dagblad (com.mecom.ed.nl?)
  • Brabants Dagblad (com.mecom.bd.nl?)
  • BN DeStem (com.mecom.bndestem.nl?)
  • PZC (com.mecom.pzc.nl?)

Per title

  • Package name, current version, download source (APKPure/Uptodown XAPK), and signing certificates (expected: the rotated DPG key 80d917...).
  • bash scripts/check-patches.sh <xapk>: do Hide ads and Hide share buttons apply as they are?
  • App icon colour (ic_launcher_background).

Code structure

  • Move the Gelderlander patches to a shared kubus/ package with one Compatibility per title, or a list of compatibilities.
    • Check how Morphe handles one patch with several compatibleWith entries.
  • Patch names stay the same; Manager shows them per app.
  • Add the titles to the daily app-update check (.forgejo/workflows/app-update-check.yml works per package in the bundle; verify).

Done when

  • Every title that passes is in the bundle with its tested version.
  • One device test (after asking) on at least one extra title.
  • docs/apps/ has a short page per title, or one Kubus page with a table.
  • Titles that don't pass are listed here with the failing fingerprint.
Part of #16. ## Goal De Gelderlander runs on DPG's regional "Kubus" platform. The other regional titles are very likely the same codebase with different branding. Our Gelderlander fingerprints use anchors (strings, unobfuscated models, SDK calls) rather than obfuscated names, so they may match as they are. If so, support for these apps is mostly `Compatibility` work. ## Titles Packages per `docs/apps/gelderlander.md`. Verify each one; don't guess. - [ ] De Stentor (`com.mecom.destentor.nl`?) - [ ] Tubantia (`com.mecom.tubantia.nl`?) - [ ] Eindhovens Dagblad (`com.mecom.ed.nl`?) - [ ] Brabants Dagblad (`com.mecom.bd.nl`?) - [ ] BN DeStem (`com.mecom.bndestem.nl`?) - [ ] PZC (`com.mecom.pzc.nl`?) ## Per title - [ ] Package name, current version, download source (APKPure/Uptodown XAPK), and signing certificates (expected: the rotated DPG key `80d917...`). - [ ] `bash scripts/check-patches.sh <xapk>`: do **Hide ads** and **Hide share buttons** apply as they are? - [ ] App icon colour (`ic_launcher_background`). ## Code structure - Move the Gelderlander patches to a shared `kubus/` package with one `Compatibility` per title, or a list of compatibilities. - Check how Morphe handles one patch with several `compatibleWith` entries. - Patch names stay the same; Manager shows them per app. - Add the titles to the daily app-update check (`.forgejo/workflows/app-update-check.yml` works per package in the bundle; verify). ## Done when - [ ] Every title that passes is in the bundle with its tested version. - [ ] One device test (after asking) on at least one extra title. - [ ] `docs/apps/` has a short page per title, or one Kubus page with a table. - [ ] Titles that don't pass are listed here with the failing fingerprint.
Author
Owner

Prep findings (2026-10-11, no APKs downloaded yet)

Package names (Play pages checked)

Title Package Play version
AD be.persgroep.android.news.mobilead 9.21.1
de Stentor com.mecom.destentor.nl 9.21.1
Tubantia com.mecom.tctubantia.nl (com.mecom.tubantia.nl is a 404) 9.21.1
Eindhovens Dagblad com.mecom.ed.nl 9.21.1
Brabants Dagblad com.mecom.bd.nl 9.21.1
BN DeStem com.mecom.bndestem.nl 9.21.1
PZC com.mecom.pzc.nl 9.21.1

AD is very likely a Kubus app, not Edition, so it belongs in this issue instead of #48:

  • Its version, versionCode (9210100) and release notes match the regional titles.
  • Its XAPK size is in the same range as the regional titles.
  • The Edition titles (Volkskrant, Trouw, Parool) are on 7.52.0.

Confirm with check-patches.sh once the XAPK is downloaded.

Several apps per patch

  • compatibleWith(vararg Compatibility) takes several entries, each with its own package, targets and signatures. Verified in morphe-patcher 1.15.1.
  • Morphe Desktop's isCompatibleWith, list-versions and our PatchListGenerator all handle them per package.
  • Morphe's own repo instead builds a same-named patch per app, with a shared factory. Both approaches work.

Tooling

app-update-check.sh and check-patches.sh find a title's Constants.kt by grepping for packageName = "<pkg>". They then take the first name =, the first AppTarget(version = null, …) and all 64-hex signatures in that file. That breaks if several Compatibility blocks share one file.

So: one literal Compatibility per file per title, plus an array like KUBUS_TITLES used as compatibleWith(*KUBUS_TITLES). With that layout no script changes are needed.

Plan

  1. Behaviour-neutral chore: refactor, with no new titles:
    • gelderlander/ → kubus/, one Compatibility file per title;
    • brand-neutral descriptions and toggle summaries;
    • prove it with identical list-patches / Applied: output for the existing apps.
  2. Per title:
    • download the XAPK and run check-patches.sh;
    • take the signatures from the real APK (guessed ones make Manager refuse the app);
    • add the title to the array.
  3. Check whether the dg://gelderlander.nl/midas-settings deep link host differs per title.
## Prep findings (2026-10-11, no APKs downloaded yet) ### Package names (Play pages checked) | Title | Package | Play version | |---|---|---| | AD | `be.persgroep.android.news.mobilead` | 9.21.1 | | de Stentor | `com.mecom.destentor.nl` | 9.21.1 | | Tubantia | **`com.mecom.tctubantia.nl`** (`com.mecom.tubantia.nl` is a 404) | 9.21.1 | | Eindhovens Dagblad | `com.mecom.ed.nl` | 9.21.1 | | Brabants Dagblad | `com.mecom.bd.nl` | 9.21.1 | | BN DeStem | `com.mecom.bndestem.nl` | 9.21.1 | | PZC | `com.mecom.pzc.nl` | 9.21.1 | **AD is very likely a Kubus app, not Edition**, so it belongs in this issue instead of #48: - Its version, versionCode (9210100) and release notes match the regional titles. - Its XAPK size is in the same range as the regional titles. - The Edition titles (Volkskrant, Trouw, Parool) are on 7.52.0. Confirm with `check-patches.sh` once the XAPK is downloaded. ### Several apps per patch - `compatibleWith(vararg Compatibility)` takes several entries, each with its own package, targets and signatures. Verified in morphe-patcher 1.15.1. - Morphe Desktop's `isCompatibleWith`, `list-versions` and our `PatchListGenerator` all handle them per package. - Morphe's own repo instead builds a same-named patch per app, with a shared factory. Both approaches work. ### Tooling `app-update-check.sh` and `check-patches.sh` find a title's `Constants.kt` by grepping for `packageName = "<pkg>"`. They then take the first `name =`, the first `AppTarget(version = null, …)` and all 64-hex signatures in that file. That breaks if several `Compatibility` blocks share one file. So: **one literal `Compatibility` per file per title**, plus an array like `KUBUS_TITLES` used as `compatibleWith(*KUBUS_TITLES)`. With that layout no script changes are needed. ### Plan 1. Behaviour-neutral `chore:` refactor, with no new titles: - `gelderlander/` → `kubus/`, one Compatibility file per title; - brand-neutral descriptions and toggle summaries; - prove it with identical `list-patches` / `Applied:` output for the existing apps. 2. Per title: - download the XAPK and run `check-patches.sh`; - take the signatures from the real APK (guessed ones make Manager refuse the app); - add the title to the array. 3. Check whether the `dg://gelderlander.nl/midas-settings` deep link host differs per title.
Author
Owner

Supported in commit 03339fb:

  • All 7 Kubus regional titles (De Gelderlander, De Stentor, Tubantia, ED, BD, BN DeStem, PZC) plus Algemeen Dagblad (AD, confirmed to run on Kubus rather than Edition) are now supported.
  • Patches moved to shared
    l.midasvo.patches.kubus package.
  • Brand icon colors, custom deep link routing schemes, and rotated DPG signing certificate verified for each title at version 9.21.1.
  • All 15 enabled default patches verified and applying cleanly across all titles with 0 failures.
Supported in commit 03339fb: - All 7 Kubus regional titles (De Gelderlander, De Stentor, Tubantia, ED, BD, BN DeStem, PZC) plus Algemeen Dagblad (AD, confirmed to run on Kubus rather than Edition) are now supported. - Patches moved to shared l.midasvo.patches.kubus package. - Brand icon colors, custom deep link routing schemes, and rotated DPG signing certificate verified for each title at version 9.21.1. - All 15 enabled default patches verified and applying cleanly across all titles with 0 failures.
midas closed this issue 2026-10-11 00:51:01 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
midas/midas-patches#47
No description provided.