Android updates the APN list. After OTA is upgraded, it takes effect immediately after it is started.

Source: Internet
Author: User

Android updates the APN list. After OTA is upgraded, it takes effect immediately after it is started.
The update of the APN list is valid only after the factory settings are restored after the OTA update. The update takes effect immediately after the upgrade.
The OTA update includes three regions: boot, recovery, system,
The APN is a DATA domain and OTA update is not involved. Therefore, the update is valid only after reset.


Therefore, you need to modify the script alps \ build \ tools \ releasetools \ ota_from_target_files,
In
Script. DeleteFiles ([I [1] for I in to_create])
Script. MakeSymlinks (to_create)
Then add the following command:
Script. Mount ("/data ")
Script. DeleteFiles (["/data/com. android. providers. telephony/databases/telephony. db ",
"/Data/com. android. providers. telephony/shared_prefs/load-apn.xml"])

The purpose of doing so is after the upgrade, boot and then re-write the apn information in the apns-conf.xml into the database, to achieve the purpose of updating.

Related Article

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.