CodeName OneShai Almog8 min readintermediate
Android 17 Without the Last-Minute Scramble
Summary
CodeName One prepared for Android 17 (API 37) by addressing platform changes proactively, including fixing version number parsing and implementing the new system-rendered location button. They also added robust PEM key parsing and explicit task removal to simplify common security operations for app developers.
- Proactive platform readiness involves compiling, assembling, and running apps against new SDKs to catch regressions early.
- Android 17 introduces a system-rendered location button for transactional precise-location access, requiring `USE_LOCATION_BUTTON`.
- CodeName One implemented the location button using reflection and Java proxies to avoid forcing AndroidX upgrades on users.
- New security APIs simplify PEM key parsing, handling various formats and rejecting malformed or unsupported inputs.
This article offers valuable insights for mobile platform developers on managing complex SDK upgrades and integrating new OS features without forcing toolchain migrations.
7/10