当前位置: 首页 > 工具软件 > Hack4SD > 使用案例 >

Hack Android SD Card support

马德厚
2023-12-01

[First written by Steve Guo, please keep the mark if forwarding.]

As current music and media player only play files on /sdcard, if you don't have a real SD card, you can use the following hacked method to enable playing without SD card.

First, of course, you need to make sure /sdcard does existed on the rootfs.

Pay attention: If you are using NFS, you must do the following command in the beginning:

$cd /sdcard
$ls -l 

Then you can enable it through:

$setprop EXTERNAL_STORAGE_STATE mounted
$am broadcast -a android.intent.action.MEDIA_MOUNTED --ez read-only false -d file:///sdcard

 类似资料:

相关阅读

相关文章

相关问答