-
Couldn't load subscription status.
- Fork 582
Description
Is your request related to a specific issue? | 你的请求是否与某个问题相关?
On AOSP-like ROMs such as LineageOS, the system will display a "factory reset" dialog when rebooting to recovery, even if it is actually NOT going to perform a factory reset.
APatch has already done something to prevent the user from seeing this when using the "reboot to recovery" feature from the APatch app - by mimicking a power button press to turn off the screen (
| if (reason == "recovery") { |
Describe the solution you'd like | 描述你想要的解决方案
There seems to be nothing APatch could do to properly remove the incorrect dialog. Rather than trying to hide the dialog (and failing to outrule the possibility of users seeing it), maybe it would be better to just remind the user that the "factory reset" is not real by using a confirmation dialog or a toast notification.
Describe the alternatives you've considered | 描述您考虑过的备选方案
Always use the hard reboot command (/system/bin/reboot recovery) to reboot into recovery. But since it is a hard reboot, I am unsure if this method could cause potential data loss.
Other information | 其他信息
Device: OnePlus 9R (LE2100, lemonades)
OS: LineageOS 22.2-20250915-microG-lemonades
