Android11.0系统修改过程中遇到问题及解决方法集合

Android11.0系统修改过程中遇到问题及解决方法集合

Android11.0系统修改过程中遇到问题集合

本文收集在RK3568的Android11系统中添加功能及移植驱动过程中遇到的一些报错及处理,会不断添加。

报错及处理集合

  1. 在添加EC200的gps驱动时报错:[email protected]::IGnss/default is deprecated in compatibility matrix at FCM Version 5
    问题产生原因:根据kernel版本,用的是compatibility_matrix.5.xml (FCM Version 5),而compatibility_matrix.5.xml中定义的gnss version是2.0-1,版本不匹配,解决方法如下:
    a.把gnss service改成用2.0或2.1的版本
    b.把compatibility_matrix.5.xml 中2.0-1 改成1.0

  2. framework中添加新包及文件后,编译如果报错如下:

Error: out/target/common/obj/JAVA_LIBRARIES/framework-minus-apex_intermediates/classes.jar contains class file com/yjz/test/api/ITestManager.class, whose package name com.yjz.test.api is empty or not in the allow list build/make/core/tasks/check_boot_jars/package_allowed_list.txt of packages allowed on the bootclasspath.

修改/build/make/core/tasks/check_boot_jars/package_allowed_list.txt,添加白名单

###################################################
# framework.jar
javax\.microedition\.khronos\.opengles
javax\.microedition\.khronos\.egl
com\.yjz\.test            //添加
com\.yjz\.test\..*        //添加
  1. framework中发送自定义广播,报Sending non-protected broadcast xxxxxxx from system xxxxxxxxxx 错误,对于系统应用,要求发送广播必须是声明在frameworks\base\core\res\AndroidManifest.xml里面的protected-broadcast:
<protected-broadcast android:name="com.yjz.action_test"

猜你喜欢

转载自blog.csdn.net/yjz_0314/article/details/134113670