d4rken-org / sdmaid

SD Maid is an Android app that helps you manage files and apps.
https://play.google.com/store/apps/details?id=eu.thedarken.sdm
1.52k stars 751 forks source link

[Feature Request] Include Move/Upgrade/Remove system-apps for root users #1342

Closed alecuba16 closed 1 year ago

alecuba16 commented 6 years ago

Would be a nice feature to include, is the only thing that is missing to be a complete system app manager, maybe for pro/paid users, I would pay for it for sure.

Check-out systemcleanup that implements this management for root users.

mynewboat commented 6 years ago

Good

d4rken commented 6 years ago

Can you elaborate what "Move" and "Upgrade" would do?

alecuba16 commented 6 years ago

Options to move from data/app to system/app or priv-app:

Move User app As System app: mv /data/app/myapp/-> /system/app/myapp Move User app As System Priv app (System app with lots of privilegies): mv /data/app/myapp/-> /system/priv-app/myapp Upgrade System app: the same procedure as before, but the app is detected on system/app or system/priv-app comparing the complete package name and versions.

Options to move from system/app or priv-app to data/app (for debloat roms.)

Move System app As User app: mv /system/app/myapp/ or /system/priv-app/myapp/ -> /data/app/myapp

You can check this described options in app called "systemcleanup" on "App" tab , and also on system app mover on playstore.

PD: In some cases the app configuration may require a wipe in order to be detected in some roms (usually not needed), but this is known by the people that do this proces manually or via other app.

SuperSandro2000 commented 6 years ago

I think this is out of scope for SD Maid and fits more into a root tool box.

Y-T-G commented 5 years ago

Will this feature be added?

d4rken commented 5 years ago

It's still on the TODO list but no ETA yet.

Technically not too difficult but it requires lot's of details on edge cases (e.g. different ROMs).

If someone can help me gather information on how to execute this on each ROM (pathes, permissions, etc.) it would make it would move it up the TODO list ;).

SuperSandro2000 commented 5 years ago

There is only one problem: System apps at least on samsung roms are in a "codename" folder that is most of the times totally different from the package name. How do you want to handle this? And moving apps to system especially different versions than currently installed can cause a lot of problems under magisk (eg mapping issues so ressource strings are missmatched). Then you need to reflash your rom and clear cache or this package name is not usable anymore. How do you plan to handle rom updates that include a previously user app under system if the user moved the app under system? You would break that app cause you have two folders under system with the same package name. I would suggest top leave this feature out because it will only cause headaches. If an advanced user wants to move an app he is more than capable to do that with an root file explorer or the terminal.