How do you copy something from the SDcard to the Phone Memory?

Discussion in 'Android Hacks and Help' started by Jaylor, Dec 16, 2009.

  1. Jaylor
    Offline

    Jaylor New Member

    Joined:
    Dec 6, 2009
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    0
    I need to copy an app stock app that I deleted (Yes, I know I shouldn't have.. now!) because I need to exchange my phone.

    I have root access and was thinking that

    mv /sdcard/<file> /system/app/<file> would work but I get

    a failed message that says - Cross device link.
  2. Quickster357
    Offline

    Quickster357 New Member

    Joined:
    Nov 6, 2009
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Frigid North of Central US
    You have to mount the home first under super user.
    In a terminal:

    su
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
    Then type your command
    mv /sdcard/file /system/app/file

    In adb:

    adb shell
    su
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
    mv /sdcard/file /system/app/file
    sync

    And you're done! (These should work however I'm a unix newb)
  3. Jaylor
    Offline

    Jaylor New Member

    Joined:
    Dec 6, 2009
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    0
    I've tried that (And just did it again to make sure)

    still gives me the cross-device link error.

    I'm guessing I actually have to mount the SD card but I'm not sure how.

    I've just typed 'mount' to see what is there and I see the sd card but have no clue how to mount it .. yet anyway

    I'm playing with it now but I figured I'd check to see if anyone else has already done it.

    EDIT

    And I haven't installed ADB yet.
    Last edited: Dec 16, 2009
  4. vwpanda
    Offline

    vwpanda New Member

    Joined:
    Dec 13, 2009
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    0
    just use cp instead of mv and it should work fine
  5. Jaylor
    Offline

    Jaylor New Member

    Joined:
    Dec 6, 2009
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    0
    I tried that one also, :)

    There is no cp command, I just get a cp: not found

    I also checked in the /system/bin folder for a cp command and its not there at all.
  6. vwpanda
    Offline

    vwpanda New Member

    Joined:
    Dec 13, 2009
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    0
    install busybox or use Better Terminal Emulator and cp will work
    you should have cat though. so:
    cat /sdcard/file.apk > /system/app/file.apk
  7. vzwmandroid
    Offline

    vzwmandroid New Member

    Joined:
    Dec 2, 2009
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Homestead, FL 33030
    ???????? ??? ?????? ?????? ?.
  8. vwpanda
    Offline

    vwpanda New Member

    Joined:
    Dec 13, 2009
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    0
    good job. thats a great point.
  9. Jaylor
    Offline

    Jaylor New Member

    Joined:
    Dec 6, 2009
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    0
    Sweet! Better Terminal did the trick!

    Thanks vwpanda!!

    To bad best buy is now closed and I can't exchange the phone tonight.. ahh well.

    I'm just happy my hair is really short or I would have bee ripping it out trying to figure out how to fix this.

    Oh, and the best part cping the app back over survived a factory reset so they won't be able to figure out I rooted my phone when I return it.
    Last edited: Dec 17, 2009
  10. th1rd3y3
    Offline

    th1rd3y3 New Member

    Joined:
    Nov 20, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    ^^This worked for me through adb. Just stumbled across this thread while trying to figure out how to do it. Thanks!
  11. boristhebladexx
    Offline

    boristhebladexx New Member

    Joined:
    Nov 26, 2009
    Messages:
    116
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Connecticut
    Where do you download adb?
  12. th1rd3y3
    Offline

    th1rd3y3 New Member

    Joined:
    Nov 20, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Android dev kit. It's in the tools directory.
  13. Jaylor
    Offline

    Jaylor New Member

    Joined:
    Dec 6, 2009
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    0
    CAT didn't work for me without ADB, it just displayed a buncha code really fast and dropped me back to a prompt.
Search tags for this page
adb mv cross-device link
,

adb shell mv fail cross device link

,
android busybox mv cross-device link
,

android cross-device link

,
android mv failed on cross-device link
,
cross device link copy fail
,
cross-device link
,
cross-device link failed android
,

cross-device link mv

,

failed cross-device link

,

failed on /mnt/sdcard/busybox - cross-device link

,
failed on cross device link
,
failed on cross device link android
,
mv / sdcard
,
mv cross-device