294 questions
0
votes
0
answers
27
views
Android MediaRecorder creates .m4a file with no audio
I'm using Android Studio trying to record audio in an Android foreground service using MediaRecorder. The file is created successfully, but when I play it, it contains no audio. Here's the relevant ...
0
votes
0
answers
54
views
Xiaomi Android 15 auto cache cleaning issue with accessibility service
Guys can you help me with a code, I have an auto cache cleaning app which uses accessibility service which will navigate each selected app settings and find clear cache button and click it.
Recently ...
2
votes
1
answer
141
views
App doesn’t update theme on scheduled system dark mode change
I’m building a Flutter app that supports both light and dark themes using ThemeMode.system, and I expect the app to switch themes when the system theme changes.
To detect and react to system theme ...
0
votes
0
answers
56
views
The includeFontPadding property is not working
The includeFontPadding property of the Text component in React Native does not work on Android real devices (the real devices are Xiaomi 10 and Xiaomi 13 with Android 13).
<View style={styles....
0
votes
0
answers
54
views
Unexpected GATT Service Caching on Android 15 – Bug or Change in Behavior?
I'm encountering a GATT write error on some devices. It seems to be related to Android 15 (SDK 35), but I might be missing something.
The error occurs when I try to discover services — I'm searching ...
0
votes
0
answers
61
views
React Native Text Input Handle Xiaomi weird shape
I have a problem with the shape of the TextInput handle on my Xiaomi Redmi Note 8 Pro, these are an image and a code example:
<TextInput
style={{
backgroundColor: Colors.dark....
0
votes
1
answer
61
views
How do I get default navigation bar in this hello world?
MainActivity.java
package com.example.test;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import android.view.ViewGroup.LayoutParams;
import android.view....
0
votes
0
answers
36
views
Problem with restarting widget on Xiaomi when app is closing/opening/backgrounding
I have an application with VebView and now I try to make a widget with message conversations. All is ok on my phone (Samsung), but on Xiaomi, every time when app is opening/closing/going to background,...
0
votes
1
answer
103
views
How to implement zero copy on Qualcomm smartphones?
What methods are available to enable zero-copy support on smartphones with Qualcomm GPUs?
I have tried various methods. First, I confirmed the presence of Unified Memory through ...
1
vote
1
answer
167
views
Xiaomi 13T Pro Android Studio Mirroring Bad Screen Quality [closed]
As you can see in the picture below, when I try to mirror the Xiaomi 13T Pro device via Android Studio, the shared screen looks pretty bad.
When I use Pair Devices Using Wifi and direct screen ...
0
votes
0
answers
32
views
Android interface crashes when bluetooth is off and trying to access it
I have a phone with MIUI version 13.0.8. When I try to open an app that uses bluetooth but it is not on, the whole interface of the phone restarts giving the following exceptions. Is this a Xiaomi ...
0
votes
0
answers
84
views
Android error "Tag Was Lost" in XIAOMI only
I am developing an application with NFC and an NFC TAG (ST25). When I send more than 13 bytes with the nfcV.transceive() command, I receive the error "TAG WAS LOST", but it only occurs on ...
0
votes
1
answer
54
views
Why text colors are not working in Xiaomi 12T
The text in totalizador1TextView, do not change according with instruction, allways black. MIUI Global 14.0.13 Android 13TP1A
<?xml version="1.0" encoding="utf-8"?> <...
1
vote
0
answers
808
views
i am getting the warning in the flutter usb debugging after launch the app in mobile phone
D/InputMethodManager(15647): showSoftInput() view=io.flutter.embedding.android.FlutterView{a362dc9 VFE...... .F....ID 0,0-1080,2356 #1 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT
W/libc (15647): ...
0
votes
1
answer
139
views
Navbar pops up when DropdownMenu from material3 appears on MIUI
I have Activity with hidden navigation bar and pure Compose content. It works as expected until androidx.compose.material3.DropdownMenu is shown. At this moment navbar is back, it hides again when ...
0
votes
0
answers
69
views
Type undefined error while compiling Xiaomi kernel
HDRTEST usr/include/audio/sound/msmcal-hwdep.h
In file included from <built-in>:1:
./usr/include/audio/sound/cs35l41.h:17:2: error: unknown type name 'bool'
bool classh_bst_override;
...
1
vote
0
answers
91
views
Wrong Colors Xiaomi
Colors are not show as they should be, only with Xiaomi. This is part of my code:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AppCompatDelegate....
0
votes
0
answers
171
views
Connectivity problems with Windows 11
I am looking for solutions to connect my device (Xiaomi 12T- HYPEROS) to my computer (Hp - Win11).
The problem is that I have USB and wireless debugging activated, all my drivers updated, original USB ...
1
vote
0
answers
580
views
Anyone tried building kernel for Redmi Note 12 Pro 5g Ruby?
I'm compiling kernels to compile wifi driver for kali nethunter but I'm failing constantly, i don't even know the kernel source I'm using is legit or not.
Kernel sorce : https://github.com/MiCode/...
0
votes
0
answers
108
views
Problem showing when trying to do an update on my Xiaomi
When I try to make an update on my android It display me this error.
java.lang.illegalargumentexception:Unknown URL
content://downloads/my_downloads
at
android.content.ContentResolver.insert(...
2
votes
0
answers
235
views
ForceDarkAllowed for specific Compose component or how to fix weird text color in dark mode on some Xiaomi phones?
I have trouble with text color in dark mode on some Xiaomi devices with android 10.
The component is clickable Box with text, if item selected - the text color is back and box is white and vise versa. ...
2
votes
0
answers
215
views
Xiaomi device system not notify app after successfully pinned widget when call requestPinAppWidget
I'm developing and Android widget app using kotlin. I want my app can pin widget to home screen programmatically. As the android docs said, I can use requestPinAppWidget() to achieve this. There is a ...
1
vote
1
answer
58
views
Swipe screen Xiaomi Poco 5X remotely
Setup:
Xiaomi Poco 5X dev phone with remote access adb to it.
Vyzor installed however can only view screen because Xiaomi requires additional debugging flags be enabled
Problem:
The phone only ...
1
vote
0
answers
583
views
How to Connect Xiaomi Smart Band 8 Active
I want to connect Xiaomi Smart Band 8 Active to flutter mobile app.
I searched information that I could receive data by connecting via Bluetooth.
I am asking a question because it is difficult to ...
0
votes
2
answers
427
views
Cannot start Activity from Worker on xiaomi phones
I am currently working on a video call app. I use FirebaseMessaingService to get the received message that the account is called, then start a Worker from the service, and then the worker starts an ...
0
votes
1
answer
198
views
requestPermissions() do not show dialog with Allow or Deny choise on some Xiaomi devices
Good day.
A few users with xiaomi devices on 12 and 13 Android complaning that the app do not invoke the system dialog with choise to give access to WRITE_EXTERNAL_STORAGE. The most of all users get ...
1
vote
0
answers
154
views
How can I query MIUI specific application permissions?
My application adds pinned shortcut to home screen.
It does it using ShortcutManager.requestPinShortcut(...) call since I target devices with 26+ API.
It works fine for various devices except Xiaomi ...
0
votes
0
answers
2k
views
Retrieving data from a phone stuck in a bootloop due to running out of memory
As I dont know anything about android fixing I need help on the steps to get to a solution
My phone (xiaomi redmi note 9 pro eea) recently got into a boot loop because it´s memory got completely full, ...
0
votes
1
answer
386
views
SimpleDateFormat string parsing issue in a Specific Android Device [duplicate]
I have a released android app and a strange issue has cropped up with a specific device. On analysis of Crashlytics data, I found that the app is crashing for this particular user (and device) because ...
1
vote
1
answer
539
views
Crash when trying to open MIUI system Activity in Android 13
i am trying to call MIUI system activity by this code:
val intent = Intent()
intent.setClassName("com.miui.powerkeeper", "com.miui.powerkeeper.ui.HiddenAppsConfigActivity")
intent....
1
vote
1
answer
791
views
Android BLE on Xiaomi T11 completely broken behaviour
Im currently trying to figure out why some Android devices have problem with our Bluetooth Low Energy app.
Working with this I am running the same codebase&app on my Samsung S22 and Xiaomi T11 or ...
0
votes
1
answer
44
views
How can decode this json data that exported at Haumi API?
First, thanks to read this question.
I am developing a website that show statistic chart on health data from wearable device; specially Miband 7
Yesterday, I found some API that bring health data from ...
1
vote
1
answer
953
views
Why deep linking not working in Mi Browser?
I have Java Android App that associated with my certificated web site by deep link in my AndroidManifest.xml. When this web site is opening in browser (Chrome, Firefox, etc.) it shows "Open In&...
0
votes
1
answer
959
views
Compile the lineageOS kernel of android_kernel_xiaomi_sdm845 errors
I'm trying to compile the LineageOS kernel for android_kernel_xiaomi_sdm845. I cloned the repository using the command:
git clone https://github.com/LineageOS/android_kernel_xiaomi_sdm845.git.
After ...
2
votes
1
answer
844
views
How to clear "remember my choice" flag on MIUI 12
I wanted to use VSCode and the flutter extension to debug an app on my phone. While starting the debugger my phone asked if I wanted my PC to allow installing Apps. I pressed remember my choice and ...
2
votes
0
answers
110
views
Xiaomi phones, this app was built for an older version
The error this app was built for an older version only shows for Xiaomi phones. All other androids can download and use the app without any issues.
Localizations
92 localizations
Permissions
21 ...
0
votes
2
answers
2k
views
FullScreenIntent not working on xiaomi devices
I am developing a calling app. I need to show the ringing screen automatically after receiving push notification. It works ok except xiaomi-devices. Sometimes, the screen is not switched on. What is ...
6
votes
0
answers
544
views
IllegalArgumentException: column local_filename is not allowed in queries when calling DownloadManager.query()
in my app i'm starting download via DownloadManager:
val downloadId: Long = downloadManager.enqueue(dr)
If user reopenning application, i'm checking downloading status via:
fun isDownloadInProgress():...
1
vote
0
answers
500
views
Android - Accessibility system permission request does not work on XIAOMI
I'm testing accessibility feature for my android app. The idea is to request permission by redirecting the user to the accessibility screen config. After the permission is enabled by the user, the app ...
3
votes
1
answer
5k
views
Is there any way to change lsa format?
I uninstalled miui gallery updates (xiaomi mobile).All of my private pictures have been removed now. I found them in file manager in miui folder , But in LSA format, I want to restore my pictures. Is ...
2
votes
0
answers
367
views
Simulation of sending FCM message via ADB SHELL on real Xiaomi device does not work
My Firebase service:
class FirebaseService : FirebaseMessagingService() {
override fun onMessageReceived(remoteMessage: RemoteMessage) {
Log.d("FIREBASE", "Message data ...
0
votes
0
answers
456
views
Kotlin - com.miui.gallery.provider.GalleryOpenProvider Error
basically i have a fragment and in this fragment user can pick a image or use camera to take photo and i am taking the photo as uri and save to the local DB as string . And show the photo in this ...
1
vote
1
answer
573
views
Debug Flutter app is not working with VSCode on Xiaomi Device
I'm starting developing mobile using flutter on vscode IDE. I was debbuging the app using a samsung device, everything was ok, but I tryed debug the app using a xiaomi device, however this time i've ...
1
vote
2
answers
1k
views
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 ...
1
vote
2
answers
2k
views
Xiaomi's GetApps Console says "The package name does not match, please upload the Apk file with the same name as the created package". They are same."
Trying to upload an apk to the Xiaomi app store and Xiaomi's GetApps Console says "The package name does not match, please upload the Apk file with the same name as the created package".
But ...
0
votes
1
answer
207
views
Xiaomi, Redmi, Android. Error in Logcat: W PowerChecker.Controller: autoKillApp, calling ProcessManager uid = 10289, pkg = com.termux
Xiaomi Redmi 7A with MIUI 12.5 keeps killing background service / application (Telegram SMS and Termux) when the phone is not connected to charger. Logcat log:
01-06 10:45:57.787 1892 1892 I ...
0
votes
1
answer
4k
views
Run flutter app in debug mode in xiaomi phone
i just wanted debug my flutter app on xiaomi x4Pro phone and other xiaomi phone but this
error occurred :
Launching lib\main.dart on 2201116PG in debug mode...
lib\main.dart:1
√ Built build\app\...
0
votes
1
answer
403
views
Convert MI SCALE 2 data to weight data (UUID: 0x2A9D, Weight Measurement)
I am trying to develop a flutter application to convert readings from Xiaomi Scale to readable format in mobile.
I get the following readings:
KG 55.05 [34 , 2 , 43 , 178 , 7 , 1 , 1 , 20 , ...
1
vote
1
answer
2k
views
adb pull fails with Invalid argument
Xiaomi Redmi Note 9 Pro with SD inserted sd card.
adb pull /sdcard C:\Redmi
fails with
adb: error: failed to create directory 'C:\Redmi\MIUI\debug_log\common\com.xiaomi.finddevice\process-com.xiaomi....
0
votes
1
answer
818
views
Could not start activity from service (com.android.server.am.ExtraActivityManagerService: MIUILOG- Permission Denied Activity)
Device: Xiaomi Redmi 4A, Android 7, MIUI 10.
Code for running activity from service:
String pkgName = context.getPackageName();
Intent intent = new Intent(context, main_activity.class);
intent....