grpc / grpc/grpc-java

getAlpnSelectedProtocol android 15 changes

Offen
#11,625 4 Kommentare 1 Reaktion 1 zugewiesene Person Beansprucht von @kannanjgithub Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
12.1k
Forks
4k
Ø Merge
2 T. 17 Std.
Gemergte PRs (30 T.)
37

Beschreibung

[This method marked as max-target-q on android 15 chagelog.](https://developer.android.com/about/versions/15/changes/non-sdk-15)
Lcom/android/org/conscrypt/OpenSSLSocketImpl->getAlpnSelectedProtocol()[B,core-platform-api,max-target-q

Method may fall under the category of APIs that are conditionally blocked based on the target API level of the app. Specifically, if app targets a version higher than Android 10 (API level 29), we might encounter restrictions accessing this method due to non-SDK interface policies.

### What version of gRPC-Java are you using?
1.66.0

### What is your environment?
Android

### What did you expect to see?
Nothing in strictMode logs.
### What did you see instead?

Lcom/android/org/conscrypt/OpenSSLSocketImpl;->getAlpnSelectedProtocol()[B
io.grpc.okhttp.internal.OptionalMethod.getPublicMethod (OptionalMethod.java:178)

### Steps to reproduce the bug
Enabling strictMode with non sdk api violations logging.

StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
.detectNonSdkApiUsage()
.penaltyLog()
.build());

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.