Questions tagged [xiaomi]

For issues relating to devices of the Xiaomi Inc.

Xiaomi Inc. is a privately owned Chinese electronics and software company headquartered in Beijing. It is the world's 5th largest smartphone maker in 2017.

Since the release of its first smartphone in August 2011, Xiaomi has gained market share in mainland China and expanded into developing a wider range of consumer electronics, including a smart home (IoT) device ecosystem.

294 questions
9
votes
2 answers

How to enable 'show in lock screen' permission in andriod

This question is already asked twice but has no answer Apps installed on Xiaomi devices need a permission called 'show on lock screen' in order to allow activity to start if the device is locked How can I prompt the user to enable this permission…
Ahmed Rajab
  • 603
  • 3
  • 10
  • 28
8
votes
2 answers

How to detect full screen gesture mode in Mi devices programmatically

I am writing an Android application that needs to calculate the height of screen to display content correctly. But the height I got in Mi devices (Mi 9 SE) wasn't correct when switching to full screen gesture mode. How can I get the real height of…
Minh Dao
  • 827
  • 8
  • 21
8
votes
0 answers

How to enable heads-up notifications on Xiaomi (MIUI 10 Global)

How to enable heads-up notifications programatically on Xiaomi devices? Some apps (for example Telegram) have this permisstions turned on by default. Settings screenshot:…
8
votes
4 answers

How to open MIUI notifications settings?

I'm looking for a way to open in MIUI App Notification Settings screen directly from my application. Just like this: Settings -> Installed apps -> MY_APP -> Notifications. How to construct intent for open this screen? That's not the same like…
karmil32
  • 133
  • 1
  • 6
8
votes
2 answers

BroadcastReceiver stop working on Xiaomi after couple of hours

I'm using Awareness API for my project and receiving actions via BroadcastReceiver. This is the question with my code: link. The problem is that everything works fine in all android version except in Xiaomi devices. Where BroadcastReceiver not…
Dim
  • 4,527
  • 15
  • 80
  • 139
7
votes
0 answers

Xiaomi Android 11 SecurityException Too many PendingIntent created

Our application has been receiving this new kind of crash since the beginning of the year. Firebase shows it repeats only on Xiaomi with Android 11. It repeats in different parts of the application. And it seems unrelated to the application code. So…
Ivan Shafran
  • 591
  • 2
  • 17
7
votes
0 answers

Notification Settings on Xiaomi Devices

I'm currently working on a chat client for Android. When I've created the channel notification (only one for all the notification, am I doing something wrong?) I've set the priority to HIGH, and the notifications works like a charm. On Xiaomi…
7
votes
1 answer

Permission Denial: opening provider com.miui.gallery.provider.GalleryOpenProvider

java.lang.SecurityException: Permission Denial: opening provider com.miui.gallery.provider.GalleryOpenProvider from ProcessRecord{932688f 12849:mobi.hubbler.app/u0a158} (pid=12849, uid=10158) that is not exported from uid 10034 InputStream is =…
sreejith
  • 263
  • 3
  • 8
7
votes
1 answer

How to open Manage apps battery usage settings in MIUI devices

How to open Manage apps battery usage settings in MIUI devices programmatically? I open the settings by this: startActivityForResult(new Intent(android.provider.Settings.ACTION_SETTINGS), 0); But I don't know how to open Manage apps battery usage…
Lila saad
  • 261
  • 2
  • 9
6
votes
2 answers

Android device not recognized by ADB, USB Debug blinking (Mi 11 Lite 5G)

I get troubles connecting my android devices through USB debugging to my MacBook Pro. ADB partially detect the android devices which is blinking a USB Debugging Popup. For information : I tried to change USB cables, adaptators, and reset to factory…
GuillaumeRZ
  • 2,656
  • 4
  • 19
  • 35
6
votes
0 answers

How to programmatically change the Lock screen wallpaper of xiaomi Devices with Nougat and above?

I found out that xiaomi devices implemented their own lock screen and below code is not working as per android documentation we can change the lock screen wallpaper using below code. unfortunately below code is not working for the xioami devices.…
Nitin Jain
  • 1,314
  • 11
  • 15
6
votes
0 answers

Xiaomi Android devices - properly requesting permissions for background locations

We develop an application which requires several permissions in order to get the user’s location while in the background. We are having problems requesting the required permissions on Xiaomi devices. It seems that in addition to location permission…
TalL
  • 1,661
  • 16
  • 16
6
votes
3 answers

Selecting image from gallery not working on Redmi Note 4

I have seen a couple of other questions on S/O related to this, but the one that was closest to my issue doesn't seem to have got many responses (Xiaomi MI device not picking image from Gallery). Hoping this question will have better luck. I am…
wanderingProgrammer
  • 191
  • 1
  • 3
  • 19
5
votes
0 answers

How to check "Displaying popup windows while running in the background" permission?

I'm coding an android app that needs to start an activity in the background. On XiaoMi device, my app must be accepted "Displaying popup windows while running in the background" permission to do that. However, I don't know when this permission is…
phong dep trai
  • 123
  • 1
  • 9
5
votes
0 answers

Android instrumented test throws exception: Activity never becomes requested state "[RESUMED, DESTROYED, STARTED, CREATED]"

This is the shortest variant of the test: … @RunWith(AndroidJUnit4.class) @LargeTest public class RunAllTest { @Test public void testShortRun() { Context ctx = ApplicationProvider.getApplicationContext(); Intent intent = new Intent(ctx,…
Ivan
  • 51
  • 2
1
2
3
19 20