r/mAndroidDev • u/jojojmtk Jetpack Compost • Oct 27 '25
Works as intended It is always a Xiaomi Device.
Xiaomi always throws the weirdest crashes that no other manufacturer has. And of course, it’s not reproducible, because I don’t even own a Xiaomi. 😩
85
Upvotes
6
u/jojojmtk Jetpack Compost Oct 27 '25
I mean Samsung also bad in its own ways. I missed FB Messenger bubbles. I can do that in pixel and sony but not samsung
3
u/doubleiappdev Deprecated is just a suggestion Oct 27 '25
Xiaomi 17 Pro 😭
2
u/ososalsosal still targeting SDK 21 Oct 28 '25
Sometimes you just gotta reboot the thing. It starts getting weird after a while.
1
u/WestonP You will pry XML views from my cold dead hands Oct 27 '25
So they're the new Samsung?
1
u/BillyJoeLouBob Oct 27 '25
So true as it ever was.
1
u/DosZero Oct 27 '25
Yeah, sadly this one’s true 😅 MIUI / HyperOS has its own ultra-aggressive process manager it’ll happily kill background services, even with foregroundServiceType="mediaPlayback" or notificationForeground.
It also randomly disables WorkManager, AlarmManager, JobScheduler, or even push services like OneSignal and FCM. Foreground service? Dead in 10 minutes, no reason given.
Only workaround I’ve found: custom try/catch blocks + Build.MANUFACTURER.equals("Xiaomi", true) checks and special handling.
Huawei’s also fun but mostly because of broken or missing Google services 🥹
1
u/[deleted] Oct 29 '25
Samsung is much worse. Mainly because they are so popular.
1
u/bitsydoge Oct 31 '25
Samsung and Xiaomi (and some other chiness os layer) love to break Android rules it's so annoying
-1
u/svprdga Oct 27 '25
That’s right... in some of my apps I have had to put a “special notice” if I detect a problematic brand like Xiaomi so that the user knows that the app can fail because of the manufacturer. If that doesn’t work, I will simply ban the installation on Xiaomi devices... better than risking continuing to receive negative reviews.