MuntashirAkon / AppManager

A full-featured package manager and viewer for Android
https://muntashirakon.github.io/AppManager/
Other
4.71k stars 265 forks source link

Reboot options #1405

Open shuvashish76 opened 1 month ago

shuvashish76 commented 1 month ago

Please check before submitting an issue

Describe a description of the new feature

As a package manager AM should allow users to reboot the phone similar to Magisk directly from the app itself.

ResizedImage_2024-07-11_06-51-27_2617

Few cases where AM itself requires device reboot.

  1. Apps that use storage access framework (SAF), SSAID or Android KeyStore works properly only after an immediate restart. (source)
  2. Root users don’t need to enable ADB over TCP. If you still want to use ADB over TCP, you must revoke superuser permission for App Manager and restart your device. (source)

Manually using hardware button for reboot isn't ideal, though you don't need hardware button as some ROMs (modern android phones) provide this option on android's pull-down-menu. But I do think advanced package manager like AM should provide this basic feature.

Describe the solution you'd like

  1. Add the Reboot options to options menu of main page (Root/ADB-only feature)
  2. Where AM itself requires reboot - show a dialog of 30sec timer with option to "reboot now" & "cancel"

Describe alternatives you've considered

No response

Additional context

No response

MuntashirAkon commented 1 month ago

2. Root users don’t need to enable ADB over TCP. If you still want to use ADB over TCP, you must revoke superuser permission for App Manager and restart your device. (source)

This notice is not applicable for v4.x.x

1. Apps that use storage access framework (SAF), SSAID or Android KeyStore works properly only after an immediate restart. (source)

We only need to kill the system_server in those cases. This situation will be handled in an upcoming release.

shuvashish76 commented 1 month ago

Other ideas:

  1. Since No-root users already use Accessibility service for certain operations e.g. clearing cache, UI Tracker etc, use it to trigger system "Power off dialog" when the user click 3-dot menu of main page of AM. (similar to how FNG does with Accessibility service)
  2. Use as Assist app (long press the home button of system navigation bar) : Reboot options or trigger Power off dialog depending on the mode of operation used by AM without opening AM application.
    Details

ResizedImage_2024-07-11_08-44-51_2061

MuntashirAkon commented 1 month ago

Rebooting only necessary in root mode. So, I guess such endeavours are unnecessary.