Mosmoxmosmox

Mosmox journal

In focus — Google Play.

A selection of publications grouped under the Google Play tag.

Android Apps from Google AI Studio and Firebase: From Prototype to Google Play Release

Android Apps from Google AI Studio and Firebase: From Prototype to Google Play Release

On November 17, 2026 Firebase announced that Google AI Studio now generates full Kotlin Android apps with a backend: a database, Google sign-in and Gemini-powered AI features. You describe the idea in a prompt and the agent sets up the rest. For a founder this means a working prototype in an evening. But there is still a lot of work between "it works in the demo" and "it is ready for Google Play". Here is what the integration does and what to check before release.

Facts about the integration come from the Firebase blog post.

What the AI Studio agent does

When you ask for an Android app, the agent detects from your prompt whether you need AI features, data storage and user sign-in. With your approval it:

  • creates a Firebase project, provisions Firestore, enables Firebase Authentication and connects the app code to them;
  • configures Google Sign-In;
  • adds AI features through Firebase AI Logic (Gemini API calls) with App Check enforced automatically.

According to Firebase, you do not need to install anything, write code, configure libraries by hand or even enter a credit card.

What changed from the previous version

Before, Kotlin apps from AI Studio kept data only in the browser session: close the tab or switch devices and the data was gone, and collaborative features were impossible without a cloud database. Now data lives in Firestore protected by Firebase Security Rules, so a user can start on a tablet and continue on a phone. Firestore also works offline and syncs once the network is back. The agent writes and validates Security Rules together with the authentication setup.

Why App Check matters here

If an app calls Gemini directly, the key and quota are easy to steal. Firebase AI Logic keeps credentials on the server, and App Check verifies that requests come from your genuine app on an untampered device. Enabling it by default is the right call: an unprotected AI endpoint can burn through a budget in days.

Where the prototype ends

The generated app covers the technical start: project, database, sign-in, AI. A release depends on things the prompt does not know about. Here is the checklist we recommend before publishing.

1. Data security

  • Read the Security Rules like an attacker: can a user read or change someone else's documents if they know the ID?
  • Check that App Check is enforced for every service and that debug tokens are not in the release build.
  • Make sure there are no secrets in the code and that AI requests go only through AI Logic.

2. Money and limits

  • Starting without a card does not mean running for free. Before launch decide which plan Firestore and Gemini will run on, and set up budget alerts in Google Cloud.
  • Estimate the cost of one active user: how many Firestore reads and Gemini tokens a typical flow uses.
  • Add per-user rate limits for AI requests so one account cannot drain the quota.

3. Google Play requirements

  • A privacy policy and an accurate Data safety form: the app collects a Google account, stores data in Firestore and sends content to Gemini.
  • If users can create an account, Google Play requires a way to delete it, both in the app and through a web link.
  • Generative AI apps fall under separate Google Play rules on AI-generated content and letting users report it.

4. Code quality and maintenance

  • Generated code needs a review and an architecture the team can grow: separated UI, logic and data, error handling and offline states.
  • Add analytics, Crashlytics and at least basic tests for key flows.
  • Make sure the code is in your repository and the Firebase project is in your Google Cloud organization with more than one person having access.

5. Product

  • AI answers can be wrong: decide how the app shows uncertainty, lets users regenerate a result and what they see when Gemini is unavailable.
  • Check the first-run experience: Google sign-in, empty states, onboarding.

Who benefits

Founders can test an idea with real users before investing in development. Product managers can show the team a live prototype instead of a mockup. Developers get a fast scaffold with Firebase services already connected, which they then bring up to production quality.

Conclusion

AI Studio with Firebase removes the dullest stage: setting up the backend, sign-in and secure access to Gemini. It really does shorten the path from idea to prototype. A Google Play release, though, needs what a prompt cannot solve: verified access rules, cost control, policy compliance and maintainable code. Plan that stage from day one and the prototype becomes a product rather than a demo you will have to rewrite.

Android Developer Verification: Global Launch in January 2027 and a Checklist for Your Team

Android Developer Verification: Global Launch in January 2027 and a Checklist for Your Team

Google is preparing a global launch of Android developer verification. The protections have been live since 30 September 2026 in Brazil, Indonesia, Singapore and Thailand, and the global rollout begins in January 2027. Here is what changes and what your team should do now.

All facts come from the Android Developers Blog post.

What is happening

Verification was announced in 2025 as an extra security layer that makes it harder for bad actors to repeatedly spread harm. After more than a year of preparation with partners, protections went live for participating stores in four countries. The global rollout starts in January 2027 with seven distributors: Google Play, Galaxy Store, Honor, Oppo, Xiaomi, Transsion and Vivo. Over several months the protections will expand to all countries and all installation sources on certified Android devices.

Registration so far

According to Google, millions of apps have been registered since verification opened to everyone in March. They represent over 99% of all Android app installs globally, via any distribution channel.

