Mosmoxmosmox

Mosmox journal

In focus — Android.

A selection of publications grouped under the Android tag.

R8 Keep Rules and DEX Optimization: How Third-Party Libraries Block Google Play's Requirement

R8 Keep Rules and DEX Optimization: How Third-Party Libraries Block Google Play's Requirement

In February 2027 Google Play will start requiring a minimum level of code optimization from large apps and games. We are talking about DEX code: at least 25% optimization, obfuscation and shrinking for every upload to Play Console. It sounds like the app team's own business, but there is a catch: the result depends on more than your code. It is also affected by the keep rules that third-party libraries ship with themselves.

On 17 November 2026 the Android Developers team published a guide for library authors explaining how overly broad rules block optimization in apps. Here is what it means for your product and how to check your dependencies before the deadline.

What Google Play requires

According to the Google Play help page, the new requirement applies from February 2027 and covers all form factors:

  • a minimum of 25% optimization, obfuscation and shrinking for uploads to Play Console;
  • it applies only to apps with more than 10 MB of DEX code and games with more than 50 MB of DEX code; smaller projects are not required to optimize;
  • the numbers for each app bundle are visible in the app bundle explorer in Play Console (Release → Releases overview); builds from CI/CD may differ slightly from the uploaded one;
  • the tool is not prescribed: any shrinker or optimizer works, such as R8, and Google recommends the R8 Configuration Analyzer for tuning.

Google stresses that Play requirements are not optional: failing to meet one "can affect an app's visibility and publishing capabilities" on Google Play. The page does not list separate penalties for DEX optimization specifically.

Why dependencies can block the result

R8 removes unused code, optimizes the rest and obfuscates names. But it can only work within the limits set by keep rules. And you are not the only one writing them: libraries ship consumer keep rules embedded in the AAR or JAR so that R8 does not remove classes the library reaches through reflection or JNI.

The problem is that library authors often play it safe. To keep an SDK from crashing on a removed class, they add a rule for an entire package. A typical example from Google's guide:

-keep public class com.google.android.gms.** { *; }

A rule like this makes R8 keep everything in the package, even if the app uses only a tiny part of it. If you yourself restricted another GMS library to a narrow rule, the SDK's broad rule overrides yours. According to Google, the result is a bloated app, slower startup, more memory use, a bigger download and a higher ANR rate. And the numbers in Play Console reflect the combined impact of the rules from your code and from your libraries.

What Google advises library authors, and what you should check

PracticeThe ideaWhat to check in your project
Narrow rulesDescribe only what the library reaches through reflection; for dynamic access the entry point is enough, and R8 handles the restWhether your dependencies ship rules like com.vendor.**
Codegen instead of reflectionSerialization and dependency injection work better with code generation (Hilt is an example): R8 sees code usage at build timeWhich libraries still rely on reflection
Conditional keep rulesFor example for ad mediation adapters: keep a format only if the matching adapter is includedWhether you pull in ad adapters you do not need
Rules in the library, not in documentationConsumer rules have been supported in AARs and JARs for years; rules in documentation create manual work and leftovers of obsolete rulesWhether your proguard-rules.pro still contains "README recipes" that are no longer needed
JNI targetsSDKs with native code (games, photo and video editors) need rules for every class used through JNIIf you use Unity or Unreal, check the plugins

Google also advises against using keepnames just to get readable stack traces: Firebase Crashlytics, Play Console and Logcat in Android Studio deobfuscate traces from the mapping file on their own, so there is no need to disable obfuscation for that.

How to check your app in one day

  1. Open the numbers in Play Console. In the app bundle explorer look at the DEX size and optimization percentage of the uploaded bundle. If the DEX is under 10 MB (50 MB for a game), the requirement does not affect you.
  2. Run the R8 Configuration Analyzer. It shows optimization, shrinking and obfuscation percentages, and also inefficient keep rules: yours and the consumer rules from libraries.
  3. Find the broadest rules. Look for package patterns with ** and { *; }. The analyze command in Android CLI shows used and unused package-wide keep rules in an AAR or JAR.
  4. Test critical flows in a release build. After every rule change, go through sign-in, payment and the main flow: errors caused by removed classes only show up in an optimized build.
  5. Talk to the library authors. If an SDK ships broad rules, file an issue with the analyzer result. That is better than maintaining your own rules that override the library's: according to Google, such apps then become reluctant to update the library for fear of risk.

It is also worth watching SDK versions in the Google Play SDK Console and uploading the mapping file so you can see deobfuscated traces.

Why it matters for the product

