grpc / grpc/grpc-java

getAlpnSelectedProtocol android 15 changes

Đang mở
#11,625 4 bình luận 1 reaction 1 người được giao Được @kannanjgithub nhận Xem trên GitHub
Ngôn ngữ chính
Java
Star
12.1k
Fork
4k
Merge trung bình
2 ngày 17 giờ
Pull request đã merge (30 ngày)
37

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.