console:/ # su
console:/ #
console:/ # lsu***
Bus 005 Device 001: ID 1d6b:0002
Bus 001 Device 004: ID 2c7c:0125
Bus 003 Device 001: ID 1d6b:0001
Bus 002 Device 002: ID 0bda:c820
Bus 001 Device 001: ID 1d6b:0002
Bus 006 Device 001: ID 1d6b:0003
Bus 001 Device 002: ID 1a40:0201
Bus 004 Device 001: ID 1d6b:0001
Bus 002 Device 001: ID 1d6b:0002
Bus 001 Device 003: ID 25a7:fa61
其中,ID 2c7c:0125就是我们的无线网卡EC20,如果没有,请检查硬件威廉希尔官方网站
。
2.使用 ls -l dev/ttyUSB* 查看是否有节点和是否有权限(没有节点查驱动添加)
2|console:/ # ls -l dev/ttyUSB*
crw-rw-rw- 1 radio radio 188, 0 2022-01-25 15:43 dev/ttyUSB0
crw-rw-rw- 1 radio radio 188, 1 2022-01-25 15:43 dev/ttyUSB1
crw-rw-rw- 1 radio radio 188, 2 2022-01-25 17:26 dev/ttyUSB2
crw-rw-rw- 1 radio radio 188, 3 2022-01-25 15:43 dev/ttyUSB3
3.使用ls -l dev/cdc-wdm0 检查节点是否注册(查系统有无添加这一段节点代码)
130|console:/ # ls -l dev/cdc-wdm0
crw-rw---- 1 radio radio 180, 176 2022-01-25 15:43 dev/cdc-wdm0
4.getprop | grep ril 查看加载库是否正确
C:UsersXXX>adb root
adb server is out of date. killing...
* daemon started successfully *
restarting adbd as root
C:UsersXXX>adb remount
Using overlayfs for /system
Using overlayfs for /vendor
Using overlayfs for /odm
Using overlayfs for /product
Using overlayfs for /system_ext
Now reboot your device for settings to take effect
remount succeeded
C:UsersXXX>adb push C:UsersXXXDesktoplibrk-ril.so /vendor/lib64/
6499 KB/s (388568 bytes in 0.058s)
[ 44.972959] init: Control message: Processed ctl.interface_start for 'android.hardware.radio@1.1::IRadio/slot1' from pid: 149 (/system/bin/hwservicemanager)
[ 45.975241] init: Control message: Processed ctl.interface_start for 'android.hardware.radio@1.1::IRadio/slot1' from pid: 149 (/system/bin/hwservicemanager)
[ 46.977512] init: Control message: Processed ctl.interface_start for 'android.hardware.radio@1.1::IRadio/slot1' from pid: 149 (/system/bin/hwservicemanager)
console:/ # su
console:/ #
console:/ # lsu***
Bus 005 Device 001: ID 1d6b:0002
Bus 001 Device 004: ID 2c7c:0125
Bus 003 Device 001: ID 1d6b:0001
Bus 002 Device 002: ID 0bda:c820
Bus 001 Device 001: ID 1d6b:0002
Bus 006 Device 001: ID 1d6b:0003
Bus 001 Device 002: ID 1a40:0201
Bus 004 Device 001: ID 1d6b:0001
Bus 002 Device 001: ID 1d6b:0002
Bus 001 Device 003: ID 25a7:fa61
其中,ID 2c7c:0125就是我们的无线网卡EC20,如果没有,请检查硬件威廉希尔官方网站
。
2.使用 ls -l dev/ttyUSB* 查看是否有节点和是否有权限(没有节点查驱动添加)
2|console:/ # ls -l dev/ttyUSB*
crw-rw-rw- 1 radio radio 188, 0 2022-01-25 15:43 dev/ttyUSB0
crw-rw-rw- 1 radio radio 188, 1 2022-01-25 15:43 dev/ttyUSB1
crw-rw-rw- 1 radio radio 188, 2 2022-01-25 17:26 dev/ttyUSB2
crw-rw-rw- 1 radio radio 188, 3 2022-01-25 15:43 dev/ttyUSB3
3.使用ls -l dev/cdc-wdm0 检查节点是否注册(查系统有无添加这一段节点代码)
130|console:/ # ls -l dev/cdc-wdm0
crw-rw---- 1 radio radio 180, 176 2022-01-25 15:43 dev/cdc-wdm0
4.getprop | grep ril 查看加载库是否正确
C:UsersXXX>adb root
adb server is out of date. killing...
* daemon started successfully *
restarting adbd as root
C:UsersXXX>adb remount
Using overlayfs for /system
Using overlayfs for /vendor
Using overlayfs for /odm
Using overlayfs for /product
Using overlayfs for /system_ext
Now reboot your device for settings to take effect
remount succeeded
C:UsersXXX>adb push C:UsersXXXDesktoplibrk-ril.so /vendor/lib64/
6499 KB/s (388568 bytes in 0.058s)
[ 44.972959] init: Control message: Processed ctl.interface_start for 'android.hardware.radio@1.1::IRadio/slot1' from pid: 149 (/system/bin/hwservicemanager)
[ 45.975241] init: Control message: Processed ctl.interface_start for 'android.hardware.radio@1.1::IRadio/slot1' from pid: 149 (/system/bin/hwservicemanager)
[ 46.977512] init: Control message: Processed ctl.interface_start for 'android.hardware.radio@1.1::IRadio/slot1' from pid: 149 (/system/bin/hwservicemanager)