[Android sdcard]eclipse ADT under Ddms view SDcard (some storage directories) cannot import files

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.