Skip to content

Explicitly remind user about the incorrect "factory reset" dialog when rebooting to recovery. #1208

@yezhiyi9670

Description

@yezhiyi9670

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.

Screenshot

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") {
). But in my case, since the screen displayed the normal locking animation, I thought I have somehow accidentally turned it off, so I pressed the power button again and saw this. Literally frightening.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions