-
-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bluetooth Keyboard no longer detectabe as trigger after a few hours, need reboot #1401
Comments
This is a known issue with the new update to HyperOS... Can you confirm that Button Mapper also doesn't work? We are pretty confident this is xiaomi's fault but have no idea how to fix it. Please join the issue here #1380 |
Hi I'm running HyperOS 2.0.5, this app works. However the Bluetooth trigger would no longer detectable the same Bluetooth Keyboard every now and then, the keyboard still works fine. That is wiered. |
After these few hours, can Key Mapper still detect volume buttons or anything? I've had dozens of people report issues after updating to HyperOS so I find it very suspicious. Nevertheless, if its my fault or not, I must figure it out 😅 Is this problem at all reproducible? Like is it a specific number of hours later every time? |
Thanks for your reply. There is no strict time just yet. |
We may never know the real reason, Xiaomi don't like apps being in the background and they are a moving target with each update 😅 The guys at dontkillmyapp.com don't mention hyperos yet. It really freaks me out because i'm potentially going to be review bombed over the next year because of this. The thing i don't understand is that some users report not being able to report volume buttons at all after updating to hyperos, some people have the issue a while after rebooting, and i tested on a HyperOS 2.0.1 phone in a store and i could record triggers straight away. Some people have the issue on HyperOS Android 14, Android 15. Only common denominator is "HyperOS". |
Next time it stops working, can you restart the accessibility service, and try to record a trigger again? |
I did previous, as once I thought it was accessibility server issue or shizuku issue or system memory management issue that killed this app. But none of them works.
Reseating accessibility service doesn't help
Restarting shizuku doesn't work either
Even restarting this app doesn't make the same working Bluetooth detectable.
It is so weird.
ONLY restarting the phone brings it back to work.
With Kind Regards
Henry
+44 7838 055510
…________________________________
From: Seth Schroeder ***@***.***>
Sent: Monday 20 January 2025 22:02
To: keymapperorg/KeyMapper
Cc: Henry; Author
Subject: Re: [keymapperorg/KeyMapper] Bluetooth Keyboard no longer detectabe as trigger after a few hours, need reboot (Issue #1401)
Next time it stops working, can you restart the accessibility service, and try to record a trigger again?
—
Reply to this email directly, view it on GitHub<#1401 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKPTSOD6P5PYCWXWDMMUPT32LVXANAVCNFSM6AAAAABVRFLFQGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBTGI4DIOBZGI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
This is what other people seem to be reporting... no matter what they do, HyperOS refuses to send key events to accessibility services. I just made a new testing build that may workaround the problem but you would have to use one of the Key Mapper keyboards instead of your own :/ I made an announcement on the discord server here describing the steps https://discord.com/channels/717499872219103263/717527256091721735/1330696739002519622 |
You seem to be knowledgeable and have experience with tinkering. Can you scour the internet to try and see if anyone outside the Key Mapper community has reported this issue? Perhaps ask on some Xiaomi forums. I want to be 99.99% confident that it isn't my fault before I put a message in the app that says Xiaomi broke the app and there is nothing we can do to fix it. I'm already getting more 1 star reviews because of this. Edit: to prove my theorem can you try remapping some buttons with Button Mapper and see if the same happens after a few hours? |
That doesn't work as I need multiple language such as Chinese etc. and Google Keyboard is a must.
Some brainstorm from me IMHO:
Is there any other way such as via Shizuku?
Or make the app core detection service sparely declared in MIUI so it doesn't get killed by system even if battery optimisation set to Default (you may need to dig deeper into MIUI developer reference to see what services and background activity won't get killed by system easily)
Or any way to protect system service e.g. by running double process, i.e. a backup service as this is a very small footprint?
With Kind Regards
Henry
+44 7838 055510
…________________________________
From: Seth Schroeder ***@***.***>
Sent: Monday 20 January 2025 22:13
To: keymapperorg/KeyMapper
Cc: Henry; Author
Subject: Re: [keymapperorg/KeyMapper] Bluetooth Keyboard no longer detectabe as trigger after a few hours, need reboot (Issue #1401)
This is what other people seem to be reporting... no matter what they do, HyperOS refuses to send key events to accessibility services.
I just made a new testing build that may workaround the problem but you would have to use one of the Key Mapper keyboards instead of your own :/ I made an announcement on the discord server here describing the steps https://discord.com/channels/717499872219103263/717527256091721735/1330696739002519622
—
Reply to this email directly, view it on GitHub<#1401 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKPTSOHTFIPH532LG4ZCQK32LVYJ5AVCNFSM6AAAAABVRFLFQGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBTGI4TKMRSGA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hi I'm not sure there is something you could potentially do instead of just a disclaimer. After all Xiaomi does things in a unpleasant way that's not good but user is our friend Id like to help user rather than just disclaimer.
Maybe something we can do to improve the situation e.g. some of the point I can brainstorm.
remember for example, file manager app there are hundreds and different developers, some implemented a way that catered MIUI devices that works much better than the others so you may say it's xiaomi's fault by implementing a non universal Android system but there's certainly something to certain degrees things be done to improve the situation for users. Hope it helps. Happy to help you to test.
With Kind Regards
Henry
+44 7838 055510
…________________________________
From: Seth Schroeder ***@***.***>
Sent: Monday 20 January 2025 22:20
To: keymapperorg/KeyMapper
Cc: Henry; Author
Subject: Re: [keymapperorg/KeyMapper] Bluetooth Keyboard no longer detectabe as trigger after a few hours, need reboot (Issue #1401)
You seem to be knowledgeable and have experience with tinkering. Can you scour the internet to try and see if anyone outside the Key Mapper community has reported this issue? Perhaps ask on some Xiaomi forums. I want to be 99.99% confident that it isn't my fault before I put a message in the app that says Xiaomi broke the app and there is nothing we can do to fix it. I'm already getting more 1 star reviews because of this.
—
Reply to this email directly, view it on GitHub<#1401 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKPTSOE25S6YIRE7JRA42TL2LVZCBAVCNFSM6AAAAABVRFLFQGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBTGMYDCMJQGU>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
This is kind of a brain dump, and multiple questions are scattered through out - please answer them all cos they are clues 😅 I have a lot of research and testing to do but i think it may be possible to detect key events at the kernel level with Shizuku #1394. This is the ultimate solution (potentially, but will be some restriction or flaw...). This is not happening any time soon and would upend all assumptions i made in the app so far. Do you have links to any documentation on this stuff from Xiaomi? I understand that we should help the user but a disclaimer saying we are finding a work around but ultimately the user needs to talk to Xiaomi, it might stop a few people from review bombing if they are informed. We should probably start a thread in some Xiaomi forum as well? This is potentially very serious because accessibility services are accessibility services. I was wondering whether Xiaomi have broken phones for people with accessibility needs as well? Does Talkback work? Maybe this way Xiaomi will listen to us, because I doubt a 3rd party key mapping app is much motivation for them to fix the problem, but making their phones discriminatory might be 😂 HSBC even blocked their app if any accessibility service was enabled... they eventually backtracked. I have no Xiaomi devices, and am completely outside that universe so I don't really know how people talk about these problems with Xiaomi. Is there some issue tracker, or forum where engineers inside Xiaomi respond? When you open the Key Mapper app after it breaks, does the home screen say it has crashed or does it still show a green check mark that it is enabled? And, does the record trigger button still count down? If yes, then this is not an app killling problem, because the accessibility service is still running but the system is not wanting to send key events. |
Did you join the discord server? If not, can you download this APK and see if it fixes the problem. I am targeting Android 15 in version 2.8.0, maybe that does something 🤷 |
Do you also see this message "Accessibility service: onUnbind" in the logs at the bottom of the Key Mapper settings? |
Thank you I did join but I dont know really how to use Discord app looks all messy.
Appreciate. I'll try
With Kind Regards
Henry
+44 7838 055510
From: Seth Schroeder ***@***.***>
Date: Monday, 20 January 2025 at 22:48
To: keymapperorg/KeyMapper ***@***.***>
Cc: Henry ***@***.***>, Author ***@***.***>
Subject: Re: [keymapperorg/KeyMapper] Bluetooth Keyboard no longer detectabe as trigger after a few hours, need reboot (Issue #1401)
Did you join the discord server? If not, can you download this APK and see if it fixes the problem. I am targeting Android 15 in version 2.8.0, maybe that does something 🤷
keymapper-2.8.0-ci.156.zip<https://github.com/user-attachments/files/18482977/keymapper-2.8.0-ci.156.zip>
—
Reply to this email directly, view it on GitHub<#1401 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKPTSOBHW64Z6RPJZKQPWVD2LV4NBAVCNFSM6AAAAABVRFLFQGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBTGMZDIOJVGM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
what does the CI mean? It installed a second app why dont they be the same?
With Kind Regards
Henry
+44 7838 055510
From: Seth Schroeder ***@***.***>
Date: Monday, 20 January 2025 at 22:48
To: keymapperorg/KeyMapper ***@***.***>
Cc: Henry ***@***.***>, Author ***@***.***>
Subject: Re: [keymapperorg/KeyMapper] Bluetooth Keyboard no longer detectabe as trigger after a few hours, need reboot (Issue #1401)
Did you join the discord server? If not, can you download this APK and see if it fixes the problem. I am targeting Android 15 in version 2.8.0, maybe that does something 🤷
keymapper-2.8.0-ci.156.zip<https://github.com/user-attachments/files/18482977/keymapper-2.8.0-ci.156.zip>
—
Reply to this email directly, view it on GitHub<#1401 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKPTSOBHW64Z6RPJZKQPWVD2LV4NBAVCNFSM6AAAAABVRFLFQGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBTGMZDIOJVGM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
They are separate because some users have the production version from Google Play and also want to test in-development features temporarily. CI means "continuous integration" - a.k.a automatic builds from GitHub Actions. |
Developer TODO (don't remove)
Discord message link/email recipient
[email protected]
Describe the bug
Bluetooth keyboard stop working the app nor system no longer detect trigger (already set to any device)
To Reproduce
use bluetooth keyboard as trigger, it works well
after a few hours, it stopped working
Android 15, Bluetooth ThinkPad TrackPoint X1 Fold bluetooth keyboard, MI MIX Fold 3 HyperOS 2.0
Battery mode set to no restriction, auto start, also keep in memroy.
Restart device would fix the issue, however still very wierd, they keyboard can still type and use normally but Key Mapper app can no longer see and detect key pressed, very strange.
Upload a backup of your keymaps. Follow the guide here
mappings_20250120-193417.zip
Expected behavior
the same bluetooth keyboard should be able to be used as trigger all the time instead of just working for awhile then stopped working as trigger. The keyboard can type normally no issues at all!
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Additional context
Feel free to contact me happy to run live tests
The text was updated successfully, but these errors were encountered: