top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Who controls putting process pids in different cgroups on android?

+1 vote
449 views

Who controls putting process pids in different cgroups? Kernel or Userspace/Framework?

posted Jul 22, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

Servicemanager uses file-system config to isolate services and the directories they can access so if u want services to write/read to some place at the file-system then this config must be modified or you can add that service or process which it's in to a group.

Checkout android private file-system config.

answer Jul 22, 2013 by anonymous
+1 vote

The low-level user-space cgroup code is in system/core/cutils/ .grep for cgroup there and find the low-level API name.
I recall that the higher-level user-space cgroup that makes the policy decision isin ActivityManager, in frameworks/base. grep for the code that callswhatever API name you found above.

answer Jul 22, 2013 by anonymous
Similar Questions
0 votes

What if MediaServer's main thread is kept busy during MediaPlayerService::instantiate.I Mean what if there was a while loop in one of them.Will android be able to trigger a watchdog or reboot only that process ?

+1 vote

I was studying golocker application and I found some weird property on its application tag:
ANDROID:PROCESS="ANDROID.PROCESS.ACORE"

So they are running their app on the main android process.Does anyone know the reason for that and what are the consequences? I also realized that they are running their lock screen service in foreground state but not showing the notification on status bar (likely using some hack).

+1 vote

Suppose I have two apps which are using location service.

Inside the service manager I want to identify these calls separately for these apps, such as I can say that this call is for ProcessX and that call is for ProcessY. How would I do it?

+2 votes

As far as I know, when using forceStopPackage(), the alarm registered by this package will automatically unregistered. So does the same logic fit for jobscheduler? Please clarify

+1 vote

In Android5.0, an App(apk) can be installed in multiple users. When the App is running in another user, there is a new process of the App. I want to develop a App which is running in multiple users but only one process is created. Some system process, such like "com.android.phone" is running in this way. But I can not find the way to do that.

I have tried as below, but don't work.

  1. use sharedUserId as system, and mark persistent to be true;
  2. sign app as platform signature, put the apk to /system/app or /system/priv-app/;

However, service/recevier/provider can use in manifest.xml to share the same component although.(single user tag must be installed in /system/priv-app/).

...