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

Facebook Login
Site Registration

Native code linking for Package Manager in Android

+3 votes
113 views

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?

posted Feb 21, 2014 by Sanketi Garg

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

Similar Questions
0 votes

I'm looking for native library for video play with custom buffering for rendering of big video files (500MB+) in android application. What is the best options?

+3 votes

We using C++ in the media layer and we want to raise the priority of our _AUDIO PROCESSING_ thread, to make sure the audio works well even the CPU is high (totally %98 on an slow Phone).

I have searched on google and find to use _setpriority( PRIO_PROCESS, 0, priority); but _setpriority function is change the process priority instead of the thread.

I know there is Java API to do that, but we need an C++ API. So does there any way to raise an single thread priority from C++ code?

+2 votes

I wishito know if android's Garbage Collection mechanism affects memory held in the native side ( especially the memory held by android.graphics.Canvas objects ).
Occassionally, I see crashes in libskia.so immediately following a GC operation on the same process that crashed. I 'm unaware of the VM's GC operation but am interested to know how native memory is affected by GC.

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
...