Update APN list after the OTA upgrade needs to restore the factory settings APN Update is valid, the customer needs to do the upgrade after the boot is effective.
Because the OTA upgrade is updated with three zones, boot, recovery, System,
The APN is part of the data domain, and OTA upgrades are not involved, so it must be reset before the update is valid.
So, you need to modify the Alps\build\tools\releasetools\ota_from_target_files script,
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/data/com.android.providers.telephony/databases/telephony.db",
"/data/data/com.android.providers.telephony/shared_prefs/load-apn.xml"])
The purpose of this is to upgrade, after the boot and then re-apns-conf.xml APN information into the DB, to achieve the purpose of the update.
Android update APN list when the OTA upgrade is on, it takes effect.