从Android应用程序发送SD命令 [英] Sending SD commands from Android app
问题描述
时可以发送SD(安全数字)从Android应用程序的命令到SD卡?
命令读取SD卡,写入SD卡等(CMD18,CMD24)。
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).
约束是手机不应该是一个根深蒂固的电话。与根电话,我们能够发送SD命令,但不与无根电话。在尝试,我们得到错误权限被拒绝。
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".
任何帮助是极大AP preciated。
Any help is greatly appreciated.
感谢
推荐答案
这是不可能的。 SD卡的硬件抽象出来,并安装作为文件系统的目录。你为什么要生命令发送到SD卡呢?为什么不直接读取和写文件?
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?
这篇关于从Android应用程序发送SD命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!