简体   繁体   中英

Android: Read APN using ADB shell

According to this post , manually-entered APNs are contained here:

/data/data/com.android.settings/shared_prefs/com.android.settings_preferences.x­ml

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;"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM