[Bugfix][API-710]ril service report coredump occasionally
Change-Id: Ia96662cafc9819ddcaa22b241c5e92bc22c03831
diff --git a/framework/lynq-ril-service/src/common.cpp b/framework/lynq-ril-service/src/common.cpp
index bf45112..959cd05 100755
--- a/framework/lynq-ril-service/src/common.cpp
+++ b/framework/lynq-ril-service/src/common.cpp
@@ -970,6 +970,34 @@
return -1;
}
}
+
+#ifdef LED_SUPPORT
+bool ril_get_if_insert_simcard()
+{
+ int slot_id=get_default_sim_voice();
+
+ if(slot_id==0 || slot_id ==1)
+ {
+ if(cur_CardS_Status[slot_id]!=NULL)
+ {
+ return cur_CardS_Status[slot_id]->card_state == RIL_CARDSTATE_PRESENT;
+ }
+
+ }
+ return false;
+}
+
+bool ril_get_if_3gpp_reg_success()
+{
+ int slot_id=get_default_sim_voice();
+
+ if(slot_id==0 || slot_id ==1)
+ {
+ return reg_voice_service_state[slot_id] ==1;
+ }
+ return false;
+}
+#endif
/*hq add for key info output 2022/03/01 begin*/
// void lynq_output_LINFO_all()
// {