mttkay / replicant

A REPL for the Android Debug Bridge (ADB)
MIT License
123 stars 9 forks source link

!query command to query databases #34

Open mttkay opened 9 years ago

mttkay commented 9 years ago

I currently have a shell script to quickly query the database:

#!/bin/sh
DEVICE=$1
QUERY=$2
adb $DEVICE shell "echo \"$QUERY\" | sqlite3 /data/data/com.soundcloud.android/databases/SoundCloud"

I would like to have a !query command:

!query SoundCloud
query> select * from Sounds;
...