On Thu, Mar 10, 2011 at 12:35 AM, Anurag <[email protected]> wrote: > From your response, I understand that "PackageInstallerActivity.java" > gets executed when "Unknown Sources" option is enabled. Could you let > me know, which code (.java ) gets executed, when the "Unknown Sources" > option is disabled? >
No, when you check "allow unknown sources," you are telling the code in PackageInstallerActivity that it will allow itself to run instead of blocking the user. Anyone else installed on the system image with the install permission can call the low-level package manager API to install an app. The Market does this. The am command does this. The PackageInstallerActivity does this as well. The package manager doesn't present any UI for this. You don't turn it off. > My definition of an "application installer" are these two pieces of > code (i.e. "PackageInstallerActivity.java when "Unknown Sources" is > enabled, and a different .java file when "Unknown Sources" is > disabled). Android would invoke the binaries of one of these files > when an app is installed. > Again, there isn't such a concept of a selectable "application installer." > Is there any document that you could share which details the code-base > of the Android platform? I'm new to the Android platform and any such > documentation would help me understand its internal functionality > better - and minimize my questions on this forum! ;-) > Sorry, the source code is the main documentation. -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Security Discussions" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/android-security-discuss?hl=en.
