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

Expand documentation regarding uninstallation of system apps? #851

Closed
3 tasks done
genpfault opened this issue Aug 22, 2022 · 2 comments
Closed
3 tasks done

Expand documentation regarding uninstallation of system apps? #851

genpfault opened this issue Aug 22, 2022 · 2 comments
Labels
Documentation Improvements or additions to documentation Help Wanted Extra attention is needed

Comments

@genpfault
Copy link

  • 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

Is your feature request related to a problem? Please describe.
I'm trying to wrap my head around these two statements and how they relate to what App Manager is doing when it uninstalls system apps:

... For the uninstalled system apps, it displays a dialog prompt which can be used to reinstall the app. ...

This seems to indicate that App Manager might be keeping the APK for system apps around somewhere when it deletes them? Otherwise how would it be able to reinstall the app?

...these methods cannot remove the system apps completely as they are located in the system partition which is a read-only partition. If you have root, you can remount this partition to manually purge these apps but this will break Over the Air (OTA) updates since data in the system partition has been modified. ...

...and this seems to indicate that App Manager is re-mounting the system partition as read/write to uninstall system apps? Which as the text points out would break OTA updates, which doesn't sound good and would drive me away from trying to use App Manager to remove system apps.

However, a comment on the issue tracker indicates that App manager is not remounting the system partition as read/write, so it's not clear to me how it's uninstalling system apps.

Describe the solution you'd like
Please add a section to the documentation that explains how App Manager is uninstalling/reinstalling system apps without remounting the system partition as read/write.

@genpfault genpfault added the Feature New feature or request label Aug 22, 2022
@MuntashirAkon MuntashirAkon added Documentation Improvements or additions to documentation Help Wanted Extra attention is needed and removed Feature New feature or request labels Aug 22, 2022
@MuntashirAkon
Copy link
Owner

this seems to indicate that App Manager is re-mounting the system partition as read/write to uninstall system apps?

Here's the complete sentence that you've quoted there:

AM can uninstall system apps with root or ADB (the latter with certain limitations, of course), but these methods cannot remove the system apps completely as they are located in the system partition which is a read-only partition.

I think it's quite clear from the above line that App Manager cannot not delete the system APK files, it can only uninstall them. In newer Android operating systems, mounting system partition as R/W is not even possible.

it's not clear to me how it's uninstalling system apps.

It uninstalls the system apps using the Android-provided uninstaller just as it uninstalls any other apps. But uninstalling a system app does not delete the APK file itself as it's still available in the system or the vendor partition. This is why App Manager can offer the reinstallation of such an app (or you can use command option such as pm install-existing package-name). But a potential side-effect is that the apps may be installed again after an OTA update (usually when it is a big update). (To mitigate this, however, it is possible to delete the APK systemless-ly using Magisk as proposed in #150.)

@genpfault
Copy link
Author

That clears it up, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation Help Wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants