This is not how Android works. Permissions are associated with uids, the uid is assigned to an app when it is installed, the process it runs in has a uid which is the sole entity that determines its permissions.
If you want to have code from .apks running under different permissions, that code must be in different .apks, running in a process owned by that .apk, and thus running under the uid of that .apk. On Fri, Jun 10, 2011 at 4:16 AM, Mahender <[email protected]> wrote: > Hi, > We are building a framework as a service and the framework uses > the datasources to get data from different sources like Facebook, > GMail, Calls, GPS, Battery Information etc. So the development of > framework is separate and the development of datasources is seperate. > > Whenever there is a need for data in the framework, the datasources > class is dynamically loaded from the APK. > > So the problem is with the permissions. The permissions in framework > is different from the permission defined in datasources.apk > > When I load the class from datasources APK in the framework project I > am getting permission denied error for sources dependent on GPS, > Battery Information. > > Is there any way to load the required permissions from the datasources > APK in the framework. > > Regards, > Mahender > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" 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-developers?hl=en > -- 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 Developers" 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-developers?hl=en

