Android 17 QPR2 (SDK 37.2) reached the Android Open Source Project on December 3, 2026. Google also made it available on supported Pixel devices and through Android Studio emulator images. The practical change for Flutter teams is a new way to tell Android how much memory an app normally needs. But adding a budget before measuring your app can make the experience worse, not better.
Start with one expensive screen: an image feed, a camera preview, a map, or an on-device AI feature. Measure what happens when a user opens it, leaves, and comes back. That test can uncover a problem a single launch never shows. This guide explains what changed and gives you a test you can repeat on your own app. It does not report benchmark results.
What changed in Android 17 QPR2?
QPR2 is a quarterly Android platform update, not a Flutter or Dart release. SDK 37.2 adds APIs on top of Android 17. Google lists supported Pixels and 64-bit emulator images, including options for foldables and tablets. The Android announcement also covers earlier QPR1 changes, so do not assume every feature in that announcement was introduced by QPR2.
For the changes that arrived with Android 17 itself, see FlutterFever’s Android 17 guide for Flutter developers. If you are upgrading your Flutter tooling at the same time, keep that change separate and use our Flutter 3.50 and Dart 3.14 upgrade guide. Testing the same app build on two Android versions helps you avoid blaming the OS for a change introduced by a new dependency or build.
App Memory Budgets: a soft target, not a crash threshold
Think of your app’s working set as the memory it needs right now to do what the user asked. A camera screen needs recent frames and buffers while the view is active. A backgrounded camera screen should not need the same resources. QPR2 lets apps declare different soft targets for foreground, perceptible, and background states. If your app goes over its declared budget, Android tries to reclaim less recently used pages. Crossing that soft target does not itself kill the process.
Do not confuse this with Android’s separate Memory Limiter. If the platform’s hard limit actually kills a process, SDK 37.2 includes ApplicationExitInfo.REASON_MEMORY_LIMITER for diagnosing that case when reported. A cold restart alone is not proof of a hard-limit kill. Nor does an exit reason identify the screen or plugin that caused the growth: you still need a reproducible route and measurements.
A budget set below what your app genuinely needs can force Android to reclaim pages the app immediately reads again. That extra work can cost frames and battery. The useful target is the one that trims memory the app can spare without hurting the user’s next action. There is no single safe megabyte value for every Flutter app.
How to test Flutter memory on Android 17 QPR2
- Pick a real workload. Use a fixed image set, repeatable camera workflow, or the same small model and input. Record the device, Android build, Flutter version, app version, and media resolution. Use an emulator to rehearse the flow and a real phone for camera, graphics, and performance measurements.
- Find Dart objects that stay alive. On a physical device, run
flutter run --profile, open DevTools → Memory → Diff Snapshots, and take a baseline from a quiet screen. Open and close the expensive screen five times using the same inputs. Return to the same quiet screen and take another snapshot. Inspect which instances survive and what retains them. If you repeat the test, keep the wait time after leaving the screen consistent. - Measure the optimized build separately. Install a release build on your test device and repeat the same route. Capture the Android process summary at a few fixed points: baseline, after the fifth run, and after backgrounding and resuming. Replace the example app ID below with the one installed on your device. Do not poll this command during frame timing.
adb shell dumpsys meminfo com.example.app
dumpsys meminfo shows Android process memory. Look at the categories that move together, such as native heap or graphics, and keep measurement points consistent. When supported and configured, QPR2 can also show a Memory Budget section. The Dart heap, Android’s PSS, and the resident memory charged for budgeting are different measurements. Do not subtract one from another or expect their totals to match.
How to interpret the result without guessing
- Dart objects grow on every round: inspect retaining paths. Look for route-scoped subscriptions, listeners, or controllers that survive after navigation. Remove the suspected reference and run the same flow again.
- Dart looks stable, but native heap or graphics keeps growing: check the camera, image decoder, map renderer, or AI runtime integration. Close one suspected resource at a time and compare the trend. DevTools snapshots alone cannot show every native allocation.
- Memory rises once and then levels off: a warmed cache may explain the pattern. Verify that it stays bounded, and check what happens after the app returns from the background. A high reading by itself is not proof of a leak.
- Memory drops, but scrolling or resume gets worse: measure frame times and repeat resumes before celebrating the smaller number. An overly tight budget can trade a better memory graph for a worse experience.
Do you need to change your target SDK?
No, not just to test your existing app on QPR2. Google reports no new target-SDK behavior changes in QPR2, though some runtime changes apply to all apps. To compile against the new APIs, use the compatible Android toolchain and configure the compile SDK with API 37 and minorApiLevel = 2 as shown in the official announcement. Guard runtime calls to the new APIs so that older Android versions continue along a supported path. Compiling against the newer SDK is separate from raising minSdk or targetSdk.
If you decide to declare budgets, start with the workload that has a measured problem. Keep declarations in an optimized release configuration, then compare behavior with and without the change on representative devices. For per-process manifest declarations, Google calls out Android Gradle Plugin 9.5 or newer. An emulator smoke test is useful, but it does not replace real-device checks on lower-memory hardware.
What to do before your next release
Pick one high-memory route and save its before-and-after measurements. Check repeated navigation, background and resume, and one lower-memory phone if available. Fix obvious resource lifecycle problems first. Consider an optional memory budget only if you can show that adding it preserves startup, scrolling, and resume on the devices you care about. A budget helps manage unused memory; it is not a substitute for releasing resources.