Chinaunix首页 | 论坛 | 博客
  • 博客访问: 15340176
  • 博文数量: 2005
  • 博客积分: 11986
  • 博客等级: 上将
  • 技术积分: 22535
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-17 13:56
文章分类

全部博文(2005)

文章存档

2014年(2)

2013年(2)

2012年(16)

2011年(66)

2010年(368)

2009年(743)

2008年(491)

2007年(317)

分类:

2008-12-05 11:30:14

[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
阅读(3053) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~