Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RIL isn't working even using prebuilt kernel #1

Open
jmpfbmx opened this issue Apr 18, 2021 · 4 comments
Open

RIL isn't working even using prebuilt kernel #1

jmpfbmx opened this issue Apr 18, 2021 · 4 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@jmpfbmx
Copy link
Member

jmpfbmx commented Apr 18, 2021

The SIM seems to be recognized, but can't be unlocked, it seems that modem is having some issues or something, blobs are from latest Stock ROM, RIL still doesn't work at AOSP based ROMs.
@DerTeufel @dragonpt @fire855 @danielhk @488315 @jerpelea
LOGs: https://gist.github.com/jmpfbmx/82d104d4d3ade4e3aed0c72aa21f65cd

@jmpfbmx jmpfbmx changed the title label:"bug" RIL isn't working even using prebuilt kernel 🐛 RIL isn't working even using prebuilt kernel Apr 18, 2021
@jmpfbmx jmpfbmx changed the title 🐛 RIL isn't working even using prebuilt kernel RIL isn't working even using prebuilt kernel Apr 18, 2021
@jmpfbmx jmpfbmx added bug Something isn't working help wanted Extra attention is needed labels Apr 18, 2021
@jmpfbmx jmpfbmx self-assigned this Apr 18, 2021
@ibilux
Copy link

ibilux commented Apr 20, 2021

RIL is sending and receiving AT commands in logcat.
Run this in adb shell and post it here:
getprop | grep -e ril -e radio

@jmpfbmx
Copy link
Member Author

jmpfbmx commented Apr 20, 2021

Hi @ibilux.
Here you are:
[cdma.ril.ecclist]: [] [cdma.ril.ecclist1]: [] [fmradio.driver.enable]: [1] [gsm.ril.ct3g]: [0] [gsm.ril.ct3g.2]: [0] [gsm.ril.eboot]: [-1] [gsm.ril.init]: [1] [gsm.ril.uicctype]: [USIM] [gsm.ril.uicctype.2]: [USIM] [gsm.sim.ril.mcc.mnc]: [sim_absent] [gsm.sim.ril.mcc.mnc.2]: [sim_absent] [gsm.sim.ril.phbready]: [] [gsm.sim.ril.phbready.2]: [] [gsm.version.ril-impl]: [android reference-ril 1.0] [init.svc.ril-daemon]: [stopped] [init.svc.ril-daemon-mtk]: [running] [init.svc.ril-proxy]: [running] [persist.radio.airplane.mode.on]: [false] [persist.radio.cfu.querytype]: [0] [persist.radio.default.sim]: [0] [persist.radio.fd.counter]: [7] [persist.radio.fd.off.counter]: [5] [persist.radio.fd.off.r8.counter]: [5] [persist.radio.fd.r8.counter]: [7] [persist.radio.ia]: [] [persist.radio.ia-apn]: [] [persist.radio.mobile.data]: [0,0] [persist.radio.mtk_dsbp_support]: [1] [persist.radio.mtk_ps3_rat]: [G] [persist.radio.multisim.config]: [dsds] [persist.radio.reset_on_switch]: [false] [persist.radio.simswitch]: [1] [persist.ro.ril.sms_sync_sending]: [1] [ril.active.md]: [5] [ril.cdma.card.type.1]: [] [ril.cdma.card.type.2]: [] [ril.cdma.switching]: [0] [ril.data.mal]: [0] [ril.data.need.follow.on]: [0] [ril.ecclist]: [000,08,110,118,119,112,911,999] [ril.ecclist1]: [000,08,110,118,119,112,911,999] [ril.external.md]: [0] [ril.fd.mode]: [1] [ril.first.md]: [1] [ril.flightmode.poweroffMD]: [0] [ril.ia.iccid]: [] [ril.iccid.sim1]: [N/A] [ril.iccid.sim2]: [N/A] [ril.ipo.radiooff]: [0] [ril.ipo.radiooff.2]: [0] [ril.mal.socket]: [rilproxy-mal] [ril.mux.ee.md1]: [0] [ril.mux.report.case]: [0] [ril.phone1.mapped.md]: [MD1] [ril.pid.1]: [908] [ril.radio.ia]: [] [ril.radio.ia-apn]: [] [ril.radiooff.poweroffMD]: [0] [ril.read.imsi]: [1] [ril.rilproxy]: [1] [ril.specific.sm_cause]: [1] [ril.telephony.mode]: [0] [ril.uim.subscriberid.1]: [] [ril.uim.subscriberid.2]: [] [rild.libargs]: [-d /dev/ttyC0] [rild.libpath]: [mtk-ril.so] [rild.mark_switchuser]: [0] [ro.mtk_rild_read_imsi]: [1] [ro.telephony.ril.config]: [fakeiccid] [ro.telephony.ril_class]: [MT6735]
We found that the prob can be bcuz some sony values are missing and they didn't gave us a folder where resides some TA proprietary SONY things.

strace_ta_ccci_service

strace_taimport

strace_ta_sync_md

strace_updatemiscta

strace_update_ta_info

As u can see updatemiscta fails bcuz it is searching for some missing values, at this strings we can see that is asking for some missing things.
strings_updatemiscta

Here is the logcat with some missing updatemiscta values
xperia_l1_updatemiscta

@ibilux
Copy link

ibilux commented Apr 20, 2021

@jmpfbmx For some reason you are not getting mcc.mnc and iccid values, and in logcat too:
E PhoneInterfaceManager: [PhoneIntfMgr] getIccId: No UICC

  1. Try to reset modem using this script and see (run it as root):
    https://github.com/ibilux/android_device_tree_hermes/blob/crdroid-9.0/mtk/ril/rild/reset-modem.sh

  2. Why to you have two ril daemon services ? this may cause a conflict:
    https://github.com/PineDevelopment/android_device_sony_pine/blob/49196f5b2084d0ad2017be68d6df6f5428fe6e9b/rootdir/init.modem.rc#L51
    https://github.com/PineDevelopment/android_device_sony_pine/blob/49196f5b2084d0ad2017be68d6df6f5428fe6e9b/configs/etc/init/rild.rc#L1

  3. If all of the above didn't work, you will then have to patch the rom for fakeiccid:
    https://github.com/Manish4586/android_device_lava_zaw809/blob/los-14/patches/frameworks_opt_telephony.patch

Try the first one and run this getprop | grep -e ril -e radio in adb shell and post it here.

@jmpfbmx
Copy link
Member Author

jmpfbmx commented Apr 21, 2021

@ibilux
I will try what you said, we have 2 ril daemon services like at stock ROM, idk why there are 2 tho, and will see that of fakeiccid, will try asap the first one and will post the output of getprop | grep -e ril -e radio
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants