longrenle / droidwall

Automatically exported from code.google.com/p/droidwall
0 stars 0 forks source link

wayward script flush DW table /data/data/com.android.monitor/cache/firewall.sh #217

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Miui 1.10.21 DX
Script contains

#!/system/bin/sh
IPTABLES=iptables
BUSYBOX=busybox
GREP=grep
ECHO=echo
# Try to find busybox
if busybox --help >/dev/null 2>/dev/null ; then
   BUSYBOX=busybox
elif /system/xbin/busybox --help >/dev/null 2>/dev/null ; then
   BUSYBOX=/system/xbin/busybox
elif /system/bin/busybox --help >/dev/null 2>/dev/null ; then
   BUSYBOX=/system/bin/busybox
fi
# Try to find grep
if ! $ECHO 1 | $GREP -q 1 >/dev/null 2>/dev/null ; then
   if $ECHO 1 | $BUSYBOX grep -q 1 >/dev/null 2>/dev/null ; then
       GREP="$BUSYBOX grep"
   fi
   # Grep is absolutely required
   if ! $ECHO 1 | $GREP -q 1 >/dev/null 2>/dev/null ; then
       $ECHO The grep command is required. DroidWall will not work.
       exit 1
   fi
fi
$IPTABLES -F droidwall
$IPTABLES -F droidwall-reject
$IPTABLES -F droidwall-3g
$IPTABLES -F droidwall-wifi
exit

Original issue reported on code.google.com by share...@live.com on 9 Dec 2011 at 10:44

GoogleCodeExporter commented 9 years ago
Preference XML

<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<string name="WifiForbiddenUids"></string>
<string 
name="MobileAllowedUids">-10|1000|1001|1030|10001|10003|10005|10007|10008|10009|
10011|10015|10016|10017|10018|10020|10021|10024|10025|10027|10031|10032|10033|10
034|10037|10039|10040|10042|10043|10044|10047|10048|10049|10050|10052|10055|1005
6|10057|10058|10059</string>
<string name="MobileForbiddenUids"></string>
<string 
name="WifiAllowedUids">-10|1000|1001|1030|10001|10003|10005|10007|10008|10009|10
011|10015|10016|10017|10018|10020|10021|10024|10025|10027|10031|10032|10033|1003
4|10037|10039|10040|10042|10043|10044|10047|10048|10049|10050|10052|10055|10056|
10057|10058|10059</string>
</map>

Original comment by share...@live.com on 9 Dec 2011 at 10:46

GoogleCodeExporter commented 9 years ago
I had intended topic to be a question "DW tables?"

Sometimes spell check 'fixes' words after I stop looking 

I am having an issue determining when- and for how long DW tables are disabled. 
I usually leave a certain application without internet access until I am 
actively using it. I reverted to 154 but freak DW disable frequency persists. 

The only new addition is PDroid, but it has no firewall features.  

PDroid is awesome, however, and entirely essential.

Original comment by share...@live.com on 9 Dec 2011 at 10:50

GoogleCodeExporter commented 9 years ago
I have disabled the firewall features of monitor, a miui default app

Using titanium backup pro I have frozen it and wiped its data. Hopefully an end 
to it.

Fyi others

Original comment by share...@live.com on 9 Dec 2011 at 10:58

GoogleCodeExporter commented 9 years ago
It looks like miui team has cloned DroidWall into this "monitor" app, and they 
didn't even try to hide this fact ;)
Right now they are violating DroidWall's license, since their software is not 
GPL.

Original comment by rodrigo...@gmail.com on 10 Dec 2011 at 5:19