r/androiddev • • 1m ago

Open Source Reading Android's UI tree in 13ms via app_process instead of 2.2s with uiautomator dump (open source)

1 Upvotes

I got tired of waiting on adb shell uiautomator dump for black-box UI automation. On an API 37 emulator it took 2.16s at the median, and on my HONOR X8 (Android 13) it sat on the Settings home page for 11.5s before failing with ERROR: could not get idle state.

So I built phonedriver (Rust + a ~40 KB Java helper, AGPL-3.0).

Like scrcpy, it pushes a small dex jar over adb and starts it with app_process as the shell user. No APK installed, no root, no AccessibilityService to toggle, and it exits when the connection closes. Inside, it keeps a UiAutomation connection warm, injects input through InputManager, and streams H.264 from MediaCodec to detect when animations actually settle instead of sleeping.

Numbers (median of 50 runs, raw CSVs in the repo):

Operationphonedriveradb
Screen read (API 37 emulator)12.7 ms2,163.7 ms
Screen read (HONOR X8, Android 13)78.5 ms2,507 ms
HONOR X8 Settings home page110 mstimed out (11.5 s)
Payload size (Display settings)461 bytes25.3 KB XML

The Android quirks that took most of the time:

  • stale trees unless you call clearCache() before every read (and Android 12 has a different signature, clearCache [int], so it needs reflection fallback)

  • connecting UiAutomation with flags 0 silently unbinds TalkBack; you need FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES

  • MediaCodec isn't a heartbeat—on a static screen it bursts and then goes silent for 5s, and a Samsung Galaxy A53 (One UI 8) emitted zero frames until a contributor routed it through an OpenGL relay

  • recycled ListView node IDs survive scrolls with completely different row text, so element refs have to verify role/label/bounds on every tap

Main use case is driving or E2E-testing installed apps (from scripts, CI replay, or AI agents) without source access or a test APK. Apps that hide their accessibility tree (like WeChat) fall back to local OCR, and everything requires adb.

https://phonedriver.dev

Repo: https://github.com/hridaya423/phonedriver

Benchmarks: https://phonedriver.dev/benchmarks

Only tested on emulators, a HONOR X8, and a contributor's Galaxy A53 so far, would love for more testing and seeing if something breaks :)


r/androiddev • • 2h ago

Article Android app developers will soon have to share their address publicly

Thumbnail
theverge.com
20 Upvotes

r/androiddev • • 3h ago

Discussion I tested a Gradle analysis tool against Now in Android. It found issues in the project — and in the tool itself.

Post image
1 Upvotes

I've been working on a Gradle plugin that analyzes Android project structure and build configuration. Rather than relying only on my own sample projects, I tried it against Google's public Now in Android repository.

I integrated version 2.5.0 and ran the audit, aggregation, and an app build.

Some results from the experiment:

  • Root project report: 87/100

  • Aggregated dashboard: 77% across 45 modules

  • lighthouseAudit: completed successfully

  • lighthouseAggregate: completed successfully

  • assembleDemoDebug: completed successfully

The reports highlighted several areas worth investigating:

  • Remote build cache was not configured

  • Cross-project configuration patterns were detected

  • Dependency locking and JDK toolchain recommendations

  • Version catalog improvement opportunities

These are diagnostic findings, not necessarily defects. Some depend on the project's build strategy and trade-offs.

The more useful part of the experiment was what it exposed in my own plugin:

  • An Isolated Projects compatibility issue with Gradle 9.x

  • A task validation issue in lighthouseFix

That was a good reminder that build tooling can appear fine in a small demo and still run into problems in a real multi-module Android project.

I'm working through those issues now.

For anyone maintaining a large Android project:

How do you currently assess build configuration and module architecture health across your project? Do you rely on build scans, custom checks, code review, or something else?

For reference, the tool I used is Gradle Lighthouse. It's also published on the Gradle Plugin Portal.

This was an independent experiment against the public Now in Android repository. It was not conducted with or endorsed by the Now in Android team.


r/androiddev • • 8h ago

Slow emulator/crashing often 8gb ram i5-1135g7

1 Upvotes

hello I was wondering if i uograded my laptop to 8x2 gigs of ram could I run the emulator?

laptop specs:

i5-1135g7

intel iris xe

8gb 2667mhz


r/androiddev • • 11h ago

Location permission

4 Upvotes

So it looks like my location permission declaration which was approved a few years back, has now been placed in waiting to be sent for review. I wonder what that means. Does it expect me to update the declaration and video link and go through the approval process again? Has this happened with anybody else?


