r/androiddev • • 23h ago

Tips and Information I get paranoid with strangers beta testing my app because I fear they will steal it.

0 Upvotes

So I need testers and I see multiple groups where people test each others app which is amazing. How do I protect myself and my app? This is my business and it does scare me because I fear someone stealing idea and monetizing from it.


r/androiddev • • 3h ago

Open Source I built and published a Jetpack Compose library for rendering streaming Markdown from Kotlin Flows

Thumbnail
gallery
2 Upvotes

I've been working on a problem that comes up when building AI-powered chat interfaces on Android: rendering Markdown while the response is still streaming .

https://github.com/valentineRutto/StreamMarkdownCompose

AI responses don't arrive as complete Markdown documents. You might receive half a code fence, an unfinished bold expression, or a table that hasn't been fully generated yet.

Rendering each chunk as plain text exposes Markdown syntax to the user. Waiting until the entire response is complete makes the experience feel less responsive.

I built StreamMarkdownCompose to address this.

It's a native Jetpack Compose library that renders Markdown progressively from a Flow<String>.

The attached GIFs demonstrate the difference using the same AI response:

  • Without the library: Markdown symbols like **, #, and backticks are displayed as raw text.
  • With the library: Headings, bold text, lists, and code blocks render as the response streams in.

Current features

  • Streaming Markdown rendering from Kotlin Flow<String>.
  • Handles incomplete Markdown syntax, including unfinished code fences.
  • Native Jetpack Compose implementation — no WebView.
  • Tables and task lists.
  • Syntax-highlighted code blocks with a copy button.
  • HTML sanitization and URL allow-listing.

Links

It's now published on Maven Central.

I'd appreciate feedback from Android developers, especially those building LLM-powered applications.

A few things I'm curious about:

  • What Markdown features are essential in an AI chat UI?
  • How are you currently handling Markdown rendering during streaming?
  • What would you want to see before adopting a library like this?

Happy to hear suggestions, issues, and contributions.


r/androiddev • • 6h ago

Discussion Agents keep bumping Gradle and AGP versions in unrelated PRs

9 Upvotes

Our Android app has a fairly fragile build, about 30 modules, a couple of old annotation processors we haven't migrated yet. Since agents started writing most of our PRs, build config changes keep sneaking in.

In the last month: 4 PRs that were supposed to be UI changes also bumped a library version, one bumped the Android Gradle Plugin, and one changed the Kotlin JVM target "to fix a warning". Each one built fine locally on the author's machine. Two of them broke our release build on CI, one only on the minified variant.

The agent's reasoning is always the same. It hits a build warning or a deprecation, fixes it on the way, and the PR description mentions it in one line at the bottom.

coderabbit flags the version changes in review, which is how we started noticing the pattern at all. But whether a bump is safe for our build is something only the two people who understand our Gradle setup can judge.

What we're trying:

- CODEOWNERS on every build.gradle.kts and the version catalog
- a rule in our agent instructions: no version or build config changes unless the ticket asks for it
- Renovate for all dependency bumps, so they come in their own PRs

How are other Android teams keeping build config changes out of feature PRs?


r/androiddev • • 14h ago

Question Is there a way to modify Samsung's SystemUI without root?

0 Upvotes

Hello everyone,

Basically, I have been working on something on my Galaxy Z Fold device running One UI 9.

Basically, I want to bring back the classic TouchWiz colors and incoming call animations while keeping the modern One UI graphics and native functionality.

I've already modified and successfully rebuilt SystemUI.apk and InCallUI.apk, but I'm facing issues with Samsung's signature verification and system permissions.

I've tried Shizuku, ADB, overlays and Theme Park, but I want this to be native, not an overlay.

Does anyone know how to get the proper authorization, permissions or signing certificate from Samsung? Is there an official developer program or another way to achieve this without root, unlocking the bootloader or tripping Knox?

I've already contacted Samsung regarding Galaxy Themes Studio access and I'm waiting for their response.

I'm not looking for leaked signing keys or anything that would compromise my phone's security.

Has anyone done something similar or knows how to make this work?

Any help would be appreciated.

Thanks in advance


r/androiddev • • 17h ago

ZoomSlider: a Jetpack Compose slider that magnifies the ticks under your finger

42 Upvotes

I rebuilt this zoom-slider interaction as a Jetpack Compose library, inspired by the work of u/kshvbgde.

Press the pill and it opens into a bubble with the full value, while the ticks under your finger spread apart so each step is easy to land on.

Dark/light styles, custom labels, haptics, TalkBack and animation-off support.

Android 7.0+ (API 24), MIT.

Source : https://repgem.com/zoom-slider-android

Would love your feedback!


r/androiddev • • 22h ago

Experience Exchange "Interview take-home task" zip had git hooks that run malware when you checkout a branch or commit. Got this today

130 Upvotes

Got suspicious, so instead of opening the zip on my laptop I gave it to Claude to analyse. Claude unzipped it in its cloud sandbox and read the files without running anything. It spotted two non-default git hooks in .git/hooks/ (post-checkout and pre-commit) that curl a script from a remote server and pipe it into bash or cmd.exe. It also found the trap: the task said to check out the problems branch and commit as you go, which would have fired both hooks. The actual app code was clean, just bait. It took a couple of minutes, and nothing touched my machine.

LinkedIn of person who reached out to me :- https://www.linkedin.com/in/julen-sanchez-santana-368408440/
Mail of Guy who took the interview :- michael@leadmichael.tech

(Edited with AI)


r/androiddev • • 2h ago

News Kotlin 2.5.0 Released

Thumbnail
blog.jetbrains.com
37 Upvotes

r/androiddev • • 6h ago

Question ADB problems in Android Studio Rabbit?

1 Upvotes

Hello colleagues, is anybody experiencing adb/usb connection problems using the latest Android Studio build?

I had an Android Studio version (quail) and it worked fine, but since I updated the AS app the connection goes crazy (adb timeout, sometimes not even connecting at all, stuck in "loading devices").

My adb version is the latest 37.0.3 and latest sdk version also 37.

Edit: updated macOS and it works perfectly fine again. sorry for the post.