tutao / tutanota

Tuta is an email service with a strong focus on security and privacy that lets you encrypt emails, contacts and calendar entries on all your devices.
https://tuta.com
GNU General Public License v3.0
5.97k stars 513 forks source link

Login issues on Android #7290

Closed blankscreengithub closed 2 weeks ago

blankscreengithub commented 1 month ago

Bug in mobile app Does not log into my email account. The app just keeps spinning giving messages about stocking the Tuta fridge, etc. I can log into my account with a different Android device

Describe the bug Can't log in.

To Reproduce Steps to reproduce the behavior:

  1. Install app on phone
  2. Tap app tp open
  3. Enter my email address and password
  4. Login loop begins and it never asks for my 2FA

Expected behavior Log into the app.

Smartphone (please complete the following information):

retorquere commented 1 month ago

Same problem on pixel 8

yogi701 commented 1 month ago

Same problem on Galaxy A53 also

KriiXOne commented 1 month ago

Can confirm, has been happening since two full days on my Galaxy A55 as well.

jboucher614 commented 1 month ago

Started happening a few days ago on my S22 Ultra after I enabled the new notification settings, but not sure if related. Wiping app data didn't help.

Edit: Reinstalling didn't help either. I installed from F-Droid. I use OTP or Yubikey for login, and it never gets to the point to ask for them. It's working on the web browser.

eriz7 commented 1 month ago

Same thing on S10, has been happening for the last 5 or 6 days.

x-R0b0T-x commented 1 month ago

Same probleme on OnePlus 8T (KB2003 with OxygenOS v14)

charlag commented 1 month ago

Can anyone get logs with adb/logcat/catlog or similar? We are struggling to reproduce it and it would help a lot

charlag commented 1 month ago

It would help us to know your Android version too

charlag commented 1 month ago

I suspect it is a WebView issue. If you could check the WebView app version you have installed it could also help us

charlag commented 1 month ago

I can repro it with WebView beta (128.0.6613.6)

charlag commented 1 month ago

we conducted more testing and we are fairly certain that it is some change in Chrome WebView 128 (can reproduce on 128.0.6613.6, cannot reproduce on 127.0.6553.64).

Chrome 128 is due to be released in 2 weeks, please check whether you are on WebView beta channel.

retorquere commented 1 month ago

Pixel 8, android 14, webview 128.0.6613.6

retorquere commented 1 month ago

please check whether you are on WebView beta channel.

How do I check this?

retorquere commented 1 month ago

I do not have https://play.google.com/store/apps/details?id=com.google.android.webview.beta installed if that's what you mean.

charlag commented 1 month ago

please check whether you are on WebView beta channel.

How do I check this?

if you have it from Play Store, check if you are on Beta Track for WebView or if you have a separate app called "WebView Beta".

More info here: https://chromium.googlesource.com/chromium/src/+/HEAD/android_webview/docs/prerelease.md

retorquere commented 1 month ago

I only see https://play.google.com/store/apps/details?id=com.google.android.webview.beta and https://play.google.com/store/apps/details?id=com.google.android.webview.dev in the play store, neither of which are installed. Do you have a link to the version you mean I might be on the beta track for? I do see the "regular" webview installed in my apps list in the settings.

retorquere commented 1 month ago

Ah; if I go to https://play.google.com/store/apps/details?id=com.google.android.webview, I do see it listed as "Android System WebView (Beta)", and it does say "you're a beta tester", ~but I don't see an option to leave the beta~, and I'm not sure why I would have joined the beta in the first place.

edit: I've restarted the play store and I could now leave the beta. Still no idea why I would have joined the beta for this component. It says it will take a few minutes to remove me from the beta.

N3OG commented 1 month ago

The WebView "bug" is in stable now, must uninstall the actual version to my system-default version. Now i can login again ....

retorquere commented 1 month ago

Uninstall + reinstall of webview fixes the problem for me.

charlag commented 1 month ago

What does it mean it's "in stable now"? https://chromestatus.com/roadmap shows that 128 is "stable in 2 weeks (Aug 14, 2024)

N3OG commented 1 month ago

If i "update" this https://play.google.com/store/apps/details?id=com.google.android.webview i have the same issue... if i uninstall ist, its possible to login... I'm not part of the Beta.

charlag commented 1 month ago

@N3OG what version do you see available for you to install or what version do you see after install?

N3OG commented 1 month ago

126.0.6478.186 is installed

jboucher614 commented 1 month ago

we conducted more testing and we are fairly certain that it is some change in Chrome WebView 128 (can reproduce on 128.0.6613.6, cannot reproduce on 127.0.6553.64).

Chrome 128 is due to be released in 2 weeks, please check whether you are on WebView beta channel.

