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
2
votes
1 answer

WorkManager/PeriodicWorkRequest - What happens to next works when the SO blocks the execution of one of them?

I've been facing issues with some chinese ROMs that perform an aggressive policy against background jobs. When testing with a Xiaomi MI 9 - API 28 - MIUI 10, I've checked that sometimes the doWork method from a registered worker is not called, but…
giroxiii
  • 655
  • 5
  • 14
2
votes
0 answers

Add my app to AutoStart apps list & running state in android programmatically

I want my app to be in the autostart list and in running state after installation. I know when I install an app like (WhatsApp) it goes automatically to the autostart list. I want my app to be the same some app always listed under the running…
Basit
  • 103
  • 12
2
votes
0 answers

Require code snippet to find auto start permission in MIUI is enabled or not for my app?

We are developing a application like google calendar where we need to notify the user at the right time on OFFLINE. Other than MIUI, it is working fine. But in MIUI devices, the user should enable the AUTO_START permission for our application. We…
2
votes
2 answers

how to get the advertising id on the China market (e.g. on MIUI and AliOS)

I currently have code that gets the device identifier (advertising ID) on Google Play enabled and Kindle devices. Now I'm looking for documentation targeting developers that would explain how to get it on other Android forks (similar to Amazon's…
Gabor
  • 7,352
  • 4
  • 35
  • 56
2
votes
1 answer

Background location service is not working in oppo and MI phones

In my android application,location service is implemented as background service.I have tested it with different phones(like samsung,micromax,Moto,lenovo,nexus) it works fine with all.But when i run in Oppo (colorOS) and MI (MIUI OS),my service is…
2
votes
1 answer

On Xiaomi or Oppo or Vivo phones - Application Task not working as expected

I have a small android application project (Used for a local community news app)on android, which is (or was) working on API 22 and onward. Only a issue recently came to our notice is that on Chinese phones like Xiaomi or Oppo or Vivo our…
NBaua
  • 583
  • 4
  • 16
  • 33
2
votes
3 answers

Install Via USB not working - on 7.0 device

I have red mi note 4 devices after update device with miui version 9 attempt to enable installation via application via USB, it doesn't work and shows "This device is temporarily restricted". The solution I found didn't work. Without that feature, I…
Sanjay Bhalani
  • 2,424
  • 18
  • 44
2
votes
1 answer

MiUi widget programming issues workaround?

I'm programming apps and widgets. Recently I was reported that widget programmed by me stopped worked after a minute or so. All of those issues had one similar thing: MiUi. One device was Redmi, another one was Huawei, but both had MiUi. I was…
1
vote
1 answer

Can't Debug Android Application on my Phone

Recently I tried to debug an application on my phone but I found this error : Installation did not succeed. The application could not be installed: INSTALL_FAILED_USER_RESTRICTED I tried the following : Disable USB Debugging and Re-Enable…
1
vote
1 answer

Is it possible (if yes, how) to access a MIUI phone's depth camera directly?

I know that my phone and other models have a depth camera. I have used Portrait mode and extracted the depth information from the image using Desktop tools. I have attempted to use Unity's WebCamTexture.depthCameraName to do this on the device, but…
1
vote
1 answer

Native crash: MediaCodec runtime error only in Redmi devices running on Android 12

I started seeing runtime exceptions in Redmi mobile running on Android 12 whenever I try to download a video from the app. It is not happening on Samsung, Motorola or Pixel devices. I re-use most of the code from Google grafika. Here is my MediaUtil…
1
vote
1 answer

Share Image from Xiaomi gallery app has problem

I want to share images from MIUI gallery app to my app but received intent has data=null and uri=content://com.miui.gallery.open/raw/%2Fstorage%2Femulated%2F0%2FAndroid%2Fdata%2Fcom.miui.gallery%2Fcache%2FSecurityShare%2F1657350098978.jpg Then i use…
user13954958
1
vote
0 answers

How can I get the "Display pop-up windows while running in the background" and "Show on Lock screen" permission by default in xiaomi devices?

I spent lots of days finding a solution but didn't get it. How can i get the "Display pop-up windows while running in the background" and "Show on Lock screen" permission by default without opening other-permission page? I have also tried…
p.jadhav
  • 61
  • 8
1
vote
3 answers

Xiaomi MIUI keeps killing my background application

I'm trying to make an application that, on ring, will identify a phone number from an internet database. No matter what I do, MIUI (In Redmi Note 8T Android 11) eventually kills my application after a while and a notification of the phone state…
Michael Chourdakis
  • 10,345
  • 3
  • 42
  • 78
1
vote
0 answers

How can I tell if my app is running on MIUI os?

Platform.operatingSystem only returns android and you can't really tell from Platform.operatingSystemVersion if it's MIUI either.
PoeMcMoe
  • 63
  • 6
1 2 3
8 9