HTC的设备
广告走开在 S-ON 的设备上不能正常运行。很多HTC设备都有这个“功能”,它会阻止广告走开写 hosts 文件。
S-ON/S-OFF是什么?
S-OFF 意思是设备的 NAND 分区是解锁的,并且可写入。HTC 设备默认的是 S-ON ,S-ON 意思就是说你既不能访问系统一些区域,也不能持久 root 。更为恼火的是,固件映像的签名检查也由 S-ON 标识保护着。
我是 S-ON 还是 S-OFF?
同时按住音量减和电源键开机启动到启动菜单界面,在顶上有文字显示标志的状态为 S-OFF 或 S-ON。 完全 root 一般都是 S-OFF。
更多信息请参考 www.addictivetips.com。
解决方法
前提条件:你必须安装 Android SDK 并且在电脑上运行 ADB shell命令行。
- 同时按住音量减和电源键开机启动到启动菜单界面。
- 使用音量减移动并选择 recovery
- 在 clockwork recovery 里面用音量减移动到"partitions menu",并选中进入
- 选择 mount /system, mount /sdcard 以及 mount /data。
- 插上你的 USB 线,然后在电脑上打开一个命令行。
- 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.)
- 重启你的设备并广告走开的设置中修改目标 hosts 文件为 /data/data/hosts
- 现在应该就可以了。