Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/data/data/com.android.providers.contacts/databases/contacts2.db
- #location of contacts db
- #/data/data/com.android.providers.telephony/databases/mmssms.db
- #location of sms db
- #select display_name from raw_contacts where contact_id="contact number from mms"
- #in contacts2.db gives display name from id num in mms db
- #try to get the list of contacts from the db through adb
- testing=`adb shell sqlite3 /data/data/com.android.providers.telephony/databases/mmssms.db "select distinct person from sms where person <> ''"`
- i=0
- j=0
- contacts=()
- #gets list of existing threads
- for line in $testing
- do
- let i=i+1
- echo -ne "$i)."
- set contacts["$i"]=$(adb shell sqlite3 /data/data/com.android.providers.contacts/databases/contacts2.db "select display_name from raw_contacts where _id=""$line")
- echo ${contacts["$i"]}
- let j=j+1
- done
- echo ""
- echo "Which number do you want?"
- read -n 1 inputnumber
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement