Can't view /data folder?

Post your questions and help other users.

Moderator: Martin

Post Reply
Draxxx
Posts: 12
Joined: 18 May 2013 07:53

Can't view /data folder?

Post by Draxxx » 07 Jul 2015 22:00

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

colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Re: Can't view /data folder?

Post by colabi » 08 Jul 2015 00:27

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 :)

Draxxx
Posts: 12
Joined: 18 May 2013 07:53

Re: Can't view /data folder?

Post by Draxxx » 08 Jul 2015 01:31

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

Draxxx
Posts: 12
Joined: 18 May 2013 07:53

Re: Can't view /data folder?

Post by Draxxx » 08 Jul 2015 02:22

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?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Can't view /data folder?

Post by Martin » 08 Jul 2015 19:01

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

Draxxx
Posts: 12
Joined: 18 May 2013 07:53

Re: Can't view /data folder?

Post by Draxxx » 08 Jul 2015 23:31

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.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Can't view /data folder?

Post by Martin » 10 Jul 2015 08:40

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?

joshua42
Posts: 1
Joined: 23 Oct 2015 04:32

Re: Can't view /data folder?

Post by joshua42 » 23 Oct 2015 04:34

I would recommend in this case to try program Long Path Tool

Post Reply