EC21E Disable GPS log if module is not connected

Hi,

is there any way to turn off GPS logs if the EC21 module is not connected to an Android device?
Because in this case the following is recorded in the log every second:

03-15 17: 36: 34.814 393-654 / system_process D / gps_ql: Error connecting rild-nmea (connection denied)
03-15 17: 36: 34.814 393-654 / system_process D / gps_ql: failed to open GPS channel !
03-15 17: 36: 35.814 393-654 / system_process D / gps_ql: Error connecting rild-nmea (connection denied)
03-15 17: 36: 35.814 393-654 / system_process D / gps_ql: failed to open GPS channel !
03-15 17: 36: 36.815 393-654 / system_process D / gps_ql: Error connecting rild-nmea (connection refused)
03-15 17: 36: 36.815 393-654 / system_process D / gps_ql: failed to open GPS channel !

The point is that we want to provide a device with optional LTE / GPS and we don’t want to prepare two versions of Android system (one for devices with LTE and the other for devices without LTE) and this repeated entry in the log does not look very good.
We use Android 5.1.1 and GPS driver v2.1.9.

Thanks.

  1. you can try to turn off the GPS log by turning off the GPS fuction through the application layer.
  2. if the method does not take effect, it needs to modify the source code of ril.