Sending SD commands from Android app

2019-07-04 09:50发布

问题:

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?