我希望给我的apk文件授予权限android.permission.CHANGE_CONFIGURATION。
我使用的adb命令是:
这个问题有什么解决方案吗?我在谷歌上找不到有用的帖子。先感谢您了。
我使用的adb命令是:
但是总是出现相同的错误:adb shell pm grant myPackageName android.permission.CHANGE_CONFIGURATION
Manifest.xml操作不允许:java.lang.SecurityException:myPackageName未请求权限android.permission.CHANGE_CONFIGURATION
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="22"/>
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
权限已经被授予:
grantedPermissions:
android.permission.READ_EXTERNAL_STORAGE
android.permission.GET_TASKS
android.permission.WRITE_EXTERNAL_STORAGE
android.permission.ACCESS_WIFI_STATE
android.permission.RECEIVE_SMS
android.permission.READ_CONTACTS
android.permission.GET_ACCOUNTS
android.permission.CALL_PHONE
android.permission.WRITE_CONTACTS
android.permission.AUTHENTICATE_ACCOUNTS
android.permission.READ_PHONE_STATE
android.permission.READ_SMS
android.permission.RECEIVE_BOOT_COMPLETED
android.permission.CAMERA
android.permission.ACCESS_FINE_LOCATION
android.permission.MANAGE_ACCOUNTS
android.permission.BROADCAST_STICKY
android.permission.RECORD_AUDIO
android.permission.WAKE_LOCK
android.permission.ACCESS_NETWORK_STATE
android.permission.USE_CREDENTIALS
com.skype.android.app.permission.C2D_MESSAGE
com.google.android.c2dm.permission.RECEIVE
android.permission.MODIFY_AUDIO_SETTINGS
android.permission.READ_SYNC_STATS
android.permission.READ_PROFILE
android.permission.DISABLE_KEYGUARD
android.permission.WRITE_SYNC_SETTINGS
android.permission.SYSTEM_ALERT_WINDOW
android.permission.WRITE_SETTINGS
android.permission.BLUETOOTH
android.permission.INTERNET
android.permission.CHANGE_WIFI_STATE
com.skype.permission.ACCOUNT
android.permission.READ_SYNC_SETTINGS
android.permission.VIBRATE
com.skype.android.app.permission.RECEIVE_ADM_MESSAGE
这个问题有什么解决方案吗?我在谷歌上找不到有用的帖子。先感谢您了。