如题,在串口内查看,媒体目录已经都创建出来了,

ls /storage/media/100/local/files/
Audios Camera Documents Download Pictures Videos

但是社区自带的文件管理器file picker内无法查看到这些目录,查看file picker的Hilog打印发现错误是 createFileAccessHelper fail, error code 14300009,对比rk的ps进程,发现com.ohos.UserFile.ExternalFileManager这个服务没有起来。请各位大神分析下这是哪个地方没有适配好?麻烦大家指导下要debug方法呢

系统版本:3.2.3Release、标准系统

附件附带hilog日志。

等待com.ohos.UserFile.ExternalFileManager服务启动失败的打印:

01-01 08:00:57.053  4456  4456 I C0430a/FileAccessFwk: [(ConnectFileExtAbility:67)]Wait connect timeout.
01-01 08:00:57.053  4456  4456 E C0430a/FileAccessFwk: [(Creator:180)]Creator get invalid fileExtProxy
01-01 08:00:57.054  4456  4456 E C0430a/FileAccessFwk: [(FileAccessHelperConstructor:89)]FileAccessHelperConstructor: Creator failed ret=14300009

目前不清楚如何排查起不来的原因,麻烦大家指导下debug方法,十分感谢

init.without_two_stages.cfg的修改:

diff --git a/services/etc/init.without_two_stages.cfg b/services/etc/init.without_two_stages.cfg
index dcc9cf44..f299078b 100755
--- a/services/etc/init.without_two_stages.cfg
+++ b/services/etc/init.without_two_stages.cfg
@@ -111,6 +111,7 @@
                 "mkdir /data/chipset/el1 0711 root root",
                 "mkdir /data/chipset/el1/public 0711 root root",
                 "mkdir /data/chipset/el2 0711 root root",
+                "init_main_user ",
                 "mkdir /data/app/el1/0 0711 root root",
                 "mkdir /data/app/el1/0/base 0711 root root",
                 "mkdir /data/app/el1/0/database 0711 system system",
@@ -126,6 +127,7 @@
                 "mkdir /data/service/el2/0/hmdfs 0711 system system",
                 "mkdir /data/chipset/el1/0 0711 root root",
                 "mkdir /data/chipset/el2/0 0711 root root",
+                "mkdir /storage/media 0711 root root",
                 "mkdir /data/bootchart 0755 shell shell",
                 "mkdir /data/app-staging 0750 system system",
                 "copy /data/system/entropy.dat /dev/urandom",

 

相关文件下载
filepicker找不到媒体目录.zip
2.49 MB
下载
Logo

社区规范:仅讨论OpenHarmony相关问题。

更多推荐