• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Pushing contacts2.db and telephony.db back onto the phone

Kalnor

Lurker
Hi

I've had a problem of being stuck in a bootloop with my Desire. Fortunately I was able to retrieve my messages, contacts and call logs by pulling them by adb shell. I wiped all data and flashed the same ROM. Then I tried to push the files back into the same directories. The mmssms.db pushed in fine and the messages are all restored but contacts2.db and telephony.db don't seem to take effect.

I have tried opening them with SQliteman to make sure that the data is in there and it is so I can't figure out what's going wrong.

The paths I'm using are:

/data/data/com.android.providers.contacts/contacts2.db
/data/data/com.android.providers.telephony/databases/mmssms.db
/data/data/com.android.providers.telephony/databases/telephony.db

so my commands look like this

adb push contacts2.db /data/data/com.android.providers.contacts/contacts2.db

etc.

The files on my computer have the same name as the files in the local phone directories.

Thanks for your help!
 
Try

adb push contacts2.db /data/data/com.android.providers.contacts/databases/contacts2.db

Then check the settings in the contacts app - mine (default android, not Sense) has a "Display options" setting which controls which "groups" of contacts are displayed, and when I've wiped this is often set so that by default it doesn't display the majority of my contacts.
 
I tried that location and also didn't help.

Why is my /data folder in the root directory empty??? Every time I push the files in there through adb check location and they are there and if I connect again and check then the folder is empty.

Whats the issue with this?
 
Have you tried mounting it?

Or try something else: copy the file to your SD card then use a root capable file manager app to copy it into the right place on the phone.
 
Back
Top Bottom