MissJohn / android-openvpn-settings

Automatically exported from code.google.com/p/android-openvpn-settings
GNU General Public License v3.0
0 stars 0 forks source link

VPN auto reconnect when GPS start searching satellite #34

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Connect to an OpenVPN server
2.Enable GPS
3.Open Google Maps

What is the expected output? What do you see instead?
The VPN connection should stay as it is, but OpenVPN Settings restart the 
connection by SIGUSR1.

What version of the product are you using? On what operating system?
OpenVPN Settings 0.4.6, Cyanogen Mod 5.0.8 for Dream/Magic

Please provide any additional information below.

Original issue reported on code.google.com by cnye...@gmail.com on 2 Jul 2010 at 9:08

GoogleCodeExporter commented 8 years ago
Do you still get this behavior?
I can not reproduce it.

Original comment by friedrich.schaeuffelhut on 16 Sep 2010 at 2:44

GoogleCodeExporter commented 8 years ago
This bug only happens using data connection, not wifi.

Original comment by cnye...@gmail.com on 16 Sep 2010 at 2:46

GoogleCodeExporter commented 8 years ago

Original comment by friedrich.schaeuffelhut on 16 Sep 2010 at 2:54

GoogleCodeExporter commented 8 years ago
OS:Cyanogen Mod 6.0.0 for Dream/Magic
This bug only happens using data connection

Original comment by iloveke...@gmail.com on 16 Sep 2010 at 2:57

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by friedrich.schaeuffelhut on 16 Sep 2010 at 3:42

GoogleCodeExporter commented 8 years ago

Original comment by friedrich.schaeuffelhut on 16 Sep 2010 at 3:42

GoogleCodeExporter commented 8 years ago
I currently do not have access to a SIM card with enabled data connection.

Could you please provide the output of 'adb logcat' ?

Original comment by friedrich.schaeuffelhut on 16 Sep 2010 at 3:45

GoogleCodeExporter commented 8 years ago
Hmm I have this issue as well but not with just gps, but Android market also 
does this as well. 

Original comment by 007Shin...@gmail.com on 13 Dec 2010 at 12:18

GoogleCodeExporter commented 8 years ago
Still happens on latest cm7 nightly with Nexus One, when I use any gps app 
while on wifi..

Original comment by kfd...@gmail.com on 24 Feb 2011 at 1:10

GoogleCodeExporter commented 8 years ago
Is this still an issue?

Original comment by friedrich.schaeuffelhut on 27 Jan 2012 at 10:18

GoogleCodeExporter commented 8 years ago
Yes, it still exists. I just tried to use maps and once gps icon shows it 
reconnects.

Original comment by LJimm...@gmail.com on 5 Feb 2012 at 6:59

GoogleCodeExporter commented 8 years ago
its nearly 2 years but the bug still exist. is there no fix for it yet?

Original comment by pawleonh...@gmail.com on 7 Apr 2012 at 7:04

GoogleCodeExporter commented 8 years ago
ok may this is a workaround or fix but i haven't monitored it fully yet. try to 
put dns server on the preference tab. i put google dns in it and it didnt 
reconnect anymore. 

Original comment by pawleonh...@gmail.com on 7 Apr 2012 at 9:02

GoogleCodeExporter commented 8 years ago
Hmm, I'm not at all opposed to fixing this issue if I could figure it out!
But I have no clue how GPS can cause a reconnect. Therefore a fix is hard to 
write.

OpenVPN-Settings uses the ConnectiviyManager to listen to changes
in network connectivity. It will initiate a reconnect once connectivity changes.
(It actually should only do this if the IP-Address changes). The main idea 
behind this behavior is not to use keep alive packages and be able to conserve 
energy.

There is no behavior documented in Android, GPS will trigger a connectivity 
change.

A little bit more input from your side, like the output of 'adb logcat' could 
help
me figuring out what actually happens.  

Original comment by friedrich.schaeuffelhut on 7 Apr 2012 at 6:36

GoogleCodeExporter commented 8 years ago
Yes, I confirm this happens whenever an app needs to access A-gps service. My 
understanding: it may not be an OpenVPN specific problem as when A-gps service 
starts, the system needs to contact an supl server, specified somewhere (APN, 
gps.conf, gps_brcm_conf.xml, I don't know), when it finds that the current data 
connection is not a proper type for the purpose, it shuts down the current data 
connection and trying to establish another one. Hence you see OpenVPN 
re-connecting.

I had this issue and solved mysteriously before I tried many, many methods. My 
research initially says I might have wrong APN type setting (supl needs to be 
on or off, the internet does not give consistent answer on this), this did not 
solve my problem.

Long story short, on one of my phone, there was no gps_brcm_conf.xml file under 
/etc folder, and the file is actually referred to by some system init file that 
deals with gps service. So I put one such file that I got from a CM7 stable rom 
(my phone is an LG Optimus 3D P920), and hurray, problem solved!

The consistency of the solution can be verified by deletion and addition of 
this file. However on my other phone, I don't have the luck: I figure I need to 
find a correct version of gps_brcm_conf.xml?

...and I forgot which system init file I look, too bad.

Original comment by jin...@gmail.com on 27 Jul 2012 at 4:06