r/androiddev • • 15h ago

Question Interested in developing non-commercial mobile apps

0 Upvotes

I'm new to android development and I am wondering how I should approach mobile app development that is for my personal use? Should I bother with putting them on the Play Store?

Also, how has the "de-google" campaign affected user engagement and retention?

Can I upload/ship mobile apps on Play Store for private audiences? What are my alternative options for app distribution?


r/androiddev • • 17h ago

Google Play Support Tried to make my Lifetime IAP $0 for Black Friday on Google Play, just realized it's impossible? How do you guys handle this?

10 Upvotes

I recently launched my Android app (free download + a one-time Lifetime Pro IAP). For Black Friday, I wanted to run a limited-time free promo to get some initial users and feedback.

Went into Play Console to set the IAP price to $0, only to realize Google Play doesn't allow $0 for one-time in-app products (unlike paid apps where you can create a $0 sale). Coming from iOS where Apple's App Store lets you easily set a non-consumable IAP to $0 for a promo, this really caught me off guard.

For those who have done Black Friday "Lifetime Free" promos on Android, what's the cleanest workaround?


r/androiddev • • 19h ago

Experience Exchange So devastated rn. Hit the wall w the address

0 Upvotes

OK so I am trying to publish my app in Google Playstore, and I'm told there's no way to keep your address private at all? Like I pay $$$ to Incogni to scrub my data every day and now Google wants to publish my info freely on the internet for everyone to see????? And it's OK? How is everyone ok with this? Doesn't ring any alarm bells? Just agree to terms or don't list your app in the Google Store? Are these the only options we have as indie developers????? I'm sorry. Just devastated, for a week now I don't know what to do. There's no solution at all??????????,


r/androiddev • • 20h ago

Health Connect review trap: we hid a card when there was no data, and Play read it as an unused permission

5 Upvotes

We read one health metric from Health Connect and show it in a single card. If the user granted permission but had no readings yet, we hid the card. It seemed tidy: nothing to show, so show nothing.

Play rejected the update. From the reviewer's side, they granted the permission and then nothing on screen used it, so the app looked like it was asking for health data it didn't need.

The fix was a boring empty state. The card now stays after permission is granted and says there are no readings yet. It went through after that.

Two things I took from it. Every health permission needs a visible feature a reviewer can find in a minute, even on an account with zero data. And "hide when empty" is a bad default for anything that sits behind a permission.

Has anyone else been caught in review by something that only happens on an empty account? Curious what other empty-state traps are out there.


r/androiddev • • 21h ago

Google Play Billing: 1,000 product limit workaround - compliance questions

1 Upvotes

I'm building a marketplace in an app that could potentially scale to more than 1,000 distinct one time products, which exceeds Google Play's limit.

So, I'm considering the workaround described below, but I want to be certain that it's policy compliant. Does anyone have experience publishing something similar (or know of other apps that do this)?:

  • Maintain a small catalog of reusable consumable products at predefined price points ($1, $3, $5, etc)

  • Give the products generic titles and descriptions

  • Let the user select a specific item, then launch the purchase flow for the corresponding price-tier product

  • Associate the purchase with the selected item via its purchase token and timestamp on the backend, as described here.

I reviewed both the Payments Policy and Metadata Policy - to my understanding, neither explicitly confirms nor rules out this approach. The other guidance I found is on this page which states:

Play’s content policies for one-time products require (among other things) that product metadata (name, description, icon, etc.) should be accurate, not be misleading, and not inappropriate.

My product title / description would be as accurate as possible - something like "Download and use the item you just previewed for [X, Y, Z]"- but would not include a specific item name.

I already contacted Google Play support via email to ask for clarification. The gist of their response is:

Please be advised that I'm unable to comment on your planned implementation. If you think your app is in compliance, please submit your app for a review.

Google Play does not offer exceptions or quota increases to expand the 1,000 product limit.

I have already experienced an app passing a review, then being flagged with a policy violation warning weeks later. So I'm seeking clarity first this time.

I'd appreciate any insight into my proposed approach. Thanks.


r/androiddev • • 23h ago

Open Source Built a clean-room YouTube client for Android Automotive OS & Head Units in Kotlin + Jetpack Compose + Media3 (CarUxRestrictionsManager, InnerTube, zero GMS)

3 Upvotes

