revanced-manager
                                
                                 revanced-manager copied to clipboard
                                
                                    revanced-manager copied to clipboard
                            
                            
                            
                        bug: mount script is not the same on revanced-cli and revanced-manager
Type
Other
Bug description

I was getting crazy trying to uninstall the app that I installed through Revanced Manager with the CLI and vice versa.
Turns out they aren't compatible, that is, the CLI writes to a certain path (/data/adb/service.d/mount_revanced_<package>.sh) while the app writes to another (/data/adb/service.d/<package.sh>), as you can see in the screenshot above.
I'm not sure if this is intended or not, so I'm reporting this. I always thought the CLI and the manager were interchangeable.
Relevant code (CLI): https://github.com/revanced/revanced-cli/blob/f68e7697ff18586b266926b831ba9f2827d3db39/src/main/kotlin/app/revanced/utils/adb/Adb.kt#L79 https://github.com/revanced/revanced-cli/blob/f68e7697ff18586b266926b831ba9f2827d3db39/src/main/kotlin/app/revanced/utils/adb/Constants.kt#L27
Relevant code (Manager): https://github.com/revanced/revanced-manager/blob/c5958f1257e779943b7389bec0125fe2d6ce8bc5/lib/services/root_api.dart#L99
Steps to reproduce
- Patch the YouTube app using Revanced Manager on Android using the root install method.
- Try to uninstall it with the CLI (using the --uninstallflag).
- (optional) Reinstall the YouTube app
- The app is still patched (after reboot at least)
Relevant log output
None
Screenshots or videos
No response
Solution
No response
Additional context
I had previously installed YouTube Revanced through the CLI but at a later time I changed to the Manager. This has had conflicts on restarts for a while now, but I couldn't understand why until I noticed I was getting mounts without patching the app.
Acknowledgements
- [X] I have searched the existing issues and this is a new and no duplicate or related to another open issue.
- [X] I have written a short but informative title.
- [X] I filled out all of the requested information in this issue properly.
The CLI mounts where Vanced originally mounted their patched APK files. This should be addressed in the ReVanced Manager.