Unable to locate file on sdcard even though if it exists while customizing Android system's Setting app -


i working on customization of android system's setting app (i.e. android's original source code), under need image gallery android'd setting's app. situation got stuck when i'm trying same app works fine when comes android setting's app couldn't locate path of image in sdcard , finds nullpointerexception.

you cannot access external storage program running system uid.

you can use adb shell check mount point , file mode @ /mnt

shell@maguro:/ $ ls -l  /sdcard lrwxrwxrwx root     root              2013-10-05 06:09 sdcard -> /storage/emulated/legacy  shell@maguro:/ $ ls -l  /storage/emulated/legacy lrwxrwxrwx root     root              2013-10-05 06:09 legacy -> /mnt/shell/emulated/0  shell@maguro:/mnt $ ls -l drwxr-xr-x root     system            2013-10-05 06:09 asec drwxr-xr-x root     system            2013-10-05 06:09 obb lrwxrwxrwx root     root              2013-10-05 06:09 sdcard -> /storage/emulated/legacy drwx------ root     root              2013-10-05 06:09 secure drwx------ shell    shell             2013-10-05 06:09 shell 

and see external storage not accessible system user.

although fuse since ics, legacy old android system, when user able umount external sdcard partition. @ time, if process accessing external storage, vold kill process.

forbidding system process accessing external storage consideration - guess.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -