@Terry
In general, I spent half a night, I don’t remember what I was doing))))
Changed libraries, made changes to the source code.
Found the manifest in the folder /device/hadas/common/product/mbox/manifest/manifest_aosp.hml
Added the following to it:
+ <hal format="hidl">
+ <name>android.hardware.gnss</name>
+ <transport>hwbinder</transport>
+ <version>1.0</version>
+ <interface>
+ <name>IGnss</name>
+ <instance>default</instance>
+ </interface>
+ </hal>
+
</manifest>
After burn firmware, GNSS and GPS data began to appear in the logcat:
01-01 12:06:38.330 7974 7988 E GnssLocationProvider: no AGPS interface in set_agps_server
01-01 12:06:38.975 3433 3433 E gps_glonass_serial: Setting gps baud rate to 9600
01-01 12:06:38.976 7974 7988 E GnssLocationProvider: no AGPS interface in set_agps_server
01-01 12:06:39.977 7974 8028 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 49.556161,14.062525 hAcc=1 et=?!? vel=0.5453111 bear=335.38 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:40.818 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 49.556161,14.062517 hAcc=1 et=?!? alt=38.0 vel=0.5195889 bear=329.97 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:41.813 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 49.556165,14.062517 hAcc=1 et=?!? alt=38.0 vel=0.0 bear=343.93 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:42.793 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 49.556169,14.062517 hAcc=1 et=?!? alt=12.08vel=0.4372778 bear=336.09 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:43.797 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 49.556169,14.062513 hAcc=1 et=?!? alt=12.08 vel=0.41155556 bear=337.81 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:44.806 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 49.556172,14.062513 hAcc=1 et=?!? alt=12.089998474121094 vel=0.40126666 bear=335.2 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:45.805 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 49.556172,14.062513 hAcc=1 et=?!? alt=12.089998474121094 vel=0.0 bear=326.03 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:46.783 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 49.556169,14.062513 hAcc=1 et=?!? alt=12.089998474121094 vel=0.4527111 bear=312.19 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:47.813 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 49.556169,14.062510 hAcc=1 et=?!? alt=12.089998474121094 vel=0.0 bear=312.19 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:48.846 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 49.556169,14.062510 hAcc=1 et=?!? alt=12.089998474121094 vel=0.0 bear=312.19 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:49.852 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 49.556169,14.062510 hAcc=1 et=?!? alt=12.089998474121094 vel=0.0 bear=312.19 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:50.816 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 49.556169,14.062510 hAcc=1 et=?!? alt=12.089998474121094 vel=0.0 bear=312.19 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:51.847 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 49.5569,14.062510 hAcc=1 et=?!? alt=12.088998474121094 vel=0.40126666 bear=297.74 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:52.871 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 49.556169,14.062510 hAcc=1 et=?!? alt=12.089998474121094 vel=0.0 bear=312.19 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:53.826 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 49.559.732510 hAcc=1 et=?!? alt=12.088474121094 vel=0.0 bear=312.19 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:54.814 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 4.5169,14.062510 hAcc=1 et=?!? alt=38.099998474121094 vel=0.0 bear=312.19 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:55.827 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 46.543169,14.062510 hAcc=1 et=?!? alt=12.756756 vel=0.41155556 bear=325.79 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:56.819 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 43.596169,14.062498 hAcc=1 et=?!? alt=37.900001525878906 vel=0.4835778 bear=337.63 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:57.818 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps hAcc=1 et=?!? alt=38.0 vel=0.49386665 bear=325.42 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:58.817 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 4 hAcc=1 et=?!? alt=38.0 vel=0.8076778 bear=309.01 vAcc=??? sAcc=??? bAcc=???])
01-01 12:06:59.816 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 47 hAcc=1 et=?!? alt=38.0 vel=0.8436889 bear=315.34 vAcc=??? sAcc=??? bAcc=???])
01-01 12:07:00.860 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 3 hAcc=1 et=?!? alt= vel=0.79224443 bear=321.25 vAcc=??? sAcc=??? bAcc=???])
01-01 12:07:01.816 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps hAcc=1 et=?!? alt= vel=0.68421113 bear=320.44 vAcc=??? sAcc=??? bAcc=???])
01-01 12:07:02.780 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps hAcc=1 et=?!? alt= vel=0.4167 bear=327.12 vAcc=??? sAcc=??? bAcc=???])
01-01 12:07:03.799 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps hAcc=1 et=?!? alt=38.5 vel=0.0 bear=327.12 vAcc=??? sAcc=??? bAcc=???])
01-01 12:07:04.780 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps hAcc=1 et=?!? alt=38.5 vel=0.0 bear=327.12 vAcc=??? sAcc=??? bAcc=???])
01-01 12:07:05.760 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps hAcc=1 et=?!? alt= vel=0.0 bear=327.12 vAcc=??? sAcc=??? bAcc=???])
01-01 12:07:06.759 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps hAcc=1 et=?!? alt=6 vel=0.0 bear=327.12 vAcc=??? sAcc=??? bAcc=???])
01-01 12:07:07.758 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 7 hAcc=1 et=?!? alt=vel=0.0 bear=327.12 vAcc=??? sAcc=??? bAcc=???])
01-01 12:07:08.738 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 7 hAcc=1 et=?!? alt=06 vel=0.0 bear=327.12 vAcc=??? sAcc=??? bAcc=???])
01-01 12:07:09.729 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps 2487 hAcc=1 et=?!? alt= vel=0.0 bear=327.12 vAcc=??? sAcc=??? bAcc=???])
01-01 12:07:10.719 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps hAcc=1 et=?!? alt= vel=0.0 bear=327.12 vAcc=??? sAcc=??? bAcc=???])
01-01 12:07:11.853 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps hAcc=1 et=?!? alt= vel=0.0 bear=327.12 vAcc=??? sAcc=??? bAcc=???])
01-01 12:07:12.739 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps hAcc=1 et=?!? alt= vel=0.0 bear=327.12 vAcc=??? sAcc=??? bAcc=???])
01-01 12:07:13.735 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps hAcc=1 et=?!? alt= vel=0.0 bear=327.12 vAcc=??? sAcc=??? bAcc=???])
01-01 12:07:14.750 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps hAcc=1 et=?!? alt= vel=0.0 bear=327.12 vAcc=??? sAcc=??? bAcc=???])
01-01 12:07:15.758 7974 8356 I GnssLocationProvider: WakeLock acquired by sendMessage(REPORT_LOCATION, 1, Location[gps hAcc=1 et=?!? alt= vel=0.0 bear=327.12 vAcc=??? sAcc=??? bAcc=???])
But at the same time, the system boots up for a long time, during its operation a black screen constantly appears and the desktop reboots. He writes that SystemUI is not responding. Shows the Wifi network but does not connect to them. And still not possible to install any .apk
Below I apply a general logcat, please help me sort out!!)))
01-01 12:07:25.310 9081 9106 V AVUtils : AVUtils::getComponentRole
01-01 12:07:25.311 9081 9106 I OMXClient: IOmx service obtained
01-01 12:07:25.311 3540 3540 I OMXMaster: makeComponentInstance(OMX.google.h263.decoder) in omx@1.0-service process
01-01 12:07:25.313 3540 3540 E OMXNodeInstance: getExtensionIndex(0xb191cba0:google.h263.decoder, OMX.google.android.index.configureVideoTunnelMode) ERROR: UnsupportedIndex(0x8000101a)
01-01 12:07:25.314 3540 3540 E OMXNodeInstance: getExtensionIndex(0xb191cba0:google.h263.decoder, OMX.google.android.index.enableAndroidNativeBuffers) ERROR: UnsupportedIndex(0x8000101a)
01-01 12:07:25.320 3540 8349 D OmxVideoDecoder: setInputCoding video_decoder.hevc
01-01 12:07:25.321 3540 8349 E OMXNodeInstance: getParameter(0xb1903bac:amlogic.hevc.decoder.awesome, ParamVideoProfileLevelQuerySupported(0x600000f)) ERROR: BadParameter(0x80001005)
01-01 12:07:25.321 3540 8349 D OmxComponent: getExtensionIndex 1123 name="OMX.google.android.index.describeColorFormat"
01-01 12:07:25.327 3540 3540 E OMXNodeInstance: getExtensionIndex(0xb191cba0:google.hevc.decoder, OMX.google.android.index.configureVideoTunnelMode) ERROR: UnsupportedIndex(0x8000101a)
01-01 12:07:25.327 3540 3540 E OMXNodeInstance: getExtensionIndex(0xb191cba0:google.hevc.decoder, OMX.google.android.index.enableAndroidNativeBuffers) ERROR: UnsupportedIndex(0x8000101a)
01-01 12:07:25.328 9081 9106 I AmAVUtils: AmAVUtils::getComponentRole isEncoder :0 mime:video/mjpeg
01-01 12:07:25.328 9081 9106 V AVUtils : AVUtils::getComponentRole
01-01 12:07:25.369 3540 3540 V AmlogicSoftOMXPlugin: destroyComponentInstance 113
01-01 12:07:25.373 9081 9106 I AmAVUtils: AmAVUtils::getComponentRole isEncoder :0 mime:video/rm40
01-01 12:07:25.373 9081 9106 V AVUtils : AVUtils::getComponentRole
01-01 12:07:25.374 9081 9106 I OMXClient: IOmx service obtained
01-01 12:07:25.374 3540 8349 I OMXMaster: makeComponentInstance(OMX.amlogic.rm40.decoder.sw) in omx@1.0-service process
01-01 12:07:25.374 3540 8349 V AmlogicSoftOMXPlugin: makeComponentInstance 101
If necessary, there is a full logcat
UPD.
If I remove GNSS data from the manifest, then the device works fine.
Thank’s!)))