I have a Samsung Galaxy S7 which I have rooted. I am attempting to move app updates to /system/app
to save space on my /data/
partition. I follow the standard process (not enough points to link yet):
adb shell # start shell
$ su # elevate
$ mv /data/app/com.microsoft.skydrive-1 /system/app # move files to /system
$ chown -R root.root /system/app/com.microsoft.skydrive-1 # change owner
$ chmod 755 /system/app/com.microsoft.skydrive-1 # set permissions to match other system apps
$ chmod 644 /system/app/com.microsoft.skydrive-1/lib/arm/libpspdfkit.so # set lib permissions
$ mv /system/app/com.microsoft.skydrive-1/lib/arm/libpspdfkit.so /system/lib # move to system lib
$ chmod 755 /system/app/com.microsoft.skydrive-1/oat # set permissions to match other system apps
$ chmod 755 /system/app/com.microsoft.skydrive-1/oat/arm # set permissions to match other system apps
$ chmod 644 /system/app/com.microsoft.skydrive-1/oat/arm/base.odex # set permissions to match other system apps
$ chmod 644 /system/app/com.microsoft.skydrive-1/base.apk # set permissions to match other system apps
$ exit
$ exit
adb reboot
When the phone comes back on, the app is not found in the app list. Titanium Backup lists the app as uninstalled. If I reinstall the app from the Play Store it is added to /data/app
.
I am using 6.0.1.
/system/app
and removes the/data/app
copy. But then... No app.u:object_r:system_file:s0 path_of_your_app.apk
in order to deal with the SELinux context. If I do als -Z
on my apk and odex file they haveu:object_r:system_file:s0
listed already - but still no app.