Well, finally found the bug(s) that were causing the RIL to crash and fixed them. No more crashes!. Also found that the EM770W firmware has a bug that sometimes corrupts the audio voice stream. So, i implemented a workaround that tries to fix those audio segments..
Everything should be working. Due to the voice stream bug of the huawei modem firmware, sometimes it does not sound as clean as it should..
will post test reports soon. please note that on compiling I am seeing (just a fyi) ---
No private recovery resources for TARGET_DEVICE shuttle
target thumb C: libhuaweigeneric-ril <= device/nvidia/shuttle/huawei-generic/agc.c
target thumb C++: libhuaweigeneric-ril <= device/nvidia/shuttle/huawei-generic/audiochannel.cpp
target thumb C: libhuaweigeneric-ril <= device/nvidia/shuttle/huawei-generic/audioqueue.c
target thumb C: libhuaweigeneric-ril <= device/nvidia/shuttle/huawei-generic/echocancel.c
target thumb C: libhuaweigeneric-ril <= device/nvidia/shuttle/huawei-generic/huaweigeneric-ril.c
device/nvidia/shuttle/huawei-generic/audiochannel.cpp: In function 'void* modemAudioIOThread(void*)':
device/nvidia/shuttle/huawei-generic/audiochannel.cpp:121:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/nvidia/shuttle/huawei-generic/huaweigeneric-ril.c: In function 'decodeUSSD':
device/nvidia/shuttle/huawei-generic/huaweigeneric-ril.c:5921:2: warning: pointer targets in return differ in signedness [-Wpointer-sign]
device/nvidia/shuttle/huawei-generic/huaweigeneric-ril.c: In function 'requestSendUSSD':
device/nvidia/shuttle/huawei-generic/huaweigeneric-ril.c:6243:2: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
bionic/libc/include/string.h:52:15: note: expected 'char const *' but argument is of type 'cbytes_t'
target SharedLib: libhuaweigeneric-ril (out/target/product/shuttle/obj/SHARED_LIBRARIES/libhuaweigeneric-ril_intermediates/LINKED/libhuaweigeneric-ril.so)
target Symbolic: libhuaweigeneric-ril (out/target/product/shuttle/symbols/system/lib/libhuaweigeneric-ril.so)
target Strip: libhuaweigeneric-ril (out/target/product/shuttle/obj/lib/libhuaweigeneric-ril.so)
Difficult to be completely sure but this seems to be better but not by a big margin --
1) The call from tablet to phone did engage for longer but ended on its own in about 5-7 seconds
2) On the call made from phone to tablet: -
- The call takes a while to kick in after one accepts the call
- There are a lot of crackling noise/sounds
- The latency seems to have improved but the voice-sound is still lagging
- The voice on call coming off from the tablet speakers is faint. On the wired headphone is a bit better but with more 'bass' than expected needs more 'treble' or a somewhat higher pitch
- USSD is fast and you seem to have removed the @@@ from the response, so is neat.
All in all seems better than last one, but do not have a yard stick so I will make one.
If the previous one was 1/5 :: this one is 1.5/5. Maybe I am a little generous with the rating. ;-)
Someone else might get better results. Do you recommend I post the *.so files as requested by Arja above. Could you tell me which files should be posted that would help him run tests that will be useful to us/you.