问题
Is there any possibility given in Android Icecream-sandwich to programatically format,mount and unmount sdcard ?
回答1:
Related API's are in com.androidserver.MountService
(it's not new), but this class is hidden and not available for SDK applications. In theory, you can get the MOUNT_FORMAT_FILESYSTEMS
permission (it is not a system permission), but you cannot use it since the API's are not public.
来源:https://stackoverflow.com/questions/8630976/androidmount-unmount-and-format-sdcard