Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is UID on Android?

Tags:

What is UID on Android?

Is it ID of a particular user or of a particular application?

like image 685
james Avatar asked Apr 18 '11 21:04

james


People also ask

What is PID and UID in Android?

pid = process ID. uid = user ID of the application that owns that process. gid = group IDs of the application that owns that process.

What is mobile UID?

A unique device identifier (UDID) is a 40-character string assigned to certain Apple devices including the iPhone, iPad and iPod Touch. A service set identifier (SSID) is a sequence of characters that uniquely names a wireless local area network (WLAN).

How do I identify an Android phone uniquely?

Settings. Secure#ANDROID_ID returns the Android ID as an unique for each user 64-bit hex string. It's known to be null sometimes, it's documented as "can change upon factory reset". Use at your own risk, and it can be easily changed on a rooted phone.

What is Android package manager?

Package Manager is a highly powerful application to manage apps, both system and user, installed on an android device.


2 Answers

If you're referring to this UID: Android is based on Linux, so basically it's the same UID you have on a Unix-like OS. When installing an app / package, Android by default[1] creates a UID specifically for that package, so that it can have its private resources / storage space. When no packages are using that UID any more (which could be shared), the UID is deleted.

1. You can override this behavior with android:sharedUserId, but it has some drawbacks.

like image 59
bigstones Avatar answered Oct 01 '22 03:10

bigstones


This ID is particular to the application

Android assigns a unique user ID (UID) to each Android application and runs it in its own process. Android uses this UID to set up a kernel-level Application Sandbox.

Refer to this doc https://source.android.com/security/app-sandbox

like image 22
Nirali Avatar answered Oct 01 '22 02:10

Nirali