## HTC 设备

AdAway 无法在 S-ON 的设备上起效果。这个“功能”存在于许多 HTC 设备中，且会阻止 AdAway 写入 hosts 文件。

## S-ON/S-OFF 是什么？

S-OFF 表示设备的 NAND 部分已解锁并且可以写入。HTC 设备的默认设置是 S-ON，这意味着您既不能访问系统的某些区域，也不能保证能永久 root 系统。此外，固件的签名检查也是由 S-ON 保证的。

## 我的设备是 S-ON 还是 S-OFF？

Boot into the Boot Menu on your device by holding down volume down button while pressing power and the text on top will show the flag status as either S-OFF or S-ON. A full root generally means S-OFF.
More information can be found on www.addictivetips.com. Additional S-OFF methods since Unrevokable (in link) might interest you, namely: Revolutionary, Revone, Firewater, RumRunner, Moonshine, SunShine…

## 解决方案

Prerequisite: You have to install a working Android SDK with ADB shell on your PC.

1. Boot into the Boot Menu on your device by holding down volume down button while pressing power.
2. Use volume down to select recovery then power to boot it.
3. In clockwork recovery go to "partitions menu".
4. Select mount /system, mount /sdcard and mount /data.
5. 插入USB线并在电脑上打开命令行。
6. Enter adb shell and type `ln -s /data/hosts /system/etc/hosts` (This creates a symbolic link, which allows AdAway to edit the hosts file stored in `/data` while allowing the OS to use the file as if it were stored in `/system`.)
7. Reboot your device and set Target hosts file to /data/hosts in AdAway's preferences.
8. AdAway 现在应该生效了。