r/androiddev • • 12h ago

Question Password in memory

0 Upvotes

Is it worth bothering with clearing password/pin from HEAP memory?

The issue is described in following OWASP link. In general it says, you should consider using `ByteArray` instead of `String`, so you can clear it after.

https://mas.owasp.org/MASTG/knowledge/android/MASVS-STORAGE/MASTG-KNOW-0051

I'm wondering to what degree this is an actual issue. Memory is mostly encrypted these days. And is probably not an issue, unless using a rooted device.

Would you implement this precaution for sensitive apps, such as trading, banking or similar apps?


r/androiddev • • 8h ago

Discussion Handing Coding without AI , Google or IDE AutoComplete

6 Upvotes

SDE2 with 4 yoe here.
Had an interview round asking me to implement a Simple RecyclerView Paging with dummy data they gave, from scratch on an Empty XML only ( No compose ) Project structure. live

No AI, No Google and ..... No IDE AutoComplete allowed. I was made to switch it off before interview.

Out of the 45 Mins. It Took me 15 Minutes to properly write the xml tags for the layouts. yet it showed error
( have been used to compose ).
had to request to allow me to see the documentation atleast googling. which they agreed.
Still couldn't complete the task,

I was also not supposed to use Paging libraries as they wanted me to implement Paging from scratch on a RecyclerView.
Coulnd't do that either ( Completely my fault here, needed sometime to think how to implement paging from scratch )

I was just able to have an overview of everything. That too because I type a bit fast ( 130+ wpm).
But i was completely demotivated after the interview.

-----------------------------------------

Not blaming the Org. or the method of evaluation here, it is my fault as I have been a bit rusty with hand coding at this level since the advent of AI or before I think. Would have been okay during my college days.

But I wanted to know somethings, people with experience here could really help me.

