【发布时间】:2013-04-03 11:40:42
【问题描述】:
我正在开发一个 android 应用程序,在其中我正在为 Audio.Media.EXTERNAL_CONTENT_URI 开发一个内容观察器。
我正在使用带有 Eclipse 和 API 级别 17 Android Jelly Bean 的 Fedora 17。
现在的问题是,当应用程序在模拟器上运行时,出于调试目的,我将一些 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
【问题讨论】:
标签: android linux file-permissions fedora android-sdcard