-
Notifications
You must be signed in to change notification settings - Fork 19
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
Power off alarm #88
Comments
Hi, xiaomi with its miui / hyperos is very restrictive. Go to the settings search for apps, select this app and make sure you give all the necessary permissions including the poweroff alarm permission. In addition to giving all the permissions that the app requires you must also give the extra permissions of xiaomi, in the past with miui there was an option in the developer settings that allowed you to disable miui optimization, see if there is something similar for hyperos too |
couldn't see it in hyperos |
With this guide it should work. https://dontkillmyapp.com/xiaomi also try to follow this tutorial on youtube, after the "enable system optimization" option reappears, disable it |
Thank you for all your efforts, |
very strange that it doesn't work, try reinstalling the app. However I am convinced that it remains a miui/hyperos problem. On my xiaomi devices with custom rom I have no problems. |
Good you have xiaomi devices , could you please test with stock rom? |
I'm very busy as soon as possible I'll do some tests with stock rom miui/hyperos |
Thank you |
@islam2hamy I have done some tests with Xiaomi devices. Before Xiaomi used only Snapdragon processors and used the "Power off alarm" service. Now Xiaomi also uses Mediatek, in its proprietary "Clock" app to turn on the device it no longer uses "Power off alarm" so it actually seems not to work anymore. In recent versions of MIUI "power off alarm" is deprecated. I have come to the conclusion that the "Power off alarm" function in this app only works on Xiaomi if you use Custom Roms. @BlackyHawky I was thinking of editing Readme: the “power off alarm” function does not work on Xiaomi and Samsung devices even if they have snapdragon processors |
@qw123wh I'll close this issue at the next commit. |
For this function to work, there must be a pre-installed system app called “com.qualcomm.qti.poweroffalarm” this app can be found under the name of “PowerOffAlarm”. This is a system app pre-installed on snapdragon devices. The curious thing is that on Samsung devices with snapdragon it is not pre-installed, even if you try to install it in the form of apk in our app the permission appears but it does not work. I do not have Samsung devices with Custom Rom so I am not sure. Instead, I have Xiaomi devices with custom rom, in old devices with old versions of MIUI if you manage to give some extra permissions (see previous screens) it still manages to work. In more recent Xiaomi devices, even if the system app “PowerOffAlarm” is actually pre-installed, there is no way to make it work in this app, nor in the lineage app, nor in other portings of proprietary clock apps that have this function. These same Xiaomi devices, if you install a custom rom, it works. I think Xiaomi in MIUI/HyperOS has neutered Snapdragon's “PowerOffAlarm” feature in favor of a universal solution in its clock app for its devices to turn on scheduled based on the set alarm. |
Let's say that the most beautiful and almost impossible thing is to create a code compatible with all devices and all processors that allows you to make the alarm sound when the phone is turned off without the need for a system app. |
- Clarify that the "Power off" feature unfortunately does not work on all devices;
Describe the bug
Couldn't get this work
To Reproduce
Expected behavior
i will see the next alarm at the power screen footer, as the built in clock app does
Screenshots
App version
2.6
Device (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: