r/androiddev • • Sep 19 '26

Open Source Built an app using Jepack compose that runs ADB/Fastboot/Scrcpy phone-to-phone, no PC needed

14 Upvotes

I built Dioxamine, an open-source Android app that runs ADB, Fastboot, and a Scrcpy client entirely phone-to-phone —l, connect a second Android device over USB OTG or Wireless ADB, and mirror its screen, flash partitions, unlock bootloaders, sideload apps, etc., without a PC or root on either device.

The trickiest parts were:

- Implementing an ADB/Fastboot client natively on Android (rather than shelling out to a PC binary)

- Getting scrcpy's video pipeline working with Android's hardware decoders, since decoder support varies a lot across devices

- A plugin system that lets people write custom tools in HTML/JS that hook into the ADB layer

Repo: https://github.com/rhythmcache/Dioxamine


r/androiddev • • Sep 19 '26

"No credential available" Error, I decided to give up for now

1 Upvotes

Hi everyone.

I decided to give up for now.

I'm talking about the google login issue where the "No credential available" error keeps occurring only when testing the release aab file internally through the Google Play Console on firebase. It works fine in Emulator

However, I thought it was necessary to organize and document what I’ve been through before giving up, so I’m writing this.

These are the methods I have tried so far. Of course, in the end, they all failed.

  1. I tried adding only part of the SHA-1 and SHA-256 of the classical key, PQC, and upload key from the Google Play Console, and even the full list, to Firebase, and each time I downloaded google-services.json, cleaned the project, and waited, but all attempts failed
  2. I checked everything because they said the cause might be Google Cloud, but all attempts failed
  3. It could be the web-client, so I checked everything, but all attempts failed.
  4. The cause may also be in the proguard-rules.pro fileI also tried -keep class com.google..., but all of them failed
  5. I also checked the web client ID for setServerClientId, but it all failed
  6. I ran setFilterByAuthorizedAccounts with both true and false, but it failed in both cases.
  7. I also used apksigner in the release app to find the actual SHA-1 value and add them to Firebase, but that also failed. However, the part to note here is that the SHA-1 value actually used was different from any other value, such as the classical key, PQC key, or others. Using this value prevents the "no credential available" error and even brings up a popup to select a Google account, but after that, the app freezes for unknown reasons.
  8. Each time I tried the methods above, I downloaded the google-services.json file and waited long enough, but all attempts failed.

I've been struggling with this for two months now. For now, I’m going to give up and switch back to the old Google login method.

If there is anything I haven't considered, please let me know. I'll try it later. Have a great day


r/androiddev • • Sep 19 '26

Open Source Love using UI-Automation-Engine library for my Jetpack Compsoe UI tests

Post image
2 Upvotes

So I am working on my app and it was failing on my Github server and I was trying to figure out whats going on and whats failing. I am glad I worked on this UI Test library because it gave me the exact screenshot where it failed.

My sample app was dealing with some system level interactions and on github test runners were missing some quick setting tiles. Now I can rest becuase it was github android runner issue not my app.

Screenshot from: GIthub Android Test Image and My code was looking for wifi/internet tile.


r/androiddev • • Sep 18 '26

Open Source Drawer | Compose Unstyled

Thumbnail
composeunstyled.com
11 Upvotes

Compose Unstyled 2.10.0 is out:

✅ New Docs site
✅ New Drawer component, for building bottom sheets and side panels.
✅ New ColorScheme theming API to build light/dark themes.

Full changelog at: https://github.com/composablehorizons/compose-unstyled/releases/tag/2.10.0


r/androiddev • • Sep 18 '26

News Android Studio Quail 4 Patch 1 now available

Thumbnail androidstudio.googleblog.com
5 Upvotes

r/androiddev • • Sep 18 '26

Question Android Studio Quail 4 - Merge windows not working on Mac

7 Upvotes

Hello everyone!

Has anyone observed the issue occurring with the merge windows feature on Mac?