For product teams this is more than technical hygiene. Google links DEX optimization to faster startup and lower memory use, and the Play requirement means optimization becomes a condition of publishing rather than a nice-to-have. If your Android app has not had its R8 configuration reviewed in a long time, schedule an audit before February 2027: it is better to find a blocker calmly than on release day.

Need an R8 configuration audit or help optimizing an Android app? Get in touch: we will look at your build and dependencies and propose a plan.

App Startup Speed: Which Milliseconds Users Actually Feel

App Startup Speed: Which Milliseconds Users Actually Feel

Users don't measure cold start with a stopwatch, but they feel the difference between a ready screen and a splash that seems stuck. Startup time is the first trust check: is it worth waiting for the product to get ready, or is it easier to close it and open a competitor?

In our projects, the conversation about startup speed almost always begins with "it's fast on my phone". So the first step is agreeing on what exactly we measure, on which devices and against which thresholds. Below are the metrics, targets, tools and optimisation sequence we use on Android and iOS.

Three startup moments that are easy to confuse

Measure the time from tapping the icon to three different events. These are fundamentally different moments:

  • First frame (TTID, time to initial display). The system has shown the first frame of the app's UI. Android records this metric automatically, and it's what Android vitals uses.
  • Ready to use (TTFD, time to full display). Primary content has loaded and the person can perform the action they came for. The system can't know this moment on its own: the app must report it via reportFullyDrawn() or, in Compose, via ReportDrawnWhen.
  • Fully loaded. Secondary blocks, images and recommendations have arrived. For the user, this moment usually matters least.

A screen that's drawn quickly but doesn't respond to touch is not a fast experience. So for the product, the key metric is TTFD; TTID is a technical indicator.

Also distinguish startup types. Cold — the process is created from scratch, for example after a phone reboot. Warm — the process is alive, but the activity is recreated. Hot — the app simply returns from the background. Optimise assuming a cold start: that improves the other two as well.

Thresholds and targets

What we measureThreshold or targetSource
Cold start, Android5 s or longer is excessiveAndroid vitals
Warm start, Android2 s or longer is excessiveAndroid vitals
Hot start, Android1.5 s or longer is excessiveAndroid vitals
First frame, iOStarget of about 400 msApple, WWDC 2019 "Optimizing App Launch"
Feels instantaneousabout 0.1 sNielsen Norman Group
Limit of uninterrupted attentionabout 1 sNielsen Norman Group

Vitals thresholds are not a goal but the floor of decency. From our experience, service and e-commerce apps should aim for a cold TTFD under 2 seconds on mid-range devices. That's a studio estimate, not a standard, and it should be calibrated against your own data and audience.

How to measure: tools

  • In the lab on Android: Jetpack Macrobenchmark with StartupTimingMetric gives stable TTID and TTFD on a real device. For deep analysis, a Perfetto trace with the Android App Startups row.
  • In the lab on iOS: the App Launch template in Instruments and XCTApplicationLaunchMetric in UI tests.
  • In the field on Android: Android vitals in Play Console, with comparison against a peer group of similar apps.
  • In the field on iOS: Xcode Organizer shows launch time by version, and MetricKit delivers aggregated metrics from users' devices.

Compare the median and the tails of the distribution — p90 and p95 — not just the average. Users on weak devices can have a completely different experience, and they're the ones most likely to abandon the app. We explained why lab testing on a flagship is misleading in our article on testing on inexpensive devices.

The method: trace, hypothesis, controlled release

In the Gmail Wear OS case study, the team analysed Perfetto traces: main thread state, time in the Runnable state (a sign of CPU contention), DEX file reading, binder transactions and JIT activity. Based on the findings, they made two groups of changes. Replacing the animated spinner with a static image and deferring the shimmer state improved startup latency by 50%. Enabling R8 rewriting of Baseline Profiles added another 20%.

What matters is not the percentage itself — on a two-core watch, removing an animation naturally has a bigger effect than on a phone — but the method: trace first, then a hypothesis, a controlled change and re-measurement. The team specifically recommends automating trace collection and validating every hypothesis with an A/B test.

The business side is well illustrated by the Lyft case from the Android Developers Blog: a 21% reduction in the drivers app's startup time came with a 5% increase in driver sessions.

First optimisation steps

  1. Measure a baseline. Cold TTID and TTFD on 2–3 devices of different classes, median and p90.
  2. Clean up Application.onCreate. Defer secondary SDK initialisation — analytics, chat, ads — until after the first screen or until first use. On Android, the App Startup library and lazy initialisation via Hilt help.
  3. Don't load what you don't need. The first screen should request only the data it displays. Cache the previous session's result and show it immediately.
  4. Get work off the main thread. Disk, network, deserialising large JSON — background only.
  5. Check heavy animations and layout. Animated splash, Lottie on the first screen, deep view hierarchies.
  6. Add Baseline Profiles for key journeys and verify the effect with Macrobenchmark. Don't forget R8 and, for profile rewriting, AGP 8.2 or newer.
  7. Protect the result. Add a startup benchmark to CI and compare every release with the previous one.

