Friday, August 2, 2013

Cập nhât file host của emulator android


  1. Khởi động máy ảo>
    • emulator -avd NexusS_4.2.2 -partition-size 512
  2. Bật chế độ cho phép thao tác trên phân vùng hệ thống
    • adb -s emulator-5556 remount rw
  3. Lấy file host của máy ảo về máy tính
    • adb -s emulator-5556 pull /etc/hosts
  4. Chỉnh sửa file host
    • 10.0.2.2 localhost
  5. Cập nhật lại file host trên máy ảo
    • adb -s emulator-5556 push hosts /etc/hosts

No comments:

Post a Comment