Skip to content
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

Reboot options #1405

Open
3 tasks done
shuvashish76 opened this issue Jul 11, 2024 · 3 comments
Open
3 tasks done

Reboot options #1405

shuvashish76 opened this issue Jul 11, 2024 · 3 comments
Labels
Feature New feature or request Priority: 3

Comments

@shuvashish76
Copy link

shuvashish76 commented Jul 11, 2024

Please check before submitting an issue

  • I am using the latest version of App Manager
  • I have searched the issues and haven't found anything relevant
  • I have read the docs

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

@shuvashish76 shuvashish76 added the Feature New feature or request label Jul 11, 2024
@MuntashirAkon
Copy link
Owner

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
Copy link
Author

shuvashish76 commented Jul 11, 2024

Other ideas:
3. 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)
4. 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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request Priority: 3
Projects
None yet
Development

No branches or pull requests

2 participants