AdguardTeam / AdguardForiOS

The most advanced ad blocker for iOS
https://adguard.com/
GNU General Public License v3.0
1.45k stars 203 forks source link

VPN failure on low battery shutdown #341

Closed Itsnothectic closed 7 years ago

Itsnothectic commented 7 years ago

I havent tried to repeat this yet. If the phone shuts down due to low battery and is then powered up automatically from being charged sufficiently. It will connect to the internet, it will report the "VPN" as connected but hosts will not be blocked or logged until the "VPN" is disconnected and reconnected in settings.

A bug with iOS 10 I am guessing?

Itsnothectic commented 7 years ago

Its actually happening whenever the phone is started up while being charged.

zebrum commented 7 years ago

@Itsnothectic are you sure the issue depends on charging? it seems fine on my side. at least when i turn on the phone while being charged.

Itsnothectic commented 7 years ago

I tried again and I described the bug incorrectly so I have listed the steps to reproduce. It also only bypasses some Apple hosts. guzzoni.apple.com and maybe also location services.

1) power down the phone (really just deep sleep)

2) turn on and wait for pin/password login but do not enter it.

3) wait for VPN symbol too.

4) plug in the charger, you should hear a chime sound.

5) unlock the phone and Adguard will be on but some hosts will already be cached.

It seems like if the phone starts to charge while locked and there is no DNS cache yet the phone will contact some Apple hosts such as Siri and possibly also Location before Adguard can start up.

Itsnothectic commented 7 years ago

Im going to test this issue soon. Apparently this is intended behaviour of iOS so it can still do an iCloud backup in the presence of malware or a lost device password.