有關 HTC 手機

AdAway 在有啟用 S-ON 功能的手機上會無法運作。這個既特別又麻煩的功能存在於很多 HTC 的手機去防止 AdAway 寫入 hosts 檔。

甚麼是 S-ON/S-OFF?

S-OFF means that the NAND portion of the device is unlocked and can be written to. The default setting for HTC devices is S-ON, which means that neither can you access certain areas of the system nor can you guarantee a permanent root. Furthermore, signature check for firmware images is also ensured by the S-ON flag.

如何知道我的手機是 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.

暫時的解決方法

前提: 您需要在電腦中安裝已包含 adb shell 的 Android SDK。

  1. 按住手機的「調低音量鍵」同時按下電源鍵,手機開啟會顯示開機選單。(不同手機有各自不同的按鍵組合去進入開機選單,請先自行了解)
  2. 使用「調低音量鍵」去選擇 recovery。
  3. 在 recovery 中再次使用「調低音量鍵」去選擇 partitions menu
  4. 選擇 mount /system,mount /sdcard 及 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. 重新啟動您的手機,在 AdAway 設定中設置「目標 hosts 檔」為 /data/data/hosts。
  8. AdAway 應該可以運作了。