Typical mistakes

  • Measuring only TTID and reporting success while the user stares at a skeleton for several more seconds.
  • Testing a debug build: it lacks ART and R8 optimisations, so the numbers are meaningless.
  • Artificially extending the splash screen "for the brand" — users perceive it as slowness.
  • Relying on the average instead of p90.
  • Initialising a dozen SDKs in Application.onCreate "because the docs say so".
  • Optimising without re-measuring: some "improvements" have no effect at all.

Action plan

  1. Define the moment after which the user can actually work, and mark it with reportFullyDrawn().
  2. Set up Macrobenchmark or XCTApplicationLaunchMetric for cold start.
  3. Capture a baseline on a low-end, mid-range and flagship device.
  4. Check field data in Android vitals and Xcode Organizer.
  5. Work through the optimisation list above, one change at a time, re-measuring each.
  6. Add the benchmark to CI and watch for regressions.

Fast startup isn't a race for the smallest number. It's a short path to the first useful action, without the deception of skeleton screens and hidden unreadiness. We wrote about how that path fits into the overall first impression in our article on the first 60 seconds in an app, and about the business effect of speed using Zomato's experience.

Sources: Android Developers: How Gmail Wear OS improved startup; Android Developers: App startup time; Android vitals: App startup time; Apple WWDC 2019: Optimizing App Launch; Android Developers Blog: How a single Android developer improved Lyft's Drivers app startup time by 21% in one month; Nielsen Norman Group: Response Times.

Mobile App Architecture: MVVM, Clean Architecture and Modularisation Without Overkill

Mobile App Architecture: MVVM, Clean Architecture and Modularisation Without Overkill

Mobile app architecture usually fails at one of two extremes. In the first, all the code lives in a 2,000-line ViewController or Activity, and any change to one screen breaks something next door. In the second, a ten-screen MVP gets a "perfect" Clean Architecture with five layers, a use case for every API call and twenty Gradle modules, and the team needs a week to add one form field.

This article explains what MVVM, Clean Architecture and modularisation actually give you, how to size them to your product and team, and which signals tell you it is time to add structure. We lean on the official Android recommendations and modern SwiftUI practice.

What problem architecture solves

Architecture is not about pretty diagrams. It answers practical questions: how much a change costs, how easily it can be tested and how many people can work in parallel without stepping on each other. Mobile adds platform challenges: screens are destroyed and recreated (rotation, memory pressure), the process can be killed in the background, and the network drops mid-request.

So the core principles are the same on iOS and Android:

  • Separation of concerns. The UI renders state and forwards events; business logic and data access live elsewhere.
  • Single source of truth. Every data type has one owner, such as a repository backed by a local database.
  • Unidirectional data flow (UDF). State flows down to the UI, events flow up to the ViewModel. Google recommends this explicitly in its architecture recommendations.
  • UI driven by a state model. A screen is a function of state, not a sequence of imperative calls.

MVVM: the baseline for most apps

MVVM (Model–View–ViewModel) is the de facto standard: on Android it is backed by Jetpack ViewModel and StateFlow, on iOS by SwiftUI with Observation (@Observable) or ObservableObject on older versions.

What a healthy ViewModel looks like

  • Exposes a single screen state object (UiState): data, a loading flag, an error.
  • Accepts UI events: "Retry tapped", "filter changed".
  • Knows nothing about concrete views, contexts or navigation controllers.
  • Delegates data work to repositories rather than calling the API directly.
  • Is covered by unit tests that run without an emulator or simulator.

A typical problem we find in code audits: the ViewModel becomes an 800–1,500-line god object that validates forms, formats dates, caches, talks to the network and handles analytics. That is the same Massive View Controller, just moved into another file. A sign it is time to extract logic: a method longer than a screen, or identical logic copied into two ViewModels.

MVI and TCA as variations

MVI treats state as an immutable object and every change as a reducer over events. On iOS, The Composable Architecture implements a similar idea. These approaches bring predictability and convenient testing of complex screens at the cost of more boilerplate. A sensible strategy is MVVM by default and a reducer approach for screens with complex state logic: multi-step forms, carts, editors.

Clean Architecture: what to keep and what to skip