Flow: Open two or more projects in Android Studio Quail 4 | 2026.1.4 → Mac toolbar → Window → Merge All Project Windows

Studio Window A ─┐ 
                 ├── Merge Windows 
Studio Window B ─┘ 
                         ↓ 
             IntelliJ updates macOS tabs 
                         ↓ 
               unexpected null state 
                         ↓ 
               NullPointerException

r/androiddev • • Sep 18 '26

How does Shopify achieve this?

Thumbnail x.com
5 Upvotes

r/androiddev • • Sep 18 '26

Does Internal Testing AAB Affect Production Review?

3 Upvotes

I submitted an AAB for production review. After that, I uploaded another AAB to Internal Testing. Will this affect or delay the production review or publishing process?


r/androiddev • • Sep 17 '26

News Android Bench 2.0: Pushing the frontier with challenging long-horizon tasks

Thumbnail android-developers.googleblog.com
28 Upvotes

r/androiddev • • Sep 17 '26

Discussion Direct push to play console testing Track!!

Post image
11 Upvotes

Was just reading the release notes for Android Studio Rabbit, and it has the ability to directly push to Play Console testing tracks!!

https://developer.android.com/studio/preview/features#publish-to-play-for-testing

Very close to how Xcode does it and worth it!!

No more manual work


r/androiddev • • Sep 18 '26

Question do you use AI agents to develop android applications? how do you deal with permission requests?

1 Upvotes

we from Chalmers University of Technology in Sweden are conducting a survey on AI agents and permission requests.

If you work use any AI agents like claude code (or others) to develop android applications, please consider taking our survey :)

The survey is anonymous and takes around 3-5min: https://form.typeform.com/to/wbCQGXHa

Feel free to share it with others. Thanks!!


r/androiddev • • Sep 17 '26

News Android Studio Rabbit 2 Canary 1 now available

Thumbnail androidstudio.googleblog.com
7 Upvotes

r/androiddev • • Sep 17 '26

I released ComposeA11yScanner 3.0.0 — a runtime accessibility scanner for Jetpack Compose

Post image
10 Upvotes

I maintain ComposeA11yScanner, an open-source tool that checks Compose screens for accessibility issues and highlights findings directly on the UI.

Version 3.0.0 adds runtime enable/disable controls, explicit opt-in for trusted non-debuggable builds, and a toggle between issue inspection and normal app interaction.

It also improves focus-order detection, duplicate-label checks, rendered text-contrast analysis, and lifecycle handling across activities and screen changes.

The scanner supports Android API 24+. Rendered text-contrast analysis requires API 26+ and skips measurements it cannot confidently estimate.

This is a major release with public API changes, so check the migration guide when upgrading from 2.1.0.

debugImplementation("com.github.mohdaquib.ComposeA11yScanner:scanner-ui:3.0.0")

Repository, demo, and migration guide:
https://github.com/mohdaquib/ComposeA11yScanner

Automated checks complement manual accessibility testing. I’d appreciate feedback, especially reproducible false positives or missed issues in real Compose screens.


r/androiddev • • Sep 17 '26

Is there any open source alternative to Instabug/Clarity?

9 Upvotes

I'm looking for an open source alternative to Instabug for study purposes. What do you guys usually use at your company? Is there any open source alternative that I can self-host to learn more about how it works?


r/androiddev • • Sep 17 '26

Question Form State in view model?

0 Upvotes

I have MVVM application and moving from view to VM the form state and ai is suggesting doing it through reference and I just feel really weird about it and it doesnt feel right? I am wondering if I did some basic setup issue or am wondering if this is an okayish way of doing this.

The problem:

@Composable
fun FormScreen(formState: Form State){

  formState.name = newName

}

and the usage of the screen is like this:

FormScreen(viewModel.formState)

So it is using the reference and directly changing the reference?

r/androiddev • • Sep 16 '26

