Skip to content

Instantly share code, notes, and snippets.

View mtsahakis's full-sized avatar

Manos Tsahakis mtsahakis

  • Bishops Stortford, United Kingdom
View GitHub Profile
@mtsahakis
mtsahakis / android_database.sh
Last active August 30, 2019 16:42
This script takes three command line arguments, device id {as read from adb devices -l}, your application's package id {like com.mobile.myapp} and database name as exists inside data/data/{package id}/databases directory of the device or emulator. It then starts sqlitebrowser pointing to the database just pulled from the device.
#!/usr/bin/env bash
# check if a device is supplied as a command line argument
DEVICE_ID=$1
if [[ "$DEVICE_ID" == "" ]]; then
echo "No device id supplied"
exit 1
fi
# check if a package id is supplied as a command line argument