0

我正在开发一个 android 应用程序,在该应用程序中我正在为Audio.Media.EXTERNAL_CONTENT_URI.

我将 Fedora 17 与 Eclipse 和 API 级别 17 Android Jelly Bean 一起使用。

现在的问题是,当应用程序在模拟器上运行时,出于调试目的,我将一些 mp3 文件推送到/mnt/sdcard. 所以这里给出了下面提到的问题。

我知道这个问题与文件权限有关,但如何定位呢?我不明白。

[2013-04-11 23:14:06 - Unexpected error while launching logcat. Try reselecting the device.] device not found
com.android.ddmlib.AdbCommandRejectedException: device not found
    at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:752)
    at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373)
    at com.android.ddmlib.Device.executeShellCommand(Device.java:462)
    at com.android.ddmuilib.logcat.LogCatReceiver$1.run(LogCatReceiver.java:110)
    at java.lang.Thread.run(Thread.java:722)

[2013-04-11 23:18:46 - ddms] transfer error: Read-only file system
[2013-04-11 23:18:46] Failed to push selection: Read-only file system
[2013-04-11 23:25:43 - ddms] transfer error: Read-only file system
[2013-04-11 23:25:43] Failed to push selection: Read-only file system
[2013-04-11 23:26:26 - ddms] transfer error: Read-only file system
[2013-04-11 23:26:26] Failed to push selection: Read-only file system
4

1 回答 1

1

尝试做一个adb remount.

如果它不起作用,则ro.secure属性可能是问题所在,在这种情况下尝试:

adb shell
su
# In root user mode
mount -o rw,remount /mnt/sdcard
于 2013-04-11T11:58:06.950 回答