前提・実現したいこと
[Android] Android Virtual Device の /etc/hosts を書き換えて、Vagrant Virtual Machine へ接続する | deadwood
やりたいことはこれなんですが、root化すると起動しません。
root化せずにhostsを書き換えるまたは、root化を戻すなどできるやり方をご存知の方いらっしゃいませんか?
- android studio 3.2.1
- pixel2XL android 9.0
$ $HOME/Library/Android/sdk/tools/emulator -list-avds Pixel_2_XL_API_28 $ $HOME/Library/Android/sdk/emulator/emulator -avd Pixel_2_XL_API_28 -writable-system -netdelay none -netspeed full -no-snapshot-load $ adb root && adb remount $ adb shell "echo 10.0.2.2 hogehoge.com >> /system/etc/hosts" $ adb unroot $ adb reboot
発生している問題・エラーメッセージ
エラーメッセージ Emulator: Process finished with exit code 1 Error while waiting for device: The emulator process for AVD Pixel_2_XL_API_28 was killed.
試したこと
Edit hosts file on android studio messed up my emulator - Android Enthusiasts Stack Exchange と起きてることは同じ
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。