Android 2.1 programmatically unmount SDCard

前端 未结 1 952
灰色年华
灰色年华 2021-01-29 02:13

I have an application that writes important data to the SDCard and encrypts it using AES, which later will be used by a desktop application. I have noticed that if I do not unmo

相关标签:
1条回答
  • 2021-01-29 02:47

    You should unmount what's using the sdcard in the proper order, for example

    umount /mnt/sdcard/.android_secure
    umount /mnt/sdcard
    

    or, probably synchronizing the buffers with the filesystem would be enough

    sync; sync
    
    0 讨论(0)
提交回复
热议问题