yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mix Fold 2] subukkk:
Hey bro ive never used adb or anything before did use it for this annoying asf thing casue me spending 1700 nzd and having to change phone cause of this **** didnt seem like a smart move never going back to xiaomi again.

btw is it supposed to say

Exception occurred while executing 'disable-user':

java.lang.SecurityException: Cannot disable system packages.

at com.android.server.pm.PackageManagerServiceImpl.canBeDisabled(PackageManagerServiceImpl.java:646)

at com.android.server.pm.PackageManagerService.setEnabledSettings(PackageManagerService.java:4056)

at com.android.server.pm.PackageManagerService.-$$Nest$msetEnabledSettings(Unknown Source:0)

at com.android.server.pm.PackageManagerService$IPackageManagerImpl.setApplicationEnabledSetting(PackageManagerService.java:5927)

at com.android.server.pm.PackageManagerShellCommand.runSetEnabledSetting(PackageManagerShellCommand.java:2502)

at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:273)

at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)

at android.os.ShellCommand.exec(ShellCommand.java:38)

at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(PackageManagerService.java:6550)

at android.os.Binder.shellCommand(Binder.java:1075)

at android.os.Binder.onTransact(Binder.java:895)

at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4352)

at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(PackageManagerService.java:6534)

at android.os.Binder.execTransactInternal(Binder.java:1351)

at android.os.Binder.execTransact(Binder.java:1282)

? thanks
[Xiaomi Mix Fold 2] Cyrax-001:
I had the same issue when I tried to disable it on HyperOS.

It seems that Xiaomi blocked the ability to disable power keeper on the new HyperOS update.. I started having the same old notifications delay after the update
[Xiaomi Mix Fold 2] subukkk:
Anything I can do to get by for now? Might have to finance the s24 ultra.

Thanks Btw
[Xiaomi Mix Fold 2] Cyrax-001:
Unfortunately I have no idea.. I will keep trying.

The best thing you can do until a Wark around is found is to flash a custom ROM.. There's the Elite ROM that is based on the same official Xiaomi Rom but is free from all the Chinese headaches
[Xiaomi Mix Fold 2] subukkk:
Yeah was considering it but since I've never done it before I heard it can brick the cn roms
[Xiaomi Mix Fold 2] Cyrax-001:
I have made some search on the Chinese pages, it seems that there's a new way to remove the Powerkeeper Package (and not to disable it) since Xiaomi has restricted that as I expected. I will try it and share it here if it works.
[Xiaomi Mix Fold 2] subukkk:
Yes please share it but I saw a post on Reddit and apparently when you remove it it's more sort of dangerous and apparently resets once you reboot your device and since you have already deleted the powerkeeper not much you can do then.

Please confirm that for me too.

Thanks
[Xiaomi Mix Fold 2] Cyrax-001:
you need to remove it using this batch (after activating USB debugging from developers options)

UninstallPowerkeeper.zip

drive.google.com

Whatsapp notifications are working now, there's still one annoying issue: WhatsApp can't display notifications over other apps!! So basically you get all the notifications as usual when the phone is locked or if you're on the home screen. But once you open any other app, you won't get any notification from WhatsApp!

I went to (display over apps) setting and didn't find WhatsApp among the apps... So it seems it is blocked somehow.. I hope someone helps

Removing the power keeper has no impact on the phone so far. Everything is working properly.
[Xiaomi Mix Fold 2] subukkk:
hey how do i use the batch? any command or anything
[Xiaomi Mix Fold 2] Cyrax-001:
Extract the zip file

Activate USB debugging

Connect the phone to the pc using USB cable

Double click the batch file (the last file)

Allow connection on your phone if asked

Restart your phone
[Xiaomi Mix Fold 2] Cyrax-001:
Just a catch up, after a couple of days I found out that removing the battery and performance file with this batch doesn't change anything. To keep the notifications alive for WhatsApp (or any other application) in HyperOS you gotta minimize it and drag it to the side. By this way it stays in the (foreground).

That's the only workaround for the time being.
[Xiaomi Mix Fold 2] z1c_wh:
fortunately after a little scare, with the Hyper OS Android 14 update, notifications still arrive on time, after carrying out the steps listed in this topic.
[Xiaomi Mix Fold 2] Cyrax-001:
Which ones exactly! I'm unable to get anything real time
[Xiaomi Mix Fold 2] z1c_wh:
Something really strange happened and after some days with HyperOs, now messages delayed to me too.

I hope something can be done with this...!
[Xiaomi Mix Fold 2] Cyrax-001:
I tried something and it seems it's working now (so far)

Just clear cash AND data.

