shevery icon indicating copy to clipboard operation
shevery copied to clipboard

Feature request: add an authorized app manually by package name

Open Debugg3rDetected opened this issue 1 month ago • 1 comments

Requirements

  • [x] I have searched existing issues and this is not a duplicate.
  • [x] This is a core Shizuku request (not for a 3rd-party app).
  • [x] I have a specific use case that cannot be solved with current features.

Problem

This request comes from a problem I ran into and reported in #349 (the permission dialog for Termux never shows, so Termux can't be authorized through rish). While testing, I realized there is no way to work around a failing dialog: the authorized apps list only contains apps that managed to get through the permission request, and pm grant doesn't help because Termux doesn't declare the Shizuku permission in its manifest (it fails with "Package com.termux has not requested permission moe.shizuku.manager.permission.API_V23").

Proposed Solution

In the authorized apps screen, add an option to add an app manually, for example an "Add app" button where I can type or paste a package name (e.g. com.termux) and choose Allow or Deny.

I'm not sure how authorization is stored internally in Shevery. If it is kept as per-uid flags on the server side, this might be able to reuse the same code that runs after the user accepts the dialog: resolve the package name to a uid and set the allowed flag. Please tell me if that's not realistic.

Additional Context

  • It gives users a fallback when RequestPermissionActivity doesn't show for any reason, like in my case.
  • It helps with apps that connect through rish and don't show a dialog or can't declare the permission.
  • It also makes it easier to pre-authorize an app before first use, or to fix a wrong entry without reinstalling the app.

To be clear, this wouldn't replace fixing the dialog issue; it would just be a useful fallback. Happy to test it if you decide to add it.

Debugg3rDetected avatar Nov 02 '26 01:11 Debugg3rDetected

🤖 AI Triage

This is a well-reasoned feature request proposing a manual app authorization fallback by package name when the permission dialog fails to appear.

Note: this is an automated AI bot (Gemini); its verdict isn't 100% accurate and can be wrong. The bot doesn't read or reply to further comments in this thread — if it got this wrong, ping a human maintainer.

github-actions[bot] avatar Nov 02 '26 01:11 github-actions[bot]