Robert Martin described Clean Architecture as concentric circles with dependencies pointing inwards: business rules know nothing about frameworks, databases or UI. In mobile practice this usually becomes three layers: presentation, domain and data.

An important detail that often gets missed: the Android guide explicitly marks the domain layer as optional. It is worth introducing when logic is complex or reused by several ViewModels. A use case that merely forwards a repository call adds a file, a test and a level of indirection with no benefit.

LayerContainsWhen you need it
PresentationView, ViewModel, UiState, mapping to screen formatAlways
DomainUse cases, business rules, domain modelsWhen logic is complex or shared across screens
DataRepositories, API clients, database, cache, DTOsAlways, at least as a repository

Signs of over-engineering

  • Three nearly identical models (DTO, Entity, Domain) for every entity with no difference in fields.
  • A use case for every repository method, each containing a single line.
  • Interfaces with exactly one implementation that nobody substitutes, not even in tests.
  • Adding a field to the API requires changes in 7–10 files.

Modularisation: when to split the codebase

A module is a Gradle module on Android or a Swift package / framework on iOS. Modularisation brings faster incremental builds, clear boundaries between teams, code reuse and enforced isolation: a feature module simply cannot see another module's internals. Google covers the approaches in its modularisation guide, and the Now in Android reference app shows them in practice.

But every module means build configuration, a public API, dependencies and maintenance time. Here are guidelines from our experience:

Product sizeTeamRecommended structure
MVP, up to 20 screens1–3 mobile developersOne app module with feature packages; optionally a separate core networking module
Growing product, 20–60 screens3–6 developersapp + core (network, database, design system) + 3–8 feature modules
Large product, 60+ screensseveral teamsFeature modules split into api/impl, module owners, dependency graph checks

How to split well

  1. Start with packages by feature, not by layer. A "checkout" folder with everything inside is far easier to extract than files scattered across "viewmodels" and "repositories".
  2. Extract core first. Networking, database, design system and analytics are needed by every feature and change less often.
  3. Feature modules do not depend on each other. Navigation between them goes through the app module or a dedicated navigation contract.
  4. Watch the graph. Circular dependencies, or a "core" that depends on everything and everything depends on, destroy the benefits.
  5. Measure. Clean and incremental build times before and after; Gradle Build Scans and the build cache on Android, Xcode's build timing summary on iOS.

Cross-platform specifics

Flutter and React Native apply the same principles with their own tools. In Flutter, Riverpod and BLoC are common ViewModel equivalents with UDF; in React Native, stateful hooks, Zustand or Redux Toolkit, and React Query for server state. The most useful split here is between server state (cached API responses) and local UI state. When both live in one global store, you get stale data and unnecessary re-renders.

With Kotlin Multiplatform it makes sense to share the data and domain layers while keeping the UI native or on Compose Multiplatform. That way layer boundaries line up with platform boundaries.

Testability as a measure of architecture

The simplest architecture test is trying to write a unit test for a screen's logic. If you need an emulator, ten mocks or access to private fields, the boundaries are in the wrong place. A realistic test pyramid for a mid-complexity app, from our experience:

LevelWhat we testApproximate share
UnitViewModels, use cases, mappers, validation60–75%
IntegrationRepository + database, API client against a fake server15–25%
UI / end-to-endCritical flows: sign-in, payment, onboarding5–15%

Inject dependencies through constructors (Hilt or Koin on Android, a simple DI container or factories on iOS) so tests can swap them for fakes easily.

Common mistakes

  • Tutorial architecture without adaptation. A big company's sample project structure does not necessarily fit a team of two.
  • Business logic in the UI. A discount calculation inside a Composable or SwiftUI View cannot be properly tested or reused.
  • No single source of truth. User data cached in three places drifts apart after a profile update.
  • Modularisation for its own sake. Thirty modules for fifteen screens slow down both development and builds.
  • Postponed refactoring. Boundaries you did not draw at 20 screens will cost several times more at 80.

Checklist for your project

  1. Every screen has a ViewModel (or equivalent) with one UiState and tests.
  2. Data access goes through repositories; ViewModels never call the API directly.
  3. A domain layer appears only where there is real business logic or reuse.
  4. Code is grouped by feature; core functionality is extracted separately.
  5. Adding a simple API field touches no more than 3–4 files.
  6. Incremental build time is measured and does not creep up unnoticed.
  7. Architecture decisions are briefly recorded as ADRs (Architecture Decision Records) so new developers understand the "why".

Sources: Android: Guide to app architecture; Android: Architecture recommendations; Android: Domain layer; Android: Guide to modularization; Now in Android; Robert C. Martin: The Clean Architecture; Apple: Observation; Apple: Swift packages; The Composable Architecture.

