grpc / grpc/grpc-java

getAlpnSelectedProtocol android 15 changes

Open
#11,625 4 comments 1 reaction 1 assignee Claimed by @kannanjgithub View on GitHub
Dominant language
Java
Stars
12.1k
Forks
4k
Avg merge
2d 17h
Merged PRs (30d)
37

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.