The following shell command doesn't work on Android 11 devices. Can someone help me with an alternative?
adb shell pm grant com.adobe.reader android.permission.WRITE_EXTERNAL_STORAGE
Kotlin working Code
Dependencies to be added in build.gradle
androidTestImplementation "androidx.test:rules:1.3.0"
Code:
@get:Rule
val permissionRule: GrantPermissionRule = GrantPermissionRule.grant(
CAMERA, CALL_PHONE, READ_EXTERNAL_STORAGE,WRITE_EXTERNAL_STORAGE
)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.