What was added based on developer feedback

  • Limited distribution accounts for students and hobbyists: share apps without registration fees or a government ID check. The authorized-device limit grew from 20 to 50.
  • Android Developer ID Status API and Android Developer Console API: automate app registration from CI pipelines for teams with many apps.
  • An advanced flow for power users: install an unregistered app by knowingly accepting the risk, while guardrails against social-engineering scams stay in place for everyday users.

A checklist for your team

  • You publish on Google Play: check package registration status in Play Console and register any unregistered apps, including those you distribute outside Play.
  • You distribute only outside Google Play: create an Android Developer Console account, verify your identity and register your apps.
  • You publish on open-source registries: Google has a dedicated guide for registering existing and new apps.
  • You manage many apps: consider registering through the API from CI instead of by hand.

Google says registering an app takes under ten minutes. The risk of skipping it is that installing your app stops being seamless wherever the protections are live.

Bottom line

There is little time before January, and the work is simple: inventory packages, verify the account, register the apps. Teams that hand out builds outside Google Play (enterprise, regional and test channels) should be especially careful.

Google Play for Games: Foldable Screenshots from April 2027 and Tier 3 from August 2027

Google Play for Games: Foldable Screenshots from April 2027 and Tier 3 from August 2027

On 18 November 2026 Google Play announced new requirements for games on large screens and foldables. Two dates are already set: from April 2027 a game's listing must include foldable screenshots, and from August 2027 a game must meet the baseline Tier 3 of the large screen quality guidelines. Otherwise new games and updates cannot be published.

For game studios this means planning testing and art for several form factors well in advance. Below we go through what exactly Google requires, what Tier 3 covers and what to prepare now.

What Google announced

The Android Developers Blog post of 18 November 2026 describes two requirements:

  • Foldable screenshots (April 2027). New games and store listing updates need at least 3 foldable screenshots in addition to 1 standard phone screenshot, in the game's primary orientation. You can already upload them in Play Console (Grow → Store presence → Store listings).
  • Baseline Tier 3 "Ready" (August 2027). To publish new games and updates, a game must meet at least this level of the large screen and foldables guidelines.

The August milestone focuses on foldables first. Google says the requirements will later extend to tablets, Googlebook laptops and other large screens.

Which screenshots you need

The formats depend on the device type:

  • Standard phones: a screenshot in the game's primary orientation, 16:9 (landscape) or 9:16 (portrait).
  • Foldables with a 1:1 inner display (for example Samsung Galaxy Z Fold8 Ultra, Google Pixel 11 Pro Fold): at least one screenshot of the unfolded 1:1 inner screen. No separate outer screen screenshot is needed because its aspect ratio matches standard phones.
  • Foldables with a 4:3 inner display (for example Samsung Galaxy Z Fold8): at least one screenshot of the 4:3 (or 3:4) inner screen and one of the 16:10 (or 10:16) outer screen.

Screenshots from the Android Emulator's 1:1 and 4:3 foldable devices fully comply with the new Play Console requirements.

The three quality tiers

TierWhat is evaluatedStatus
Tier 3: ReadyFull-screen rendering in supported orientations, unobstructed HUD safe areas, clean in-engine letterbox/pillarbox in unsupported orientations, state and touch alignment preserved across folding, unfolding, rotation and multi-window resizingRequired from August 2027
Tier 2: OptimizedHigh-resolution graphics, proportional HUD scaling, styled framing when letterboxing, smooth frame pacing, full playability with external controllers, keyboards and miceBadging and enhanced merchandising
Tier 1: DifferentiatedSustained 60 FPS (120 FPS on supported displays), thermal and battery stability in long unfolded sessions, efficient modern graphics rendering, dynamic resolution scaling between inner and cover screensBadging and enhanced merchandising

Google notes that Tier 1 and Tier 2 unlock foldable badging on the Play Store, enhanced merchandising and a path to the Google Play Games Level Up program.

What to check in your game

  1. Configuration changes without losing progress. Folding and unfolding the device must not restart the session or reset level progress.
  2. HUD safe areas. UI elements must not be cut off or stretched on the unfolded screen.
  3. Unsupported orientation. If the game supports a single orientation, it should add bars cleanly inside the engine when rotated.
  4. Touch alignment. After the window is resized, touch points must match what the player sees.
  5. Multi-window. Check behavior in a resizable window.

Google points out that with modern engines much of the foundation is already in place: Unity and Unreal have dedicated guides for large screens and resizing.

Timeline

  • November 2026: you can upload foldable screenshots; they will appear in listings over the next few weeks.
  • April 2027: new games and updates must include foldable screenshots at submission.
  • August 2027: baseline Tier 3 is required to publish new games and updates.

You can test on physical devices, in Android Device Streaming, in engine simulators (Unity Device Simulator, Unreal viewport profiles) and in the Android Emulator for 1:1 and 4:3 form factors.

Conclusion

There is enough time to prepare, but game design and UI are the hardest things to change at the last minute. A practical order: capture foldable screenshots, run the game against the Tier 3 checklist on the 1:1 and 4:3 emulators, fix state loss and HUD issues, then look at Tier 2 for badging and merchandising.

Need a foldable audit for your game or help adapting the interface? Get in touch: we will look at your build and propose a plan.

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.

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.

Journal

Ideas and products