-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Document how to use Conscrypt on Android #3301
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
Conversation
@ejona86 can you update the size of the Conscrypt it will add to the app in read me ? |
I don't think we can put a size in the readme, as new releases of the Conscrypt jar may change the size. There are tools available to figure out the APK size for a library, such as http://www.methodscount.com/?lib=org.conscrypt%3Aconscrypt-android%3A1.0.0.RC9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, although we should probably wait until google/conscrypt#276 is fixed to merge this in.
You may need to [update the security provider](https://developer.android.com/training/articles/security-gms-provider.html) to enable ALPN support, especially for Android versions < 5.0. If the provider fails to update, ALPN may not work. | ||
Although ALPN mostly works on newer Android releases (especially since 5.0), | ||
there are bugs that impact users that are only fixed by upgrading the security | ||
provider. In addition, for many users it is updated more quickly after |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "it" here is a little bit confusing. Would it convey the same message to combine this and the previous sentence, into something like this:
Although ALPN mostly works on newer Android releases (especially since 5.0),
there are bugs and discovered security vulnerabilities that are only fixed by
upgrading the security provider. Thus, we recommend using the Play Service
Dynamic Security Provider for all Android versions.
Quick update: as pointed out on google/conscrypt#276, our Additionally, on the devices I've tested, the instructions here require removing the existing provider ( |
We should discuss this some, as I'm having to figure out how I want to detect Conscrypt with OpenJDK. But as a basic workaround you can do |
@ericgribkoff @ejona86 am still waiting on this update. Please keep me posted asap. I also noticed when i run debugger for some weird reason grpc calls work on api 19 devices. If it helps I also notices api 19 devices available in the market are really lower api devices got upgraded at least in UI terms they behave exactly like 15 or 16 . |
@ericgribkoff, I just thought of a hack that I think will work for @kraghu until we fix the gRPC bug. Just name Conscrypt "GmsCore_OpenSSL". That will avoid the Android version detection. Security.insertProviderAt(Conscrypt.newProvider("GmsCore_OpenSSL"), 1); ( |
@ejona86 @ericgribkoff I tried this approach . No Luck :( It is throwing
|
Closed in favor of #3971. |
No description provided.