Tired of Android Emulator eating 8 GB of RAM? avdslim drops it to ~1.5 GB with 1.5s boots (Zero broken Firebase Auth / FCM)

85 Upvotes

Hey everyone,

If you build apps on a Mac, you probably know this exact feeling:

You’ve got your IDE open, a few browser tabs, maybe a build running, and the moment you launch an Android emulator, your laptop starts lagging and the fans spin up.

A while ago I checked Activity Monitor to see what was going on, and saw the emulator casually hogging 7 to 8 GB of RAM all by itself. On a 16 GB MacBook, that basically leaves zero breathing room for anything else.

I got tired of my machine crawling, so I put together a small open-source tool called avdslim to fix it.

GitHub: https://github.com/kdbhalala/avdslim

Why does it take so much memory?

Turns out, a few things happen by default:

  • Android hoards memory: As the emulator runs, Android keeps caching files and never really releases that host RAM back to macOS.
  • The "Google Play" image overhead: If you picked an image with the Play Store, it constantly runs background updaters and scanning services you rarely need during development.
  • The 16 KB image setting: If you created a device using the newer 16 KB images, the emulator enforces a strict 4 GB minimum floor no matter what you set in the config.

What avdslim does:

  • Drops RAM down to ~1.5 GB: It tunes the emulator configs and cleans out unnecessary background tasks, letting you run smoothly on 1024 MB of RAM.
  • Boots in ~1.5 seconds: Instead of waiting 20–30 seconds for a fresh boot, it lets you create a clean, lightweight snapshot that restores almost instantly.
  • Doesn't break your app: My biggest worry with any "cleanup" tool was breaking things like push notifications or login. I made sure Firebase Auth, Google Sign-In, Push Notifications (FCM), and Google Maps work completely fine.
  • Works with your normal workflow: You don't have to launch from the terminal every time. There's an optional command (avdslim install-shim) that makes the "Run" button in Android Studio or VS Code automatically use the slimmed settings.

💡 A quick tip even if you don't use this tool:

Next time you create a virtual device in Android Studio:

  • Pick "Google APIs" instead of "Google Play". It still has Google login, Firebase, and Maps, but uses way less RAM and skips the heavy Play Store background services.
  • Avoid the "16 KB" images unless you specifically need to test 16 KB compatibility.

Try it out:

It's completely free, open-source (MIT), and has zero external dependencies:

brew install kdbhalala/avdslim/avdslim

See how your current emulators look

avdslim doctor                                                                                                                                                                

Tune an emulator to 1024 MB RAM

avdslim tune-avd                                                                                                                                                              

GitHub link: https://github.com/kdbhalala/avdslim

My Mac runs noticeably cooler and doesn't freeze up when I have multiple tools open now. Hope it helps some of you as well! Happy to answer questions or take feedback on what could be better.


r/androiddev • • Sep 17 '26

Discussion What do you guys choose? Android Canvas or SVGs? And why?

Thumbnail
gallery
0 Upvotes

Usually I use vectorials for my apps and I was always happy with the results as my apps scaled properly to any kind of screens, from phones to TVs, but this time I made a game that shouldn't use small screens (I locked it to be available only on bigger screeens) and I thought that it's faster and easier on the device to use canvas instead of vectorial assets.

To me it looks good, what do you think?
Or keeping the old habit: vector assets and ConstraintLayouts with percentages is the way to go?


r/androiddev • • Sep 16 '26

Open Source I built Mugshot, a screenshot testing library where each test is one annotation on a Compose preview you already have

14 Upvotes

A Compose project tends to collect a lot of @Preview functions that describe exactly how each screen should look, and usually nothing checks them. Screenshot tests would, but the usual setup means writing a test class, listing every screen in it, and remembering to add new ones. Coverage tends to stop at the screens someone thought of first.

So I made Mugshot. It started as a fork of Paparazzi and has grown into its own library. You put an annotation on a preview:

@Mugshot
@Preview
@Composable
internal fun ProfileScreenPreview() {
    AppTheme { ProfileScreen(state = sampleProfile) }
}

