r/android_devs • • Nov 26 '20

Coding Coroutines Dispatchers.Default and Dispatchers.IO Considered Harmful

Thumbnail
techyourchance.com
0 Upvotes

r/android_devs • • May 01 '21

Discussion On Android 12, apps with no granted permission can put files on various places that will stay even after the apps are removed

0 Upvotes

Uninstalling an app that has no permission at all should remove all of the files it created by default, right? Well...

If the app targets Android 12 and runs on such a device, it can put files on all common folders (see here a list of them, each starts with "DIRECTORY_") , all without any kind of granted permission whatsoever. The folders are:

  • Alarms

  • AudioBooks

  • DCIM (camera)

  • Documents

  • Downloads

  • Movies

  • Music

  • Notifications

  • Pictures

  • Podcasts

  • Recordings (new on Android S)

  • Ringtones

  • Screenshots

And the files will also stay after you remove the app! This leaves junk files behind.

The only good thing about this is that if the apps get re-installed, they can't read those files (without any permission).

I've reported about this on the issue tracker, including a sample APK and video to show the issue (it shows that the app created folders and files in Movies,Pictures, Documents) :

https://issuetracker.google.com/issues/186443057

Please consider starring if you are against the fact that ALL apps should be able to leave files behind without your consent.

Also contacted various Android blogs. Hopefully will get some attention this way from Google to fix it.

Hopefully Google will consider this as a bug. I really hate the new storage restrictions on Android (example is requesting to reach all files everywhere, but actually can't access all files as you can't reach "/Android/" sub folders). My guess is that it's a side effect of them.

EDIT:

As for some reason people didn't understand what I'm talking about, I will give you examples and points to think about:

  • For a long time, games used the storage permission and put files in various places, leaving junk files behind them. Now even if you don't grant them this permission, they are free to leave junk files behind (and in very commonly used folders, too). How is that a good behavior exactly?

  • I'm very well aware that some apps should be allowed to leave files behind (Word, web browsers, etc...) , but they should all request a permission to do so. Without any permission granted by users, I expect them to remain sand-boxed. This means that upon removal (again, if no permission was granted), indeed all that they've created will be deleted, because all was sandboxed.

  • Imagine apps/games putting media files into one of your folders, such as Movies folder. If you have an app that backup those files automatically (let alone a paid app that has a quota), it will be filled with junk files of these apps, and you won't even notice it. You will get out of quota on those backup apps and be requested to pay more (Google Photos ...).

  • Imagine you have some important files in Documents folder. Now you get some junk files there. You might eventually (accidentally) delete important files instead of the junk files, or accidentally send the wrong files to someone.

  • Apps could hide their true storage usage because of this. In the past, if you had to deal with some app that has a download phase in the beginning, you could at least be sure that you could see how much space the app uses, and that upon removal you will regain this space back. Now apps can put their huge files in one of the common folders (with a weird name and an unknown format), and you will think as if the app takes little space. On the Play Store it will also show as if the app is small. Add Together with the fact that OBB files will be a thing of the past, the Play Store will show good-behavior apps the same as those apps.

Having a permission helps against junk files being accumulated and against all these use cases.

Otherwise, with the new behavior, all apps are free to free to put files on all of these folders without you knowing about it, without you agreeing to it, and without you knowing which app created which files.

To make it clear, again, I'm not talking here about privacy/security aspects of this behavior (which are ok as it's not about reading files). I'm not talking about whether it's documented or as-designed. I'm talking about the pure fact that your storage is not under your control anymore. You have no control of apps that decide to put their files on these folders. All apps can pollute your storage without your knowledge or control, including after they are removed.

Written about this here too:
https://www.reddit.com/r/Android/comments/n2ghnr/on_android_12_apps_with_no_granted_permission_can/


r/android_devs • • Jan 10 '25

Article Reactive Programming Considered Harmful

Thumbnail techyourchance.com
1 Upvotes

r/android_devs • • Sep 04 '20

Coding What Can We Learn From the Demise of RxJava?

Thumbnail
techyourchance.com
1 Upvotes

r/android_devs • • Nov 02 '24

Article Russian Court fines Google over 20 Decillion Dollars...

Thumbnail
theregister.com
0 Upvotes

r/android_devs • • Mar 02 '26

Open-Source Library Android flags library for developers to use, design of Twitter/X

Post image
2 Upvotes

