Remember that the compiled library is placed in the lib of the system app without printing records

Normal Process

1. The steps
  to manually test whether the log of ais has come out. First compile ais_client ais_sensor_lib ais_server qcar_api qcar_jni in the ais directory separately,
  and then compile the entire directory of ais.
  We are using 32-bit so.
  So, I will out/... / system / lib / under
  libmmqcar_qcar_jni.so
  libmmqcar_ais_client.so
  libqcaraudiorecorder.so
  libqcarlibyuv.so
  libqcarmdvxwrite.so
  libqcarosd.so
  libqcarprotobbtrp.so
  the seven libraries manually push to apk our directory
  / system / priv-app / AilivingCar / lib / arm64 #
  then sync and reboot the system again. When the interface is previewed, save the log. Search for the keywords we added. We did not search for the log that we added keywords. 
  
  Consider whether to update /system/lib/ and 
  push these seven libraries to /system/lib 
  sync 
  reboot.
  When previewing the interface, save the log. Search for the keywords we added. We did not search the log where we added keywords
  
  Is so compiled? It is incorrect after burning.
   Export the /system/priv-app/AilivingCar/lib/arm64 #
   library you are using  , adb pull /system/priv-app/AilivingCar/lib/arm64 # and compile it The comparison is the same.
   
2. Only recompile cleanly. System burn test.
  Delete the out directory. Make
  sure to put the compiled seven libraries in /packages/apps/AilivingCar/lib/armeabi-v7a$
  and then compile and
  burn them all to
  When the main board previews the interface, save the log. Search for the keywords we added. We did not search for the log that we added keywords to
  
view the log level. In the print, we see
01-19 06:18:20.646 3595 3595 E AIS-CLIENT: [INFO][client_debug_control:221] debug enable 2

We still haven’t added the log out
. Try it like this, and log out.

Solution
1. Add the wrong statement in the compiled file to confirm that the compilation is wrong
2. Remove the error and recompile
3. In the lib under the generated out directory, search for the added keyword grep "carl.xu".- Whether nir matches
4. Burn the file
5. After the system is started, search for the keyword grep "carl.xu" in the lib directory of system/lib or app. -nir matches
6. Confirm that the call is successful.
7. Save the Log. Then find the keywords in the log file.
8. Put the library in android studio and compile it into an apk.
9. Unzip the apk and take out the relevant library.
10. Put the library out and place it in the system app 32-bit or 64-bit folder
11. Recompile mm -B related

Guess you like

Origin blog.csdn.net/u010689853/article/details/109103436