Android 9.0 - 如何判断用户是否插入了损坏的 SD 卡?

Android 9.0 - How to find if user has inserted a corrupted sd card?

Environment.getExternalStorageState().equalsIgnoreCase(Environment.MEDIA_MOUNTED_READ_ONLY)//corrupted -sd card 

但是每当我插入损坏的sd卡时,状态总是“已安装”,这种做法是不是错误?

我是通过遍历/proc/mounts文件,查看sdcard的mounted_directory的read_options是否为只读来解决的,判断插入的卡是否为只读或者读写。