[REQ/BUG] Root mode race condition(?), remember config

Everything about using the stand-alone Adblock Plus app on Android
Post Reply
HB_
Posts: 19
Joined: Wed Feb 20, 2013 4:18 pm
Location: Top Secret Bunker in the US

[REQ/BUG] Root mode race condition(?), remember config

Post by HB_ »

Request first: Can you please add some means of remembering the "best configuration?"

Bug/issue: My phone is rooted. I'm running the dev builds (200 currently). I do not always get "all connections" blocked. I have been restarting my phone, but it doesn't always fix it.

I think the problem is that at boot SuperSU isn't ready when ABP requests root privileges. Why? Because I tried something different last night... and it worked. I opened the UI, disabled ABP, then re-enabled it. The root granted toast flashed, and, voila, all connections now blocked.

SOLUTION?... I thought if ABP "knew" it should use root (or another config), then it could wait a bit and retry ... a few times.
Andrey Novikov
Posts: 52
Joined: Fri Feb 03, 2012 1:18 pm

Re: [REQ/BUG] Root mode race condition(?), remember config

Post by Andrey Novikov »

We will look into this.
HB_
Posts: 19
Joined: Wed Feb 20, 2013 4:18 pm
Location: Top Secret Bunker in the US

Re: [REQ/BUG] Root mode race condition(?), remember config

Post by HB_ »

I finally snagged the Advance Configuration information showing what happens.

Idea: Can you watch the return code from iptables, retry n times for success, and set a notification upon failure???

Not working [after boot, reboot, ?]

Code: Select all

LGE LG-E970
API: 15 Build: 251
Local port: 2020
Running in root mode
iptables output:
sh: line 1: /data/data/org.adblockplus.android/files/iptables: Permission denied
126
Proxy settings:
Host: [null] Port: [null] Excl: [null]
After turning the filtering off, back on, and seeing the super user toast flash:

Code: Select all

LGE LG-E970
API: 15 Build: 251
Local port: 2020
Running in root mode
iptables output:
Chain PREROUTING (policy ACCEPT)
target prot opt source destination 
REDIRECT udp -- 0.0.0.0/0 0.0.0.0/0 UNKNOWN match `udp' redir ports 11137
REDIRECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:139 redir ports 11139
REDIRECT udp -- 0.0.0.0/0 0.0.0.0/0 UNKNOWN match `udp' redir ports 11445
Chain INPUT (policy ACCEPT)
target prot opt source destination 
Chain OUTPUT (policy ACCEPT)
target prot opt source destination 
RETURN tcp -- 0.0.0.0/0 0.0.0.0/0 owner UID match 10090
REDIRECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 redir ports 2020
RETURN tcp -- 0.0.0.0/0 0.0.0.0/0 owner UID match 10090
REDIRECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 redir ports 2020
RETURN tcp -- 0.0.0.0/0 0.0.0.0/0 owner UID match 10090
REDIRECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 redir ports 2020
RETURN tcp -- 0.0.0.0/0 0.0.0.0/0 owner UID match 10090
REDIRECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 redir ports 2020
RETURN tcp -- 0.0.0.0/0 0.0.0.0/0 owner UID match 10090
REDIRECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 redir ports 2020
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination 
0
Proxy settings:
Host: [null] Port: [null] Excl: [null]
Post Reply