If you app is in debug mode, you can do this: adb -d shell "run-as *<YOUR PACKAGE NAME>* cat /data/data/*<YOUR PACKAGE NAME>*/databases/*<YOUR DATABASE FILE>* |cat > /sdcard/*<YOUR DATABASE FILE>*.db"
Now you can get your database from the sdcard. if Someone want, i build a script for linux and mac, to make this command more friendly/ 2016-07-14 19:38 GMT-03:00 Gonzalo Cimma <[email protected]>: > Hi, I make app and use SQLite db, but my phone I can't root, for that I > can see the db, and need every time update the db, I working in Visual > Studio, Android Studio, how can update the db, maybe if send db to sdcard > in the phone and the app have option for update the database, I need help > with this, thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/android-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/android-developers/6041e3a8-4903-4cc5-b838-8f3109a22346%40googlegroups.com > <https://groups.google.com/d/msgid/android-developers/6041e3a8-4903-4cc5-b838-8f3109a22346%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/CAG4tsG4cdLhwuhMrkXoC7Sdgkv8Zx2OBndO19pcBFO64zX56HQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

