• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Not sure how to or Where it is

draky

Newbie
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!
 
Download a terminal emulator or get adb running, in both these commands will be identical
Code:
su
ls /system/app
ls /data/app

This will give you a list of everything in /data/app and /system/app the move command is mv

Code:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
mv /system/app/bloatware.apk /data/app/
 
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?
 
Yes, I even had # at the prompt.


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.
 
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?
Just got this error earlier! reboot into recovery and do adb shell and try doing you command again, it should work this time!
 
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?

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).
 
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).
HA! i knew there was a logical reason i was forgetting. Thanks dark!
 
HA! i knew there was a logical reason i was forgetting. Thanks dark!

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 :)
 
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).
This worked perfectly! I was able to move the almost 9meg pig to the /system/app. Thank you very much Darkxsun!
 
Back
Top Bottom