目前合入展锐ril库,大概率性写入节点失败。展锐反馈为权限问题,请问下面的权限修改是否合理?除了root权限外,还可能涉及哪些权限问题?

 

部分报错log如下:

./test.001.19700101-080447:28847:01-01 08:04:54.770   660   700 E C02500/RIL: Connect to modemd socket success!
./test.001.19700101-080447:28859:01-01 08:04:54.775   660   700 E C02500/RIL: Modem Alive
./test.001.19700101-080447:28911:01-01 08:04:54.785   660   702 E C02500/HDF_LOG_TAG: get property [ro.modem.l.tty : /dev/sdiomux]
./test.001.19700101-080447:29817:01-01 08:04:55.032   660   700 E C02500/RIL: Modem Alive,led blue, do handshake first
./test.001.19700101-080447:29819:01-01 08:04:55.033   660   700 E C02500/HDF_LOG_TAG: get property [ro.vendor.modem.tty : /dev/stty_lte]
./test.001.19700101-080447:29820:01-01 08:04:55.033   660   700 E C02500/RIL: open stty dev: /dev/stty_lte1
  to /dev/stty_lte11-080447:30427:01-01 08:04:55.144   660   700 E C02500/RIL: write AT+SMMSWAP=0
./test.001.19700101-080447:33560:01-01 08:04:56.103   660   711 D C01f08/Hril: [TaskSchedule-(hril_manager.cpp:100)] hrilSim enter
./test.001.19700101-080447:33561:01-01 08:04:56.103   660   711 D C01f08/Hril: [CreateHRilRequest-(hril_manager.cpp:72)] CreateHRilRequest create requestList, requestId=201
./test.001.19700101-080447:33562:01-01 08:04:56.103   660   711 I C01f08/RilVendor: [ReqGetSimStatus-(at_sim.c:29)] ReqGetSimStatus  start....
./test.001.19700101-080447:33563:01-01 08:04:56.103   660   711 E C02500/RIL: onRequest request = 1
./test.001.19700101-080447:33564:01-01 08:04:56.103   660   711 E C02500/RIL: onRequest: GET_SIM_STATUS radioState=1
./test.001.19700101-080447:33565:01-01 08:04:56.103   660   711 E C02500/RIL-AT: get s_sms_edit_mode = 0
./test.001.19700101-080447:33566:01-01 08:04:56.103   660   711 E C02500/RIL: !s_channelOpen

./test.001.19700101-080447:155787:01-01 08:08:30.396   660   700 E C02500/RIL: select timeout
./test.001.19700101-080447:155788:01-01 08:08:31.109   660   711 E C02500/RIL: !s_channelOpen
./test.001.19700101-080447:155789:01-01 08:08:31.397   660   700 E C02500/RIL: select timeout
./test.001.19700101-080447:155790:01-01 08:08:31.397   660   700 E C02500/RIL: write error length = 13  ret = -1
 to /dev/stty_lte11-080447:155791:01-01 08:08:31.397   660   700 E C02500/RIL: Failed to write AT+SMMSWAP=0
./test.001.19700101-080447:155792:01-01 08:08:31.397   660   700 E C02500/RIL: Failed to handshake with modem

 

目前涉及权限的修改:

 

根据文章SL8541E modem OpenHarmony 适配介绍---蜂窝上网_kgduwu-Laval社区 (csdn.net)

base/startup/init/services/etc/passwd中riladapter_host权限已修改:

riladapter_host:x:0:3032:::/bin/false

 

modem.para.dac指定系统参数persist.sys.radio.vendorlib.path的操作权限,已修改:

persist.sys.radio.vendorlib.path=riladapter_host:riladapter_host:0777

 

/dev/stty_lte*全部节点已在init时权限设为777

crwxrwxrwx 1 root root 243,   0 1970-01-01 08:00 /dev/stty_lte0
crwxrwxrwx 1 root root 243,   1 1970-01-01 08:00 /dev/stty_lte1
crwxrwxrwx 1 root root 243,  10 1970-01-01 08:00 /dev/stty_lte10
crwxrwxrwx 1 root root 243,  11 1970-01-01 08:00 /dev/stty_lte11
crwxrwxrwx 1 root root 243,  12 1970-01-01 08:00 /dev/stty_lte12
crwxrwxrwx 1 root root 243,  13 1970-01-01 08:00 /dev/stty_lte13
crwxrwxrwx 1 root root 243,  14 1970-01-01 08:00 /dev/stty_lte14
crwxrwxrwx 1 root root 243,  15 1970-01-01 08:00 /dev/stty_lte15
crwxrwxrwx 1 root root 243,  16 1970-01-01 08:00 /dev/stty_lte16
crwxrwxrwx 1 root root 243,  17 1970-01-01 08:00 /dev/stty_lte17
crwxrwxrwx 1 root root 243,  18 1970-01-01 08:00 /dev/stty_lte18
crwxrwxrwx 1 root root 243,  19 1970-01-01 08:00 /dev/stty_lte19
crwxrwxrwx 1 root root 243,   2 1970-01-01 08:00 /dev/stty_lte2
crwxrwxrwx 1 root root 243,  20 1970-01-01 08:00 /dev/stty_lte20
crwxrwxrwx 1 root root 243,  21 1970-01-01 08:00 /dev/stty_lte21
crwxrwxrwx 1 root root 243,  22 1970-01-01 08:00 /dev/stty_lte22
crwxrwxrwx 1 root root 243,  23 1970-01-01 08:00 /dev/stty_lte23
crwxrwxrwx 1 root root 243,  24 1970-01-01 08:00 /dev/stty_lte24
crwxrwxrwx 1 root root 243,  25 1970-01-01 08:00 /dev/stty_lte25
crwxrwxrwx 1 root root 243,  26 1970-01-01 08:00 /dev/stty_lte26
crwxrwxrwx 1 root root 243,  27 1970-01-01 08:00 /dev/stty_lte27
crwxrwxrwx 1 root root 243,  28 1970-01-01 08:00 /dev/stty_lte28
crwxrwxrwx 1 root root 243,  29 1970-01-01 08:00 /dev/stty_lte29
crwxrwxrwx 1 root root 243,   3 1970-01-01 08:00 /dev/stty_lte3
crwxrwxrwx 1 root root 243,  30 1970-01-01 08:00 /dev/stty_lte30
crwxrwxrwx 1 root root 243,  31 1970-01-01 08:00 /dev/stty_lte31
crwxrwxrwx 1 root root 243,   4 1970-01-01 08:00 /dev/stty_lte4
crwxrwxrwx 1 root root 243,   5 1970-01-01 08:00 /dev/stty_lte5
crwxrwxrwx 1 root root 243,   6 1970-01-01 08:00 /dev/stty_lte6
crwxrwxrwx 1 root root 243,   7 1970-01-01 08:00 /dev/stty_lte7
crwxrwxrwx 1 root root 243,   8 1970-01-01 08:00 /dev/stty_lte8
crwxrwxrwx 1 root root 243,   9 1970-01-01 08:00 /dev/stty_lte9
 

Logo

社区规范:仅讨论OpenHarmony相关问题。

更多推荐