![](/img/trans.png)
[英]Is READ_PHONE_STATE permission will be impacted by a change in the Google Play policy of SMS and CALL_LOG permissions groups?
[英]This app will be impacted by a change in the Google Play policy governing the use of SMS and CALL_LOG permissions
我从 Google Developer Console 收到以下警告(主题):
我的主要节日:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="com.android.vending.BILLING" />
摇篮:
minSdkVersion 16
targetSdkVersion 28
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.anjlab.android.iab.v3:library:1.0.44' //in-app billing
implementation "com.squareup.picasso:picasso:2.5.2" //picasso
implementation 'com.google.android.exoplayer:exoplayer-core:2.9.1' //ExoPlayer
implementation 'com.google.android.exoplayer:exoplayer-dash:2.9.1' //ExoPlayer
implementation 'com.google.android.exoplayer:exoplayer-ui:2.9.1' //ExoPlayer
implementation 'com.google.android.exoplayer:exoplayer-smoothstreaming:2.9.1' //ExoPlayer
implementation 'com.google.android.exoplayer:exoplayer-hls' //ExoPlayer
implementation 'com.devbrackets.android:exomedia:4.3.0' //Video Streamer (uses ExoPlayer)
implementation 'com.android.support:design:28.0.0' //NavDrawer
implementation 'com.google.android.gms:play-services-ads:17.1.2' //AdMob
}
我没有为SMS and CALL_LOG
请求任何权限,所以不知道该怎么做,Mainfest 应该是唯一一个请求这些权限的文件(它没有这样做),请帮忙?
我遇到了这个并且非常令人沮丧,但我终于弄清楚发生了什么。
旧版Android的权限不同,如果你有某个权限并且你定位的是旧版Android,那么系统会将你的权限解释为包含其他权限。
我跑了aapt dump badging myapp.apk
我发现了这个:
uses-implied-permission: name='android.permission.READ_CALL_LOG' reason='targetSdkVersion < 16 and requests READ_CONTACTS'
所以,我实际上并没有列出那个权限,但它假设它是因为我的目标 api 编号很低。
提高你的targetSdkVersion
,它应该被修复。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.