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 directory, suddenly find that the SDcard directory does not have permissions, its permission state is (
d-------i.e. 000). What we need to do at this time: 1. If you do not configure the ADB operating environment, the environment is configured under path
Android-sdk-windows\platform-tools Road Add to the end (Adb.exe below) 2. Open cmd command 3. Input
ADB shell (after successful entry into the root user status of ADB #) 4. You can use the LS command to see the directory under the current folder, you will find
SDcard directory under here 5. Modify the SDcard permissions, because SDcard is the state of only-read at this time, so modify the directory command with:
chmod 075 (not directly with 777, not successfully executed) Well, in DDMS you will find the SDcard directory read and Write permissions modified. Again
The import of the file 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/
Processing of file import in SDcard under Eclipse DDMS view in Android development