[Bugfix][TAT-33][AT]If an apn is added using AT+LEAPNMOD, the new apn cannot be queried after the module is restarted
Change-Id: I9e599648f633c264bfd2145f16a342828fc7a0b3
diff --git a/src/telephonyware/3.0/libvendor-ril/mtk-rilproxy/telephony/apn/RpApnController.cpp b/src/telephonyware/3.0/libvendor-ril/mtk-rilproxy/telephony/apn/RpApnController.cpp
old mode 100644
new mode 100755
index d5475d4..f7e89b1
--- a/src/telephonyware/3.0/libvendor-ril/mtk-rilproxy/telephony/apn/RpApnController.cpp
+++ b/src/telephonyware/3.0/libvendor-ril/mtk-rilproxy/telephony/apn/RpApnController.cpp
@@ -735,21 +735,23 @@
if(strncmp(apn_db_ready, "true", 4) == 0)
{
- if(APNDB_READY == gApnDoneCond_flag){
- apn_destroy();
- }
+ /*lei modify because recover /etc/config/radio_property*/
+ // if(APNDB_READY == gApnDoneCond_flag){
+ // apn_destroy();
+ // }
- if(access(DB_FILE_NAME, R_OK)==0)
- {
- logD(RFX_LOG_TAG," generateApnDB delete file=%s, start", DB_FILE_NAME);
- unlink(DB_FILE_NAME); //how to detele the file.
- while(access(DB_FILE_NAME, R_OK)==0)
- {
- logD(RFX_LOG_TAG," generateApnDB file=%s still exist", DB_FILE_NAME);
- usleep(10);
- }
- logD(RFX_LOG_TAG," generateApnDB delete file=%s, done", DB_FILE_NAME);
- }
+ // if(access(DB_FILE_NAME, R_OK)==0)
+ // {
+ // logD(RFX_LOG_TAG," generateApnDB delete file=%s, start", DB_FILE_NAME);
+ // unlink(DB_FILE_NAME); //how to detele the file.
+ // while(access(DB_FILE_NAME, R_OK)==0)
+ // {
+ // logD(RFX_LOG_TAG," generateApnDB file=%s still exist", DB_FILE_NAME);
+ // usleep(10);
+ // }
+ // logD(RFX_LOG_TAG," generateApnDB delete file=%s, done", DB_FILE_NAME);
+ // }
+ /*lei modify because recover /etc/config/radio_property*/
}
if(APNDB_NOTREADY == gApnDoneCond_flag)