Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The data folder in Android DDMS is empty

I want to see mt database file . That is why , I go to tools ->Android -> Android Device Monitor in Android studio . Then I have got the following picture :

enter image description here

But the data folder is empty . Why is the data folder empty ? How can I access my data base file ? Any advice is of great help .

like image 307
osimer pothe Avatar asked Jan 04 '16 05:01

osimer pothe


People also ask

Where is the data folder on Android?

Please go to Android system settings, find storage section, click it. From the storage page, find "Files" item, and click it. If there are multiple file managers to open it, please make sure to choose "Open with Files" to open it, which is the system file manager app.

How do I access root data on Android?

Launch “Solid Explorer,” then tap the “hamburger icon” (Menu) in the top-left section. Select “Root” to activate root file access. Navigate to “System -> bin, xbin, or sbin,” depending on what you need. You can also browse other folders in root.


1 Answers

It's not empty actually. It's the DDMS you are using that do not has proper permissions.

If you are using something like DDMS to access the /data folder of a device, you are actually accessing the folder with the Linux kernel user named shell who has a UID of 2000 and a GID of 2000.

However the /data folder of most Android devices is owned by the kernel user named system and the permissions of that folder is always described as drwxrwx--x which means all other users can't read/write the /data folder.

You can gain the access to that folder by switching to another user who has the permissions(system/root). Try using a emulator or rooting a device(not recommended).

like image 90
Michael Zhou Avatar answered Sep 28 '22 06:09

Michael Zhou