Sending SD commands from Android app

故事扮演 提交于 2019-12-10 19:19:34

问题


Is it possible to send SD (Secure Digital) commands from Android app to SD card ? Commands are read SD card, write to SD card etc (CMD18, CMD24).

The constraint is the phone should NOT be a rooted phone. With rooted phone we are able to send SD commands but not with unrooted phone. On attempting we get the error "permission denied".

Any help is greatly appreciated.

Thanks


回答1:


It is not possible. The SD card hardware is abstracted away and mounted as a directory in the filesystem. Why would you want to send raw commands to the SD card anyway? Why not just read and write files on it?



来源:https://stackoverflow.com/questions/22625790/sending-sd-commands-from-android-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!