Change directory where apns-conf.xml is stored

When apns are downloaded OTA they are stored directly under data/misc
by system server. Files created there gets assigned with file context
system_data_file which TelephonyProvider cannot read.

In order to make sure that downloaded apns gets a file context TelephonyProvider
can read we create an apns sub directory in init where radio_data_file:s are
created. The data path to where apns-conf is stored is here changed from /data/misc/
to /data/misc/apns/.

This change is aligned with other files that ConfigUpdateInstallReceiver writes.

Test: Trigger Apn update via intent UPDATE_APN_DB
Go to settings/apn-list and verify that newly downloaded are present
Bug: 79948106
Change-Id: I5a9ec262bfbac291cca9fee5accf93eb6c06f253
Merged-In: I5a9ec262bfbac291cca9fee5accf93eb6c06f253
This commit is contained in:
Niklas Lindgren
2018-05-18 14:48:43 +02:00
committed by Jordan Liu
parent 44aeaafc34
commit 633d129975

View File

@@ -29,7 +29,7 @@ public class ApnDbInstallReceiver extends ConfigUpdateInstallReceiver {
"update_db");
public ApnDbInstallReceiver() {
super("/data/misc/", "apns-conf.xml", "metadata/", "version");
super("/data/misc/apns/", "apns-conf.xml", "metadata/", "version");
}
@Override