LoginSignup
0
0

More than 5 years have passed since last update.

[備忘録]アプリローカルに書いたファイルをダウンロード

Posted at

忘れてすぐググるのでメモ。

genymotionでエミュレータ起動

androidstudioのadbのコンソールで、deviceを調べる

adb devices
List of devices attached
192.168.56.101:5555     device

でてたらよいが、offlineになってたら、

adb kill-server

して、エミュレータ再起動し、

adb start-server

で、

adb devices

で、ID見る。

でダウンロードしたいファイルのパスをしらべ、以下のコマンド

adb -s [deivesで調べたID] pull [DLしたいファイルのフルパス] [落としたい場所]

exp.

pull adb -s 192.168.56.101:5555 pull /storage/emulated/legacy/Android/data/gkgkdrink.com.jspdftest/files/Documents/ttt.pdf /Users/hoge/work/ggg.pdf

hogeさんのworkフォルダにttt.pdfがggg.pdfとしてダウンロードされる(ハズ。。。)

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