Gedsh / InviZible

Android application for online privacy and security
https://invizible.net
GNU General Public License v3.0
1.5k stars 103 forks source link

Wifi/Mobile data both on when Invizible in VPN mode #249

Open CodeCracker-oss opened 8 months ago

CodeCracker-oss commented 8 months ago

Hello,

I just noticed with the latest 6.5.0 pro stable version that my WiFi and mobile data both on when Invizible (any module) is running in VPN mode (Not proxy mode).

Most my traffic still appears to go through my home WiFi, although some traffic tends to route over mobile data it seems. My LTE icon appears near the signal bar and the network tile shows both WiFi and mobile data running. Mobile data isn't supposed to run when WiFi is connected.

Its corrected as soon as I stop Invizible.

I messed with a few settings such as disabling the firewall to see if anything appears to fix it. This does not occur on version 6.4.0. No other VPN based apps cause this issue either.

I have a pixel 8, Android 14 February 2024 update.

I have the log file saved, but cannot tell if anything includes sensitive data as it appears gibberish. Is there some software I could use to quickly look at it myself prior to posting?

Thank you

Gedsh commented 8 months ago

Hello,

I just noticed with the latest 6.5.0 pro stable version that my WiFi and mobile data both on when Invizible (any module) is running in VPN mode

This is correct behavior. The only reason for this is that you have "Mobile data always active" enabled in your developer settings. This feature is designed for fast network switching, and InviZible can utilize it.

Mobile data isn't supposed to run when WiFi is connected.

You should disable the mentioned option in the developer settings or simply disable mobile data.

This does not occur on version 6.4.0.

This is a new feature.

No other VPN based apps cause this issue either.

Because no VPN app can properly use fast switching between networks.

I have the log file saved, but cannot tell if anything includes sensitive data as it appears gibberish.

I don't need your logs. But if you want to read the saved logs, just rename the file extension from txt to zip.

CodeCracker-oss commented 8 months ago

This is correct behavior. The only reason for this is that you have "Mobile data always active" enabled in your developer settings. This feature is designed for fast network switching, and InviZible can utilize it.

Mobile data always active has always be on by default as far as I've known about this option. Is this feature only usable when an app like Invizible uses it? As I've never seen both on at the same time, just need to be sure that both are not actually being used at the same time.

Can an option be added to invizible's gui to disable this without having to go into Dev options?

Gedsh commented 8 months ago

Mobile data always active has always be on by default

On most phones it is disabled by default.

Is this feature only usable when an app like Invizible uses it?

It should work the same way if no VPN is used.

Can an option be added to invizible's gui to disable this without having to go into Dev options?

I don't see the point in this since the user enables this option for only one purpose - to use fast network switching. Otherwise, why are you leaving this option active?

CodeCracker-oss commented 8 months ago

It should work the same way if no VPN is used.

Not for me. If Invizible is disabled (and doesn't matter if another VPN app is used or not), mobile data shuts back off.

I don't see the point in this since the user enables this option for only one purpose - to use fast network switching. Otherwise, why are you leaving this option active?

Since this option is enabled by default on pixel 8, and I always have developer options disabled. I only ever enable developer options when I need to use a feature like USB debugging, then disable it afterwards.

To disable this feature I would have to keep developer options turned on at all times.

Gedsh commented 8 months ago

Not for me.

This is your phone's issue. Contact the developers of your rom.

this option is enabled by default on pixel 8

I'm not developing InviZible for one specific phone model. Are you using Graphene OS?

CodeCracker-oss commented 8 months ago

Are you using Graphene OS?

No, stock AOSP.

Its an option google decides to enable by default. Not sure why as the cons of it outweigh the pros.

I could use it in proxy or root mode to avoid this issue, or just turn it off in Dev options I suppose. I decided against keeping Dev options enabled all the time a while ago when an app I was using refused to work unless Dev options was turned off (Similar to when apps block rooted devices).

Gedsh commented 8 months ago

Its an option google decides to enable by default.

Strange decision from google developers. Especially considering that it doesn't work properly.

I could use it in proxy or root mode to avoid this issue, or just turn it off in Dev options I suppose.

You can simply turn off mobile data. This can be done fast and easily from your phone's toolbar.

CodeCracker-oss commented 8 months ago

You can simply turn off mobile data.

I could, but then the issue is I have to remember to turn it on everytime when leaving home otherwise I won't be able to receive calls from signal, or receive email alerts.

I will leave it as is for now and test further how my battery is. If it drains to quickly, I will just disable it in Dev options.

SkewedZeppelin commented 1 month ago

This is your phone's issue. I'm not developing InviZible for one specific phone model.

@Gedsh it is not one device, mobile data has always on has been default enabled since at least 2017:

Primarily because it is necessary for VoLTE to function and for faster switching.

users shouldn't have to enable developer options and leave it enabled to adjust this and potentially break calls to workaround this

Gedsh commented 1 month ago

Primarily because it is necessary for VoLTE to function and for faster switching.

In any case, InviZible uses it exactly for fast switching between networks. I don't see any disadvantages in keeping WiFi and mobile data enabled at the same time. WiFi has priority and all packets pass through WiFi if it is available. Mobile data is used at the last resort.

Perhaps you see some drawbacks other than the fact that it's unusual to see both icons at the same time? There's really no problem in disabling this feature or making it optional if I figure out why this is necessary.

SkewedZeppelin commented 1 month ago

fact that it's unusual to see both icons at the same time

it can be especially concerning/confusing to those who are on limited data plans

Gedsh commented 1 month ago

it can be especially concerning/confusing to those who are on limited data plans

I find it handy with limited data plans as even if I use WiFi at home, I can see that I forgot to disable mobile data. I prefer to keep it disabled and only enable it when needed.