Skip to content

Instantly share code, notes, and snippets.

View nrudenko's full-sized avatar

Mykola Rudenko nrudenko

View GitHub Profile
set app_package=%1
set db_name=%2
set adb_path=%ANDROID_HOME%\platform-tools\adb
set dest_path=%db_name%
set device_dest_path=/mnt/sdcard
:GET_DB
del %dest_path%
@nrudenko
nrudenko / open_db.sh
Last active December 28, 2015 05:18
Script for getting database form device via adb and open in sqlite_client(work with not rooted devices)
#!/bin/sh
# Script for getting database form device via adb and open in sqlite_client(work with not rooted devices)
#
# While you aren't breaking script execution(CTLR+C),
# each closing of sqlite_client will be download and open database again and again.
#
# Note: if you don't have installed sqliteman override sqlite_client variable with your favorite client
#
# Usage: open_db.sh {app_package} {db_name}