nikhilelite
nikhilelite

Reputation: 311

Android permissions and guid and uid

Hello I am trying to find out how is guid and UID assigned to a particular app in android. I know roughly what goes on in zygote and also that during package installation UID is assigned to that app, however I want to know where exactly this takes place and how ?

If anyone could point to the source files it would save a lot of my time.

Upvotes: 1

Views: 1334

Answers (1)

tigeroctopus
tigeroctopus

Reputation: 103

I don't have a detailed answer for you, but you could start here:

http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.5_r1/com/android/server/PackageManagerService.java#PackageManagerService.HandlerParams.startCopy%28%29

The PackageManagerService handles installation. I am guessing it delegates the task of setting the GUID, but it's a starting point.

Upvotes: 1

Related Questions