0
0

More than 3 years have passed since last update.

AndroidでRealmStudioを使ってdefault.realmの中身を見る

Posted at

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で開ける。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0