HTC的设备

广告走开在 S-ON 的设备上不能正常运行。很多HTC设备都有这个“功能”,它会阻止广告走开写 hosts 文件。

S-ON/S-OFF是什么?

S-OFF 意思是设备的 NAND 分区是解锁的,并且可写入。HTC 设备默认的是 S-ON ,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.

解决方法

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.
  3. In clockwork recovery volume down to "partitions menu" and hit the track pad to select
  4. Select mount /system, mount /sdcard and mount /data.
  5. Plug in your usb cord and open a command line on your pc.
  6. Enter adb shell and type
    ln -s /data/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/data/hosts in AdAway's preferences.
  8. AdAway should work now.