How to get the MMS out of the way when the Android data connection is off

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.