MuntashirAkon / AppManager

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

Run_Any_In_Background 70 and Run_In_Background 63 don't change to Allow #1314

Open ChrisBuge opened 1 month ago

ChrisBuge commented 1 month ago

Please check before submitting an issue

Describe the bug

Hello, first of all I would like to say that the app is spectacular and I only found this issue: When I change automatically, from the "Profiles" or "1-Click Ops" section, the App Ops 70 and 63 (Run_Any_In_Background and Run_In_Background), although they change to "Ignore" correctly, if I do it the other way around, they do not change to "Allow ", they change to "Default", causing them to not be activated and therefore do not appear as you can see in the last photo in any of the "Optimized" or "Unrestricted" sections, which would happen if I manually put "Allow".

To Reproduce

  1. I create a profile and add "App Ops 70 and 63" and "State" to Off.

  2. I apply

  3. State On (1st scenario)

  4. Change to "ignore", which is correct.

  5. And in the Settings change to "Restricted", which is also correct

  6. State Off (2nd scenario)

  7. It was not changed to "allow", it was changed to "default" and it was not activated

  8. And in the Settings neither "Unrestricted" nor "Optimized" is activated as it should if it had been changed to "allow"

Expected behavior

App Ops 70 and 63 toggle between "ignore" and "allow".

Screenshots

  1. 2. 3. 4.
  2. 6. 7. 8.

Logs

In the "Profiles" section there is a "Log Viewer" that only says that "State: on" and "State: off" were executed correctly. If another log is required, tell me where and I will pass it on.

Device info

Additional context

And as an idea for another occasion, if one could choose between "ignore", "allow", "default", and the other 2 options, it would be a good plus.