Hello everyone, I want to own android app adds a formatted SD card function, may I ask what they should do, thank you!
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Difficult.
sdcard can easily be formatted in an application, it is not very easy to go wrong?
Reply:
However, you can delete the file File traverse much more trouble. Generally calls are formatted SD card right from the system privileges
Reply:
Oh, thank you for the reply, I have the privilege system is a customized embedded electronic device, not a public app, thank you!
Reply:
I remember there vold.bin android executable file for formatting the SD card, you can try calling the module.
Reply:
Reply:
android native code format setting there, conclude a format command is executed:
/ System / bin / newfs_msdos-F 32-O android-c 8 / dev/block/mmcblk1p1
You can look at the code: from system / vold / VolumeManager.cpp continue to follow;
Reply:
Oh, well thank you, I have just tested the next, and she formatted Haha,
/ System / bin / newfs_msdos-F 32-O android-c 8 / dev/block/mmcblk1p1 but my device is mmcblk0p1 Thank
Results posted, knot stickers.
No comments:
Post a Comment