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.