top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Purpose of shareUID

+1 vote
6,588 views

I understand that two things, when two applications shared the same user ID:
1. they can access each other's data and, if desired, run in the same process.
2. they are considered as one identity.
Thus if app 1 and app2 each hold a specific subset of ~different~ permissions, during a permission check in the OS, each app inherits all the permissions from the other.

I'm trying to understand the advantages of these assumptions listed above? For example,
1. Advantages because the operating system saves system resources by holding to apps in one process instead of two? Easier means of communication between the apps, as well as easy access to each apps' data? Are these correct, if so are there any other reasons?
2. If the assumption is correct, why is it such a way? Why not give each app a different uid without the option of sharing a uid between apps?

posted May 15, 2013 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+2 votes

I am often confused with Dex Optimization details. Here are few details I know of.

Kindly correct me if i am wrong ? While exploring the source code, i found that package manager scans all the external libraries, base frameworks, system packages, and vendor packages for dex optimization.

So, if I understand correct 'dex optimization' can be done both in compilation time and execution time.

Also, surfing in the internet, DISABLE_DEXPREOPT has an impact over this dex optimization when to be done?

Which one do I have to opt?

DISABLE_DEXPREOPT=true [OR] DISABLE_DEXOPT=false  

while building with the below command

make TARGET= droid -j6  

According to the source code, I understood if .odex is available as part of .jar or apk file, then it ignores dex optimization, while booting.

Kindly correct me if i am wong?. and suggest.

0 votes

I want to change the default refresh of HDMI output property in my AOSP for S905X Tv (MQX) box. I think that package of my interest is /packages/apps/TvSettings.I need change value from default 1080p-60Hz to 1080p-50Hz.

I found HDMI_LIST with modes in OutputUiManager.java but here I am in the end.I did not find any default xml in values.

...