hasInstallPermission
Checks if the application has permission to install APK files.
On devices running Android Oreo (API level 26) or higher, this method verifies whether the app has been granted the REQUEST_INSTALL_PACKAGES
permission. On lower versions, it returns true by default as this permission is not required.
Return
true if the install permission is granted, or if the platform version is lower than API level 26.