The problem that the directory tree is not displayed in File Explorer of Android Device Monitor (AndroidStudio2.2, AVD 7.0)

Solution

Situation 1: When starting through monitor.bat or the icon in Android Studio

Step 1: Download ddmlib.jar

Download location of ddmlib.jar
File size: 282KB.

Or, Baidu Cloud: http://pan.baidu.com/s/1sl4KaOP extraction password: sygc

Step 2: Search for ddmlib.jar in the tools directory of the Android SDK

The current directory is the tools directory of the Android SDK.

$ find . -iname ddmlib
./lib/ddmlib.jar (don’t replace it)
./lib/monitor-x86_64/configuration/org.eclipse.osgi/bundles/2/1/.cp/libs/ddmlib.jar

Multiple ones may be found. The one we want to replace is tools/lib/monitor-x86_64/configuration/org.eclipse.osgi/bundles/2/1/.cp/libs/ddmlib.jar

It is possible that your directory is different from this one, please refer to the actual directory location.

Step 3: Replace the ddmlib.jar just found with the ddmlib.jar just downloaded

It should be noted that when replacing, turn off Android Device Monitor first.

Step 4: Open Android Device Monitor again, and you can see the directory tree
. Original link:

File Explorer in DDMS cannot view data/data files. Solution.
Problem description: I recently learned SQLiteOpenHelper in Android SQLite. After using SQLiteOpenHelper to create databases and tables, I wanted to check the database and table files I created. By default, the database is located in the root directory. Under the data subfolder under the data folder. Select FileExplorer, open the data folder, and find that it cannot be viewed.
Solution: If you want to view the data file, you must first obtain root permissions on your phone. After successful rooting, modify the data permissions to view the database in data. How to modify data permissions:
1. Open cmd
2. Enter 'adb shell' and press Enter (adc.exe is located in the platform-tools folder under the SDK, and you need to set the environment variable path)
3. Enter su and press Enter
4. Enter chmod 777 /data, press Enter (this step sets the permissions of the data folder to 777 (drwxrwxrwx), that is, the administrators, power users, and users groups all have read, write, and run permissions for the folder) 5. Enter chmod 777
/ data/data and press Enter (this step sets the permissions of the /data/data folder to 777, and so on)

For more information about Android permission file identification, please refer to: http://blog.csdn.net/u012719153/article/details/44776707

Guess you like

Origin blog.csdn.net/lb687/article/details/62039811