chore: share the return-hook loop, manifest cleanup, toggle texts and Hide surveys #123
No reviewers
Labels
No labels
area/architecture
area/build-ci
area/bytecode
area/code-quality
area/docs
area/extension
area/fingerprint
area/security
area/tests
Bug report
Feature request
review
sev/low
sev/medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midas/midas-patches!123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "review/84-shared-patches"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #105, fixes #84. Refactor, no behaviour change.
shared/util/Instructions.kt:hookReturns(opcode, ...) { reg -> smali }andhookReturnVoids(...)(every return, back to front, at the control-flow label, throws when none); all hand-written return-hook loops replaced (Edition review prompts, article block filter, onboarding, Kubus Midas Settings, Kubus Markdown, VideoProductionCache, Videoland picker and Force HD).shared/util/Manifest.kt:removeManifestEntries(...),applicationElement,setApplicationMetaData, used by the Edition/Kubus tracking and Edition ads cleanups andmidasSettingsPatch(#90's Firebase meta-data kept).shared/settings/MidasToggles.kt: one catalogue of all 22 toggles (_EDITION/_KUBUSentries only where the texts really differ); the contract check resolvesMidasToggles.X.keyand still fails on unreadable keys.shared/surveys) for Edition + Kubus; no other pair is identical.Verified:
list-patches(packages, versions, descriptions, options) identical apart from the two Hide surveys blocks becoming one; Applied identical on six APKs;assets/midas_settings.jsonbyte-identical in all six patched APKs. After rebasing onto dev: build + contract check green, Applied 13/13/15/15 on Volkskrant 7.53.1, Trouw 7.52.0, Tubantia 9.22.0, Gelderlander 9.21.1, and 2 on Videoland TV 1.116.3.🤖 Generated with Claude Code
Merged into dev as
b999c00(merged locally together with other review PRs, so Forgejo didn't mark it merged).Pull request closed