Now I get the notifications in time
[Xiaomi Mix Fold 2] Prydateer:
thanks. How do I check if installed correctly?
[Xiaomi Mix Fold 2] Prydateer:
Powerkeeper batch does indeed not solve the notification issues with whatsapp. I found out that the notification issue comes into play a few minutes (1 or 2 minutes it seems) after you put your phone is standby mode (and just lay it down and leave it).

I m trying to find a few to revert back to MIUI 14 but don t know how to do this. Any thoughts here?
[Xiaomi Mix Fold 2] Cyrax-001:
As I wrote in a former post, I solved the problem by erasing cash and data of WhatsApp. Now everything works
[Xiaomi Mix Fold 2] Prydateer:
Nice find mate. It seems to work here too but I m wondering just for how long this will last. There has to come a moment where clearing the cache and data will be needed again but when this is time will tell us.

Something (a background activity I think) in HyperOS puts whatsapp to sleep after 90 seconds when putting the phone in stand-by. We need to find out which process is responsible for this.

Do you have a link to the chinese community where the Powerkeeper batch was created? I want to keep an eye on these topics there too if possible.
[Xiaomi Mix Fold 2] Cyrax-001:
I believe deleting cashe and data solves the problem permanently because it was needed after updating the system to HyperOS.

Anyways here's the link. It seems there are new posts regarding the issue

https://m.mobile01.com/topicdetail.php?f=634&t=6892724
[Xiaomi Mix Fold 2] Prydateer:
So far it is indeed the solutions for not receiving notifications in WhatsApp
[Xiaomi Mix Fold 2] Cyrax-001:
You were right. The delay is back again
[Xiaomi Mix Fold 2] Prydateer:
Same here
[Xiaomi Mix Fold 2] Cyrax-001:
Found this while searching but I'm on a vacation and don't have my laptop. You can try it and tell if it works

It was an old fix for the delay issue in Miui so I'm not sure if it still works with Hyperos since adb commands don't work anymore, but give it a try anyway
[Xiaomi Mix Fold 2] Prydateer:
Just received this on the Telgram xiaomi fold group. Worth a shot. Will report back here if it works.
[Xiaomi Mix Fold 2] Cyrax-001:
Fingers crossed mate 🤞
[Xiaomi Mix Fold 2] Prydateer:
Checking it now. First thing I noticed is that is does not fix the notification issue when your screen is activated and you receive a phonecall on whatsapp. Still no pop-up there.

Checking incoming calls now when phone is in stand-by mode for a longer period. Report back asap
[Xiaomi Mix Fold 2] Prydateer:
NOP, does not work
[Xiaomi Mix Fold 2] Prydateer:
I m going to try to downgrade to MIUI 13 and after that upgrade to Eliterom. It seems Eliterom does not have any issues with notifications
[Xiaomi Mix Fold 2] Cyrax-001:
You don't need to downgrade, you can directly unlock the bootloader (check the reply on the other thread)
[Xiaomi Mix Fold 2] omnimax:
I can't even get auto-start to stick. HyperOS disables the auto-start after a day or so if you don't use that app frequently :/ wtf Xiaomi
[Xiaomi Mix Fold 2] Cyrax-001:
Real time notifications are completely messed up for almost any application. I don't know if that's gonna be repaired by the next updates. But for now, all social media apps are useless without reliable notifications.
[Xiaomi Mix Fold 2] roland-2020:
were you able to solve the issue
[Xiaomi Mix Fold 2] omnimax:
No, I disabled system optimizations in developer and now there's no auto-start option (like normal android) and can use alternative launcher and notifications all come in. Everything is better now :)
[Xiaomi Mix Fold 2] roland-2020:
which is the alternative Launcher? do navigation gestures work with it?

I tried disabling the system optimization but it caused some issues, for example the always on display remains on (it should go off after one minute and on again only with new notification or by tapping the screen).
[Xiaomi Mix Fold 2] omnimax:
Yeah, it has some disadvantages. I use lawnchair launcher and MyGestures app - works like a charm. But you can't use the build in swipe navigation no :/
[Xiaomi Mix Fold 2] roland-2020:
does this app activate the swipe navigation gestures? is root needed?
[Xiaomi Mix Fold 2] omnimax:
Yes, it activates swipe and you can even configure it as you please :)
[Xiaomi Mix Fold 2] Cyrax-001:
---------------------------------------
[Xiaomi Mix Fold 2] ekafjr:
Has anyone tried using fcmfix?
[Xiaomi Mix Fold 2] Cyrax-001:
Does that need root?
[Xiaomi Mix Fold 2] ekafjr:
Yes
[Xiaomi Mix Fold 2] Cyrax-001:
If you root your phone it means you have unlocked the bootloader. Why bother looking for tweaks and mods when you can simply flash a custom ROM that gets rid of the whole Chinese limitations?
[Xiaomi Mix Fold 2] ekafjr:
yes I have tried several roms for my device but honestly miui china is still the best in terms of smoothness
[Xiaomi Mix Fold 2] Cyrax-001:
Eliterom is based on Miui and is free from all the Chinese stuff
[Xiaomi Mix Fold 2] tbjoorn:
Any update on this topic yet for HyperOS?

