Obsolete
Status Update
Comments
jb...@android.com <jb...@android.com> #2
This is only available for applications installed on the system partition by the OEM.
he...@gmail.com <he...@gmail.com> #3
Why is EXTRA_NOT_UNKNOWN_SOURCE not @hide, this just creates confusion and unnecessary bug reports. At least say it's for system apps only in the documentation.
zs...@gmail.com <zs...@gmail.com> #4
Because it's still needed for developers creating apps that will come pre-installed.
Description
The app I'm developing requires that additional apks may be downloaded from a secure web server under certain circumstances. The customer requires that the user need NOT have 'Unknown Sources' checked.
The sdk version for development is API Level 14 where it states in the android documentation that an Intent can be passed with extra 'EXTRA_NOT_UNKNOWN_SOURCE' and called in conjunction with startActivityForResult, will allow the user to install an apk with 'Unknown Sources' unchecked.
This does not appear to work, as it stills requires the user to change their security settings to allow applications from Unknown Sources. What I would expect is that with this extra passed in the installer intent and called with startActivityForResult the apk would be allowed installation with Unknown Sources unchecked.
This issue was observed on a Samsung Galaxy S3 running Android 4.0.3 as well as 4.1.1
Is there any further configuration required for this to work ? Or is this a bug where this extra in the intent is ignored.
Thanks and Regards,
Ross