r/androiddev • • 21h ago

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

128 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 • • 16h 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 • • 1h ago

News Kotlin 2.5.0 Released

Thumbnail
blog.jetbrains.com
27 Upvotes

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 • • 4h ago

Open Source Building an open-source scene-referred RAW camera pipeline on Android (Camera2, NDK/C++, GPU shaders)

Post image
2 Upvotes

I’ve been working on RawLens, an open-source (GPLv3) native Android camera built to run a desktop-style scene-referred RAW processing pipeline directly on-device. I wanted to share the repository and some of the Android-specific engineering challenges behind it.

Architecture & Native Pipeline

  • Camera2 & Sensor Data: Captures full-resolution RAW_SENSOR streams via Camera2, handling per-device DNG calibration overrides and real-time sensor-level exposure metering (ETTR, RAW clipping zebras, false color) directly off preview/capture buffers without stalling the viewfinder.
  • Native C++ / GPU Processing: Offloads heavy demosaicing (AMaZE, RCD), darktable’s inpaint-opposed highlight reconstruction, and AgX tone mapping to native code/shaders. Output supports DNG (with optional lossless JPEG XL compression), JPEG XL, and Ultra HDR JPEG.
  • Multi-Frame Burst & Alignment: Implements Lucas–Kanade Reloaded (Lecouat et al., 2021) multi-frame super-resolution alongside Wronski et al. (2019) and Hasinoff et al. (2016) HDR+ burst merging in native code, including offline merging for saved exposure brackets.
  • RAW Video: Streams lossless RAW frames into a .craw container compatible with DaVinci Resolve alongside standard encoded profiles (S-Log3/S-Gamut3.Cine, HLG, custom LUTs).

Manufacturer Camera2 implementations vary wildly from which physical lenses expose RAW_SENSOR capabilities to inconsistent black-level/color-matrix metadata and buffer throughput limits across SoCs. On the GPU side, driver quirks across mobile GPUs (precision handling, compute/shader compilation differences, and memory/bandwidth ceilings when chaining multi-frame alignment, demosaicing, and AgX rendering) add another layer of device-specific tuning.

Source Code & Docs:https://github.com/matthew777777/RawLens

For anyone else working closely with Camera2, the NDK, and mobile GPUs: how are you handling device-specific RAW calibration quirks, multi-lens LogicalCamera switching, and GPU driver/precision differences across OEMs?


r/androiddev • • 3h ago

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

Thumbnail
gallery
1 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 • • 5h 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.


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.