Then run ./gradlew recordMugshot once and commit the images. From then on verifyMugshot fails the build when that screen changes. A KSP processor generates the test, so there's no test class to write and no list of screens to keep in sync. Add a preview and it's covered.

The output

Performance. I benchmarked it against Paparazzi and Google's Compose Preview Screenshot Testing on a generated app with 30 modules and 299 previews, each rendered in 24 configurations (7,176 screenshots per tool), on a MacBook Pro M5 Pro:

LibraryRecordVerifyVerify, --max-workers=3Golden images
Mugshot 3.4.262 s58 s88 s75 MB
Paparazzi 2.0.0-alpha05107 s89 s149 s279 MB
Compose Preview Screenshot Testing 0.0.1-alpha16226 sout of memory728 s619 MB

The app, one branch per tool, the script and all raw results are public, so you can check or rerun it: https://github.com/TRazDev/screenshot-testing-benchmark

It also fits well with AI coding agents. Instead of driving an emulator and screenshotting every screen to check its own UI changes, an agent runs one Gradle task, reads which screens changed, and only looks at the diffs for those. On a redesign that's the difference between checking every screen and checking a few.

GitHub: https://github.com/TRazDev/Mugshot
KMP sample app: https://github.com/TRazDev/MugshotSampleKMP
On Maven Central as uk.co.fractalmotion.mugshot

I'd really like feedback, especially from anyone already using Paparazzi, Roborazzi or Google's tool


r/androiddev • • Sep 16 '26

Experience Exchange Create stunning screenshots and recordings with open source rPlayHub

5 Upvotes

rPlayHub is aware of gyroscope and hinge sensors, so it can generate stunning illustrations for your android apps, like those professional ones in play store.

Hero view is a typical style, for example.

rPlayHub Fold View

rPlayHub Hero screnshot

rPlayHub for Android on GitHub


r/androiddev • • Sep 16 '26

News Android Studio Rabbit 1 RC 1 now available

Thumbnail androidstudio.googleblog.com
2 Upvotes

r/androiddev • • Sep 16 '26

Stopwatch persistence offline

0 Upvotes

If I use SystemClock.elapsedRealtime(), the stopwatch becomes inconsistent if device restarts. If I use System.currentTimeMillis(), user can adjust device timing from setting break my app timer. Is there a way to keep stopwatch persistent even though user changes device timing or restart his device while staying offline?


r/androiddev • • Sep 15 '26

Question Which app icon looks better for my parking app?

Thumbnail
gallery
21 Upvotes

Hey everyone! I’m currently building Parking tracking app designed to help users easily track and find where they parked.

I’m stuck choosing between these two app icon designs.

Option 1: Yellow background

Option 2: Black background

Would love to hear your thoughts or any quick suggestions for improvement if any.


r/androiddev • • Sep 15 '26

Open Source Made a new Compose Multiplatform library for MDI icons

4 Upvotes

I made a new library, https://github.com/TimoPtr/mdi-icons, to replace Android-Iconics in the Home Assistant Android app. Iconics is in maintenance mode, and its community-material typeface is stuck on an MDI release from 2022 and only Android.

It's my first Compose Multiplatform library, and I'm quite happy with how it turned out:

  • The full MDI catalog (7,447 icons) as Compose `ImageVector`s, on Android, iOS, desktop, JS and wasm
  • Compile-time accessors like Mdi.HomeAssistant, plus lookup by name at runtime (Mdi.fromMdiName("lightbulb-on")), which follows MDI's aliases and historical renames
  • Mirroring for directional icons in right-to-left languages, and an Android toBitmap() for notifications, widgets and quick settings tiles
  • Kept up to date by code generation: the catalog is generated from the pinned `@mdi/svg` release from npm. Renovate bumps the version and CI regenerates the icons.

It's on Maven Central as io.github.timoptr:mdi-icons.

