LoginSignup
3
0

More than 5 years have passed since last update.

古いAndroidエミュレータでプロキシ設定する

Posted at

はじめに

Android 4.x でデバッグしたいので実機ではなくエミュレータでサクッと試験しようと思ったらインターネットにつながらなくてはまったので解決方法をメモしておきます。

Android 7.1.1 (25) のエミュレータだとサクッとネットにつながったんだけど。

環境

  • Windows 10 Pro
  • Android Studio 2.3.3

  • emulator: Android 4.3

手順

主に スマホアプリのHTTPS通信をBurp Suiteで確認 | セキュリティ | DoRuby の手順通り。

  • Windowsマシンにプロキシを立てる。
    • Burp Suite Free Edition 1.7.23 をダウンロードし、起動
    • Proxy -> Options で Proxy Listeners -> Add -> Bind to port: 8080, Bind to address: All で。
    • image.png
  • エミュレータを作って起動する
    • image.png
  • プロキシを設定する
    • Settings -> WIRELESS & NETWORKS -> More...
    • Mobile networkds -> Access Point Names -> T-Mobile US
    • Proxy: 10.0.2.2, Port: 8080
    • image.png
  • 証明書インストール
  • アプリからネット接続してみる
    • 無事通信できた。↓はブラウザ経由でTwitterのログイン画面を表示できたところ。
    • image.png
3
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
3
0