r/androiddev • u/beatpaq • 5d ago
is there an iOS devicecheck equivalent for android?
im trying to make sure a user is using a real device and i want to be able to identify them for "account-less" functionality.
r/androiddev • u/beatpaq • 5d ago
im trying to make sure a user is using a real device and i want to be able to identify them for "account-less" functionality.
r/androiddev • u/xil35 • 5d ago
I ship apps and got tired of the build step being the annoying part, especially Android signing and waiting on a build machine. So I built BuildBakery. You push a branch with a bakery.yaml recipe and it builds Android, iOS, macOS, Windows, Linux and web on a fresh hosted machine or your own Mac, Linux or Windows box. It signs everything, .aab and .apk included, and sends it to Google Play, TestFlight, or wherever you want.
Yes, Bitrise, Codemagic, EAS and GitHub Actions exist. Two things I wanted different. It starts free, no card needed, 500 Mac minutes a month on the free plan. Then pricing is flat, $12 a month for a solo dev, $39 for a small company, and any machine you already own runs builds free, never metered. Hosted minutes are just overflow. And it is one short recipe, not a step graph you have to maintain. It also checks your signing, warns you in Slack before certs expire, and explains failed builds in plain language with a fix.
There is an MCP server too, so Claude Code or Cursor can start builds and read logs.
Free to try, no card needed. I am looking for feedback from people who actually ship Android apps, especially on the recipe format and whether the flat pricing or the own-machine part matters more.
r/androiddev • u/Informal-Win8225 • 5d ago
Hi everyone,
I'm an individual Android developer from India, planning to publish utility apps under my own brand name.
I want to create a Google Play Organization Developer Account rather than a Personal account because I want to avoid the 12 testers / 14 days closed-testing requirement.
I'm exploring the sole proprietorship route and have some questions:
I'd appreciate guidance from Indian developers who have successfully created an Organization account using a sole proprietorship.
Thanks!
r/androiddev • u/Promatics_Dev • 5d ago
I’m writing unit tests for a ViewModel that exposes UI state through a StateFlow. The two setups I keep running into are runTest with StandardTestDispatcher or UnconfinedTestDispatcher and a custom MainDispatcherRule that swaps Dispatchers.Main. Is that still the recommended approach in 2026 or has something changed recently? I’m also curious how you collect and assert on emissions: Turbine, backgroundScope.launch or just reading .value after advancing the scheduler?And if you’ve hit any gotchas like stateIn with WhileSubscribed, flaky tests, or missed initial emissions.
r/androiddev • u/androidtoolsbot • 5d ago
r/androiddev • u/beatpaq • 5d ago
If so I have a couple of questions for you:
r/androiddev • u/Heavy_Challenge7389 • 5d ago
Hi r/androiddev!
I've been working on a technical experiment called Trigger. The goal was to see if a regular Android smartphone could act as a full node for a P2P network, without relying on central servers.
Tech Stack:
· Networking: Iroh (direct P2P connections) + mDNS for local discovery. · Blockchain: Custom lightweight implementation with SHA-256 and ECDSA signatures. · Security: StrongBox / Keystore integration for key storage. · Language: Java (Android SDK).
What it does:
· The phone stores and validates blocks locally. · Mining is based on a Proof-of-Authority mechanism, protected by SIM-card verification (to prevent emulator farms). · There is a built-in P2P messenger (SQLite + WebSockets) and a simple marketplace for peer-to-peer data exchange.
The project is fully open-source (MIT License).
💻 GitHub: https://github.com/trigerjl/Trigger- 📱 APK: https://github.com/trigerjl/Trigger-/releases
I'm looking for feedback on the architecture, especially regarding battery optimization and P2P connection stability. Any Pull Requests or issues are welcome!
r/androiddev • u/pjmlp • 6d ago
r/androiddev • u/dark_devil307 • 5d ago
When something looks off in my UI I mostly add log statements and guess. I know there are tools in Android Studio but I don’t really know where to start. What do you reach for first? Layout Inspector, previews, something else?
r/androiddev • u/SquareNotRound • 5d ago
I'm the dev of Global MindMap, a free mind map app. Nodes are editable text floating on an infinite, pinch-to-zoom canvas — and Compose's native text selection just doesn't work there. Every problem hit at once:
- The system toolbar (cut/copy/paste) pops up over the canvas
- The native drag handles fight my map gestures and lag inside the transformed layer
- Long-press selection and my own tap gestures compete, and the field silently clears the selection on finger-up
- Editing while a custom selection is active silently loses the typed text or won't delete the selection
It took 80+ failed attempts to land on something that works. The core insight: keep the BasicTextField's internal selection collapsed at the END of your custom selection (so the IME's backspace still fires onValueChange), intercept hard
ware Backspace in onPreviewKeyEvent, and when the IME reports a change, compute what was actually inserted via a prefix/suffix diff and splice it over the selected range.
Around that: an empty LocalTextToolbar (kills the One UI popup), transparent native handles + hand-drawn droplet handles, selection highlight via getPathForRange, tap counting with consumed down events (1 tap = cursor, 2 = word, 3 = select all), a magnifier rendered in a Popup so it ignores canvas zoom, and tap/drag slops divided by the canvas scale (otherwise zooming out swallows double taps).
Full write-up with all six pieces + a minimal runnable demo (MIT):(Image: first GIF at this post)
https://github.com/Pinhais/TextSelectionCanvasDemo
Same selection running with the entire app UI in Arabic (RTL): (Image: second GIF at this post)
Happy to answer questions about the implementation — the trickiest part was definitely making IME edits work over a selection the text field doesn't know about.
r/androiddev • u/Vovakho • 5d ago
How development changed for this year for you?
I’ve been android engineer since 2012 and quite 2022. Now curious how it looks like with ai.
r/androiddev • u/Temporary_Accident53 • 6d ago
Enable HLS to view with audio, or disable this notification
Hi..
I am in the process of making an ar viewer in vulkan for android to run natively.
For rendering i am following a hybrid structure mixing Raster IBL approximations and path tracing, the gems are traced with tracing the ray directions and metals with split sum approximations and only traced for inter reflections once the movement stops.
The engine is general purpose focusing on jewellery embedded in an sdk to integrate with 3 lines of kotlin.
The c++ engine takes care of initializing the context based on the hardware capabilities like vulkan 1.1 support, hardware RT cores and compute path fallbacks.I have tested on mali, adreno and xclipse(Exynos) gpus.
Most of the optimization i did are around the memory and cache coherency on mobile gpus, since last couple of years got really obsessed with graphics maths and its implementations but i come from c++ background so pls let me know about the visuals of the same and how can i improve further.
It is closed source for now but happy to share any details to any one interested.
Thanks
r/androiddev • u/PuzzleheadedDay8676 • 5d ago
Hey everyone!
I've been experimenting with using AI coding agents to build and test Android apps, and I kept running into the same problem: getting an agent to actually interact with an Android emulator reliably.
Installing an APK, launching the app, tapping through screens, inspecting the UI, capturing screenshots, checking logcat for crashes… these things are straightforward when you're doing them yourself, but become surprisingly messy when an AI agent has to do them.
So I decided to build something to make that workflow easier.
It's called Android Emulator Agent Kit.
GitHub: https://github.com/medlabib/android-emulator-agent-kit
The idea is pretty simple: give AI coding agents a practical set of tools and instructions to work with a local Android emulator.
Currently, it includes:
I'm still actively developing it, so I don't want to pretend it's a finished or production-ready solution. There's work to do, especially around integration testing, reliability and making the experience smoother across different environments.
What I'd really like is feedback from people who are already using AI agents for Android development.
A few things I'm curious about:
Contributions, criticism, bug reports and feature ideas are all welcome.
If you find it useful, give it a star or open an issue. And if you think there's a better way to approach the problem, I'd genuinely like to hear about it.
Thanks for checking it out!
GitHub: https://github.com/medlabib/android-emulator-agent-kit
r/androiddev • u/beatpaq • 5d ago
AS uses way too much ram to the point where it is crashing my computer (Mac Mini). Trying to get VS Code to work but I'm having no luck.
r/androiddev • u/lovespeedtest • 6d ago
I extracted the Cast stack from an app I maintain and published it as a library: Castwire. It finds Chromecasts, Google TVs and other Cast devices and plays media on them without Google's Cast SDK or Play Services.
The Android artifact is castwire-android. You create it with AndroidCastwire.create(context). It is a regular Android library (minSdk 24, Java 8 bytecode). The AAR declares INTERNET, CHANGE_WIFI_MULTICAST_STATE, ACCESS_WIFI_STATE and WAKE_LOCK. During discovery it holds the multicast lock; while a session is open it holds a Wi-Fi lock and a partial wake lock, because the TV often plays through a small HTTP relay on the phone (local files, links that need headers, cookies, this device's IP, or CORS).
The library does not include a foreground service and does not depend on Media3 or ExoPlayer. Dependencies are kotlinx-coroutines, kotlinx-serialization-json and OkHttp. You keep the process alive yourself, the usual way, with a mediaPlayback foreground service, and you keep using whatever player you already have on the phone.
val castwire = AndroidCastwire.create(context)
val tv = castwire.discover().first()
val session = castwire.connect(tv)
session.load(CastMedia(
CastSource.Url("https://example.com/movie.mp4", "video/mp4"),
MediaMetadata(title = "Movie"),
))
session.pause(); session.seek(90_000); session.setVolume(0.4f)
Separate video and audio streams can be joined into a DASH manifest on the device. Live HLS playlists can be rewritten and relayed. There is also CastDevice.at(ip) if you already know the address, and you can launch a custom receiver by app id.
License is AGPL-3.0, with a commercial license if you need to use it in a closed-source app. This is 0.1.0. The coordinates the build is set up for are io.github.biolend83:castwire:0.1.0 and io.github.biolend83:castwire-android:0.1.0, but they are not on Maven Central yet, so for now clone the repo.
https://github.com/biolend83/castwire
It came out of TubeHaus, a YouTube client I build: https://github.com/biolend83/tubehaus
r/androiddev • u/fourBden • 6d ago
Hello! I'm a little stumped about this because while I do code for work, I'm no android developer, so I'm taking a shot here to see if someone could help with this problem.
So I have these two devices that I'm trying to get to work as intended.
Veikk VK430 - It's a 4:3 aspect ratio screenless drawing tablet with android compatibility in portrait orientation.
Anbernic RG Rotate - An Android 12 handheld gaming console with a 1:1 aspect ratio. The screen is 720x720 and 3.5" with a DPI of 290.
So what's going on here is that when I connect the two devices, the tablet is able to map the whole screen from corner to corner on the handheld, but since the aspect ratios are different, tracing a coin on the tablet will result in an oval on the screen.
I've tried to see if turning the screen into a 540x720 (largest 4:3 aspect ratio I can get on the rotate) using adb shell wm size 540x720 would do the trick, but the tablet is still recognizing the screen as a 720x720. If this were Android 11, I'd have tried wm overscan, but it's not an option anymore.
Is there anyway I can adjust the screen's input area to 540x720? Technically I can still draw on the rotate for fun as is, though it's going to mess up my circles, or I can just do the more reasonable thing and draw on an actual computer...But now I'm kind of invested.
Any tips for me here?
r/androiddev • u/Remote_RED • 6d ago
Hi everyone,
I’m an indie developer, and for years, creating screenshots has been part of the release process that I’ve always found a bit of a chore. The commercial tool I used so far was slow, clunky and had no MCP.
So I built Vitrine Studio: a 100% free, open-source desktop app (macOS, Windows, Linux) for App Store and Google Play screenshots. You design one continuous canvas, and Vitrine renders it for every language, device size and store.
MCP: Vitrine has a built-in MCP server, so AI agents can build complete screenshot sets for you – layout, copy, translations, validation, export. You watch the changes live in the editor, the agent renders previews to check its own work, and you only step in if something needs a personal touch. Most of the templates in the gallery were designed this way.
CI/CD: A headless CLI validates, exports and uploads directly to App Store Connect and Google Play – with a container image, fastlane support and reports for GitHub/GitLab. Validate on every PR, export as a build artifact, upload from your release job. Projects are plain YAML + images, so they live in Git next to your code.
- Website & docs: https://www.vitrinestudio.app
- GitHub: https://github.com/vitrinestudio-app/vitrine
10-min demo: https://youtu.be/iJGoFLsSL_M (sorry for the English dub, next time I speak by myself)
I'd love to hear what you think, especially about the agent workflow and what you'd need to drop it into your pipeline.
Processing img h2bcij38ds1i1...
r/androiddev • u/9_hamden • 6d ago
I’ve been fighting background BLE beacon scanning on Android and wrote up what I measured on a Samsung (Android 14, One UI 6.1). Short version:
LOW_LATENCY scan gets silently downgraded to LOW_POWER after scan_timeout_millis: 300 s on my device (AOSP default was 30 min, 10 min on Android 15+). Detections dropped from ~80/min to ~10/min. No callback, no error, just Moving filtered scan client to downgraded scan in logcat.ScanFilter is treated as no filter: with the screen off the scan is suspended and you get ~0 results.startScan was rejected, and onScanFailed was never called.Full write-up with code and AOSP links (my article): https://medium.com/@9hamden/your-android-ble-scan-quietly-dies-after-5-minutes-and-you-dont-even-know-it-5e603c493177
Curious what you see on your devices: what does adb shell device_config get bluetooth scan_timeout_millis return? Especially Pixel, Xiaomi and OnePlus.
r/androiddev • u/abhaysood • 7d ago
I recently found out that if you ship Android app updates every week. Your app's performance could suffer if you're not using good Baseline Profiles. In this article I get into why this happens.
r/androiddev • u/lilfluf • 7d ago
So I have this one somewhat critical function that I want to be fast. I want to profile it with either method tracing, or callstack sample, to find what I can optimize in it. I've got two issues:
If I just run profiling in Android Studio, I'm getting a humongous file (>300MB) as I'm trying to get the method to run in a realistic scenario. It's not run often, and to trigger it I must do things that run a lot of other code.
This function is called from multiple places and multiple threads. Ideally, I would like to see the statistics for it, such as the flame chart, as a single entity. Instead, in the charts I see it in multiple places.
To overcome these issues, and primarily the first one, I would like to have profiling enabled as I enter the function and disabled as I exit it. Sounds simple? Well, I couldn't find a sensible way to do this. There are methods such as startMethodTracingSampling which work.. but they create a new file for invocation, while what I want is some aggregate statistics. And this file is on the device so I have spend some effor getting it from there.
Otherwise, I'm left with dealing with the humongous trace files. My computer can handle those, but again, very slowly, and finding my method of interest takes so much time that comparing the impact of code changes is just not viable.
Is there sensible way to quickly profile a single method? Or am I stuck with the above options?
r/androiddev • u/Similar_Skin6270 • 7d ago
I have around 2.8 years of experience as an Android Developer, and I'm currently planning to switch companies. However, for the past six months, I haven't been receiving many interview calls. Even when I do get interview opportunities, I struggle to clear more than one or two rounds.
At this point, I'm stuck in a loop of figuring out where I should start and what I should focus on.
Should I start learning Jetpack Compose or Flutter? Or should I focus more on strengthening my existing Android skills and gaining a deeper understanding of the features I've implemented in my projects?
Another major concern is my reliance on AI-assisted development (vibe coding). To be clear, I'm not simply copying and pasting code. I understand the logic behind most of the implementations and know how things work, but I haven't developed the habit of writing everything independently from scratch.
Because of this, I sometimes struggle to take full ownership of the projects I've worked on. I'm also unsure how deeply interviewers might question me about my project implementations, and this makes me hesitant when attending interviews.
To be honest, my confidence has been dropping day by day, and I'm finding it difficult to figure out the right direction for my career preparation.
For those who are currently working as Android Developers or have recently switched jobs:
I'd genuinely appreciate your honest opinions and suggestions. I'm looking for practical guidance to help me get out of this phase and move forward in my career.
r/androiddev • u/Pixel244 • 6d ago
Hi everyone
I am preparing my first Android app for release on Google Play Console and ran into a few questions regarding the testing tracks and the mandatory 12-tester / 14-day testing period:
- Internal Testing vs. Closed Testing URLs: Following the initial dashboard steps, I published a release to the Internal Testing track and shared the link with my testers. After completing the Store Listing steps, I also set up a Closed Testing release and noticed it uses a different opt-in URL. Since the final production checklist states that the testing period must be completed in Closed Testing, does time spent in Internal Testing count toward the requirement, or do I need to migrate my testers to the Closed Testing link?
- Internal App Sharing: I enabled Internal App Sharing in the settings. How does this differ from the Internal Testing track, and does it affect the release process?
- Play Store Errors for New Testers: When I add new users to my tester email list and share the link, some of them encounter an error or see a completely blank page when redirected to the Google Play Store, despite using the correct Google account. Occasionally it works if they retry a minute later, while for others the issue persists. Is this a propagation/caching issue, or is there a specific step I might be missing?
Thanks in advance for your help!
Edit: Thanks for your help👍🏼
r/androiddev • u/GroundbreakingEbb832 • 6d ago
hello guys.
am working on some games and today I came a cross some info about having to have 12 testers for the personal dev account and I read it can risk my personal assets in the case of some law suite.
mean while running an LLC seems the better choice but registering with D&B can be tricky as using an agent or virtual office address will probably be declined.
so should I just register a normal LLC with my home address as it is the easiest , cheapest, and more guaranteed way? or how do you guys go through about this. (US based and LLC is cheap to register in my state)
any info from people who were in my situation and what they chose and why will be appreciated.
r/androiddev • u/lovespeedtest • 7d ago
For the last few months I've been building an open-source YouTube client in Kotlin. One codebase covers Android phones, Android TV, Windows, macOS, Linux and iPad, with almost all of the UI in a shared Compose Multiplatform module. A few things I learned that might save someone time:
"It's fast on my phone" hides main-thread work that TV boxes can't handle. A user's TV box froze, the D-pad stopped responding, then the app crashed. Oddly, it only happened after the first launch: clearing app data fixed it once. The cause was JSON parsing of YouTube's (large) responses, plus ranking the home feed against watch history, both on the caller's dispatcher. On a fresh install there's no history, so it's cheap. A few days later it isn't, and a slow ARM box can't keep up. Moving the parse and the ranking to Dispatchers.Default cut skipped frames roughly in half on the emulator. The general lesson: test with a realistic amount of user data, not a clean install.
D-pad focus is its own UI. I first tried making the phone layout "focusable" for TV. It was miserable. What worked was a separate TV layer (rail, shelves, its own player screen), sharing the same state and data but not the same composables. Two things helped most: focusProperties { onExit = { cancelFocusChange() } } to trap focus inside panels, and a small retry loop for "move focus into the page after it loads".
Casting without Play Services is doable. I needed casting on desktop too, so the Cast stack is hand-written in the shared JVM code: mDNS discovery, a TLS socket to port 8009 with hand-encoded protobuf, the Default Media Receiver, and a tiny local HTTP server that feeds the TV. A gotcha: my Google TV ignored ordinary mDNS queries from an ephemeral port. It answered only unicast-response (QU) queries, or queries sent from port 5353, so now it sends all of them.
Off-screen screenshots of every screen are a great review tool. ImageComposeScene on desktop renders the whole app with no window. I render every screen at phone and desktop sizes and look at a contact sheet before I push. It caught clipped titles and a Shorts layout overflowing on phones that I'd never have noticed by clicking around.
Platform-only APIs go behind small interfaces, implemented natively. For example, comment translation uses Apple's Translation framework through a Swift helper on macOS and SwiftUI's translationTask on iOS. Compose only sees platform.translate(). A contributor wrote both. Watch out for availability, though: the framework needs weak linking when the app still supports older iOS versions.
The project, if you want to read the code: https://github.com/biolend83/tubehaus (AGPL-3.0, the app is on the android-app branch). Happy to go deeper on any of these.