Alps\frameworks\base\services\java\com\android\server\connectivityservice.java
Add the following statement at the beginning of the following 2 functions:
Startusingnetworkfeature ()
Startusingnetworkfeaturegemini ()
int currentdataconnectionsimid =-1;
if (featureoption.mtk_gemini_enhancement = = True) {
Long Currentdataconnectionmultisimid = Settings.System.getLong (Mcontext.getcontentresolver (), Settings.System.GPRS _connection_sim_setting, Settings.System.DEFAULT_SIM_NOT_SET);
Currentdataconnectionsimid = Siminfo.getslotbyid (Mcontext, Currentdataconnectionmultisimid);
}else{
Currentdataconnectionsimid = Settings.System.getInt (Mcontext.getcontentresolver (), gprs_connection_setting, GPRS_ Connection_setting_default)-1;
}
if (Currentdataconnectionsimid < 0) {
return phone.apn_request_failed;
}
How to get the MMS out of the way when the Android data connection is off