0

Can I use SQLite to find the telephony database, telephony.db? What tables are stored in this database?

Tried researching in library books, but can't find the list.

Andrew T.
  • 15,988
  • 10
  • 74
  • 123

1 Answers1

1

The file telephony.db is located in the path /data/user_de/0/com.android.providers.telephony/databases/telephony.db.

Note that this path requires a root permissions (thus a rooted device).

Once you have downloaded the database you can view the content and the database structures (tables, columns, ...) by any SQLite database viewer.

On a rooted device you can access telephony.db via file explorer app with root support, or via adb shell+ su. adb pull will not work unless you are running an insecure adb versions which allows adb root.

On older Android devices (Android 11 and older) you should be able to get telephony.db via adb backup com.android.providers.telephony and then extract the created backup.ab using Android Backup Extractor, a Java based command-line tool.

Robert
  • 20,025
  • 6
  • 47
  • 66