I can confirm. I was in the beta program for Webview, on version 128, and I had this issue. I left the program and uninstalled updates for Webview. I waited a few minutes, cleared Play Store cache, then updated Webview. It updated to version 126. No issue now.

charlag commented 1 month ago

126.0.6478.186 is installed

is this the version you have issue with or is this the version that works?

you said that there is an issue with the version that is available to you via Play Store. What version is that?

notojak commented 1 month ago

126.0.6478.186 is installed

is this the version you have issue with or is this the version that works?

you said that there is an issue with the version that is available to you via Play Store. What version is that?

Screenshot_20240729-154739_Settings

This version is correct for me

N3OG commented 1 month ago

126.0.6478.186 is installed

is this the version you have issue with or is this the version that works?

you said that there is an issue with the version that is available to you via Play Store. What version is that?

There was an issue with that, but restart of my phone helps... maybe some cache problems...

seymourb61 commented 1 month ago

Exact same issue for 2 days - Samsung A53 5G (model name SM-A536UI/DS), Android v13, security patch level March 1, 2023, One UI v5.1, Baseband v A5336U1UEU4CWC3. Occurs on both wifi and mobile data (Mint Mobile). Access via Windows app is fine.

I have Android System WebView (Beta) installed

Leaving the WebView Beta and Uninstaller updates resolved my issue.

rezbyte commented 1 month ago

There is now an issue on the Chromium tracker relevant to the underlying problem in the WebView beta.

Zukauskas commented 1 month ago

Yeah

wpeckham commented 1 month ago

Same problem in BLU G90+ running Android 10. Cycle opens LOGGING IN, then the cycle starts DECRYPTING EMAIL, ORGANIZING CALENDAR EVENTS, SORTING CONTACTS, UPDATING OFFLINE DATABASE, CYCLING TO WORK, RESTOCKING TUTA FRIDGE, PREPARING ROCKET LAUNCH, TURNING ON PRIVACY, DECRYPTING EMAIL.....

ThreeTima commented 4 weeks ago

Yeah

* leave webview beta

* clear play store cache(don't know if necessary)

* reinstall webview
  Worked for me, thanks 🙏

This worked for me on Samsung Galaxy S23 Ultra, It is now working again... I should point out, however, that the Play store may say that the "Beta is still installed" even after you follow the steps above. However, just try it and it should work.... If it does not, try the above again with a device reboot in between the "Clear Play Store cache" and the "Re-install webview".

There is now an issue on the Chromium tracker relevant to the underlying problem in the WebView beta.

I'm Glad someone submitted it to Android for further looking into

DrDivan55 commented 3 weeks ago

The issue is still not fixed. 128 is now WebView stable. Tested with WebView Canary 129, the issue is present. Uninstalling the WebView is not a good solution, as the phone will automatically later update back to WebView 128. It might work for the initial login, but when WebView is later updated back to 128, it would stop working again if you have a biometric lock enabled. This means the app is unusable on Android if you have the biometric lock enabled.

DrDivan55 commented 3 weeks ago

Update: After installing the August security patch for my Samsung Galaxy Note 20 Ultra, I was able to login successfully & everything works as intended as of now.

jwacross commented 3 weeks ago

The android app is working for me now as well. Samsung Galaxy S22 One UI version 6.2 Android version 14

wpeckham commented 3 weeks ago

Same problem in BLU G90+ running Android 10. Cycle opens LOGGING IN, then the cycle starts DECRYPTING EMAIL, ORGANIZING CALENDAR EVENTS, SORTING CONTACTS, UPDATING OFFLINE DATABASE, CYCLING TO WORK, RESTOCKING TUTA FRIDGE, PREPARING ROCKET LAUNCH, TURNING ON PRIVACY, DECRYPTING EMAIL.....

I did make sure I was not in the beta program and removed all manual webmin installs and restarted the phone. This did not affect the behavior, login was still impossible. That to the fridge must be pretty full by now.

wpeckham commented 2 weeks ago

Same problem in BLU G90+ running Android 10. Cycle opens LOGGING IN, then the cycle starts DECRYPTING EMAIL, ORGANIZING CALENDAR EVENTS, SORTING CONTACTS, UPDATING OFFLINE DATABASE, CYCLING TO WORK, RESTOCKING TUTA FRIDGE, PREPARING ROCKET LAUNCH, TURNING ON PRIVACY, DECRYPTING EMAIL.....

I did make sure I was not in the beta program and removed all manual webmin installs and restarted the phone. This did not affect the behavior, login was still impossible. That Tuta fridge must be pretty full by now. UPDATE: new webview Canary 130.x installed and made the current provider resolved the issue!

charlag commented 2 weeks ago

It seems to be fixed in Chromium, closing it as we cannot do much about it.