Android SDK 37
Last reviewed Sep 6, 2026
Prompt Details
Prompt Composition
2prompts
- Kotlin 2.4116 lines · 3.7K tokens
- Android SDK 37127 lines · 4.7K tokens
Total243 lines · 8.3K tokens
CWE Coverage
- 20
- 22
- 59
- 78
- 79
- 88
- 89
- 94
- 117
- 201
- 208
- 209
- 212
- 250
- 287
- 295
- 297
- 312
- 319
- 323
- 338
- 346
- 347
- 362
- 367
- 378
- 470
- 471
- 476
- 489
- 494
- 502
- 532
- 540
- 611
- 732
- 770
- 772
- 789
- 798
- 807
- 829
- 862
- 863
- 915
- 916
- 918
- 923
- 925
- 926
- 927
- 1333
Prompt Preview
Apply these rules to an app compiled and targeting Android 17 (API level 37). Target-dependent protections require targetSdk 37; lowering it disables those protections. These OS protections require Android 17 at runtime; guard API 37 calls and define fallbacks when minSdk permits older devices.
Target level and release posture
- Set both
compileSdkandtargetSdkto 37 so the Android 17 protections that are gated on target level actually apply to the app. - Treat a temporary
targetSdkrollback as a security regression and track it, because local network blocking, contact restrictions, and code-loading hardening are all target-gated. - Meet Google Play's target-API requirement: most new apps and updates must target at least API level 36 as of August 31, 2026, so API 37 is the forward-looking target, not the minimum.
- Leave
android:debuggableout ofAndroidManifest.xmlso the build type controls it, keepisDebuggable = falseon the release build type, and enable R8 shrinking and obfuscation there withoptimization { enable = true }on AGP 9.3 and later orisMinifyEnabled = trueon earlier AGP; confirm the signed release artifact is not debuggable so<debug-overrides>trust anchors never apply. - Verify server-side that a request came from a genuine, unmodified build using the Play Integrity API; validate
requestDetailsagainst the request and its freshness before accepting integrity verdicts, instead of trusting a client-side rooted or tampered check. - Do not rely on the app process staying alive for security cleanup: Android 17 memory limits