This repository has been archived by the owner on Feb 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
targetSdkVersion 28, and REQUEST_INSTALL_PACKAGES permission always return false #281
Comments
I wrote a simple extension for RxPermissions.
use
|
@qqnp1100 thank you, i understand your means, and use getPackageManager().canRequestPackageInstalls() can resolve it。 |
是继承RxPermission写的吗? |
Request_install_packages is not a dangerous/runtime permission. You can't use RxPermissions with it. It's a normal permission. You declare it in manifest and then you can use PackageInstaller API to install packages interactively. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
targetSdkVersion 28
packageManager.canRequestPackageInstalls() return true when i setting install permission, but rxPermissions?.request(Manifest.permission.REQUEST_INSTALL_PACKAGES) always return false。How to relsolve
the test project:
https://github.com/Jack-Xiao/RxPermissionsTest
The text was updated successfully, but these errors were encountered: