sschueller / peertube-android

Thorium, a PeerTube Android Client
https://github.com/Chocobozzz/PeerTube
GNU Affero General Public License v3.0
344 stars 53 forks source link

Android app gives error on startup (Android 7.0 unsupported SSL elliptic curve) #36

Open Yowlen opened 5 years ago

Yowlen commented 5 years ago

"Something went wrong...Please try later!"

This is the error I get trying to load Peertube. It seems like the whole thing is dependent on whatever went wrong since trying to use any of the tabs afterwards basically results in more errors and no content.

I installed it from F-Droid and I'm running a Touchwiz-based Android 7.0 ROM.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/67180489-android-app-gives-error-on-startup-android-7-0-unsupported-ssl-elliptic-curve?utm_campaign=plugin&utm_content=tracker%2F89466969&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F89466969&utm_medium=issues&utm_source=github).
MrRobotAptoide commented 5 years ago

This is the problem. Completely unusable as is.

sschueller commented 5 years ago

Do you have a valid peertube server configured? Which one if I may ask?

There is currently no check for which peertube version is on the server. I will be adding that soon.

Yowlen commented 5 years ago

It's just using the default settings. Literally out-of-the-box. So either the default settings are messed up, or there's a bug elsewhere preventing a connection.

sschueller commented 5 years ago

Ok thanks, I will look into it. Might also be an issue with SSL and android 7.0. I had some issues with that before.

EDIT:

Appears to be an issue withe Android 7.0. There are some workarounds so I will try to implement one.

https://stackoverflow.com/questions/39133437/sslhandshakeexception-handshake-failed-on-android-n-7-0

sschueller commented 5 years ago

I have adjusted the server https://troll.tv to support the only elliptic curve Android 7.0 supports. It should work now without an update to the App. I do recommend you update to Android 7.1.1 however as other peertube server may have this elliptic curve disabled as it is no longer considered secure.

https://github.com/nodejs/node/issues/1495 https://community.letsencrypt.org/t/warning-android-7-0-clients-not-browsers-can-only-use-curve-prime256v1/23212

Yowlen commented 5 years ago

I can verify it's working now.

Good to know about the insecurity thing. Unfortunately, this might be a problem. In terms of upgrading, my device is stuck on 7.0. It recently got an official 8.1 upgrade (straight from 7.0, so no in between), but that changed things & will prevent me from being able to root it, which means deciding between an adblocker & a firewall, something I refuse to do. There are also some 8.1 custom ROMs available, but I've had issues with getting them to work. I'll go back and see what I can do, but I suspect it might be a while.

Of course, others might be stuck with 7.0 too, and they might not have the knowledge or even the ability to use custom ROMs, so this issue is probably best put in a FAQ somewhere so as to avoid duplicate issues.