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 :
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 .
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.
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.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With