Android 17 (API 37) Migration Checklist for App Developers

Short answer: before moving to Android 17 (API 37), check these areas: Bluetooth re-pairing, background and foreground service rules, memory limits, keyboard restore after rotation, SMS OTP handling, cleartext traffic, URI permission grants and Keystore limits. Some apply to every app; some only when you target API 37.

Applies to all apps

1. Bluetooth re-pairing

The system can restore a lost bond after user consent. Review pairing and key-missing handling. See our Android 17 Bluetooth guide.

2. Background audio is stricter

Audio playback and volume APIs fail silently when called outside a valid lifecycle, and audio focus requests return AUDIOFOCUS_REQUEST_FAILED. Start audio from a valid state, such as a foreground service or visible UI.

3. Memory limits

Apps may be limited based on device RAM. A killed session shows exit reason REASON_OTHER with a MemoryLimiter:AnonSwap description in ApplicationExitInfo. Check it when you debug unexplained exits.

val info = activityManager.getHistoricalProcessExitReasons(null, 0, 5)
info.forEach { Log.d("Exit", "${it.reason} ${it.description}") }

4. Keyboard is not restored after rotation

After an unhandled configuration change, the keyboard is no longer restored automatically. Use android:windowSoftInputMode="stateAlwaysVisible" or request it again in onCreate() or onConfigurationChanged().

5. SMS OTP

WebOTP messages are withheld from apps that are not the recipient for three hours. Move to SMS Retriever or SMS User Consent.

6. Cleartext traffic

usesCleartextTraffic is being deprecated. Use a network security config (API 24 and above).

7. Touchpad pointer capture

During requestPointerCapture(), touchpads send relative events by default. Use POINTER_CAPTURE_MODE_ABSOLUTE if you need absolute data.

When you target API 37

  • Foreground services must have while-in-use capabilities, unless the app holds the exact alarm permission and uses USAGE_ALARM streams.
  • Keystore limits: 50,000 keys for non-system apps targeting API 37 or higher, 200,000 for others.

Prepare for Android 18

Android 18 will stop automatically granting URI permissions for ACTION_SEND, ACTION_SEND_MULTIPLE and ACTION_IMAGE_CAPTURE. Add the grant flags yourself now.

intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
// for ACTION_IMAGE_CAPTURE also:
intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION)

Also check

Cross-profile loopback is blocked by default; same-profile loopback is unaffected.

Migration checklist

  1. Test on an Android 17 device or emulator.
  2. Review Bluetooth pairing and bond handling.
  3. Check foreground service types and capabilities before raising targetSdk.
  4. Log ApplicationExitInfo for memory kills.
  5. Fix keyboard, SMS OTP and cleartext usage.
  6. Add explicit URI grant flags.

FAQ

Do I have to target API 37 right away?

The all-app changes apply regardless of target. Target-specific rules, such as the foreground service one, apply when you raise targetSdk.

Where is the full list?

On Android’s behavior-changes pages for all apps and for apps targeting Android 17.

Source: Android 17 behavior changes: all apps on developer.android.com. Details can change before and after release, so check it for the latest wording.