Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[Q] Acessing Whatsapp Database

$
0
0
I have encountered a very weird error when i attempted to edit the database of whatsapp

I have made an app (Requires Root) which will copy the Whatsapp Database to Storage then it will edit it. After it finishes editing the database it copies it back to Whatsapp Directory(/data/data/com.whatsapp/databases/) . After the database it put back to its original place, i closed Whatsapp and reopened it. On Nexus 5 running Android L it worked but on my Galaxy S2 4.1.2 when i open Whastapp i get a message saying my message history is corrupted (I checked the Database, it isn't corrupted since i was able to open it in Root Explorer). I got rid of the error on my Galaxy S2 By using Titanium Backup (I backed up Whatsapp's Data when it gave me the corrupted message then i pressed restore [I basically DIDN'T Do Anything])

Why Did it work when i backed up a database that whatsapp considered corrupted the restored it?

How can i make it work without having the user to use Titanium Backup?

Thanks a lot For reading my question.

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>