When looking at a Pixel 3a device running Android 10 the location is data/user_de/0/com.android.providers.telephony/databases/telephony.db
user_de
is the _d_evice _e_ncryption related user directory, use user
instead if the phone does not support this
Not strictly related to the question about the user provided storage location, but this might be useful for people landing here after a search:
When looking in TelephonyProvider there are 4 different locations with increasing precedence:
- Default APNs: /system/etc/apns-conf.xml
- OEM APNs: /oem/telephony/apns-conf.xml
- OTA Update APNs: /data/misc/apns/apns-conf.xml
- Product APNs: /product/etc/apns-conf.xml
Note: In Android 10 the system partition cannot be mounted read-write. Use a Magisk module to change the APNs or update the APN under /data/misc/apns/apns-conf.xml
. This path is writable after an su
.
The APNs are finally stored in database /data/user_de/0/com.android.providers.telephony/databases/telephony.db
. Like mentioned above be flexible here about the user_de
part.
Also take note that an ApnSourceService
method was introduced in Android 10(?). This is a vendor specific implementation to lookup APNs. This is a not documented service. If this service is active all the XMLs will be ignored. Use a Magisk module to turn off this service if needed.
/etc
is a symlink to/system/etc
. Both files are same.