How to format USB mass storage programmatically in android
-
26-05-2021 - |
Question
Is there any way to format a USB mass storage device programmatically in Android? I need to detect USB mass storage devices and give an option to format it. Any examples will be appreciated.
Thanks in advance.
La solution
Sorry, but there is no support for any of this in the Android SDK.
Autres conseils
May be help this: I formatted external sd card from console with root permissions + busybox. I did it on china mobile: busybox mkfs.vfat /dev/block/mmcblk0
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow