pathを通す
Android Studio > File > Other Settings > Default Project Structure... で確認する。
.zshenv
export PATH="/.../Android/sdk/platform-tools:$PATH"
adbコマンド
そのままじゃ権限がないので、pullできるところにdefault.realmを持ってきたい。
$ adb devices // 接続中デバイスの確認
$ adb shell
$ adb run-as <com.example.appname> // パッケージ名
$ cp -p files/default.realm /sdcard/. // とりあえずsdcardディレクトリにコピー
$ exit
$ exit
$ adb pull /sdcard/default.realm . // Desktopなど任意の場所で
これでRealmStudioで開ける。