Just recieved my 14 Ultra and whenever my phone been in standby for several minutes it goes in some sort of "sleep mode" and I wont recieve notifications until I open the phone.

Have tried setting every app autostart, no battery save, unrestricted data usage in special permissions. Dunno what to do next..
[Xiaomi Mix Fold 2] Cyrax-001:
Don't waste your time with the official software... flash a custom ROM and enjoy the peace of mind

I spent more than two months trying and doing everything possible. With HyperOS it's a no go for notifications
[Xiaomi Mix Fold 2] tbjoorn:
As far I know I can't unlock bootloader and flash EU rom and then lock bootloader since the phone will be bricked then?

And then I can't use some bank apps/google wallet etc.?
[Xiaomi Mix Fold 2] Cyrax-001:
You don't need to lock the bootloader for the banking apps to work. I have everything working normally (banking apps, crypto, PayPal... Etc)

Just don't root it
[Xiaomi Mix Fold 2] wetor:
Hi, does this solution help to address the issue where WhatsApp calls ring in the background but don't display any notification at all on MIUI 14? You have to enter the WhatsApp app to accept the call, which I suspect might be caused by the lack of permission to display over other apps.
[Xiaomi Mix Fold 2] Cyrax-001:
Unfortunately not.
[Xiaomi Mix Fold 2] Prydateer:
The Powerkeeper download link is dead. I m gonna give it another try. Where to find the Powerkeeper file Cyrax?
[Xiaomi Mix Fold 2] Cyrax-001:
Battery and Performance 4.2.00 (Android 13+) APK Download by Xiaomi Inc. - APKMirror

Battery and Performance 4.2.00 (Android 13+) APK Download by Xiaomi Inc. - APKMirror Free and safe Android APK downloads

www.apkmirror.com

It's not gonna work, don't waste your time 😅
[Xiaomi Mix Fold 2] wetor:
Thanks for the info. What if I flash to an EU ROM? Does this issue persist in the EU ROM, or are there any notification issues with WhatsApp in the EU ROM?
[Xiaomi Mix Fold 2] Cyrax-001:
There's no EU Rom for foldables. The only custom ROM is Eliterom. And it solves the issue
[Xiaomi Mix Fold 2] wetor:
Thanks for the info about Eliterom! I'm curious, would the EU ROM solve the WhatsApp notification issue for other Xiaomi models?
[Xiaomi Mix Fold 2] Cyrax-001:
I have no idea about other models. I own only the Xiaomi Fold.
[Xiaomi Mix Fold 2] wetor:
No worries, thanks anyway.
[Xiaomi Mix Fold 2] Prydateer:
I finally managed everything on the Xiaomi Fold 2 (or 3 I have both and it s the same for both) to get WhatsApp notifications fixed. The last thing that needs to be fixed now is getting incomming call notifications for whatsapp on the foreground when you are using the phone (in standby all works fine). The problem here is that Xiaomi somehow (on purpose I think) blocked the setting "DISPLAY OVER OTHER APPS" for Whatsapp. To me it feels like there should be a workaround for this to get this setting work.

I did some searching and found this (older) topic

https://www.reddit.com/r/AndroidQuestions/comments/m3tu3n

I tried to run this command in ADB:

pm grant com.whatsapp android.permission.SYSTEM_ALERT_WINDOW

I get this error:

Exception occurred while executing 'grant':
java.lang.SecurityException: Package com.whatsapp has not requested permission android.permission.SYSTEM_ALERT_WINDOW
at com.android.server.pm.permission.PermissionManagerServiceImpl.grantRuntimePermissionInternal(PermissionManagerServiceImpl.java:1427)
at com.android.server.pm.permission.PermissionManagerServiceImpl.grantRuntimePermission(PermissionManagerServiceImpl.java:1341)
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:559)
at android.permission.PermissionManager.grantRuntimePermission(PermissionManager.java:614)
at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:2692)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:291)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(PackageManagerService.java:6551)
at android.os.Binder.shellCommand(Binder.java:1075)
at android.os.Binder.onTransact(Binder.java:895)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4352)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(PackageManagerService.java:6535)
at android.os.Binder.execTransactInternal(Binder.java:1351)
at android.os.Binder.execTransact(Binder.java:1282)
255|babylon:/ $