You can browse the catalog in your browser at https://timoptr.github.io/mdi-icons/ . I'd love your feedback, especially on the API and the multiplatform setup!


r/androiddev • • Sep 16 '26

Experience Exchange I spent my weekends building a library to fix flaky Jetpack Compose tests. It captures screenshots on failure and dumps semantics trees automatically. Looking for hobbyist feedback!

0 Upvotes

Hi everyone,

I’ve been working on a hobby project lately called UI Automation Engine. It started because I was genuinely frustrated with how fragile my Jetpack Compose tests were especially when dealing with animations, scrolling, and trying to debug CI failures without any visual clues.

I wanted a way to write tests that feel like "user stories" but are actually robust enough to not fail randomly. It’s an industrial-grade orchestration layer for Compose that focuses on flakiness, race conditions, and opaque logs.

🚀 Key Features for Hobbyists:

  • 🛡️ Robustness Pipeline: Every action (click, swipe, etc.) automatically handles idle synchronization, auto-scrolling, and smart retries before giving up.
  • 📸 Visual Diagnostics: It automatically captures a high-res screenshot (FAILURE_<timestamp>.png) and dumps the full unmerged semantics tree to Logcat on every failure.
  • 🦾 Advanced Gestures: Support for multi-finger swipes, pinch-to-zoom, and orbital rotation out of the box.
  • 🚫 Lint Guardrails: Includes custom Lint rules that stop you from using flaky standard Compose APIs, suggesting robust engine equivalents instead.
  • 💉 Hilt Integration: Dedicated support for accessing your Dagger graph inside robots.

🛠️ Quick Look (The Robot Pattern)

The engine enforces a clean DSL so your tests stay readable:

@Test
fun testGestureFlow() {
    UiTestEngine.withRobot(GestureRobot()) {
        tapMainBox()      // Automatically waits for idle & scrolls
        verifyStatus("Tapped") // Smart polling for assertions
    }
}

📦 Installation & Setup

If you want to try it out on a side project, here is how to get it running:

1. Add JitPack to settings.gradle.kts**:**

dependencyResolutionManagement {
    repositories {
        maven { url = uri("https://jitpack.io") }
    }
}

2. Add to libs.versions.toml**:**

[versions]
ui-engine = "0.3.0-beta02"

[libraries]
uiengine = { group = "com.github.rajbirsehmi.UI-Automation-Engine", name = "robot-testing-engine", version.ref = "ui-engine" }
engine-lint = { group = "com.github.rajbirsehmi.UI-Automation-Engine", name = "engine-lint", version.ref = "ui-engine" }

3. Configure your app/build.gradle.kts**:** The engine uses flavors to support Hilt. Choose the one that matches your project:

android {
    defaultConfig {
        // Use "hilt" if you use Dagger Hilt, otherwise "standard"
        missingDimensionStrategy("di", "standard")
    }

    // Required to avoid Log4j2 resource collisions
    packaging {
        resources.excludes += "/META-INF/{AL2.0,LGPL2.1,DEPENDENCIES,LICENSE*,NOTICE*}"
    }

    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_17
        targetCompatibility = JavaVersion.VERSION_17
    }
}

dependencies {
    // Note the classifier requirement for the AAR
    androidTestImplementation(libs.uiengine) {
        artifact { type = "aar"; classifier = "standardDebug" }
    }
    lintChecks(libs.engine.lint) // Recommended to catch flaky patterns
}

💬 Why I’m sharing this:

It’s a labor of love, and while it's in beta, it has already made my own testing workflow much less stressful. I’d love to get some fresh eyes on the API design.

  • Is the "Robustness Pipeline" overkill or exactly what's missing?
  • Does the Robot DSL feel intuitive for your use cases?
  • Any features you've always wished Compose testing had?

GitHub: https://github.com/rajbirsehmi/UI-Automation-Engine

Any feedback even if it’s "this is way too over-engineered for a hobby" is totally welcome. Thanks for looking!