Hello all,

I've decided to share a small library I've created after a long time since not creating anything on my Github repositories. This time related to showing flags on Android apps.

Initially I didn't like the style of Google's font for flags (too wavy), and also because of its size (23 MB, though if I want to focus only on flags, this can be done using a Python command). I couldn't find any font I liked (license was an issue too), except for Twitter/X font, which is also free to use, here, called TweMoji. Not only that, but it's very small, too (1.41 MB). I was also happy with the style of the other emojis of it, so I didn't bother with doing a lot with it, until I've noticed some issue with it.

First, it's quite outdated, and I couldn't find how to generate a new TTF file from the official repository myself. I found an alternative (here) but it wasn't as updated, and I've noticed it's blurry when the flags are a bit large, as using raster graphics instead of vector graphics. Second issue that exists for all of All of them also have a weird digits issue (though it can be fixed by creating a subset of the file, as I wrote above, using the Python command).

I also noticed that vector graphics is supported nicely on Android only from API 29 (Android 10), so it was yet another reason for me to try to find something else (vector based is better in how it looks and maybe size taken, but supported only from API 29).

So, what I did is to just get the many SVG files from the repository, import them all for Android as VectorDrawable, optimize them on the way using both a website and an Android Studio plugin, and prepare a library to use them properly as needed, and use other emojis if they aren't of flags. I've also explained the process of how I did it, in case new content is available.

I've published it all here:

https://github.com/AndroidDeveloperLB/TwemojiFlagsVectorDrawable

I also use it on all of my apps:

  1. On an educational game for toddlers, it's used for choosing the language of the content.

  2. On an app to detect the phone number, it shows the country that's associated with it.

  3. On all apps, when using native ads, it's shown on the TextView there, in case flags are being used.

The size is quite small, despite many files and despite the fact I don't use a TTF file. It should work fine for all Android versions, too (except maybe API 23 and below, as I saw something weird on emulator, but maybe it's an emulator issue). And, as opposed to a font file, you can take specific files from there and change them as you wish (tint, size, rotate,...), as it's a VectorDrawable.

So, advantages compared to TTF file:

  1. Works on Android API 23 (Android 6.0) and above (though not sure about API 23 itself for Iranian flag)

  2. Not blurry when large, as it uses the vector-based graphics.

  3. Still takes small space and focuses only on flags.

  4. Can be manipulated in your app in various ways, as all files were converted to VectorDrawable format.

  5. Optimized on the way to take less space.

  6. You can update it yourself if Twitter updates its files, using the steps I've described on the repository.

  7. Can easily be used not just in text-related UI components, meaning can be used in ImageView too.

  8. Bonus for people who are pro-Iranian people: You get the Iranian flag with the lion.

I hope you like it


r/android_devs • • Sep 30 '24

Help Needed Usertype profiles

Post image
0 Upvotes

How would you go about removing a managed profile from a personal device through adb,this is a "new" phone through at&t yet has a clones amd managed profile both recieving badge counts


r/android_devs • • Jun 18 '22

Fifty shades of Coding When you give up on mvi

Post image
2 Upvotes

r/android_devs • • Aug 10 '20

Designing Please give me design ideas that are half good

0 Upvotes

My apps now have just over 300K MAU, sad part is they are 90% from Africa so no big Ads money to speak of. For a programmer with a bad design hand, it means I can't spare enough to hire a pro-designer. Which means my apps still look like crap. Lo and behold, try not to throw up:

Please ignore the Navigation Drawer, I was just playing around. I use Tabs / Bottom Nav Bar like a sane person.

Someone with time to spare please throw me a few ideas please.


r/android_devs • • Feb 21 '26

Help Needed Building my first Android app using Dart & Flutter. Advice needed

0 Upvotes

I recently started vibe coding because I wanted to learn a new skill on the side. So far, I’ve completed and launched one app on the Microsoft Store. It helped me learn a lot about code structure and overall development, but it was built using Electron.

Now I want to build an Android app. I feel like mobile apps have a bigger reach, but the structure seems quite different. I’ve started learning Dart and working with Flutter in Visual Studio Code.

Since this is my first mobile project, I’d really appreciate any advice on my coding journey — especially tips on how to make an app more successful on the Google Play Store.

Thanks in advance!


r/android_devs • • Jun 21 '22

Article You Don't Need Android ViewModel, Here is Why