Adaptive Apps for Foldables and Googlebook: What Google Play Will Start Looking At

Adaptive Apps for Foldables and Googlebook: What Google Play Will Start Looking At

Google has warned developers that next year Google Play will look more closely at how apps and games run on foldables and will offer more opportunities to showcase adaptive products. Specific store requirements are promised later this year. Until they appear, the best preparation is to understand what Google counts as adaptive quality and to fix weak spots now.

What is known today

In its October Android Dev Summit announcement, Google linked two things. First, with the arrival of Googlebook, apps can scale across phones and laptops without a separate codebase. Second, next year Google Play will look closely at how apps run on foldables. Details are promised "later this year", so there are no official requirements at the time of writing. For apps, Google advises following the Adaptive app quality guidelines; for games, a separate set of adaptive games guidelines.

Three tiers of adaptive quality

TierNameIn short
Tier 3 (basic)Adaptive readyThe app runs full screen or full window on all devices, without letterboxing or compatibility mode; basic support for keyboard, mouse, trackpad and stylus
Tier 2 (better)Adaptive optimizedLayout optimizations for all screen sizes and configurations, with enhanced support for external input devices
Tier 1 (best)Adaptive differentiatedAn experience designed for the device: multitasking, foldable postures, drag and drop, stylus

To earn the Large Screen Badge on Google Play, Google says to complete Tier 2 (optimize for all screen sizes) and Tier 1 (a differentiated experience for large screens). Google also notes that your app probably does not need to meet every requirement: implement the ones that make sense for your use cases.

How to test

According to Google, layout and UX testing should cover at least these device types:

  • Googlebook (160 ppi);
  • foldable (841×701 dp);
  • 8-inch tablet (1024×640 dp);
  • 10.5-inch tablet (1280×800 dp);
  • 13-inch Chromebook (1600×900 dp).

Android Studio provides emulators for this: Pixel Fold for foldables, Medium Tablet for tablets and Desktop (Preview) for desktop, which needs a Canary build. There is also the resizable emulator for arbitrary configurations.

What breaks first

Google states plainly that when screens fold, windows resize and apps move across form factors, usual layout assumptions can break and apps easily lose state. So your checklist should include:

  • State preservation when folding and unfolding, resizing the window and rotating.
  • Multi-pane layouts instead of a stretched phone screen (Grid, FlexBox, Navigation 3, WindowManager).
  • Tabletop posture for camera and media screens.
  • External input: keyboard shortcuts, hover states, tooltips, trackpad and mouse cursors.
  • Tablet and foldable screenshots on your Google Play listing: Google recommends showing the app on these devices and mentioning it in the description.

Speeding up work with agents

The updated Compose Adaptive skill helps agents turn compact screens into responsive multi-pane layouts and handle state and configuration changes. According to Google, it now adds foldable and desktop support: windowing, keyboard shortcuts, tooltips and trackpad hover states. The skill also audits Compose UI for these elements and refactors camera and media screens into tabletop layouts. It is a tool for a first-draft audit, but the result still needs manual checks on real devices.

Where to start in your project

  1. Find your current tier: go through the Tier 3 checklist and make sure the app does not run in compatibility mode.
  2. Run a critical flow on a foldable emulator while folding and resizing.
  3. Fix state loss before polishing visuals.
  4. Add keyboard and mouse support for the main actions.
  5. Update your store listing with large-screen screenshots.
  6. Watch for the Google Play announcement on requirements and opportunities for adaptive apps.

For more on technical approaches, see our article on tablet and foldable apps and our comparison of SwiftUI, Compose and classic Views.

Adaptivity is no longer a nice extra: it is becoming a visible quality signal in the store. Teams that start with state preservation and basic layouts will be ready before the requirements appear.

Sources: Android Developers Blog: Agentic and Flexible: A next era of Android development; Android Developers: Adaptive app quality guidelines; Android Developers Blog: Build for every screen with the latest Jetpack Compose updates.

Google Play Requirements Due January 27, 2027: Contacts, Location, Call Logs, Subscriptions

Google Play Requirements Due January 27, 2027: Contacts, Location, Call Logs, Subscriptions

In plain terms: Google Play has updated its rules on personal data and several technical capabilities, and the Policy Deadlines page in Play Console lists January 27, 2027 for part of these changes. If your app touches contacts, precise location, the call log, geofences or discounted subscriptions, this concerns you. Below is each change, what it means in practice and where to start checking.

Three dates to put in your calendar

