Android source error reading file from sdcard
问题 I'm modifying the Android source (AOSP) to create a file /sdcard/myfile . The file is created properly and is visible when I do a cat /sdcard/myfile from adb shell . (The file is created from PackageManagerService which is part of the application framework layer) However, when I try to access the file through code using new FileReader(myfile) from the same package manager service code, I get the following exception: java.io.FileNotFoundException: /sdcard/myfile (Permission denied) The