When using build tools version 24 and Android device with N image (npd56n) I'm unable to install package using PackageManager#installPackage.
When URI with the file:
scheme is passed to the method, -3 is returned, I assume it is the INSTALL_FAILED_INVALID_URI.
When the URI created with a FileProvider (content:
scheme) is passed to the method, exception is thrown:
Caused by: java.lang.UnsupportedOperationException: Only file:// URIs are supported
Any ideas?