According to this post, manually-entered APNs are contained here:
/data/data/com.android.settings/shared_prefs/com.android.settings_preferences.xml
However, this file can't be accessed using adb shell cat
or adb pull
.
Is there any workaround for a non-rooted device?
On non-rooted devices is not possible to read system files.
On rooted devices with more recent Android version, this worked for me:
sqlite3 /data/data/com.android.providers.telephony/databases/telephony.db "select * from carriers;"