OSDN Git Service

Change directory where apns-conf.xml is stored
authorNiklas Lindgren <niklas.lindgren@sony.com>
Fri, 18 May 2018 12:48:43 +0000 (14:48 +0200)
committerJordan Liu <jminjie@google.com>
Mon, 21 May 2018 19:08:20 +0000 (12:08 -0700)
commit633d129975a1a4780f0a13e183192bfe09cb80db
treeb7690fa2b5d76f1db691c9386b3247c12666adc6
parent44aeaafc34523ae7d60a8abe017276de6842d80a
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
services/core/java/com/android/server/updates/ApnDbInstallReceiver.java