---
title: "Genymotion 修改hosts 文件"
author: "lydawen"
date: "2014-07-03T17:50:04Z"
tags: []
categories: ["开源软件"]
slug: "genymotion-hosts"
draft: false
lastmod: "2014-07-03T17:50:04Z"
id: 2088045
url: "https://lydawen.iteye.com/blog/2088045"
---

命令在Genymotion安装目录下：Genymobile\\Genymotion\\tools

先启动模拟器，执行:adb devices 查看连接的设备，如有则先改权限

 

```
adb shell
$ su
# mount -o remount,rw /system
```

 修改权限后，再执行

```
adb push  d:\hosts /system/etc/hosts
```

 即可