Search code examples
androidsd-card

sdcard permission denied android


I am trying to do method profiling for my application on Android 2.1 htc eris. It complains:

06-15 15:48:04.602: E/dalvikvm(826): Unable to open trace file '/sdcard/com.mayapp.trace': Permission denied

I have the following entry for user permission on my AndroidManifest.xml:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

When I do adb push, I get the following error:

adb push AndroidManifest.xml a.txt
failed to copy 'AndroidManifest.xml' to 'a.txt': Read-only file system

Am I missing something here?


Solution

  • It was a combination of badly placed sd card and read/write access to the sdcard. Used adb push/pull to verify the sd card and also used adb remount to change the access. that solved the issue.