title: How to programatically get WhatsApp messages from local database on a rooted device?
body: <p>I have a rooted device and I would like my app to read WhatsApp IMs from local database. I know there are a couple of similar questions out there but I couldn't find a working example.</p>
  
  <p>When I manually go to internal storage/WhatsApp/Databases I can see there are a couple of encrypted databases in there:</p>
  
  <pre><code>msgstore.db.crypt12
  </code></pre>
  
  <p>Can anyone please provide me with a working example?</p>
  
  <p>Note: I don't want to use AccessibilityService/ NotificationsListenerService to read the messages and my device is rooted.</p>