top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Library Package Dependencies on Android

+1 vote
147 views

When building custom packages into the AOSP, I know that we can link with prebuilt jars, but can we also link with prebuilt, or alternatively build library _packages_?

Our situation is this:
We've built a home screen replacement that is spread over two android projects, one containing common source code and resources used for a variety of our projects, and the other containing the launcher specific source code and resources. We've be able to build our launcher along with AOSP, and include the jar produced by the common project, but it's not clear how to acquire the resource definitions and the resources contained in the common project. A quick perusal of these forums didn't turn anything promising up.

So, question is: is it possible to utilize the resources of an external package in a package that I'm building along with AOSP, and if so, how is it done?

posted Jul 20, 2013 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+5 votes

Isn't there a Package on Fedora repo that you can install so as to view files on Android Phones by USB.

0 votes

Has anyone archived some third-party libs like jars, .so files into a module to generate an aar file? I put the .so files into jniLibs, but when I generate an aar files, I found the menu of the files was wrong with some empty dirs. And I put this aar file into my project, something goes wrong (crashes) when it calls .so files.

Can u help me to make it right?

+2 votes

As far as I know, when using forceStopPackage(), the alarm registered by this package will automatically unregistered. So does the same logic fit for jobscheduler? Please clarify

+2 votes

I changed the Android kitkat framework to add the logging statement whenever an application creates an intent. For the same I did changes in the file framework/base/core/java/android/content/Intent.java . However, there are different overloaded methods in this file for creating the intent. Some have the package info but other don't have.

Please let me know how to got the package from which the intent is created.

+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?

...