3

I'm creating a computer system for telemarketing. I'm using adb commands to dial numbers Link Is it possible to get last dialed number and call duration via adb? If it is, how?

1
  • Did you ever figure this out ? in my case, the android isn't rooted, so accessing /data/data/com.android.providers.contacts isn't possible ( permission denied ) Commented Jul 13, 2023 at 8:21

2 Answers 2

1

I thought I answered it long time ago. You do it like that

c:\adb\adb.exe shell sqlite3 /data/data/com.android.providers.contacts/databases/contacts2.db "SELECT * FROM calls order by _id desc limit 1;" 

But it may be different in different android versions. As far as I remember worked on KitKat

1
  • Just note, that sqlite3 creates a database with the same name incase contacts2.db is not found, so I would advise first to run a command to make sure it exists Commented Jul 13, 2023 at 8:22
1

Maybe you just need to pull

/data/data/com.android.providers.telephony/databases/telephony.db 

as it contains all the call logs, and then filter through?

Something like:

cp data/data/com.android.providers.telephony/databases/telephony.db /sdcard/MyTelephoneDatabase.db 
2
  • 1
    ...will try it tomorrow and confirm if it works or not PS this is sqlite database? Commented Jan 14, 2014 at 17:43
  • Yes - This is a sqlite database :) Commented Jan 14, 2014 at 18:51

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.