Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What happened? Keepshare used 1.6GB mobile data this month #44

Open
digitalkram opened this issue Jul 27, 2017 · 12 comments
Open

What happened? Keepshare used 1.6GB mobile data this month #44

digitalkram opened this issue Jul 27, 2017 · 12 comments

Comments

@digitalkram
Copy link

How is that possible?

@pfn
Copy link
Owner

pfn commented Jul 27, 2017 via email

@digitalkram
Copy link
Author

digitalkram commented Jul 27, 2017

Hmm. Strange. It is only 107KB in size. Just out of curiosity: What is Keepshare doing with the database so that it size matters in regards to data usage? (For now I disabled internet access via iptables to avoid further data usage and it still seems to work as expected)

@pfn
Copy link
Owner

pfn commented Jul 27, 2017

There's really no way for that to happen. It must be an accounting problem in android.

If you store your kdbx on google drive (or any other SAF provider). The file can be downloaded when opened (only if changed, typically). On any swipe down to refresh, and any time you save the file.

In order to use up 1.6gb of data, it would have had to have done this... 1,600,000,000 / 100,000 (16,000) times during the month. I don't see this as possible.... keepshare alone would have destroyed your battery life while mobile.

If you don't store your kdbx on any cloud SAF provider, absolutely no internet that should occur, aside from the small 32 byte file request from google drive if you don't use the offline-mode hardware token. Perhaps the google drive sdk is buggy and makes endless network requests when they don't respond quickly...

@digitalkram
Copy link
Author

digitalkram commented Jul 27, 2017

The file is stored locally on my phone. I do not use offline-mode. Very strange indeed. I really used that volume when I check my data volume usage on my providers website it confirms the sum that Android shows roughly. No idea how likely it is that the accounting on android is broken. I run 7.1.1

@pfn
Copy link
Owner

pfn commented Jul 28, 2017

Yeah, keepshare does 0 internet access if you use hardware token and a local file. I don't even know how this is possible: if you look through keepshare sources, you can see that it does no internet intrinsically....

@pfn
Copy link
Owner

pfn commented Jul 28, 2017

My only suggestion might be to switch over to using the offline mode to prevent any access to google drive at all.

@ouldsmobile
Copy link

I had a similar occurence this month. Keepshare is reporting 335mb data usage in the background. I have since disabled background data usage. Seems odd. This was on a Samsung S7. I can send a screenshot if needed.

@alexanderadam
Copy link

@digitalkram may I ask how you were able to measure this?

@digitalkram
Copy link
Author

I did not. That is just what android shows under data usage "mobile data plan" (to exclude wifi traffic). There is the amount of data each app used (only downstream so your provider will charge/count more). I never did anything to verify that data but as my monthly volume was consumed also on provider end I tend to believe it is true. But as @pfn wrote theoretically not possible. I never resolved the issue and did not investigate further but just "iptabled" kerpshare so that it cannot have any connection.

@bublite
Copy link

bublite commented Jul 15, 2018

Having the exact same issue. Android is reporting 1.6gb and the huge spike in usage is confirmed with what the carrier is showing for the same time period.

@pfn
Copy link
Owner

pfn commented Jul 16, 2018

I'm not sure why keepshare would be causing so much data transmission. There's only, potentially, 2 pieces of data sent to the network: 1. partial decryption key (16 bytes), can be set to off-line only if the hardware supports it, and it's only supposed to be downloaded once per session. 2. the kdbx file if using a cloud storage provider (google drive, onedrive, etc.) this should only be downloaded once per change at most, unless there's some bug somewhere that's causing it to synchronize much more aggressively.

Personally, I have seen mobile-data usage in the 100-400mb per month, which is fairly excessive. I'll try to figure out why this happens when I get some time.

@pfn
Copy link
Owner

pfn commented Jul 27, 2018

I forgot to mention, it should be completely safe to the app to disable "background data usage" for keepshare. Any data access should occur entirely only when the app is open, and when it does, it shouldn't be using much data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants