1. Check out our companion app, Forums for Android! Download from Google Play

Root Not sure how to or Where it is

Discussion in 'Android Devices' started by draky, Oct 1, 2010.

  1. draky

    draky Member
    Thread Starter
    15

    Aug 23, 2010
    15
    0
    15
    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
    163

    Aug 10, 2010
    812
    708
    163
    ODOT Field Services Tech
    Pacific NW
    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
    Thread Starter
    15

    Aug 23, 2010
    15
    0
    15
    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
    93

    Jun 19, 2010
    599
    149
    93
    Virginia
    Are you on "su"?
     
  5. draky

    draky Member
    Thread Starter
    15

    Aug 23, 2010
    15
    0
    15
    Yes, I even had # at the prompt.
     
  6. savoxis

    savoxis Well-Known Member
    163

    Aug 10, 2010
    812
    708
    163
    ODOT Field Services Tech
    Pacific NW

    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 Well-Known Member
    313

    Jun 25, 2010
    1,996
    1,210
    313
    Male
    Systems Administrator Windows/Unix
    Illinois, US
    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 Guest

    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 Well-Known Member
    313

    Jun 25, 2010
    1,996
    1,210
    313
    Male
    Systems Administrator Windows/Unix
    Illinois, US
    HA! i knew there was a logical reason i was forgetting. Thanks dark!
     
  10. darkxsun

    darkxsun Guest

    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 Well-Known Member
    313

    Jun 25, 2010
    1,996
    1,210
    313
    Male
    Systems Administrator Windows/Unix
    Illinois, US
    i just read on xda that mv works in recovery.
     
  12. draky

    draky Member
    Thread Starter
    15

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

Share This Page

Loading...