[Bug] Disable in debloat doesn't work(it even enables disabled apps)

#488 · closed · 7 comments

View on GitHub ↗

warking

### Confirmation - [x] I have read the [Code of Conduct](https://github.com/Hamza417/Inure/blob/master/CODE_OF_CONDUCT.md) - [x] I have searched the existing issues ### Bug Description I am using inure on oppo color os 16. I found that `Disable` doesn't disable the app, it even re-enable disabled apps. Shizuku is configured ### Steps to Reproduce In Debloat, select a system app and debloat -> disable ### Expected Behavior Disable the select app ### Screenshots https://github.com/user-attachments/assets/606d34e1-68ef-47b7-8043-212edc1b2368 ### Device Information Device: OPPO Pad Mini, OS: Color OS 16 ### Privilege Method - [ ] Root - [x] Shizuku - [ ] Normal ### Additional Context _No response_ ### Sufficiency Confirmation - [x] I have provided all the information requested above and deemed sufficient for the developer to address the issue

Comments

github-actions[bot]

👋 Hey there, thanks for opening this issue! I'm currently on a hiatus due to exams and won't be able to actively work on things for a little while. I've seen your issue and I'll make sure to pick it up once my exams are done or I have time to spare and the issue needs urgent attention. In the meantime, feel free to add any additional details or context that might help me understand the problem or request better. I appreciate your patience! _This is an automated response message._

Hamza417

Thanks for reporting, I just checked, and the app simply flips the state leading to enabled apps disabled and disabled apps to be enabled in the process. I have separated the process to disable only when **disable** is selected and **enable** will only run on restore events. You can get the test apk from here: https://github.com/Hamza417/Inure/actions/runs/26674405774 As for some apps not disabling, it has been reported in the past that OPPO, VIVO etc prevents some apps from being uninstalled or disabled through ADB, so maybe that could be the error here.

warking

Cool. I've tried the new build. Now `Disable` is assertive despite that it might be unable to successfully disable some app/service such as the one(ai service engine) I tested on in color os. Is it possible to also try invoking the disabling through system call(like the way power optimization setting uses in my previous screen recording) ? And also, for disabling, it always reports success(✓) for each app in the execution result, even it failed to disable that app. Can we fix the status in the result?

Hamza417

> Is it possible to also try invoking the disabling through system call(like the way power optimization setting uses in my previous screen recording) ? Can you elaborate, you mean a quick popup? > And also, for disabling, it always reports success(✓) for each app in the execution result, even it failed to disable that app. Can we fix the status in the result? yes, the app assumes the app is disabled on successful function run otherwise the call should throw an error. I can manually verify each app state after the successful execution to verify if any has failed. I'll add the checks for it.

warking

oh, I see. 3rd-party apps can not control these power optimization settings directly(through api), right? The most decent way is to bring the user to that setting page and let users make the changes there. That would be handy, but that's definitely a low priority request. Thank you for your quick response. I am looking forward to the correct `Disable` execution results. Kudos

Hamza417

I have added verification to make sure correct state is posted as the results. APK link: https://github.com/Hamza417/Inure/actions/runs/26716511888

Hamza417

@warking is it fixed now?