Questions tagged [miui]

MIUI developed by Xiaomi, is a stock and aftermarket firmware for smartphones and tablet computers based on the Google Android operating system. Use the tag [miui] for questions related to user interface or development for MIUI.

Xiaomi has released various smartphones, all of which come pre-installed with a complete version of MIUI. This includes various apps and features not available in the aftermarket version of MIUI.

Other than supporting their in-house smartphones and tablets, Xiaomi also offers MIUI to be flashed on other smartphone brands such as Samsung, Sony, HTC, BLU, OnePlus and Nexus.

On February 24, 2016, Xiaomi said that the MIUI ROM had over 170 million users worldwide, and was supported on over 340 handsets.

132 questions
81
votes
35 answers

Install app via usb: The device is temporarily restricted

When I toggle on the install via USB in developer mode: it will pop the toast message said that the device is temporarily restricted then toggle off the settings. Is there any solution for this? I searched through all the way like turning off…
kyo
  • 813
  • 1
  • 6
  • 7
24
votes
1 answer

MIUI 10 doesn't let service start activity - Xiaomi Redmi Note

My app has a service and an activity. From the service, activity is called with following code: Intent intent = new Intent(getApplicationContext(),…
ilker Aktuna
  • 335
  • 3
  • 8
20
votes
5 answers

WorkManager not repeating the PeriodicWorkRequest

I am creating an android application to run my code in background. I'm well aware of the restriction introduced by the Android Oreo for background services and that's why I'm using WorkManager API to schedule the task for the execution. I'm testing…
Madhusudan Sharma
  • 403
  • 1
  • 3
  • 12
16
votes
0 answers

How to start activity from background in android 10 - android Q - MIUI 11

I have problem with starting activity from background in android 10 - android Q - MIUI 11 on real device. In this thread: start activity background in android 10 I found information how to do this on Android 10 and everything working perfectly on…
luqiasz
  • 203
  • 3
  • 9
15
votes
2 answers

How to get MIUI Security app auto start permission programmatically?

I am not getting BOOT_COMPLETE broadcast in my Xiaomi Redmi 2 Prime mobile. My BroadcastReciever is --- public class OnBootReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { // Setting…
Imran Khan Saifi
  • 561
  • 1
  • 4
  • 16
12
votes
4 answers

Enable "Show on Lock Screen " permission on Redmi device

I have an android app which is voip app. When some one call we show a caller screen. This works fine but on some redmi device(Note 7 pro) the caller screen doesn't come if device is locked ie it only play sound. On debugging I found I need to enable…
TheGraduateGuy
  • 1,450
  • 1
  • 13
  • 35
11
votes
1 answer

Push notifications with no sound on MIUI

My app's main functionality is push-notification messages sent from remote server. I am using FCM as a message delivery service. My problem is that notifications come without any sound on Xiaomi Mi 9 Lite (Android 9/MIUI 11). However, on Xiaomi…
Sergey Kim
  • 377
  • 1
  • 3
  • 12
11
votes
1 answer

MIUI Permission Denied Activity KeyguardLocked

When application is in background and screen is locked,I'm unable to start activity, there is no exception or warning, onCreate() is just not called. I've been struggling against this problem for while, and I think I've finally found the source of…
Danil.B
  • 880
  • 1
  • 11
  • 23
11
votes
1 answer

Opening miui battery saver for specific apps

I am working on VoIP calling applications and calls are getting missed which are sent over FCM when battery saver is on on MIUI. This is happening very frequently. I want user to open Battery saver activity for my own app and give no restriction for…
Ifta
  • 1,536
  • 18
  • 25
10
votes
1 answer

Anyone knows where is "start in background" permission in MIUI 11?

I'm not able to start activity in MIUI 11 redmi note 6 pro mobile, I am getting error as: com.android.server.am.ExtraActivityManagerService: MIUILOG- Permission Denied Activity I found some solution like turn on "start in background" permission. I…
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
7
votes
2 answers

Very slow application execution when debugging (android 9, miui 11)

Issue has showed up after updating my Xiaomi Mi Mix 2 from miui 10 to miui 11 (and from android 8 to 9, api level 26 -> 28). When I'm attaching debugger using Android Studio to my application, it starts to execute extremely slow (one activity loads…
szymswiat
  • 111
  • 5
7
votes
3 answers

How to detect MIUI ROM programmatically in android?

How can I detect the device run under Xiomi's MIUI ROM? I'm able to detect Xiomi device with the following code. String manufacturer = "xiaomi"; if (manufacturer.equalsIgnoreCase(android.os.Build.MANUFACTURER)) { } But how can I detect its MIUI?
nithinTa
  • 1,632
  • 2
  • 16
  • 32
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
1 answer

Prevent forcing dark mode in MIUI without increasing SDK version

My new app doesn't support dark mode. When I install it on Xiaomi (with dark mode truned on) MIUI applies dark mode on it. MIUI has settings at "Settings -> Display -> More Dark mode options" (screenshot of "More Dark mode options"). This options is…
TuranM
  • 63
  • 1
  • 4
1
2 3
8 9