After adding patches for enabling mobile network UI access, Wi-Fi and Bluetooth not working properly

Hello team Toradex,
Currently, we (Teksun Inc) are working on Automotive Infotainment Display. We have IMX8QM SOM and ixora carrier board. Earlier when we boot up the device with android 10, Bluetooth and Wi-Fi was working fine, but mobile network related UI was not available.
After that, we have added the patches for turning on SIM support and mobile network UI. Here we have successfully made mobile network UI and internet surfing working, but after that when I tried to transfer files from Bluetooth I found out device paring not working so file transfer is also not getting done. In addition, some Wi-Fi available in surroundings are also not getting available in Wi-Fi list.
So kindly provide us support to make it work.

Changes done for enabling mobile network UI are as below :

/* For LTE feature enable (visible) in android UI-Notification panel */

  1. Add this following lines to
    Location : /home/testfirmware/IMX8QM_NXP_Base_AOSP/android10_apalis8qm/device/toradex/imx8q/ProductConfigCommon.mk
    Inside ProductConfigCommon.mk file find line PRODUCT_COPY_FILES and paste below lines just after PRODUCT_COPY_FILES’s all lines. */

device/toradex/common/ril/libreference-ril.so:$(TARGET_COPY_OUT_VENDOR)/lib64/hw/libreference-ril.so
device/toradex/common/ril/ql-ril.conf:$(TARGET_COPY_OUT_VENDOR)/etc/ql-ril.conf \

/* 3) Make ril named folder to
Location : /home/testfirmware/IMX8QM_NXP_Base_AOSP/android10_apalis8qm/device/toradex/common/
and past following two files copied from quectel patch. */
libreference-ril.so
ql-ril.conf

/* 4) Add this following lines to
Location : /home/testfirmware/IMX8QM_NXP_Base_AOSP/android10_apalis8qm/device/toradex/imx8q/apalis_8qm/init.rc
Inside init.rc file, paste some where at all service are decleared. */

service ril-daemon /vendor/bin/hw/rild -l /vendor/lib64/hw/libreference-ril.so
class main
user radio
group radio cache inet misc audio sdcard_rw log
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW

/* 5) Add this followig lines to
Location : /home/testfirmware/IMX8QM_NXP_Base_AOSP/android10_apalis8qm/device/toradex/imx8q/apalis_8qm/manifest.xml
Inside manifest.xml, paste some where other this kind of format is there */

android.hardware.radio hwbinder 1.0 IRadio slot1

/* 6) Add this following lines to
Location : /home/testfirmware/IMX8QM_NXP_Base_AOSP/android10_apalis8qm/device/toradex/imx8q/apalis_8qm/ueventd.freescale.rc
Inside ueventd.freescale.rc, paste some where other this kind of format is there */

#quectel port
/dev/ttyUSB* 0660 radio radio
/dev/ttyACM* 0660 radio radio
/dev/cdc-wdm* 0660 radio radio
/dev/qcqmi* 0660 radio radio
/dev/cdc-acm* 0660 radio radio

#PCIe
/dev/mhi_DUN 0660 radio radio
/dev/mhi_DIAG 0660 radio radio
/dev/mhi_BHI 0660 radio radio
/dev/mhi_LOOPBACK 0660 radio radio
/dev/mhi_QMI0 0660 radio radio

/* 7) Add this following lines to
Location : /home/testfirmware/IMX8QM_NXP_Base_AOSP/android10_apalis8qm/device/toradex/imx8q/apalis_8qm/sepolicy/file_contexts
Inside file_contexts, paste some where other this kind of format is there */

/dev/ttyUSB[0-9] u:object_r:radio_device:s0
/dev/ttyACM[0-9] u:object_r:radio_device:s0
/dev/cdc-wdm[0-9] u:object_r:radio_device:s0
/dev/qcqmi[0-9] u:object_r:radio_device:s0
/vendor/bin/hw/rild u:object_r:rild_exec:s0
/dev/socket/rildOemHook u:object_r:rild_socket:s0

#PCIe
/dev/mhi_DUN u:object_r:radio_device:s0
/dev/mhi_DIAG u:object_r:radio_device:s0
/dev/mhi_BHI u:object_r:radio_device:s0
/dev/mhi_LOOPBACK u:object_r:radio_device:s0
/dev/mhi_QMI0 u:object_r:radio_device:s0