DateWhat changes
January 27, 2027Contacts, location, READ_CALL_LOG, geofencing in foreground services, subscriptions with ongoing eligibility-based discounts
April 14, 2027The AppFunctions API must comply with Google Play policies
August 25, 2027Local Network and Manage Contacts: restrictions and Play Console declarations

Dates come from the Play Console Help "Policy Deadlines" page. Check it before planning work, since Google may refine the timelines.

1. Contacts: Contact Picker instead of broad access

Apps that do not need broad access to contacts must use the Android Contact Picker. It is a system picker where the user chooses the contacts to share and the app receives only those. It is available from Android 17, needs no permission and collects less data.

A related platform change: apps that target the next Android release will no longer be able to write to contacts directly with WRITE_CONTACTS. Instead you use the ACTION_INSERT, ACTION_EDIT and ACTION_INSERT_OR_EDIT intents, which need no permission. For a small set of apps with broad needs (for example contact managers or background sync with an enterprise account) a special MANAGE_CONTACTS permission arrives, with a declaration in Play Console. This does not affect apps targeting older versions.

What to check: search your code for WRITE_CONTACTS, direct ContactsContract writes and applyBatch, replace user-initiated actions with intents, and decide whether you really need broad access.

2. Location: the location button as the minimum scope

The updated policy names the location button as the recommended minimum scope for precise location. In practice: if your app requests precise location, justify why it is needed continuously and consider a flow where location is requested at the moment of the user's action. We wrote about the consequences of background access in our article on location and background tasks.

3. READ_CALL_LOG: phone-call verification no longer fits

Account verification through a phone call is no longer a permitted use of READ_CALL_LOG. If your sign-in or number confirmation relies on reading the call log, you will need to replace that flow with a different verification method.

4. Geofencing in foreground services

Geofencing has been removed from the approved foreground service use cases. For these scenarios Google points to the Geofence API. If your app keeps a notification-bearing service running only to track geofences, its architecture needs a second look.

5. Subscriptions with eligibility-based discounts

Subscriptions with ongoing eligibility-based discounts (for example student or regional pricing) must clearly disclose the eligibility criteria, the verification process and the price after eligibility ends. Check your paywall, your Play Console listing and the subscription management screen: all of it should be clear before purchase. For monetization models, see also our piece on subscriptions versus one-time purchases.

What comes next: 2027

By April 14, 2027 the AppFunctions API must comply with Google Play policies: deceiving or manipulating AI agents, bypassing security controls or interfering with other apps is prohibited. By August 25, 2027 Local Network access is restricted to apps that need it for core functionality when system pickers are insufficient, and apps targeting Android 17 (API 37+) must submit a declaration in Play Console. The same logic applies to the Manage Contacts permission.

January checklist

  1. List every sensitive permission in your manifest: contacts, precise location, call log, foreground services.
  2. For each, write down which feature it enables and whether narrower access would do.
  3. Replace broad contact access with the Contact Picker and intents.
  4. Review discounted subscriptions: criteria, verification, price after the discount ends.
  5. Update Data safety and your privacy policy, as described in our article on privacy manifests, ATT and Data safety.
  6. Add these checks to your release checklist.

The rule across all of these changes is the same: request the minimum access, explain it to the user, and build sensitive capabilities on system components.

Sources: Play Console Help: Policy Deadlines; Play Console Help: Google Play Policy Update, April 15, 2026; Android Developers Blog: A more reliable way to add and edit contacts on Android.

Compose 1.13, AppState and Navigation 3: What Changes in Android App Architecture

Compose 1.13, AppState and Navigation 3: What Changes in Android App Architecture

Android Dev Summit 2026 brought more than new APIs: it shifted how Google recommends building UI, state and navigation. The upcoming stable Compose 1.13 adds Grid and FlexBox, Navigation 3 1.2 is already stable, and Jetpack AppState in alpha moves Compose's state model into the architecture layer. Here is what to build into a project now and what to simply watch.

What was announced

ComponentStatusWhat it gives you
Jetpack Compose 1.13Upcoming stable releaseGrid and FlexBox, Progressive Blur, Formatted Text, recomposition tracing
BasicTextFieldRewritten (according to Google)Buffer-driven architecture, TextFieldState, no IME race conditions
Navigation 3 1.2StableType-safe deep links, richer Predictive back
Jetpack AppStateAlphaTransform and StateStore: reactive state beyond the UI

Adaptive layouts: Grid and FlexBox

Google calls Compose the standard for all UI on Android and the reasoning is simple: one approach instead of fragmented codebases for phones, foldables, tablets, wearables, cars, XR and Googlebook. In Compose 1.13, built-in adaptive layout support through Grid and FlexBox moves to stable. Together with Navigation 3 and WindowManager, it is the foundation for multi-pane interfaces that rearrange to the window instead of just stretching a phone screen.

