The first thing you need to explain is that the SDcard permission is not meant to be read in the Android application program to set SDcard permissions.
To take the problem. Instead, it refers to the permissions problem for that SDcard directory under the directory that DDMS sees.
Sometimes when you want to import a file under the SDcard (or storage directory) directory, you suddenly find that the SDcard directory does not have permissions, and that its permission status is (d-------that is 000). What we need to do at this time:
1. If you have not configured the ADB runtime environment, add the Android-sdk-windows\platform-tools to the last (Adb.exe below) under the path of the environment configuration
2. Open cmd command
3. Enter the ADB shell (the root user status of the ADB after successful entry #)
4. You can use the LS command to see the directory under the current folder, you will find the SDcard directory below
5. Modify the SDcard permissions because SDcard is Only-read state at this time, so modify the directory command with: chmod 075 (do not use 777 directly, cannot be executed successfully)
Well, in DDMS you will find that the read and write permissions of the SDcard directory have been modified. The import of the file in it can be successful.
Common errors:
1.Failed to push items null
Workaround: This time requires a reboot of eclipse or
ADB root
ADB remount
It's OK when you're done.
2.Could not find sdk_root\tools\adb.exe!
The possible reason is that the downloaded SDK version is too new. There are basically two kinds of installation strategies on the Internet: one is to download the latest version of the Android SDK;
One is to download the old SDK (which should be before 1.6), then join Eclipse and set up eclipse to update.
3.DDMS sdcard Import files Failed to push selection:read-only file system
A command in the CMD window is available:
adb shell mount-o remount RW/
[Android sdcard]eclipse ADT under Ddms view SDcard (some storage directories) cannot import files