The problem

Piko’s recommended-flags mechanism handled boolean values. Supporting long-valued MobileConfig flags required a change that fit the project’s existing bytecode patching approach.

The approach

  1. Extend the recommended-flags system to carry long-typed overrides.
  2. Hook long-returning accessors in bytecode, preserving the surrounding patching flow.
  3. Carry the contribution through maintainer review in the upstream project.

How it fits together

Flag definition
Typed override
Bytecode accessor
Patch behavior
Maintainer review

The result

An upstream contribution recorded in PR #1741, with the implementation and review available in the public repository.

The engineering decision

Contributing within an established project means respecting its abstractions and maintenance constraints, not just making a local change work.