Any thoughts anyone?
[Xiaomi Mix Fold 2] Cyrax-001:
You get similar error with almost any adb command on hyperos. It seems that Xiaomi blocked adb commands
[Xiaomi Mix Fold 2] Prydateer:
Thanks. I will ask around. By the way, are you familiar with Hyperceiler?
[Xiaomi Mix Fold 2] Cyrax-001:
You get similar error with almost any adb command on hyperos. It seems that Xiaomi blocked adb comma

No. What's that
[Xiaomi Mix Fold 2] Prydateer:
HyperCeiler | HyperCeiler

Make HyperOS/MIUI Great Again!

hyperceiler.sevtinge.cc
[Xiaomi Mix Fold 2] W2371D:
any update ?
[Xiaomi Mix Fold 2] Cyrax-001:
There's won't be any updates. No chance with HyperOS. Just flash a custom ROM
[Xiaomi Mix Fold 2] Prydateer:
I am fully backup up Cyrax on this. However, I now managed to get everything work like it should as for notifications (it is a lot of work to do) on stock hyperOS. The last thing I will need to figure out is how to "unlock" Display Over Other Apps for Whatsapp.

@Cyrax: can you maybe figure out what the Chinese setting is for the Display Over Other Apps settings? This way I can try to find topics on Chinese forums. People there are far more into the details and solutions and there probably is a solution out there, because from my understanding this exact same problem persists in Line which is more commonly used in China.

I tried to create an account here

https://m.mobile01.com/register.php

But it seems I cannot get a sms verification when creating the account which is needed.

I want to ask the participants of this topic if the solved the display over other apps issue. Getting notifications in time (which is another thing!) is 100% solved now on my device.

https://m.mobile01.com/topicdetail.php?f=634&t=6892724
[Xiaomi Mix Fold 2] W2371D:
thank you

i have redmi note 12 pro+ china VER with hyperos

What is the correct way to change ROM

If possible give me the steps
[Xiaomi Mix Fold 2] W2371D:
Did you find a way to fix the notifications?

Can you post it?
[Xiaomi Mix Fold 2] Cyrax-001:
I tried the same solution mentioned in that thread a couple of months ago, it worked for a couple of days then notifications broke again. And unfortunately I have no idea about the Chinese setting. It seemed that they programmed it deeply in HyperOS. Could be in the kernel itself
[Xiaomi Mix Fold 2] Cyrax-001:
I don't own this device and I can't tell which custom roms are available for it. You may need to check if there's an xda forum dedicated to this device
[Xiaomi Mix Fold 2] pooh4eva:
Good Morning Super Experts

i just bought a Xiaomi Ultra 14 for my wife. I was attracted to the Leica lens and the 1 TB harddisk.

I have 2 main issues with the phone.

1) I'm not able to link my credit card for contactless payment through Google Pay. The card worked fine in Xiaomi 13. We were however able to link a debit card, issued by the same bank though. The seller advised me to contact my bank (which i did). He said they will push around before making some changes. Apparently a lot of rules have been introduced by the banks for online payment.

2) My wife is also a heavy user of USA social messenging apps like Watsapp, Instagram and Facebook. Once the phone is locked and the screen goes off. we don't get any notifications for messages or calls. It is really a headache. I tried all the steps except for flashing the ROM. The operating system is HyperOS. It still doesn't work.

I'm not sure what i could do and if you could kindly advise me. I may need to buy another phone for my wife. Appreciate any advice or help rendered. Thank you and have a lovely week ahead.
[Xiaomi Mix Fold 2] Cyrax-001:
As I mentioned in the first post. Hyperos blocks notifications almost completely from western social media apps. No workaround worked for me so I flashed a custom ROM. As for the banking app I have no idea. My banking apps worked fine on the official and now on the custom rom
[Xiaomi Mix Fold 2] Prydateer:
It requires some work but all my notifications are working 100% now. The last thing is to get whatsapp display over other apps, but I m working on that as we speak and it looks like I am near a solution for this too.

