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

Facebook Login
Site Registration

Android: Getting the information of the package which created the intent

+2 votes
34 views

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.

posted Jun 1, 2015 by anonymous

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

Similar Questions
+5 votes

I wanted to close the app (Say facebook app) that I open from my app via Intent.
Using intent I am providing option for users to open various apps installed in mobile. Now, I need to provide option to automatically close the opened app after 5-10 seconds.

Is it possible to achieve?
Thanks in advance.

+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

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

+5 votes

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

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