mtk6589 android 4.2.1 显示存储空间为0
时间:10-02
整理:3721RD
点击:
一台红米1手机,MT6589.html" target="_blank" class="relatedlink">mtk6589方案,用mtk的jb2源码包编译出android 4.2.1,之后把官方包的内核、驱动覆盖过去,刷完后顺利起机。随后发现设置里面的手机存储和sd卡存储空间都显示0B,app提示空间不足。但adb连上去可以看到已正常挂载,手机内置存储和sd卡上的文件都能在shell中访问,也能在设置->存储中挂载卸载格式化
/dev/block/vold/179:8 /storage/sdcard0 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,DMAsk=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /storage/sdcard0/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/vold/179:97 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
shell@android:/ $ ps |grep vold
root 118 1 4508 1084 ffffffff 00000000 S /system/bin/vold
130|shell@android:/ $ ll /storage/
d---rwxr-x system sdcard_rw 1970-01-01 08:00 sdcard0
d---rwxr-x system sdcard_rw 1970-01-01 08:00 sdcard1
shell@android:/ $ ll /storage/ -d
d---r-xr-x root sdcard_r 2012-12-31 00:30
shell@android:/ $ ll /storage/sdcard0
d---rwxr-x system sdcard_rw 2012-12-31 00:26 LOST.DIR
d---rwxr-x system sdcard_rw 2012-12-31 02:42 mtklog
1|shell@android:/ $ ll /storage/sdcard1
d---rwxr-x system sdcard_rw 2013-04-19 00:00 AlARMs
d---rwxr-x system sdcard_rw 2016-04-16 00:44 Android
system/etc/permissions/platform.xml 权限部分:
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
</permission>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_rw" />
</permission>
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="media_rw" />
</permission>
点击设置->存储时的adblog,看样子还是权限问题?
D/StorageMeasurement( 1688): measureApproximateStorage, path is /storage/sdcard1
D/StorageMeasurement( 1688): measureApproximateStorage, path is /storage/sdcard0
D/StorageMeasurement( 1688): measureApproximateStorage, path is /mnt/usbotg
D/StorageMeasurement( 1688): measureApproximateStorage, path is /data
D/StorageMeasurement( 1688): measureMedia is truemIsInternal is false isEmulated: false mIsPrimary is true
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Android) returned 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Podcasts) returned 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/DCIM) returned 0
V/InputMethodManager( 1688): onWindowFocus: android.widget.ListView{414c8e90 VFED.VC. .F....I. 0,0-720,1134 #102000a android:id/list} softInputMode=272 first=false flags=#1810100
V/InputMethodManager( 1688): START INPUT: android.widget.ListView{414c8e90 VFED.VC. .F....I. 0,0-720,1134 #102000a android:id/list} ic=null tba=android.view.inputmethod.EditorInfo@414f1c50 controlFlags=#101
V/InputMethodManagerService( 533): windowGainedFocus: android.os.BinderProxy@415b67f0 controlFlags=#101 softInputMode=#110 windowFlags=#1810100
W/InputMethodManagerService( 533): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodCLIent$Stub$Proxy@41497470 attribute=android.view.inputmethod.EditorInfo@413f8d40, token = android.os.BinderProxy@41707ac0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Ringtones) returned 0
D/StorageMeasurement( 1688): measureMedia is falsemIsInternal is false isEmulated: false mIsPrimary is false
D/StorageMeasurement( 1688): measureMedia is falsemIsInternal is false isEmulated: false mIsPrimary is false
D/StorageMeasurement( 1688): measureMedia is falsemIsInternal is true isEmulated: false mIsPrimary is false
V/InputMethodManager( 1688): Starting input: Bind result=InputBindResult{com.android.internal.view.IInputMethodSession$Stub$Proxy@4152d478 com.android.inputmethod.latin/.LatinIME #30}
I/DefContainer-JNI( 2511): error opening: /storage/sdcard0: Permission denied
I/DefContainer-JNI( 2511): error opening: /storage/sdcard0: Permission denied
D/StorageVolumePreferenceCategory( 1688): 手机存储 : total size is 0, avail size is 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0) returned 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Movies) returned 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Alarms) returned 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Music) returned 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Notifications) returned 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0) returned 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Pictures) returned 0
D/StorageVolumePreferenceCategory( 1688): updatePreferencesFROMState, state is mounted
I/DefContainer-JNI( 2511): error opening: /storage/sdcard0: Permission denied
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0) returned 0
V/DrmManagerClient( 2128): create event handler thread.
D/dalvikvm( 2128): create interp thread : stack size=32KB
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Download) returned 0
I/DefContainer-JNI( 2511): error opening: /storage/sdcard0: Permission denied
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0) returned 0
困扰2、3天了求解答
/dev/block/vold/179:8 /storage/sdcard0 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,DMAsk=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /storage/sdcard0/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/vold/179:97 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
shell@android:/ $ ps |grep vold
root 118 1 4508 1084 ffffffff 00000000 S /system/bin/vold
130|shell@android:/ $ ll /storage/
d---rwxr-x system sdcard_rw 1970-01-01 08:00 sdcard0
d---rwxr-x system sdcard_rw 1970-01-01 08:00 sdcard1
shell@android:/ $ ll /storage/ -d
d---r-xr-x root sdcard_r 2012-12-31 00:30
shell@android:/ $ ll /storage/sdcard0
d---rwxr-x system sdcard_rw 2012-12-31 00:26 LOST.DIR
d---rwxr-x system sdcard_rw 2012-12-31 02:42 mtklog
1|shell@android:/ $ ll /storage/sdcard1
d---rwxr-x system sdcard_rw 2013-04-19 00:00 AlARMs
d---rwxr-x system sdcard_rw 2016-04-16 00:44 Android
system/etc/permissions/platform.xml 权限部分:
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
</permission>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_rw" />
</permission>
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="media_rw" />
</permission>
点击设置->存储时的adblog,看样子还是权限问题?
D/StorageMeasurement( 1688): measureApproximateStorage, path is /storage/sdcard1
D/StorageMeasurement( 1688): measureApproximateStorage, path is /storage/sdcard0
D/StorageMeasurement( 1688): measureApproximateStorage, path is /mnt/usbotg
D/StorageMeasurement( 1688): measureApproximateStorage, path is /data
D/StorageMeasurement( 1688): measureMedia is truemIsInternal is false isEmulated: false mIsPrimary is true
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Android) returned 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Podcasts) returned 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/DCIM) returned 0
V/InputMethodManager( 1688): onWindowFocus: android.widget.ListView{414c8e90 VFED.VC. .F....I. 0,0-720,1134 #102000a android:id/list} softInputMode=272 first=false flags=#1810100
V/InputMethodManager( 1688): START INPUT: android.widget.ListView{414c8e90 VFED.VC. .F....I. 0,0-720,1134 #102000a android:id/list} ic=null tba=android.view.inputmethod.EditorInfo@414f1c50 controlFlags=#101
V/InputMethodManagerService( 533): windowGainedFocus: android.os.BinderProxy@415b67f0 controlFlags=#101 softInputMode=#110 windowFlags=#1810100
W/InputMethodManagerService( 533): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodCLIent$Stub$Proxy@41497470 attribute=android.view.inputmethod.EditorInfo@413f8d40, token = android.os.BinderProxy@41707ac0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Ringtones) returned 0
D/StorageMeasurement( 1688): measureMedia is falsemIsInternal is false isEmulated: false mIsPrimary is false
D/StorageMeasurement( 1688): measureMedia is falsemIsInternal is false isEmulated: false mIsPrimary is false
D/StorageMeasurement( 1688): measureMedia is falsemIsInternal is true isEmulated: false mIsPrimary is false
V/InputMethodManager( 1688): Starting input: Bind result=InputBindResult{com.android.internal.view.IInputMethodSession$Stub$Proxy@4152d478 com.android.inputmethod.latin/.LatinIME #30}
I/DefContainer-JNI( 2511): error opening: /storage/sdcard0: Permission denied
I/DefContainer-JNI( 2511): error opening: /storage/sdcard0: Permission denied
D/StorageVolumePreferenceCategory( 1688): 手机存储 : total size is 0, avail size is 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0) returned 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Movies) returned 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Alarms) returned 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Music) returned 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Notifications) returned 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0) returned 0
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Pictures) returned 0
D/StorageVolumePreferenceCategory( 1688): updatePreferencesFROMState, state is mounted
I/DefContainer-JNI( 2511): error opening: /storage/sdcard0: Permission denied
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0) returned 0
V/DrmManagerClient( 2128): create event handler thread.
D/dalvikvm( 2128): create interp thread : stack size=32KB
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0/Download) returned 0
I/DefContainer-JNI( 2511): error opening: /storage/sdcard0: Permission denied
D/StorageMeasurement( 1688): getDirectorySize(/storage/sdcard0) returned 0
困扰2、3天了求解答