A collection of problems and solutions encountered during the Android11.0 system modification process

A collection of problems and solutions encountered during the Android11.0 system modification process

A collection of problems encountered during the Android11.0 system modification process

This article collects some error reports and solutions encountered during the process of adding functions and transplanting drivers to the Android11 ​​system of RK3568, and will continue to add them.

Error reporting and processing collection

  1. An error occurred when adding the gps driver of EC200:[email protected]::IGnss/default is deprecated in compatibility matrix at FCM Version 5
    Cause of the problem: According to the kernel version, compatibility_matrix.5.xml (FCM Version 5) is used, and the gnss version defined in compatibility_matrix.5.xml is 2.0-1. The versions do not match. The solution is as follows: < /span> b. Change 2.0-1 in compatibility_matrix.5.xml to 1.0
    a. Change gnss service to version 2.0 or 2.1

  2. After adding new packages and files to the framework, if the compilation error is as follows:

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.

Modify /build/make/core/tasks/check_boot_jars/package_allowed_list.txt and add a whitelist

###################################################
# framework.jar
javax\.microedition\.khronos\.opengles
javax\.microedition\.khronos\.egl
com\.yjz\.test            //添加
com\.yjz\.test\..*        //添加
  1. When sending a custom broadcast in the framework, an error of Sending non-protected broadcast xxxxxxx from system xxxxxxxxxx is reported. For system applications, the broadcast must be protected-broadcast declared in frameworks\base\core\res\AndroidManifest.xml:
<protected-broadcast android:name="com.yjz.action_test"

Guess you like

Origin blog.csdn.net/yjz_0314/article/details/134113670