Get package names by UID from native code

653 views
Skip to first unread message

zyrikby

unread,
Apr 11, 2012, 10:12:14 AM4/11/12
to android-...@googlegroups.com
Hi,

Does anybody know how to get package names by UID from native code (all package names)? The equivalent function in java is PackageManager.getPackagesForUid(uid), the implementation of which is in PackageManagerService.java?

Thanks in advance!

Dianne Hackborn

unread,
Apr 11, 2012, 8:59:25 PM4/11/12
to android-...@googlegroups.com
You need to go through the PackageManager API.  Write some JNI code.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/qIgotj35bZoJ.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.



--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

Reply all
Reply to author
Forward
0 new messages