讨论广场 问答详情
5.0R版本用不了pad_launcher
无风之翼 2025-02-18 17:13:20
166 评论 分享

使用5.0Release版本,启动后使用的phone_launcher, 之前4.0的时候,把编译出来的pad_launcher 怼进去是可以直接使用的,但是目前编译的5.0版本,直接弄进去启动不了,一直报:

Error message:Cannot find module 'com.ohos.launcher/phone_launcher/ets/Application/AbilityStage' , which is application Entry Point
E     [appspawn_cgroup.c:147]Open file fail /dev/pids/100/com.ohos.launcher/app_19872/cgroup.procs errno: 2

从错误日志来看是,像是启动的时候找不到phone_launcher,这个是在哪里配置的,为何4.0的没有这个问题呢?

166 评论 分享
写回答
全部评论(10)
1 楼

替换padlauncher后 把data清掉 重启

2025-02-18 17:40:44
2025-02-20 14:46:47
引用:“-rw-r--r-- 1 root root 6.1M 2025-02-25 19:52 Launcher.hap -rw-r--r-- 1 root root 586K 2025-02-15 12:10 Launcher_Settings.hap 这个时间对不上吧。”
# cd system/app/com.ohos.launcher/ # ls -la total 10752 drwxr-xr-x 2 root root 4096 2025-02-20 09:14 . drwxr-xr-x 54 root root 4096 2025-02-26 19:10 .. -rw-r--r-- 1 root root 4522815 2025-02-26 23:24 Launcher.hap -rw-r--r-- 1 root root 969461 2025-02-26 23:24 Launcher_Settings.hap 重新来了一遍,时间也一样了,还是起不来
2025-02-20 14:46:47
2025-02-20 14:10:57
引用:“Launcher_Settings.hap也换过了”
-rw-r--r-- 1 root root 6.1M 2025-02-25 19:52 Launcher.hap -rw-r--r-- 1 root root 586K 2025-02-15 12:10 Launcher_Settings.hap 这个时间对不上吧。
2025-02-20 14:10:57
2025-02-19 11:37:15
引用:“Launcher.hap和Launcher_Settings.hap都需要替换为pad版本的。”
Launcher_Settings.hap也换过了
2025-02-19 11:37:15
2025-02-19 11:31:22
引用:“# cd system/app/com.ohos.launcher/ # ls -lah total 6.7M drwxr-xr-x 2 root root 4.0K 2025-02-15 13:49 . drwxr-xr-x 53 root root 4.0K 2025-02-15 13:49 .. -rw-r--r-- 1 root root 6.1M 2025-02-25 19:52 Lau”
Launcher.hap和Launcher_Settings.hap都需要替换为pad版本的。
2025-02-19 11:31:22
2025-02-19 11:20:23
引用:“在system/app/com.ohos.launcher下ls -lh看下, hap导出来 ”
# cd system/app/com.ohos.launcher/ # ls -lah total 6.7M drwxr-xr-x 2 root root 4.0K 2025-02-15 13:49 . drwxr-xr-x 53 root root 4.0K 2025-02-15 13:49 .. -rw-r--r-- 1 root root 6.1M 2025-02-25 19:52 Launcher.hap -rw-r--r-- 1 root root 586K 2025-02-15 12:10 Launcher_Settings.hap
Launcher.zip
下载
2025-02-19 11:20:23
2025-02-19 10:23:48
引用:“完整的hilog”
在system/app/com.ohos.launcher下ls -lh看下, hap导出来
2025-02-19 10:23:48
2025-02-19 09:59:46
引用:“全一点的hilog日志。或者你编release版本的Laucher替换进去”
完整的hilog
hilog.zip
下载
2025-02-19 09:59:46
2025-02-19 09:34:59
引用:“不行,还是起不来,错误换成了: E [param_base.c:356]Forbid to open workspace for u:object_r:sys_param:s0 error 13 E [param_base.c:530]Selinux check name sys.graphic.skia.cache.debug in u:object_r:sys_param:s0 info [3”
全一点的hilog日志。或者你编release版本的Laucher替换进去
2025-02-19 09:34:59
2025-02-18 17:57:02
不行,还是起不来,错误换成了: E [param_base.c:356]Forbid to open workspace for u:object_r:sys_param:s0 error 13 E [param_base.c:530]Selinux check name sys.graphic.skia.cache.debug in u:object_r:sys_param:s0 info [3488 0 0] failed! E [param_manager.c:686]Forbid to access sys.graphic.skia.cache.debug label 20720 11 E [param_manager.c:737]SystemReadParam failed! name is:sys.graphic.skia.cache.debug, errNum is:1002! E pid[3488] first get g_tagsProperty: 0
2025-02-18 17:57:02