I'm trying to mv .apk file from my /sdcard to /system and getting following error:
failed on 'XXX.apk' - Cross-device link
I did remount my /system as rw
root@ghost:/ # mount -o rw,remount /dev/block/platform/msm_sdcc.1/by-name/system /system
root@ghost:/ # mount | grep system
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 rw,seclabel,relatime,data=ordered 0 0
root@ghost:/ #
I also tried following, but without luck(
mbp:~ alexus$ adb root
adbd cannot run as root in production builds
mbp:~ alexus$ adb remount
remount failed: Permission denied
mbp:~ alexus$
Why can't I still move apk file to /system? What am I missing?
rmi.e. delete the original – Ujjwal Singh Nov 25 '14 at 21:35mv. When the originalmvencounters a move across device borders, it just does exactlycpfollowed byrm, tho I think it sets the file's time to the old values. – ott-- May 14 '15 at 21:03catto copy binary, cat would only work for text file. – alexus Jul 14 '16 at 16:27fastboot flash(at least I never managed to get to that), so this is how I installed TWRP to it:cat /sdcard/twrp.img > /dev/block/mmcblk0p1). So are you saying that's a "text file"? :) – Izzy Jul 15 '16 at 09:59