Skip to content

Commit

Permalink
修复一些问题
Browse files Browse the repository at this point in the history
  • Loading branch information
E7KMbb committed Jun 20, 2021
1 parent 57fc6e9 commit 772a651
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Han.GJZS.prop
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
id='AD-Hosts'
name='AD Hosts'
version='v6.2'
versionCode='6200'
version='v6.2.0.1'
versionCode='6201'
author='依然的爱'
description='屏蔽大部分广告,请记住hosts不是万能的具有局限性,不能全部屏蔽。hosts规则均来自于网络搜索,github,人工抓取及酷友提供,使用时请关闭其它带有hosts文件的模块,例如:systemless hosts模块。'
time='2021年5月28号'
size=1009248
md5=df9b4fc51f2f4b0861f7fc21edf86451
size=1009322
md5=588ff837f3e537416821371eec7c74f5
zipurl="https://aisauce.coding.net/p/ad-hosts/d/ad-hosts/git/raw/master/release/AD_hosts_latest.zip"
2 changes: 1 addition & 1 deletion disable_ad_hosts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
work_dir=/sdcard/Android/ADhosts
syshosts=/system/etc/hosts

sh /data/adb/modules/AD-Hosts/script/select.ini
. /data/adb/modules/AD-Hosts/script/select.ini

if [ $install_mod = "system" ]; then
if [ -e /data/adb/modules/AD-Hosts/disable ]; then
Expand Down
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=AD-Hosts
name=AD Hosts
version=v6.2
versionCode=6200
version=v6.2.0.1
versionCode=6201
author=依然的爱
description=屏蔽大部分广告,请记住hosts不是万能的具有局限性,不能全部屏蔽。hosts规则均来自于网络搜索,github,人工抓取及酷友提供,使用时请关闭其它带有hosts文件的模块,例如:systemless hosts模块。
Binary file modified release/AD_hosts_latest.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion script/cron.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
work_dir=/sdcard/Android/ADhosts
script_dir=${0%/*}

sh $work_dir/Cron.ini
. $work_dir/Cron.ini

[ -f /data/adb/magisk/busybox ] && alias crond="/data/adb/magisk/busybox crond"

Expand Down
2 changes: 1 addition & 1 deletion service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ until [ $(getprop sys.boot_completed) -eq 1 ] && [ -d "$work_dir" ]; do
fi
done

sh $MODDIR/script/select.ini
. $MODDIR/script/select.ini
if [ $update_boot_start = "true" ]; then
sh $MODDIR/script/functions.sh
fi
Expand Down
2 changes: 1 addition & 1 deletion uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ work_dir=/sdcard/Android/ADhosts
syshosts=/system/etc/hosts
script_dir=${0%/*}/script

sh ${script_dir}/select.ini
. ${script_dir}/select.ini

for mount_path in /system / $MAGISKTMP/.magisk/mirror/system $MAGISKTMP/.magisk/mirror/system_root $MAGISKTMP/.magisk/block/system_root; do
mount -o remount,rw ${mount_path} &> /dev/null
Expand Down

0 comments on commit 772a651

Please sign in to comment.