Thumbnail
techyourchance.com
0 Upvotes

r/android_devs • • Jan 28 '26

Question Transitioning a native Android team to AI-assisted development. What’s the "real" efficiency stack in 2026?

5 Upvotes

I’m managing a native Android team in Bangladesh. They are great with Kotlin and Jetpack Compose, but they aren't using any AI tools yet. Watching the current "AI coding" wave, I feel like we’re leaving performance on the table.

I’m looking for the actual "pro" setup for 2026. Not the influencer hype, but what’s actually working for production-level native Android apps.


r/android_devs • • Jun 18 '22

Discussion Google’s plan to talk about caste bias led to ‘division and rancor’

1 Upvotes

https://www.washingtonpost.com/technology/2022/06/02/google-caste-equality-labs-tanuja-gupta/

https://duckduckgo.com/?q=Google+scrapped+a+talk+on+caste+bias&t=h_&ia=web

I'm not an expert on Indian society, I haven't even visited India, but from what I know the subject of the article is very much felt in India.

From what I've read it seems that a dialogue about caste can lead to very heated discussions and I wouldn't want that to happen here. But on the other hand who could give you a better understanding of such a complex and important case from those who live it on their own skin? Since our sub has few members it's probably the best place to understand something without getting a discussion out of hand.

Since I don't have an opinion on the subject I would like to know from people who are Indian or who live in India or who know that society very well, what they think.

Do you think it could be a transfer of caste culture within Google that could affect not only how Google employees are treated but also how Google might treat third parties?


r/android_devs • • Jun 04 '26

Open-Source App I open sourced an agentic Android launcher

Thumbnail
github.com
0 Upvotes

I was complaining Google didn't deliver. So i tried my hand at Android AI UX.

WiP

Wrapping up final features before pushing to the app store.

Beta builds available for people to mess around with and code available for inspection or personal adaptations


r/android_devs • • Aug 06 '25

Question Android devs — Why do apps ask for location access?

0 Upvotes

Hey folks,

I’m working on an article investigating how Android apps use location data — when it's requested, how necessary it is for the app’s core functionality, and what happens with that data after it's collected.

I’ve already gone through a bunch of privacy policies (some are surprisingly vague, some are pretty solid), but I’d love to hear directly from the people who actually build apps: you.

If you’ve developed or worked on an Android app that asks for location permissions, I’d love to know:

  • Why is location data important to your app?

  • Can users skip sharing their location and still use the main features?

  • Is the location data shared with any third parties (analytics, ads, etc.)?

  • How do you handle that data securely?

This isn’t a gotcha or exposé — I genuinely want to include the developer perspective and help users better understand the tradeoffs when they hit “Allow.” I may include some responses (credited or anonymous — up to you) in the article.

Really appreciate any input you’re willing to share 🙌
Thanks!


r/android_devs • • Jul 17 '25

Help Needed I don't know where else to post this but I need help with OpenCamera.

Thumbnail
gallery
0 Upvotes

I have used OpenCamera a lot of the years and on multiple phones but for some reason on my new Cubot Max 5 (my 5th Cubot phone) I m getting dithered noise on the image that isn't present in the Amdroid photo app. I don't expect high end photographs but the noise is really awful. I have even changed the file format to PNG to elimiate any compression artifacts (though the noise is present before the photo is taken).

Can anyone tell me what is probably wrong and how to fix it?


r/android_devs • • Jun 13 '21

Coding List of items in a RecyclerView: updating the list

0 Upvotes

Hello there!

A few days ago the post Efficient lists with DiffUtil and ListAdapter crossed in my path.

I didn't know that existed, and it's seems a way to update the list of a RecyclerView in a performance-wise way. But what it bothered me a bit was that the article says:

Due to implementation constraints, the max size of the list can be 226.

226 is 67.108.864. It's a big number, and a big list of items to have in a mobile application.

I want to know your opinión in a couple of things:

  1. Do you thing this is a good way to update the list of a RecyclerView?

  2. Do you think any application can have that kind of list of items? I can understand a conversation in a messaging application could reach that number, for example, but that's it.

Thank you, devs!


r/android_devs • • Jul 10 '21

Help How you you get the Receipt Info in Android Studio for In App Purchases

0 Upvotes

The Receipt info should look as follows:

