版本要求:4.0 release及之前版本。
当前只有4.0之前的版本可以支持CPU点屏,4.1开始之后的版本包括master暂时不支持CPU点屏。
原因:4.1release开始,OHOS的arkui自己实现了flutter相关的API,摆脱了对flutter的依赖,所以框架内删除了flutter的三方库组件。但是CPU点屏依然使用了其中部分API,所以在4.1之后的版本上进行CPU点屏会出现flutter、skia等API相关报错。
注意:4.1 release解决方案,待后续更新。
点屏流程
点屏实操
编译阶段
从编译框架的层面将原本的GPU点屏模式改为CPU点屏模式。
路径1:vendor/hihope/rk3568/config.json
修改目的:
- 关闭selinux,避免点屏操作被安全机制拒绝。
- 去掉对GPU的依赖。
diff --git a/rk3568/config.json b/rk3568/config.json index ea2d588..21b5ec2 100755 --- a/rk3568/config.json +++ b/rk3568/config.json @@ -9,7 +9,7 @@ "api_version": 8, "enable_ramdisk": true, "enable_absystem": false, - "build_selinux": true, + "build_selinux": false, "build_seccomp": true, "inherit": [ "productdefine/common/inherit/rich.json", "productdefine/common/inherit/chipset_common.json" ], "subsystems": [ @@ -64,7 +64,7 @@ "component": "ace_engine", "features": [ "ace_engine_feature_enable_accessibility = true", - "ace_engine_feature_enable_web = true" + "ace_engine_feature_enable_web = false" ] }, { @@ -200,7 +200,7 @@ { "component": "graphic_2d", "features": [ - "graphic_2d_feature_rs_enable_eglimage = true" + "graphic_2d_feature_rs_enable_eglimage = false" ] } ]
路径2:productdefine/common/inherit/rich.json