/* 8) Add this following line to
Location : /home/testfirmware/IMX8QM_NXP_Base_AOSP/android10_apalis8qm/system/sepolicy/vendor/rild.te
Inside rild.te, past line at last */

allow rild self:packet_socket { create bind write read };

/* 9)
Location : /home/testfirmware/IMX8QM_NXP_Base_AOSP/android10_apalis8qm/device/toradex/imx8q/ProductConfigCommon.mk */
Inside ProductConfigCommon.mk, goto line

wifionly device

PRODUCT_PROPERTY_OVERRIDES +=
and correct yes to false */

ro.radio.noril=false

/* 10) Update line indicated with “-” and “+”. “-” is indication to remove the lines and “+” is indicating to add that lines.
Location : /home/testfirmware/IMX8QM_NXP_Base_AOSP/android10_apalis8qm/device/toradex/imx8q/apalis_8qm/overlay/frameworks/base/core/res/res/values/config.xml
Inside config.xml */

 <!-- List of regexpressions describing the interface (if any) that represent tetherable
          USB interfaces.  If the device doesn't want to support tething over USB this should
-         be empty.  An example would be "usb.*" -->
+         be empty.  An example would be "usb.*"
      <string-array translatable="false" name="config_tether_usb_regexs">
        <item>usb0</item>
-     </string-array>
+     </string-array> -->
 
     <!-- List of regexpressions describing the interface (if any) that represent tetherable
          Wifi interfaces.  If the device doesn't want to support tethering over Wifi this
-         should be empty.  An example would be "softap.*" -->
+         should be empty.  An example would be "softap.*"
     <string-array translatable="false" name="config_tether_wifi_regexs">
       <item>"wlan0"</item>
-    </string-array>
+    </string-array> -->
     <!-- List of regexpressions describing the interface (if any) that represent tetherable
          bluetooth interfaces.  If the device doesn't want to support tethering over bluetooth this
-         should be empty. -->
+         should be empty.
     <string-array translatable="false" name="config_tether_bluetooth_regexs">
       <item>"bt-pan"</item>
-    </string-array>
+    </string-array> -->
 
     <!-- Flag indicating whether we should enable the automatic brightness in Settings.
          config_hardware_automatic_brightness_available is not set, so we will use software implementation -->
     <bool name="config_automatic_brightness_available">true</bool>
 
     <!-- An Array of "[ConnectivityManager connectionType],
-                      [# simultaneous connection types]"  -->
+                      [# simultaneous connection types]"  
     <string-array translatable="false" name="radioAttributes">
         <item>"1,1"</item>
         <item>"7,1"</item>
         <item>"9,1"</item>
-    </string-array>
+    </string-array> -->
 
     <!-- An Array of "[Connection name],[ConnectivityManager.TYPE_xxxx],
          [associated radio-type],[priority],[restoral-timer(ms)],[dependencyMet]  -->
     <!-- the 5th element "resore-time" indicates the number of milliseconds to delay
          before automatically restore the default connection.  Set -1 if the connection
          does not require auto-restore. -->
-    <!-- the 6th element indicates boot-time dependency-met value. -->
+    <!-- the 6th element indicates boot-time dependency-met value.
     <string-array translatable="false" name="networkAttributes">
         <item>"wifi,1,1,1,-1,true"</item>
         <item>"bluetooth,7,7,2,-1,true"</item>
         <item>"ethernet,9,9,2,-1,true"</item>
-    </string-array>
+    </string-array> -->
 
     <!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
          The N entries of this array define N + 1 zones as follows:
@@ -171,8 +171,8 @@
 
     <integer name="config_undockedHdmiRotation">0</integer>
 
-    <!-- This device is not "voice capable"; it's data-only. -->
-    <bool name="config_voice_capable">false</bool>
+    <!-- This device is not "voice capable"; it's data-only.
+    <bool name="config_voice_capable">false</bool> -->

Kindly Let me know if you required any details.
Regards,

Hi @vedantsuthar

Welcome to toradex community.
Support for android on toradex products is currently provided through our partners.We do not have in house support for android.Could you check with our android partner.