How Android Apps Handle Real-Time Local Processing
Android's on-device machine learning stack lets apps run inference, image recognition, and text processing locally without sending data to servers, reducing latency and protecting privacy.
Loading…
Topic
92 posts about Android. Every summary links to the original.
See the idea
Android's on-device machine learning stack lets apps run inference, image recognition, and text processing locally without sending data to servers, reducing latency and protecting privacy.
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
MMS on Android requires an active cellular data connection and correct app and carrier settings to send and receive multimedia messages. To enable MMS, open Google Messages, tap your profile icon, go to Messages settings → Advanced, and toggle on Auto-download MMS. On Samsung Galaxy phones using Samsung Messages, enable Auto retrieve under Settings → More settings → Multimedia messages. Ensure Mobile data is turned on in device settings and verify that the Access Point Name (APN) includes the carrier’s MMSC and lists “mms” in the APN type field. If MMS fails to download, common fixes include toggling Auto-download MMS, turning off Wi-Fi Calling, resetting APN settings, and clearing the Messages app cache. Carrier file size limits vary, with Verizon allowing up to 1.2 MB for images and T-Mobile capping sends at 1 MB.
Both iPhone and Android users can schedule text messages natively without third-party apps. On iPhone with iOS 18 or later, open Messages, tap the + icon, select Send Later, and pick a date and time up to 14 days ahead. On Android using Google Messages, type your text, long-press the Send button, and choose a scheduled send time. For older iPhones or SMS to Android users, the Shortcuts app can create a Time of Day automation to send messages. The post also covers third-party apps, the iPhone Reminders workaround, and Samsung Galaxy Messages scheduling. For businesses, Twilio’s Message Scheduling API allows scheduling SMS, MMS, or WhatsApp messages from 15 minutes to 35 days in advance.
Google AI Studio now enables building full-stack Android applications with Gemini 4 Carbon and Hydrogen, shipping them to the Play Store in minutes. The Build agent automatically provisions a Cloud Firestore database with Security Rules and Google Sign-In for persistent, cross-device data. It also configures Firebase AI Logic and App Check to protect Gemini API credentials server-side. New emulator features include faster startup, 1200p HD streaming, real-time audio output, and one-click screenshot capture for visual UI edits. The agent uses the official Android CLI for project scaffolding and builds, and publishes signed Android App Bundles directly to a personal Google Play library.
Android’s source code is massive, with the Android 17 release containing 1,084 Git repositories and 1.62 million files, making traditional checkouts and builds slow. Google built Another Build File Service (ABFS) to address these bottlenecks using a content-addressable filesystem and two-phase build caching. ABFS reduced checkout times from roughly 36 minutes to under 8 seconds and full build times from about 80 minutes to just over 2 minutes for the Cuttlefish emulator target, which executes 192,249 Ninja actions. The system lazy-loads source code and build files on demand, and its shared cache can reuse up to 100% of build actions across CI and developer workspaces, even when typical changes touch only 1-10 Git projects. ABFS is open source and designed to scale to other massive Git-based projects beyond Android.
Meta’s Reality Labs ported Cuttlefish, the Android Open Source Project’s virtual-device framework, to run natively on macOS with Apple silicon. Cuttlefish boots the same system images as real hardware, providing higher fidelity than lightweight emulators like Goldfish, but was previously Linux-only. The port revived QEMU as the virtual machine monitor, made vhost-user backends portable beyond Linux, and increased memory-region tracking slots in QEMU’s HVF backend. A native Cocoa display with BGRA pixel format and mouse-click-as-touch support was added for direct interaction. The unified platform eliminates the operational burden of maintaining dual emulator platforms and ensures developers run the same virtual devices used across CI.
Google AI Edge Gallery now includes on-device Automatic Speech Recognition (ASR) and Text-to-Speech (TTS), enabling offline voice interactions on phones and wearables. ML Kit for Android delivers multilingual ASR across 100+ languages at 10x real-time speed with 8-9% Word Error Rate on FLEURS, and a diffusion TTS that begins speaking in ~100 ms, synthesizes 24 kHz audio at up to 50x real-time speed, and cuts power by over 50%. For cross-platform apps, MediaPipe Tasks and LiteRT support open-weight models like Parakeet-TDT 0.6B, PocketTTS 100M, Kokoro-82M, and Phonon 31M, packaged as single .litertlm files. These models run alongside on-device small language models like Gemini Nano and Gemma 4, powering the XR Language Teacher showcase with bilingual TTS code-switching and voice-enabled AI Chat with sentence-synchronized playback. All building blocks, including ML Kit APIs, MediaPipe Tasks, and LiteRT model bundles, are available today for developers to integrate into their own apps.
Starting with Sentry Android SDK 8.51.0, continuous profiling on Android 15 and newer uses Perfetto through Android’s system ProfilingManager API, while devices below Android 15 keep the legacy Debug.startMethodTracing profiler. Existing continuous-profiling users need no configuration change; upgrading moves eligible devices to the new profiler automatically. Moving profiling outside the app process avoids crashes tied to the legacy runtime tracer, reduces CPU and memory overhead, and produces profiles less influenced by the profiler itself. A sample profile shows Gson parsing a large JSON asset for more than a second on the main thread, exposing a missing withContext(Dispatchers.IO) call. Android rate-limits profiling requests, so even a profileSessionSampleRate of 1.0 does not guarantee every session is profiled, and enableLegacyProfiling defaults to true but can be set false to avoid the legacy tracer entirely.
DevFest, the annual community-led event series hosted by Google Developer Groups, returns for 2026 with the theme of building, securing, and scaling in the agentic era. The series runs from October 1 through December 31, 2026, spanning more than 800 events in 115 countries with nearly one million attendees. Sessions and workshops cover Google AI technologies as well as dedicated tracks for Google Cloud, Android, and Web. Events are organized locally in regional languages and feature speakers such as Google Developer Experts, Google engineers, and local innovators. Community outcomes cited include a real-time transcription tool built in two weeks by local organizers for deaf attendees in Ireland and a Tashkent gathering of over 5,000 participants launching collaborative projects.
LiteRT in Google Play services is Android’s on-device inference runtime for custom models, handling over a trillion inferences daily across billions of devices. A major upgrade introduces GPU inference powered by ML Drift that runs about 1.4x faster than the legacy GPU delegate. This faster GPU stack is available through the new CompiledModel API, the modern successor to the Interpreter API. Apps switching to LiteRT in Play services are roughly 8 MB smaller because the runtime, including the GPU accelerator, ships once with Play services rather than being bundled in every app, saving storage and memory. The service now supports phones back to Android 7 (API level 24), Wear OS 4+, and Android Automotive OS (Android 11+), with automatic updates arriving through Play services.
Shopify’s AI agent River could handle web and backend tasks but was limited for mobile development because laptops maxed out with compilers and simulators. To solve this, Shopify built Remote Dev, a fleet of remote Macs that each provide a dedicated environment for River sessions. Agents connect over SSH, and Android emulation required a separate Linux VM with nested virtualization since macOS lacks support. A warm pool of prebuilt Macs reduces setup time from over 30 minutes to a few minutes, and agents can work in parallel on different tasks. River can now autonomously implement changes, build, test, interact with simulators, and create PRs, and it can generate explainer videos from recordings, with adoption growing from 6% to 61% of merged mobile pull requests.
Grab, a superapp with over 100 million Google Play downloads, maintains mobile stability through a layered defense that shifts crash detection left. The strategy spans lint rules, tests, and a one-week Grab Early Access (GEA) pre-production gate, followed by staged rollout and feature flags, then production monitoring with automated triage. Custom lint rules block patterns from prior production crashes, ensuring new code—including AI-generated changes—avoids known pitfalls. GEA catches crashes under real-world conditions before they reach production, and each caught crash prevents a long-tail impact on users without auto-update. A crash that reaches production may require an out-of-cycle hotfix, pulling time from planned work. The principle behind every layer is that a crash caught earlier is cheaper and less disruptive to fix.
The Sentry Android SDK initialization time dropped 20-30% between versions 8.43.0 and 8.54.0, measured on a Pixel 3 with locked clocks using macrobenchmark with 4 interleaved rounds of 10 runs each. Memory allocation and leaks were fixed, and background CPU time fell up to 10%. Over 40 changes drove these gains, including resolving manifest data at build time via the Gradle plugin, replacing java.net.URI with a custom DSN parser 6000x faster, and reusing thread executor pools to cut heap by 3MB. With 4.5 billion app starts per day and 50% cold starts, the 25% cold start reduction saves an average 10ms per start. The estimated daily savings amount to 6,250 hours of CPU time, equivalent to 2.3 MWh per year.
Sapienz, a multi-objective automated testing system for Android, received the ISSTA 2026 Most Influential Paper Award for its 2016 research by Ke Mao, Mark Harman, and Yue Jia. The system combines three goals: exploring more of an app, finding more crashes, and reducing the steps needed to trigger them, making failures easier to investigate. In an evaluation of 1,000 popular Google Play apps, Sapienz found 558 previously unknown crashes. Within 17 months of publication, it was deployed at Meta, where it now runs millions of tests daily, surfaces thousands of unique crashes each week, and helps safeguard hundreds of app releases each month. Sapienz also became the app-exploration engine for dynamic taint analysis at WhatsApp using synthetic conversation test accounts.
Auth0 released its official Kotlin Multiplatform SDK for Android and iOS, enabling unified authentication logic in shared common code. Developers write login, logout, token management, and direct API calls once in commonMain using Kotlin suspend functions and a sealed Result type for exhaustive error handling. Native security is maintained through platform-specific implementations: Android uses Keystore-backed DataStore and Custom Tabs, iOS uses Keychain and ASWebAuthenticationSession, with Swift async/await interop via SKIE. The SDK is available on Maven Central as com.auth0.kmp:auth0:1.0.0-beta.1 as a single artifact or separate modules, requiring Kotlin 2.3.21, Android minSdk 24, and iOS 14.0+. It includes a Credentials Manager for token storage and automatic renewal, and supports advanced features including WebAuthn passkeys, DPoP token binding, custom storage, and configurable retry with fixed or exponential backoff.
The Sentry Flutter SDK records breadcrumbs, user information, and diagnostic data through scope updates, adding overhead to apps. On Android, a dedicated worker isolate handles Sentry Android SDK operations to avoid blocking the main UI isolate, but both the calling isolate and the worker normalized the same data, and the encoding step produced a JSON string plus an unnecessary byte buffer copy. Removing the duplicate normalization roughly halved normalization time, while using JsonUtf8Encoder to encode directly into UTF-8 bytes reduced encoding time by 16% and eliminated the extra copy. Combined, these changes reduced total scope payload processing time by 27–30% for benchmark inputs of 1.2 KB, 23 KB, and 238 KB, as measured on a Google Pixel 4 in release mode. The optimizations are available in sentry_flutter version 9.26.0 and later.
Yelp Assistant is the first large-scale consumer LLM product at Yelp, connecting users with local professionals via chat. To iterate quickly across iOS, Android, and web while avoiding long app-store update cycles, the team chose a hybrid architecture: the top bar and input bar are native, while the chat content area is server-driven using Yelp’s CHAOS framework. The view and data are separated — the client fetches a CHAOS view template once, then conversation data hydrates that template on each turn. The backend sends MessageEvent objects, quick replies, and client actions (such as DisableChat) to control the UI. This hybrid approach enabled rapid iteration, but required building new CHAOS components for text input and network requests, and posed cross-platform consistency challenges.
Building real-time mobile personalization across iOS, Android, React Native, and Flutter required one architecture to handle different rendering models, lifecycles, identity flows, consent requirements, and release cycles without disrupting native app experiences. The team standardized schemas, event semantics, identity behavior, fallback handling, and SDK APIs, using bridge layers so React Native and Flutter could access native iOS and Android capabilities. Developers instrument apps once with constrained content zones and approved native components, while marketers configure templates, targeting, and content through Salesforce UI; metadata is published via a global CDN and rendered dynamically by the SDK. Data 360 performs server-side identity resolution and decisioning, limiting unnecessary raw profile storage on devices. An early customer implemented the system in two months and generated more than 150 million decisions within three weeks, while QR-code previews enabled testing against live profiles without app recompilation.
ADK for Kotlin 1.0 is announced as a general availability release for building AI agents with Kotlin across Android, JVM server applications, and Java-integrated systems. The release targets a production-ready toolkit while preserving an idiomatic, lightweight, composable approach, and it reaches feature parity with ADK 1.0 Core, including hierarchical agents, context compaction, human-in-the-loop confirmation, resumable sessions, annotated tools, and Java interoperability. A Kotlin Multiplatform core stays agnostic to model backends, session providers, and memory systems, while Android extensions support LiteRT-LM, ML Kit (beta), Firebase AI Logic, Room, AppSearch, and file artifacts. The database incident example combines compile-time KSP-generated function schemas, suspend-capable @Tool functions, and dynamically loaded SKILL.md playbooks with progressive disclosure. The release provides 1.0.0 dependencies, documentation, a repository, and sample applications.
Yelp developed Menu Vision to help diners recognize menu items and view corresponding user-generated photos and reviews in real time using their phone cameras. The feature evolved from a two-day hackathon Android prototype into a production system deployed across iOS and Android. Client devices perform all optical character recognition, text cleanup, and dish matching locally using native machine learning frameworks, while dish metadata is prefetched upon opening a restaurant page. Backend pipelines combine partner data, reviews, and photo captions into a Cassandra database, filtering exclusively for dishes with photos. To handle optical character recognition errors and name variations, the matching pipeline runs exact matching, bidirectional substring matching, and Jaro-Winkler similarity matching.
bitdrift has joined ClickHouse’s House Mates program as a mobile observability partner, bringing mobile-native telemetry, tracing, and debugging to ClickStack. ClickStack provides an open-source or managed observability stack built on ClickHouse, with HyperDX and an OpenTelemetry Collector for logs, metrics, traces, and OTLP ingestion. bitdrift’s Capture SDK supports iOS, Android, and React Native, stores unsampled telemetry in a fixed-size on-device ring buffer, and uses control-plane configuration to decide what is collected or uploaded. Shared OpenTelemetry trace context lets engineers follow a mobile request’s trace ID from a session timeline into ClickStack, where backend traces, dependencies, logs, metrics, database operations, and infrastructure behavior are available, creating a continuous debugging path across the device and distributed systems.
The best engineering reads, once a week.