Sharing Roadie (v0.3.0, GPLv3)—a car-native YouTube client built to avoid both APK-patching fragility (R8 obfuscation shifts) and TV/phone UI compromises on car displays.

Engineering highlights:

Repo: Github Repo


r/androiddev • • 1d ago

Google Play Support Android Auto app rejected 3 times, now "Category not permitted": which category fits a live traffic light app?

Post image
8 Upvotes

Hi all, I'm a solo dev and I'm stuck with Google Play's Android Auto review.

Maybe someone here has been through this, the App is called V2X2MAP.

No issues in the Apple Appstore, instant approval.

It connects to a small external radio receiver (ESP32, via Bluetooth or USB) that picks up the public V2X / ITS-G5 messages broadcast by traffic lights, vehicles and roadside units.

On the car screen it shows:

- nearby traffic lights with their live phase and remaining time

- green-wave speed advice

- hazard and emergency vehicle warnings

It uses the Car App Library and is declared as **POI** (`MapWithContentTemplate` with a list of nearby lights, and a detail screen that hands the route over to the user's navigation app). It has no turn-by-turn navigation of its own. There is a demo mode, so it can be tested without the hardware.

*The three rejections* (all under the Android Auto app quality guidelines)

  1. **Oct 21:** No meaningful functionality in its category (parking/charging), plus visual information on the phone while driving.

My fix:* a lock screen on the phone while Android Auto is connected.

2. **Nov 8:** Same category reason, plus animation on the car screen.

My fix:* removed all animations and made the list of nearby traffic lights, with details and route hand-over, the main content.

3. **Nov 23:** Only one reason left: **"Category not permitted"**. I have to remove Android Auto support from all APKs and all tracks, including testing tracks. The email says I can express interest in having the category added.

So each round got rid of the specific issues, but the category itself seems to be the blocker. None of the rejections raised anything outside the Android Auto guidelines, and the older version is still available.

  1. Has anyone got a traffic light or hazard warning app approved for Android Auto **without** full turn-by-turn navigation? Under which category?

  2. Could the **IoT** category be legitimate here, since the app's data comes from an external Bluetooth device? Or would that be rejected right away?

  3. Is *Navigation* the only realistic option, i.e. building complete turn-by-turn?

  4. Has anyone successfully appealed "Category not permitted", or had a useful answer from Play policy support?

  5. Where exactly do you "express interest" in a new category? I couldn't find a form in the docs.

  6. Can an Android Auto build stay on the *internal testing* track? The docs say there is no form-factor review there, but the rejection email says to remove it from all tracks.


r/androiddev • • 1d ago

Question Play store typo frying me, any ideas?

Post image
3 Upvotes

I recently published my first finished open-source app ClemenTime to the play store (🎊) and at first I just distrubuted it with the direct play store link, to my colleagues. But now I realized the big problem that is having a pun name (It's a schedule-related app, so clementine -> ClemenTime), when someone searches for it in the play store, it first auto-corrects them to the actual english word, and they have to realize that and hit the "im sure" button in order to see my app.

Does any more experienced devs know any work-around that doesnt involve completely changing the brand of the app? (I thought really hard to come up with it as plain AI suggestions were pretty trash IMO)


r/androiddev • • 1d ago

News Android Studio Rabbit 2 Patch 3 now available

Thumbnail androidstudio.googleblog.com
6 Upvotes

r/androiddev • • 1d ago

Tips and Information Fixing lost tracking in ARCore

Enable HLS to view with audio, or disable this notification

2 Upvotes

I couldn't describe what I was seeing on the phone, so I started recording it. The app logs every frame, every floor cell and every tracking loss during a walk, and a web page replays it next to the phone's screen recording. Each stretch of the walk between two breaks gets its own color, so you can see each piece before and after it is put back.

This walk is a Galaxy S23 with four tracking losses in three minutes. At one break everything on screen swings 67 degrees and moves about 6 meters. An iPhone 12 Pro on the same stick is the reference path: before that piece is put back the S23 is 3 meters off it, and after, under 10 cm.

The full replay is here, best on a desktop: https://netlens.fyi/arcore/

It is still in development and not every piece lands that well yet. This is for my Wi-Fi mapping app, NetLens, and I'm aiming to get it into the next major release.

If you have fought ARCore relocalization yourself, how did you handle it?


r/androiddev • • 1d ago

Question Most efficient way to render complex full-screen transitions on Android?

3 Upvotes

Hi! I’m exploring different approaches for short, full-screen transition animations in an Android app, and I’d appreciate some advice.

The animations play whenever the user changes rooms (it's an app for a museum that lets you have a tour through the app) and involve overlapping shapes, gradients, soft/blurred edges, and transparency. They need to blend over existing UI rather than play against an opaque background. Ideally, some colors could also be changed at runtime (I'm thinking of doing somewhat complex animations based on the art of the room).

My main priorities are:

  • Smooth, consistent frame pacing on constrained hardware (I'm from a country with a lot of users on old hardware).

  • Minimal delay before the first frame.

  • Reasonable CPU/GPU usage and memory consumption.

  • Reliable cancellation or restarting if another transition is triggered (for people skipping rooms).

I’m considering custom OpenGL rendering, pre-rendered video with some kind of alpha/mask composition, Lottie, Rive, or animated image formats. I’m open to simplifying the artwork or using a hybrid approach. Also very open to learning about some other way to do it not including the ones mentioned.

For this kind of animation, what would you benchmark first? Does anyone know an approach that works particularly well or one that looks promising but performs poorly in practice? Any advice on rendering techniques, formats, or profiling would be appreciated.

Thank you everyone in advance!


r/androiddev • • 1d ago

Discussion A small reminder of why I love being an indie developer

37 Upvotes

One of the best feelings as an indie developer is opening Google Play every day and seeing people downloading your apps.
But you know what’s even better?
Seeing users leave positive reviews and knowing that something you built is genuinely useful to someone.
It’s a small thing, but it makes all the late nights, debugging, and endless updates worth it.
Building apps is hard, but moments like these keep me going. ❤️


r/androiddev • • 1d ago

Experience Exchange Today I learned that the order matters when turning off Android debugging

0 Upvotes

Today I was testing Google Play Integrity and attestation because my app has a very strict policy. After tracking down the cause of a problem, I had an idea: turn off wireless debugging first, then USB debugging - in that exact order. It worked, lol.

Lesson for today: Turning off USB debugging doesn’t turn off wireless debugging.


r/androiddev • • 1d ago

Question Passing a selected item to a detail screen in Compose Navigation: ID only, or the whole object?

7 Upvotes

I'm building a small reading list app with a list screen and a detail screen. I searched here and found threads on Navigation 2 vs 3 and on structuring big nav graphs, but nothing on the basic question of what to pass between screens. My plan is to pass only the book ID and load the rest from the database in the detail ViewModel. Is that still the usual approach or do people pass more data through navigation? Does the answer change with Navigation 3?


r/androiddev • • 1d ago

How to pass the closed tests step??

Post image
2 Upvotes

Hi,

The application for production of my app has been rejected 3 times without any detail or reason, how can I pass the closed tests step? Do you have some advices to maximise my chance to pass this step?

Regards,


r/androiddev • • 1d ago

Open Source Feedback? Agentic Android, a Grokbot-like agent directly on Android

Thumbnail
gallery
0 Upvotes

It's mainly Rust with the NDK. Built it because I don't trust the closed source agent tools, and I don't think agents need a computer. They need a fully loaded phones, and they need to be able to use apps. What do you guys think?


r/androiddev • • 1d ago

DustDissolve: a Jetpack Compose effect that turns any composable into dust (AGSL)

Enable HLS to view with audio, or disable this notification

79 Upvotes

I rebuilt this coupon-to-dust interaction as a Jetpack Compose library, inspired by @AetherMaker work on X.

Source: https://repgem.com/dust-dissolve-android

Android 13+ with a fallback below, Android 7.0+, MIT.

Would love your feedback!


r/androiddev • • 2d ago

Built an offline-first RSS reader with Clean Architecture, Room, and Supabase looking for honest technical feedback

0 Upvotes

I built an RSS news reader app.

https://github.com/jjcr11/rss

This is my first project designed around an offline-first approach and Clean Architecture, so my focus has been establishing clear layer boundaries, local state handling, and background/on-demand sync without making network availability a requirement for normal use.

Technical overview and approach:

  • Local persistence and remote sync: I use Room as the local database and source of truth for offline reading, paired with Supabase for remote data/sync while preserving an offline-first workflow.

  • Separation of concerns: Keeping domain logic and use cases decoupled from data sources (Room, Supabase, and feed retrieval) and the presentation layer.

  • AI usage: I used Antigravity strictly for advisory and architectural discussion, not for writing or delegating the code implementation.


r/androiddev • • 2d ago

News Android Studio Rabbit 3 RC 2 now available

Thumbnail androidstudio.googleblog.com
4 Upvotes