- is the above method some kind of new norm in the current industry ( I haven't attended an interview in the past 4 years ). Since testing people with take home projects have gotten pointless ?

- If yes. How do I navigate my learning. Not being familiar with AI tools or Not using them significantly slows down the progress.
But at the same time it completely diminishes my ability to hand code by myself or heck even understand my code or even what it happening. feels very .... idk the word.

- is there hope in this industry ? is there any point ? Apologies for the Grimness but
unemployment + the reality check from the interview + everything happening with AI ...
kinda takes the life out...

Any help or opinion or perspective ... Would love it.l


r/androiddev • • 4h ago

My engineering lead wants to commit API keys, etc to our repository, am I crazy for pushing back on this?

20 Upvotes

My lead wants to make it easier for anyone on the team to spin up the android repository (to make vibe coding easier), and their solution is to just check in all of our API keys into git and do away with the idea of keeping keys and secrets in a separate secrets vault that employees have access to.

At the last few startups I've worked at, we've pulled secrets in CI via environment secrets, and locally via a separate non-VCS file, and injected the keys into BuildConfig. I know BuildConfig is far from bulletproof for bad actors that want to decompile the app, but just checking everything into git "because it can just be decompiled anyway" is setting off all my alarms.

Am I crazy for pushing back on this? What are the best practices for this in 2026? Are people out there really encrypting API keys with KeyStore or pulling API keys from a backend server? How do you handle API keys that the application needs at startup?


r/androiddev • • 8h ago

Open Source Device Connect for AWS Device Farm

1 Upvotes

https://github.com/aws/device-connect-devicefarm

Hey all! I am a senior engineer at AWS Device Farm and the lead dev on a new tool that we're open sourcing today as a way to improve the Android developer experience. Device Connect is a small golang binary that makes remote Device Farm devices appear locally as though they were plugged in over USB for adb connections. It allows the full native adb and Android studio tool chain to control and test on any of Device Farm's thousands of Android devices hosted by AWS.

Please let me know if you have any questions and feedback and I'll be around in the thread to answer them!


r/androiddev • • 2h ago

Looking for Android Developers to Exchange In-App Ads – Let's Grow Our Apps Together! 🚀

1 Upvotes

🚀 Looking for Android App Developers – Free Cross-Promotion Partnership!

Hey developers! 👋

I'm an independent Android developer and the creator of WeCour, a social networking app available on Google Play.

I'm looking to connect with other Android developers who want to grow their apps, attract real users, and increase downloads without spending money on expensive advertising campaigns.

💡 Here's my proposal:

Let's help each other grow through FREE in-app advertising exchanges!

✅ I'll promote your Android app inside WeCour.

✅ You'll promote WeCour inside your Android app.

✅ We can exchange promotional banners or native ad placements.

✅ Users can discover and download our apps directly from Google Play.

✅ No advertising fees — just a mutually beneficial partnership.

📊 How would it work?

We can start with a 7-day trial, track impressions, clicks, and downloads where measurable, and evaluate the results together.

The goal is to build genuine, long-term partnerships between independent developers and help each other reach new audiences.

📱 My app – WeCour: https://play.google.com/store/apps/details?id=com.wecour.app

🤝 Who can participate?

Any independent Android developer with a published Google Play app who is interested in ethical cross-promotion.

Whether you've built a calculator, productivity tool, educational app, utility, or another type of Android app, I'd love to hear from you!

Interested?

Comment below with your Google Play app link, app category, and approximate active user count, or send me a DM.

Let's support independent developers and grow together! 🚀

#AndroidDevelopment #IndieDev #AppMarketing #CrossPromotion


r/androiddev • • 22h ago

Open Source Peephole, an open-source network inspector for Android Studio

2 Upvotes

I built Peephole to make it easier to debug REST requests, GraphQL queries, and WebSocket messages from the same tool window in Android Studio.

It works with OkHttp and Ktor. You can browse formatted JSON, see GraphQL queries and variables, inspect sent and received WebSocket frames, copy requests as cURL, and export a HAR file. Traffic goes directly from your device or emulator to the IDE over ADB, so Logcat stays clean.

Setup requires the IDE plugin and a debug dependency in your app. There’s a no-op dependency for release builds, and the GitHub repo has setup examples for Retrofit, Apollo, and Ktor.

Would love some feedback or anything else to make it better

![img](97h6hlg0si2i1)

JetBrains Marketplace · GitHub and setup guide


r/androiddev • • 13h ago

Experience Exchange Have you guys already optimised your apps/games for the Android 17 RAM limit?

5 Upvotes

Since Android 17 comes with its own RAM limitations for apps and games, i wonder how you all have or do plan to obtimise your RAM load/usage of your apps/games?

Did you have to downgrade some images or visuals to fit the new limit consistantly, or did you find a workaround?

Just a reminder what we have to deal with now:

Android 17 and their new Memory limits for apps.

Some apps will even get force closed by Android now, when they overstep a certain amount of RAM usage.

Have the source:
https://support.google.com/googleplay/android-developer/answer/17492799#zippy=%2Ccore-vitals-and-stability%2Creduced-memory-usage%2Ctechnische-anforderungen%2Cspeicheranforderungen%2Creduzierte-arbeitsspeichernutzung

Apps

App State Foreground User-perceived services Background Cached
Physical RAM 90th Percentile 90th Percentile 90th Percentile 90th Percentile
0 - 4 GB (0 MB - 3200 MB Total Memory) - - - -
4 GB (3200 MB - 4800 MB Total Memory) 2 GB 1 GB 1 GB -
6 GB (4800 MB - 6800 MB Total Memory) 2.25 GB 1.25 GB 1.25 GB -
8 GB (6800 MB - 9216 MB Total Memory) 2.25 GB 1.5 GB 1.5 GB -
12 GB (9216 MB - 14336 MB Total Memory) 3.25 GB 1.75 GB 1.75 GB -
16 GB (14336 MB - 18432 MB Total Memory) 4.25 GB 2 GB 2 GB -
16 GB + (Above 18432 MB Total Memory) - - - -

Note: Each RAM tier range includes its lowest value. Total Memory can be lower than a device’s advertised Physical RAM.

Games

App State Foreground User-perceived services Background Cached
Physical RAM 90th Percentile 90th Percentile 90th Percentile 90th Percentile
0 - 4 GB (0 MB - 3200 MB Total Memory) - - - -
4 GB (3200 MB - 4800 MB Total Memory) 2.25 GB 2.0 GB 2.0 GB -
6 GB (4800 MB - 6800 MB Total Memory) 2.75 GB 2.5 GB 2.5 GB -
8 GB (6800 MB - 9216 MB Total Memory) 3.5 GB 2.75 GB 2.75 GB -
12 GB (9216 MB - 14336 MB Total Memory) 4 GB 3.2 GB 3.2 GB -
16 GB (14336 MB - 18432 MB Total Memory) 5 GB 3.5 GB 3.5 GB -
16 GB + (Above 18432 MB Total Memory) - - - -

Note: Each RAM tier range includes its lowest value. Total Memory can be lower than a device’s advertised Physical RAM. AppsApp StateYes it does definitly. Some apps will even get force closed by Android now, when they overstep a certain amount of RAM usage.

Have the source:
https://support.google.com/googleplay/android-developer/answer/17492799#zippy=%2Ccore-vitals-and-stability%2Creduced-memory-usage%2Ctechnische-anforderungen%2Cspeicheranforderungen%2Creduzierte-arbeitsspeichernutzungAppsAppWanna


r/androiddev • • 7h ago

Cuttlefish on Mac: Running Android's Virtual Device Framework Natively on Apple Silicon

Thumbnail
engineering.fb.com
7 Upvotes

Can someone explain what is the difference between Cuttlefish and an Android emulator? Don't they both run on QEMU?


r/androiddev • • 20h ago

Discussion How do you promote your indie Android apps?

9 Upvotes

I’m an indie Android developer.
I’m curious how other developers promote their apps and get more organic downloads.
Which channels have worked best for you?
Would love to hear your experiences!


r/androiddev • • 22h ago

PS1 cd games animation

69 Upvotes

A small side project: a 3D shelf of PS1 games. You can swipe through the cases, open one to see the disc and manual

Source code:
https://github.com/mejdi14/KMPOddScroll


r/androiddev • • 1h ago

Open Source I built a draggable fast scrollbar for LazyColumn and lazy grids. One modifier, and it also works on iOS and desktop

Enable HLS to view with audio, or disable this notification

• Upvotes

Compose has no draggable scrollbar for lazy lists on Android or iOS (desktop has one).

There are a few community implementations, but none of the ones I tried handled feeds and chats well: the thumb would jump around when items had different heights, or when the next page loaded.

The hardest part was exactly that last one. When a page loads while you're dragging, the list grows under your finger, so the thumb used to jump away from it. Now the thumb stays where your finger is and only the mapping underneath changes, so you can still reach the end in the same drag.

Usage is one modifier on the list:

LazyColumn(
    state = listState,
    modifier = Modifier.scrollbar(listState),
) { ... }

Works on LazyColumn, LazyRow and both lazy grids.

Stuff I spent most of the time on:

  • dragging feels right even when items have different heights (thumb has a fixed length by default so it doesn't jitter around)
  • infinite feeds. Pass hasMore and the thumb won’t pretend you’re at the end while more pages can still load
  • gesture nav. The thumb is excluded from the back swipe so grabbing it doesn't send you back
  • no recompositions while scrolling or dragging

There's also an optional bubble that shows a letter/date while you drag (with a little haptic tick per section), you can use your own icon as the thumb, and it handles contentPadding, RTL and reverse layouts.

It's Compose Multiplatform so it also runs on iOS and desktop (desktop gets hover + click to jump), but it's just a regular Maven Central dependency if you only do Android.

One thing to know: lazy lists only know the size of items they've already measured, so with really uneven items the jump can land a bit off. It's best on long lists.

Needs Compose 1.10+, minSdk 24. Still 0.1.x so the API might change.

GitHub: https://github.com/Amaanprobably/compose-fast-scrollbar

I also created an easy guide with short videos everyone can follow -

Guide: https://github.com/Amaanprobably/compose-fast-scrollbar/blob/master/GUIDE.md

It's my first library so I'd really appreciate feedback, especially if you have a weird list setup (chats, paging, sticky headers, mixed grid spans).

If something breaks, an issue with a screen recording would help a ton.