I need to write an application that can derive other(target)
application's package name and signatures out of [process id of
running instance of target application] for some dianostic features.

I've skimmed through the android app framework, and found that
PackageManger has the ability to get package signatures.
"..getPackageManager().getPackageInfo(packageName, GET_SIGNATURES).."
but, this just shows possibility of getting signatures from package
name. as I said, our available input parameters are only running
instance process id of the application.

Is there any way of getting package name from pid of running
application? I know there's process cmdline information within /proc/
$PID/cmdline, but it has length limitation (prob hardcoded in kernel
source) and needs some unclean parsing prcedure, and also not sure
cmdline always has package name. Is there a clean / framework based
solution for this? (any soltions beyond framework / unclean are
welcome!)

thanks in advance!

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

Reply via email to