grpc / grpc/grpc-java

getAlpnSelectedProtocol android 15 changes

Aperta
#11,625 4 commenti 1 reazione 1 assegnatario Rivendicata da @kannanjgithub Vedi su GitHub
Lingua principale
Java
Stelle
12.1k
Fork
4k
Merge medio
2g 17h
PR unite (30g)
37

Descrizione

[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());

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.