diepquynh / android_device_samsung_scx30g2-common Goto Github PK
View Code? Open in Web Editor NEWCommon device repository for Samsung devices with Spreadtrum SC7730SE (SC7731 - scx30g2) platform
Common device repository for Samsung devices with Spreadtrum SC7730SE (SC7731 - scx30g2) platform
Hello again,
I'm trying to build cm 13.0 for kanas (core 2, SM-G355H) using this source as a reference.
First of all thank you if you decide to read this.
How do you make the ril work without failing? The ril works on dual sim but later on, the phone will reboot. From the last_kmsg file, it is hinted that modemd is responsible:
<0>[ 76.533472] [2: modemd: 241]
<0>[ 76.533541] [2: modemd: 241] [c2] sc8830_machine_restart (h, (null))
Then I tried compiling modemd from source that does not reboot (like the one I'm using) or trigger a kernel panic (like the one from stock). I got these messages from main buffer of logcat.
07-02 15:48:25.204 3182 3205 D : RIL_onMultiClientUnsolicitedResponse:
07-02 15:48:25.204 3182 3205 E : unsupported multiclient unsolicited response code 1009
07-02 15:48:25.481 213 221 D MODEMD : buf=W Modem Assert in file PS/layer1/wlayer1/drv/rfic/sr3130/src/drv_rf_nv_sr3130_calibration_wcdma.c at line 2666 exp=PS Assert! info=[]W Modem Assert in file PS/layer1/wlayer1/drv/rfic/sr3130/src/drv_rf_nv_sr3130_calibration_wcdma.c at line 2666 exp=PS Asser
07-02 15:48:25.485 213 221 D MODEMD : modem assert happen
07-02 15:48:25.485 213 221 E MODEMD : Info all the sock clients that modem is assert/hangup
07-02 15:48:25.485 213 221 E MODEMD : client_fd[0]=6
07-02 15:48:25.486 213 221 E MODEMD : write 256 bytes to client_fd[0]:6
07-02 15:48:25.486 213 221 E MODEMD : client_fd[1]=-1
07-02 15:48:25.486 213 221 E MODEMD : client_fd[2]=-1
07-02 15:48:25.486 213 221 E MODEMD : client_fd[3]=-1
07-02 15:48:25.486 213 221 E MODEMD : client_fd[4]=-1
07-02 15:48:25.486 213 221 E MODEMD : client_fd[5]=-1
07-02 15:48:25.486 213 221 E MODEMD : client_fd[6]=-1
07-02 15:48:25.486 213 221 E MODEMD : client_fd[7]=-1
07-02 15:48:25.486 213 221 E MODEMD : client_fd[8]=-1
07-02 15:48:25.486 213 221 E MODEMD : client_fd[9]=-1
07-02 15:48:25.486 213 221 D MODEMD : modem reset is not enabled , will not reset
07-02 15:48:25.486 213 221 D MODEMD : detect_sipc_modem: wait for modem assert/hangup event ...
07-02 15:48:25.486 213 221 D MODEMD : buf=t! info=[]
07-02 15:48:25.486 213 221 D MODEMD : detect_sipc_modem: wait for modem assert/hangup event ...
07-02 15:48:25.489 229 697 D audio_hw_primary: modem_monitor: W Modem Assert in file PS/layer1/wlayer1/drv/rfic/sr3130/src/drv_rf_nv_sr3130_calibration_wcdma.c at line 2666 exp=PS Assert! info=[]W Modem Assert in file PS/layer1/wlayer1/drv/rfic/sr3130/src/drv_rf_nv_sr3130_calibration_wcdma.c at line 2666 exp=PS Asser
07-02 15:48:25.490 229 697 D audio_hw_primary: modem asserted1 W Modem Assert in file PS/layer1/wlayer1/drv/rfic/sr3130/src/drv_rf_nv_sr3130_calibration_wcdma.c at line 2666 exp=PS Assert! info=[]W Modem Assert in file PS/layer1/wlayer1/drv/rfic/sr3130/src/drv_rf_nv_sr3130_calibration_wcdma.c at line 2666 exp=PS Asser
and radio buffer:
07-02 15:48:22.645 3184 3184 D DefaultPhoneNotifier: notifySignalStrength: mRegistry=com.android.internal.telephony.ITelephonyRegistry$Stub$Proxy@71b8a43 ss=SignalStrength: 17 99 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 2147483647 gsm|lte sender=Handler (com.android.internal.telephony.gsm.GSMPhone) {45c6653}
07-02 15:48:23.921 3182 3205 D use-Rlog/RLOG-AT: [w] Channel0: AT< +CSQ: 15,99
07-02 15:48:23.922 3182 3205 D use-Rlog/RLOG-AT: [w] Channel0: AT< +CSQ: 15,99
07-02 15:48:23.922 3182 3205 D use-Rlog/RLOG-AT: [w] Channel0: AT< +SPSCSQ: 15,99,1
07-02 15:48:23.922 3182 3205 D use-Rlog/RLOG-RILC: [w] [UNSL]< UNSOL_SIGNAL_STRENGTH {[signalStrength=14,bitErrorRate=99, CDMA_SS.dbm=-1,CDMA_SSecio=-1, EVDO_SS.dbm=-1,EVDO_SS.ecio=-1, EVDO_SS.signalNoiseRatio=-1, LTE_SS.signalStrength=99,LTE_SS.rsrp=2147483647,LTE_SS.rsrq=2147483647, LTE_SS.rssnr=2147483647,LTE_SS.cqi=2147483647]}
07-02 15:48:23.923 3184 3184 D DefaultPhoneNotifier: notifySignalStrength: mRegistry=com.android.internal.telephony.ITelephonyRegistry$Stub$Proxy@71b8a43 ss=SignalStrength: 17 99 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 2147483647 gsm|lte sender=Handler (com.android.internal.telephony.gsm.GSMPhone) {45c6653}
07-02 15:48:25.204 3182 3205 D use-Rlog/RLOG-AT: [w] Channel0: AT< +CSQ: 15,99
07-02 15:48:25.204 3182 3205 D use-Rlog/RLOG-AT: [w] Channel0: AT< +CSQ: 15,99
07-02 15:48:25.204 3182 3205 D use-Rlog/RLOG-AT: [w] Channel0: AT< +SPSCSQ: 15,99,1
07-02 15:48:25.205 3182 3205 D use-Rlog/RLOG-RILC: [w] [UNSL]< UNSOL_SIGNAL_STRENGTH {[signalStrength=14,bitErrorRate=99, CDMA_SS.dbm=-1,CDMA_SSecio=-1, EVDO_SS.dbm=-1,EVDO_SS.ecio=-1, EVDO_SS.signalNoiseRatio=-1, LTE_SS.signalStrength=99,LTE_SS.rsrp=2147483647,LTE_SS.rsrq=2147483647, LTE_SS.rssnr=2147483647,LTE_SS.cqi=2147483647]}
07-02 15:48:25.206 3184 3184 D DefaultPhoneNotifier: notifySignalStrength: mRegistry=com.android.internal.telephony.ITelephonyRegistry$Stub$Proxy@71b8a43 ss=SignalStrength: 17 99 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 2147483647 gsm|lte sender=Handler (com.android.internal.telephony.gsm.GSMPhone) {45c6653}
07-02 15:48:31.940 3184 4973 D SubscriptionController: [getActiveSubIdList] simInfoSet=[0=1, 1=2]
07-02 15:48:31.941 3184 4973 D SubscriptionController: [getActiveSubIdList] X subIdArr.length=2
07-02 15:48:31.954 3184 3196 D SubscriptionController: [getActiveSubIdList] simInfoSet=[0=1, 1=2]
07-02 15:48:31.954 3184 3196 D SubscriptionController: [getActiveSubIdList] X subIdArr.length=2
07-02 15:48:31.964 3184 4974 D SubscriptionController: [getActiveSubIdList] simInfoSet=[0=1, 1=2]
07-02 15:48:31.965 3184 4974 D SubscriptionController: [getActiveSubIdList] X subIdArr.length=2
07-02 15:48:31.969 3184 3369 D SubscriptionController: [getActiveSubIdList] simInfoSet=[0=1, 1=2]
07-02 15:48:31.969 3184 3369 D SubscriptionController: [getActiveSubIdList] X subIdArr.length=2
07-02 15:49:35.943 3184 4974 D SubscriptionController: [getActiveSubIdList] simInfoSet=[0=1, 1=2]
07-02 15:49:35.944 3184 4974 D SubscriptionController: [getActiveSubIdList] X subIdArr.length=2
07-02 15:49:35.954 3184 4973 D SubscriptionController: [getActiveSubIdList] simInfoSet=[0=1, 1=2]
07-02 15:49:35.954 3184 4973 D SubscriptionController: [getActiveSubIdList] X subIdArr.length=2
07-02 15:49:35.966 3184 3196 D SubscriptionController: [getActiveSubIdList] simInfoSet=[0=1, 1=2]
07-02 15:49:35.966 3184 3196 D SubscriptionController: [getActiveSubIdList] X subIdArr.length=2
Also I'm curious about these two lines in build.prop/system.prop (which I copied from stock):
persist.sys.sprd.modemreset=0
persist.sys.sprd.wcnreset=1
No Idea what it is or what it does.
P.S.
I tried getting the dmesg log but it is always spammed by PM, cpufreq_scx35, "BUG: using smp_processor_id() in preem", and register dumps.
I think I was wrong about RILJ being the culprit but right now I have a weird feeling that it's the NVRAM's fault.
In cm 14.1, setting WITH_DEXPREOPT to true, would create odex files. The device would then boot up normally. After a short while the system_server process crashes causing a soft reboot. It goes on and on.
Coincidentally. I found a thread in xda. Which is, I'm amazed though, the exact error message I'm having:
pid: 13389, tid: 14235, name: Thread-11 >>> system_server <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x78
And the same symptoms and trigger too.
Any insights? Sorry for the delay, I was supposed to post this issue this weeks before testing a possible fix.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.