If your screens were only ever designed for phones, this is a good moment to revisit them. We covered the practical limits of this approach in our piece on tablet and foldable apps.

Text fields and graphics

Google reports that text editing in Compose is now built on a rewritten BasicTextField with a buffer-driven architecture and TextFieldState. The goal is to remove keyboard (IME) race conditions and support formatted text. For apps with complex forms, chats or editors, it is worth testing separately on real devices and different keyboards, since input bugs are usually the most painful ones.

Compose 1.13 also brings Progressive Blur and Formatted Text, and Google says graphics features such as mesh gradients run without hurting battery or frame rate. Effects are useful, but measure their impact on your own app.

Recomposition tracing: why the UI redraws

Compose 1.13 introduces recomposition tracing. It shows not only which functions recomposed but why, all the way back to the state write that triggered it. Combined with composition tracing in the Android Studio Profiler, it makes unnecessary recompositions easier to find. For coding agents, Google published the jetpack-compose-performance skill, which points them at common performance anti-patterns.

Jetpack AppState: state as part of the architecture

AppState (alpha) brings Compose's snapshot system into the app layer. Transform derives reactive state from State and Flow inputs using automatic read tracking and plain Kotlin control flow. StateStore is a keyed container that shares observable state across activities, background services, widgets and App Functions, optionally persisted through DataStore.

It is an interesting idea for apps where the same state appears on several surfaces: a screen, a widget, a notification, an agent call. But it is alpha, so APIs may change. Our recommendation is to pilot AppState in an isolated module of a non-critical feature rather than rewrite your core with it. For how app layers relate to each other, see our article on MVVM and Clean Architecture.

Navigation 3 1.2: deep links without manual parsing

Navigation 3 works with a back stack that you own. Version 1.2 adds built-in type-safe deep link support: with Kotlin Serialization you can map incoming URIs and intents to strongly typed navigation keys, customize how complex arguments are parsed, and lazily build synthetic back stacks so back navigation feels natural. Google also mentions richer Predictive back handling.

What teams should do

  1. Plan the upgrade to Compose 1.13 once it is stable, and run UI tests and profiling before and after.
  2. Check layouts at different window sizes: folding a foldable, resizing a window or using a tablet must not reset state.
  3. Evaluate Navigation 3 if you are on the previous navigation and plan deep links or multi-pane screens.
  4. Try AppState on an isolated feature and keep alpha APIs off the critical path.
  5. Add Android skills for your agents: Google offers Adaptive, Compose performance, XML to Compose migration and Ink. For choosing between UI approaches, see our comparison of SwiftUI, Compose and classic Views.

Conclusion

The core idea of these updates is that Compose is moving beyond the rendering layer: it becomes the basis for adaptive layouts, text, navigation and state. For new projects, that means designing architecture for multiple form factors from the start instead of adding them at the end.

Sources: Android Developers Blog: Build for every screen with the latest Jetpack Compose updates; Android Developers Blog: Agentic and Flexible: A next era of Android development; Android Developers Blog: What's new in Android developer tools and performance.

Why Mobile Products Must Be Tested on Affordable Devices

Why Mobile Products Must Be Tested on Affordable Devices

An emulator on a powerful laptop and a flagship phone in a developer’s pocket create a false sense of quality. The app opens in a second, lists scroll smoothly, the camera focuses instantly. But a large share of the real audience uses phones with slower processors, less memory, cheaper storage and older OS versions — and that is exactly where problems the team never saw during development show up.

In our projects we keep seeing the same pattern: bug reports saying “it freezes”, “it crashes when I take a photo” or “it takes forever to load” almost always come from budget devices. That is why an affordable smartphone is not an optional extra for us but a mandatory part of the test fleet. Below is how we set up this kind of testing, which thresholds we use and which mistakes we recommend avoiding.

Why flagships and emulators are misleading

The difference between devices is not just CPU clock speed. Affordable phones have slower storage (often eMMC instead of UFS), so reading the database and unpacking resources at startup takes noticeably longer. Less RAM means the system kills background processes more aggressively: the user switches to a messenger, comes back, and the app starts from scratch, losing whatever they had typed. Under sustained load, cheaper chips overheat and throttle sooner, and some manufacturers add their own “battery optimisers” that stop background work.

Users do not perceive “low FPS” or “slow cold start” as separate technical events. They see a freeze, tap the button again, end up with a duplicate order or simply close the app. We covered why speed directly affects retention in our piece on Zomato’s experience.

