Convert to system app using Link2SD doesn't work on CM11 I am using Galaxy Y (S5360) with CyanogenMod 11 build date Feb 2015. Previously on stock ROM, I was using Link2SD to move apps to system/app. Trying to do the same now is giving the following error.


  sh: cannot create /system/priv-app/name.apk .t:read only filesystem.


Why is it trying to move to /priv-app instead of /app? What are the possible solutions.


Change permissions?
Use some other tool or do it manually? (Looking for simplicity).


Things I've tried so far:


ES File Explorer: change permissions, gives "Operation Failed". "Mount as rw" option does not show up.
Terminal: mount -o remount,rw -t yaffs2 /dev/block/mtdblock8 /system &amp; then cp /data/app/fooBarApp-1.apk /system/app/fooBarApp.apk gives error "Can't create foobar.apk. read only".


Any help is appreciated. Thank You.
Just change the permission to be set on /system/app &amp; /system/priv-app by the gapps updater. Following are steps for same:

Open gapps archive

Go into Meta-inf\com\google\android. Open updater-script with notepad.

Change the permission from 0*** to 0777 for /system/app &amp; /system/priv-app
e.g. the line will be like set_perm_recursive(0, 0, 0755, 0644, &quot;/system/app&quot;);
So change both 0755 &amp; 0644 to 0777.

Save and update archive. Install from cwm-recovery.