Skip to content
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

Android13的手机, 使用4g,会出现异常 #17

Open
yang1256149685 opened this issue Aug 29, 2023 · 2 comments
Open

Android13的手机, 使用4g,会出现异常 #17

yang1256149685 opened this issue Aug 29, 2023 · 2 comments

Comments

@yang1256149685
Copy link

getNetworkType会使用phone_state权限,目前这块在android13的系统上被限制了,这个需要优化解决一下嘞

java.lang.SecurityException: getDataNetworkTypeForSubscriber
at android.os.Parcel.createExceptionOrNull(Parcel.java:3011)
at android.os.Parcel.createException(Parcel.java:2995)
at android.os.Parcel.readException(Parcel.java:2978)
at android.os.Parcel.readException(Parcel.java:2920)
at com.android.internal.telephony.ITelephony$Stub$Proxy.getNetworkTypeForSubscriber(ITelephony.java:8593)
at android.telephony.TelephonyManager.getNetworkType(TelephonyManager.java:3090)
at android.telephony.TelephonyManager.getNetworkType(TelephonyManager.java:3054)
at com.tencent.liteav.basic.datareport.TXCDRApi.getNetworkType(TXCDRApi.java:313)
at com.tencent.liteav.basic.datareport.TXCDRApi.setCommonInfo(TXCDRApi.java:116)
at com.tencent.liteav.basic.datareport.TXCDRApi.txReportDAU(TXCDRApi.java:80)
at com.tencent.liteav.beauty.a.a(ReportDuaManage.java:96)
at com.tencent.liteav.beauty.c.(TXCVideoPreprocessor.java:257)
at com.tencent.liteav.c.(TXCCaptureAndEnc.java:154)
at com.tencent.liteav.trtc.impl.TRTCCloudImpl.(TRTCCloudImpl.java:239)
at com.tencent.liteav.trtc.impl.TRTCCloudImpl.sharedInstance(TRTCCloudImpl.java:198)
at com.tencent.trtc.TRTCCloud.sharedInstance(TRTCCloud.java:39)
at com.elong.android.flutter.plugins.TRTCPlugin.onMethodCall(TRTCPlugin.java:99)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:84)
at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:865)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:341)
at android.os.Looper.loopOnce(Looper.java:168)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8247)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)

@rankezhang
Copy link

我也遇到这个问题了,兄弟升级 SDK 能解决么?否则申请 phone_state 可能会导致应用商店被下架

@yang1256149685
Copy link
Author

yang1256149685 commented Mar 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants