8

I get the following message in Android Logcat I/ActivityManager(59): Start proc com.abc.xyz:mnp for service com.abc.xyz/.contact.SomeService: pid=31198 uid=10036 gids={3003, 1015}.

What are the meanings of pid, uid and gids and numbers in front of them here?

Gaurav Agarwal
  • 18,754
  • 29
  • 105
  • 166

1 Answers1

15

These are standard Linux terms:

  • pid = process ID
  • uid = user ID of the application that owns that process
  • gid = group IDs of the application that owns that process
CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • What exactly determines the uid under android? The application? Because every application gets an 'account'? If I write an app with 2 processes (declared in manifest with android:process=":..."), do they have the same uid but different pid? Thanks! – JacksOnF1re Aug 28 '15 at 10:06
  • 2
    @JacksOnF1re: "What exactly determines the uid under android?" -- by default, each app gets its own unique Linux UID. "If I write an app with 2 processes (declared in manifest with android:process=":..."), do they have the same uid but different pid?" -- yes. – CommonsWare Aug 28 '15 at 10:53