Android Nougat APK Installer

May 15, 2017 19:31 · 130 words · 1 minute read

Android Nougat are now prohibited the usage the file scheme (file://) on sharing cross app (for intent), and now switch to use the FileProvider so now on Nougat we must use the content scheme (content://) that also enable an app to share anything on its internalDir to another app, as long as add Intent flags FLAG_GRANT_READ_URI_PERMISSION

That also mean the apk installer app of the android also use the content scheme, and that allowed an app to store an APK inside the internalDir and share it to the installer app via an intent. This kind of sharing is cannot be done on android below nougat since the installer app below nougat is still using the file scheme and accessing another app internalDir through file scheme is prohibited for security concern.

comments powered by Disqus