Closed alecuba16 closed 1 year ago
Good
Can you elaborate what "Move" and "Upgrade" would do?
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.
I think this is out of scope for SD Maid and fits more into a root tool box.
Will this feature be added?
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 ;).
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.
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.