top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

Identifying different calls in service manager on a Android Phone?

+1 vote
61 views

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?

posted Nov 6, 2013 by Abhay Kulkarni

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button
You can put a check on process id, package names etc.

1 Answer

+1 vote

Thanks, Inside the service manager, I am able to see process ids as i wanted. I found 'struct binder_txn' in binder.h inside the framework which has sender_pid field.

answer Nov 8, 2013 by anonymous
Similar Questions
0 votes

There are two connection, ethernet and WiFi. Ethernet has higher priority than wifi, so connectivity service tears down the lower priority connection. The result is in wifi setting UI, the wifi shows "on", but no APs can be shown and mirracast also can not be used, as both wifi and p2p interface are disabled.

Are there some ways to keep both ethernet and wifi connection?

+1 vote

I have an LG X charge. not even a year old. I woke up and my cat must have spilled water on it. I put it in rice and its working normally except the battery remains at 100% I've turned it on and off multiple times. Should I be worried ?

0 votes

Whenever I turn my mobile data on, UC news gets installed automatically. I turned Installation from unknown sources off but still I get the installation pop up.

Someone find a solution for this please?

+7 votes

Is it possible to profile all the app processes running on android phone simultaneously. I ran "am profile start " one by one for all the app processes. I found that it just profiles the last process. Is it possible to profile multiple processes simultaneously without editing app code (adding "Debug.startMethodTracing" calls)?

+3 votes

I've been trying to figure out how an android app is installed by browsing AOSP.

The PackageManagerService.java has the gids for the corresponding permissions by parsing the platform.xml file.

PackageInstallerActivity parses and checks for any existing packages and then invokes the InstallAppProgress

I was able to follow the paths where the package is parsed and validated and PackagerManager.installPackage() method is invoked to install the package. I know this makes a native call to the JNI library. The corresponding aidl file is IPackageManager.aidl.

What I want to know is where can I find the Native cpp code related to this aidl mentioned above?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...