{

data: '{

"orderId":"GPA.xxxx-xxxx-xxxx-xxxx",

"packageName":"aaa.bbb.ccc",

"productId":"aaa.bbb.ccc.sub",

"purchaseTime":1498002890901,

"purchaseState":0,

"purchaseToken":"edgcacfhmkpekcilnihgdjkb.AO-J1OxnZr_-c4xGioV-wbb9YI4w7gtRzY87CRLsa6CrHuP_nF97WNzHaBjbqCyZeYYf_sZByLD1DKxkMOFlpIsiOJnSeHxu5XIwa303DbJwFQ7Lo-sM6dgY4-4DCEqk61C9qgUx0GsLaOMZJF0zMC0mRS9K8Z2P3-uSDQpUv0qorTGt7xQC42s",

}',

signature: 'xxxxxx'

}

My question is how do you obtain it via code, which is Java.


r/android_devs • • Nov 13 '20

Playing around with StateFlow/SharedFlow and some meme templates

Thumbnail
levelup.gitconnected.com
0 Upvotes

r/android_devs • • Sep 16 '22

Help Java or Kotlin as the first programming language?

1 Upvotes

I am currently learning Java for android development. The only reason I'm not learning Kotlin is because it is a fairly new language, and unlike Java, there might not be as much learning resources and support available on internet. However, I later plan to learn Kotlin as well. How difficult would it be for me to master Kotlin if I deeply understand Java? How different do you think are both languages? If you have any experience with these programming languages, could please offer some advice?


r/android_devs • • Oct 22 '24

Article How to SSL Pinning with OkHttp on Android?

Thumbnail
gorkemkara.net
2 Upvotes

While developing secure android applications, SSL Pinning is a security measure that ensures that the application communicates with trusted servers only by verifying SSL certificates. This is very important to protect sensitive data from man-in-the-middle (MITM) attacks. Otherwise, hackers who acces


r/android_devs • • Apr 01 '26

April 1st [OFFICIAL] Huge Changes to Play Store Policies: No More 20-Tester Requirement, New Phone Support Line, and "Human-First" Appeals!

22 Upvotes

Hi everyone,

I’m still shaking while typing this. We were invited to a private briefing yesterday with the Google Play Developer Relations team, and the news is… well, it’s everything we’ve been shouting into the void about for the last three years.

Google has finally acknowledged that the current state of developer relations is, in their own words, "sub-optimal." They are rolling out a massive "Developer Empathy" initiative starting today.

1. Retirement of the "20 Testers for 14 Days" Rule

Effective immediately, Google is scrapping the requirement for new personal developer accounts to find 20 testers for a 14-day closed track.

  • Why? Internal data showed that "forced testing" was just resulting in thousands of "Great app!" bot comments and didn't actually improve app quality.

  • The Replacement: A simple, automated security scan. If your code isn't malicious, you're clear to hit Production on day one.

2. The "Play Support" Phone Hotline

This is the big one. Google is launching a 24/7 dedicated phone line for developers. No more templated emails from "The Google Play Team" that don't explain why you were banned.

  • Direct Access: You can speak to a human reviewer who has your specific APK open on their screen.

  • Resolution Guarantee: If your app is rejected, the reviewer must provide the exact line of code or UI element that violates the policy during the call.

  • No More Bots: They’ve officially decommissioned the "Appeal Denied" auto-responder bot.

3. The "Account Termination" Grace Period

Google is ending the "Associated Accounts" scorched-earth policy.

  • If one of your apps is flagged, they will no longer ban your entire developer identity, your AdMob, and your Gmail account for your cat's YouTube channel.

  • You now get a 30-day "Remediation Window" to fix issues before any strike is even recorded.

4. "Fair Shake" Fee Structure

To combat the bad blood regarding the 15%/30% cut, Google is introducing a "Zero-Fee Tier."

  • The first $50,000 in annual revenue is now 0% commission. Google stated, "We have enough money; we want you to have some too."

Note: this post required approximately 1,000 liters of fresh water.


r/android_devs • • Sep 14 '24

Resources Location of Android's normal View based UI documentation

Thumbnail
developer.android.com
3 Upvotes

r/android_devs • • Jul 25 '20

Update New logo for the sub?

3 Upvotes

3dom has created the following icon. In my post I was referring to a logo for an association of developers, not an icon for the sub, but since he was the only one who made the effort to do something it's fair that we decide if it can replace the current icon.