What the Josh case study shows

A telling public example is Josh, an Indian short-video app whose story was published by the Android Developers team. The developers aimed for a consistent experience across high-end, mid-range and low-end devices and focused on cold start, because improving it automatically speeds up warm and hot starts as well.

  • The team profiled every block of code executed during startup and analysed system traces in Perfetto, Systrace and the Android Studio Profiler.
  • They disabled auto-initialisation of some third-party SDKs, removed legacy libraries and moved certain modules to the background.
  • They reduced the splash-screen drawables and optimised them for screen size.
  • Each change was validated in isolation by emulating cold starts and using Jetpack Macrobenchmark.

The result, according to the case study: startup became 30% faster for the average user and 3x faster for roughly 10% of users on older and low-end devices. Better bounce rates and retention helped Josh retain more than a million users compared with the baseline, and Play Store ratings trended upward. The key lesson: the biggest gains went to the people with the weakest phones.

Thresholds worth aiming for

To keep testing from becoming a subjective “feels slow”, you need numbers. Some of them are set by Google Play through Android vitals: exceeding the thresholds can reduce your app’s visibility in the store. Others are internal targets we use, and they should be read as studio experience.

MetricThresholdSource
Cold start (TTID)5 s or longer is considered excessiveAndroid vitals
Warm start2 s or longerAndroid vitals
Hot start1.5 s or longerAndroid vitals
User-perceived crash rate1.09% overall, 8% on a single phone modelAndroid vitals
User-perceived ANR rate0.47% overall, 8% on a single modelAndroid vitals
Frame budget≈16.7 ms at 60 Hz, ≈8.3 ms at 120 HzDisplay physics
Cold start on a budget devicetarget of 2–3 s to the first useful actionStudio target

Pay attention to the per-model thresholds. The average across all devices may look green while one popular budget model has crash rates of several percent — and that is a visibility and reputation problem in its own right.

Device matrix: the minimum to start with

The test fleet does not have to be large. Four or five devices are enough for us, provided they are chosen from data rather than from whatever happens to be lying around the office. Check the distribution of models, RAM and OS versions in Play Console, App Store Connect or your analytics.

  • One current flagship as the reference for design and animation.
  • One mid-range device running the Android version most common in your audience.
  • One affordable phone with 3–4 GB of RAM and slow storage.
  • The oldest iPhone still supported by your minimum iOS version.
  • If relevant, a device running Android Go edition, if you operate in markets where such phones are common.

A step-by-step testing process

  1. Define 5–7 key scenarios: first launch, sign-in, search, completing the core action, camera or file upload.
  2. Measure cold start on every device: on Android via the Displayed line in Logcat or Macrobenchmark, on iOS via Instruments. Repeat at least 10 times and take the median.
  3. Check scrolling of long lists, keyboard opening, image loading and screen rotation.
  4. Background the app, open a few heavy apps and return: form data and list position must survive.
  5. Throttle the network: speed profiles in the Android Emulator or Network Link Conditioner on iOS. Test switching between Wi‑Fi and mobile data.
  6. Repeat the key scenarios with battery saver on and a low battery level.
  7. Record not just the bug but the context: model, OS version, free memory, network state.

Common mistakes

  • Testing only debug builds. They are slower than release builds and distort measurements; measure performance on a release build with R8.
  • Initialising everything in Application.onCreate. Analytics, ads, support chat and an A/B platform at startup are a classic cause of slow launches, exactly as the Josh case shows.
  • Loading images at full resolution. On a weak device this is a direct route to an OutOfMemoryError.
  • Looking only at averages. Budget-device problems hide in the 90th and 95th percentiles.
  • Checking once before release. Performance regressions accumulate quietly, so measurements should be automated.

Pre-release checklist

  • Cold start on a budget device has been measured and is nowhere near the 5 s threshold.
  • Crash rate and ANR rate are below the Android vitals thresholds, including for your audience’s top models.
  • Form and navigation state is restored after process death.
  • Key scenarios have been run on a slow network and in battery saver mode.
  • Third-party SDKs not needed for the first screen are initialised lazily.
  • Startup metrics are tracked in production, not only in the test lab.

An affordable device is not a “lesser” user. It is a real environment in which the product has to keep its promise. Testing on it reduces abandonment and negative reviews, and with them the number of emergency fixes after release. After launch, look beyond downloads, at behaviour after install.

Sources: Android Developers: Josh app startup case study; Android vitals: core vitals and bad behavior thresholds; Android vitals: App startup time; Jetpack Macrobenchmark; Android: Build for Billions.

Journal

Ideas and products