title: How to check database on not rooted android device
body: <p>I am developing an app where i am using sqllite3 database to store values. I have Nexus S and Nexus 7 both are unrooted devices. How can i get the database for my app for debugging purpose.</p>
  
  <p>I have tried 
  (1) I have tried all approach mentioned <a href="http://blog.shvetsov.com/2013/02/access-android-app-data-without-root.html">here</a></p>
  
  <pre><code>adb shell
  run-as app.package.name \
  cp /data/data/package.name/databases/application.sqlite /sdcard/
  exit
  adb pull /sdcard/application.sqlite ~/
  </code></pre>
  
  <p>This says cp not found..</p>
  
  <p>(2) <a href="http://developer.android.com/tools/help/adb.html#sqlite">http://developer.android.com/tools/help/adb.html#sqlite</a></p>
  
  <pre><code>adb -s emulator-5554 shell
  # sqlite3 /data/data/com.example.google.rss.rssexample/databases/rssitems.db
  SQLite version 3.3.12
  Enter ".help" for instructions
  .... enter commands, then quit...
  sqlite&gt; .exit 
  </code></pre>