Hi Guys,
I'm trying to copy data from a game directory
/data/data/com.and.Games505.TerrariaPaid/Files
However when I browse to /data/ it's empty.
I have root enabled and can view /sys/, /system/ etc. Don't understand why this folder is not displaying content.
Any assistance greatly appreciated. Thanks!
Dx
Can't view /data folder?
Moderator: Martin
Re: Can't view /data folder?
from my e-mail conversation with Martin
i want to use action "copy files" in root/data/data (to backup some settings folders)
but the root/data/data folder appear to be empty when browse in "source files"
(but is not if i browse with root explorer)
it's a bug? or "feature"?
my phone is rooted, 2.3.4 OS
------------------------------------------------------
Martin <info@gleeo.com> 10/7/12
to me
Hello colabi
Action "Copy Files" does not support root.
You can use "Execute Root Command" with a regular cp command but this command is usually only available by installing busybox.
Regards,
Martin
------------------------------------------------------
colabi 10/7/12
to Martin
is curious because i can access root/sys, root/system... with "copy files"
...
------------------------------------------------------
Martin <info@gleeo.com> 10/8/12
to me
Hallo Corvin
Android creates a system user for each app. The files and directories in /data/data/XYZ are owned by the user of the corresponding app and by default other apps can not read or list the files within such a directory of another app. An app can decide to make a few files readable by other apps but this is not the default behavior.
Copying such files therefore requires that the copy is executed by root but this is not yet possible with the built in copy action.
Using the busybox cp should work fine.
Regards,
Martin
------------------------------------------------------
colabi 10/7/12
to Martin
ok, thanks
i'm glad to hear that "is not YET possible"
i wait for future versions
Re: Can't view /data folder?
Thanks colabi for the response.
I had seen similar posts, but the email explains why. Thanks.
Have BusyBox so will try the cp command.
Cheers,
Dx
I had seen similar posts, but the email explains why. Thanks.
Have BusyBox so will try the cp command.
Cheers,
Dx
Re: Can't view /data folder?
Not having much luck.
Using Execute Command
Command: cp -p /data/data/com.and.games505.TerrariaPaid/files/*.world /storage/extSdCard/temp/Terraria Backup/
Working Directory: /system/xbin/
Any ideas?
Using Execute Command
Command: cp -p /data/data/com.and.games505.TerrariaPaid/files/*.world /storage/extSdCard/temp/Terraria Backup/
Working Directory: /system/xbin/
Any ideas?
Re: Can't view /data folder?
Hi,
The target folder might cause trouble since it contains a space character. Please try to copy to a target folder like TerrariaBackup.
Please also check the log after executing the action, maybe the cp command shows an error (on the flow list: menu->Manage->Log or within the action using menu->Log).
Regards,
Martin
The target folder might cause trouble since it contains a space character. Please try to copy to a target folder like TerrariaBackup.
Please also check the log after executing the action, maybe the cp command shows an error (on the flow list: menu->Manage->Log or within the action using menu->Log).
Regards,
Martin
Re: Can't view /data folder?
Thanks Martin.
I have renamed the destination directory as suggested.
The log indicates the copy command is having troubles with the source file.
When I do '*.world' is says 'No such file of directory'.
When I try the actual name 'World 3-146098855.world' the space in the name also causes a 'No such file of directory'
When I try "World 3-146098855.world" (in quotes) its says Permission denied.
I have renamed the destination directory as suggested.
The log indicates the copy command is having troubles with the source file.
When I do '*.world' is says 'No such file of directory'.
When I try the actual name 'World 3-146098855.world' the space in the name also causes a 'No such file of directory'
When I try "World 3-146098855.world" (in quotes) its says Permission denied.
Re: Can't view /data folder?
Does it work when you put the entire source path in quotes?
What does an ls /data/data/com.and.games505.TerrariaPaid/files/ print in the log?
What does an ls /data/data/com.and.games505.TerrariaPaid/files/ print in the log?
Re: Can't view /data folder?
I would recommend in this case to try program Long Path Tool