And this is all without root needed which is the good part
[Xiaomi Mix Fold 2] Cyrax-001:
What did you exactly do to solve the notifications issue
[Xiaomi Mix Fold 2] carlitobahsoun:
can u help us and share how u fix? thanks
[Xiaomi Mix Fold 2] W2371D:
could you explain !
[Xiaomi Mix Fold 2] trunglevt:
It seems that Xiaomi did the 200iq aka killing FCM as soon as u press lock screen. You cant uninstall powerkeeper because it will break the phone. Cant receive any notification even when fcm is running.
[Xiaomi Mix Fold 2] kotty:
i on hyperOS cn.i fixed it by disabled miui optimize and create dual app for whatapp .login with link device.you have to use other phone to take picture of the QR code or screenshot and send to other phone and scan it.ever since my notification never delay..but you will received double notification.for disabled miui optimize i only noticed battery icon colour is different when charging and app permission become less option which is good i think no so many option to enable permission.i always heard disabled miui optimize will have side effects but never state what that.anyone know can point out what?i been using is more then a month now didn't notice any glitches or bad
[Xiaomi Mix Fold 2] jmpcrx:
Hi, anyone know how to stop the annoying update to hyper os popup? Don't want hyperos for obvious reasons and wouldn't take much to accidentally press the update button at some point!

Thanks 👍
[Xiaomi Mix Fold 2] Ushan_DESTINY:
Since unlocking the bootloader is very difficult, I found an alternative method to fix the issue of WhatsApp Call notifications not showing up.

What I did was very simple: I downloaded an app called Dynamic Island - dynamicSpot and gave it all the necessary permissions. Then, I tweaked some settings. It's just an app that can activate Apple's dynamic island feature. It requires Accessibility and Notification permissions to work. I only had issues with WhatsApp, so I only turned on notifications for WhatsApp. There's a setting to expand notifications, but this feature is only for pro users. I had to pay 500 LKR to get access to it. I don't completely trust this app, so I blocked its internet access for added security.

I also hid Dynamic Island because I don't like it. I tried changing the position of the pill, but it still won't stop showing notifications.

If you're experiencing issues with WhatsApp Call notifications, I suggest trying out this app. I'm not very good at giving tutorials, but if anyone is interested or wants to fix this issue, please reply, and I'll do my best to help you.
[Xiaomi Mix Fold 2] joerg78:
Disabling powerkeeper with adb still works at least on some phones with HyperOS (I have the EU-Version 1.0.1.0 TKEEUXM, Redmi Note 11s). Since I have two "USB-Debugging"-options ("USB debugging" and "USB debugging (Security settings)") in developer options I have enabled both of them.
[Xiaomi Mix Fold 2] Ntanh1:
Dual app does help in my Redmi k70 (skype, whatsapp, livescore…), just logout your account in main app and login to cloned app only to avoid duplicate noti.

After disabling optimization popup view doesn’t work, anyway I dont need to do that, notifications are much better with just cloned app.
[Xiaomi Mix Fold 2] paulopais:
With hyperos works but you need to remove the package with the command: pm uninstall -k --user 0 com.miui.powerkeeper
[Xiaomi Mix Fold 2] chipston:
Hi, any news please?

I use GMail app on my phone and noted that sometimes I receive incoming calls but it will not ring and or vibrate.

Apart from Messenger and whatsapp.

Any assistance would be highly appreciated.
[Xiaomi Mix Fold 2] Axe007:
I just tried on the clone (after reading your post, is something i have yet to try), unfortunately it has failed... I'm also using K70.

Is your clone method still running good on your K70?

I gain much experience with K60E with all methods fails until i shut Miui optimization. Less features and accepting some bugs that i can live with in exchange with Whatsapp working normally. I havent tried shutting off the optimization for HyperOS.
[Xiaomi Mix Fold 2] Ntanh1:
So far so good, did you enable Autorun and all permissions for the cloned app?

I also removed powerkeeper long time ago, it didn't help until I use cloned app, not sure if the combination helps.

./adb.exe shell pm uninstall --user 0 com.miui.powerkeeper
[Xiaomi Mix Fold 2] Axe007:
Yes, auto-start enable, notification all permission, battery in performance and data unrestricted. Latest try was to shut OFF Miui optimization for K70 and it works.

Btw, can u test again in lock screen AFTER few minutes of sleep mode without waking it. Send a whatsapp msg from another phone see if it one tick or two. If it appear only one tick, try do whatsapp calling to K70 see if it appear.
[Xiaomi Mix Fold 2] Ntanh1:
see my test ;)
[Xiaomi Mix Fold 2] carlitobahsoun:
sorry my question out of thread .

i have k70 pro and still whatsapp call not showing while screen on .

my NEW PROBLEM IS THAT I GOT XIOAMI WATCH 2 AND WHEN I TRY PARING WITH MI FITNESS , IT GAVE ME THAT : PLEASE UPDATE UR GOOGLE GMS TO LATEST FIRST .

PLZ PLZ ANY ONE FACE SAME AND FIX IT ?

by the way i have redmi watch 4 ( hyperos ) and connected normaly .