Not sure how to or Where it is


Last Updated:

  1. draky

    draky Member This Topic's Starter

    Joined:
    Aug 23, 2010
    Messages:
    15
    Likes Received:
    0
    So I have very little of the android apps installed on my Ally thanks to Velocity. I wanted to move a couple big apps over so they weren't taking up as much space, Quickoffice and Scan2PDF.
    I'm not sure where to find the installed apps though first. I've looked under /data with Astro and it says "(Directory is empty)." I need to find the names of the files so I can move them.
    Second, I don't know the command off the top of my head to move the files. I'm sure I can look it up though, I'm simply being lazy.

    Any help is appreciated, thank you!
     

    Advertisement
  2. savoxis

    savoxis Well-Known Member Developer

    Joined:
    Aug 10, 2010
    Messages:
    812
    Likes Received:
    708
    Download a terminal emulator or get adb running, in both these commands will be identical
    Code (Text):
    1.  
    2. su
    3. ls /system/app
    4. ls /data/app
    5.  
    This will give you a list of everything in /data/app and /system/app the move command is mv

    Code (Text):
    1.  
    2. su
    3. mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
    4. mv /system/app/bloatware.apk /data/app/
    5.  
     
    draky likes this.
  3. draky

    draky Member This Topic's Starter

    Joined:
    Aug 23, 2010
    Messages:
    15
    Likes Received:
    0
    Ok, I'm trying this and it's not working well for me. I got the lists and when I use the move command I get a failed message. Example: failed on '/data/app/com.burrotec.scan2pdf202.apk' - Cross-device link

    What am I doing wrong?
     
  4. Vmanisme

    Vmanisme Well-Known Member

    Joined:
    Jun 19, 2010
    Messages:
    599
    Likes Received:
    149
    Are you on "su"?
     
  5. draky

    draky Member This Topic's Starter

    Joined:
    Aug 23, 2010
    Messages:
    15
    Likes Received:
    0
    Yes, I even had # at the prompt.
     
  6. savoxis

    savoxis Well-Known Member Developer

    Joined:
    Aug 10, 2010
    Messages:
    812
    Likes Received:
    708

    I have seen this error before, havent looked into it though. It would seem like maybe there is a symlink to this apk somewhere. Try copying it over with cp then rm the one in the system partition. Make sure you make a nandroid backup before you do incase something breaks.
     
  7. death2all110

    death2all110 VIP Member VIP Member

    Joined:
    Jun 25, 2010
    Messages:
    1,995
    Likes Received:
    1,208
    Just got this error earlier! reboot into recovery and do adb shell and try doing you command again, it should work this time!
     
  8. darkxsun

    darkxsun Well-Known Member

    Joined:
    Sep 2, 2010
    Messages:
    470
    Likes Received:
    119
    This is an age-old unix thing. You can NOT move a file across a filesystem using most implementations of mv. mv is not made to copy data from device to device, it simply changes a file's location within a partition. Since /data and /system are different partitions, it's failing.

    You should use:

    cat /data/app/FILENAME > /system/app/FILENAME
    rm /data/app/FILENAME

    The first copies, the second deletes the original. Actually, in my experience, after the file is copied, the original is deleted anyway (the system deletes the redundant apk).
     
    savoxis, draky and death2all110 like this.
  9. death2all110

    death2all110 VIP Member VIP Member

    Joined:
    Jun 25, 2010
    Messages:
    1,995
    Likes Received:
    1,208
    HA! i knew there was a logical reason i was forgetting. Thanks dark!
     
  10. darkxsun

    darkxsun Well-Known Member

    Joined:
    Sep 2, 2010
    Messages:
    470
    Likes Received:
    119
    You say it works in recovery? Which recovery do you use? Where does the recovery find its binaries, like "mv"? Are they built in to the recovery system?

    In any case, if it works, it must be a much smarter implementation of mv. Which is of course a good thing :)
     
  11. death2all110

    death2all110 VIP Member VIP Member

    Joined:
    Jun 25, 2010
    Messages:
    1,995
    Likes Received:
    1,208
    i just read on xda that mv works in recovery.
     
  12. draky

    draky Member This Topic's Starter

    Joined:
    Aug 23, 2010
    Messages:
    15
    Likes Received:
    0
    This worked perfectly! I was able to move the almost 9meg pig to the /system/app. Thank you very much Darkxsun!
     

Share This Page

Loading...