I wrote a native application needs the process name of the calling process. 
I use the getppid() function to ge the calling process name and then use 
the /proc/PID/status to determine the name. However, it appears whats in 
there is not always the same as the package name of an APK or whats listed 
in PS. 

For example. When I launch the Calculator and cat the status file for that 
pid, it lists as oid.calculator. However, whats in PS is 
com.android.calculator. The same is true in the packages.xml file.

Why is it that the /proc/pid/status name is not showing the correct 
information? 

This was experienced on a Google Nexus and Motorola Razr Maxx running ICS 
4.0.4

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to