How to get detailed information about a third-party application in Android?

Is it possible to run the third paty application in android, I want to know about all the logs of a third-party application, for example, in the contact list for access to xyz at 2:30 in the morning, on Thursday.

Is it possible to change the framework code, as every time a certain application launches any query in the sqlite framework class, one log will be generated? I think it should be possible through an embedded device, but not sure how to implement it.

+3
java android
source share
5 answers

Is it possible to change the framework code, as every time a certain application launches any query in the sqlite framework class, one log will be generated?

Having abandoned Android, add your changes by creating your own ROM mod, which contains your forked copy of Android, and installing this mod on your device.

I think it should be possible through an embedded device

In the best case scenario, you can skip the step of creating your own ROM module and try to copy the modified JAR interface to your root device. However, if this JAR interface does not match the rest of your OS, various things may not work. That's why the only safe way to do this is through the full ROM mod.

+2
source share

LogCollector Install the LOG COLLECTOR application

+4
source share

One way to change the structure to find out who turned to any content provider would be to change

enforceReadPermission and enforceWritePermission in ContentProvider.java to register a package that calls contentProvider,

 Log.d(TAG,""+getCallingPackages() +" app called provider "+ uri.getAuthority()); 

Getcallingpackages function

 private Collection<String> getCallingPackages() { int caller = Binder.getCallingUid(); if (caller == 0) { return null; } return Lists.newArrayList(mContext.getPackageManager().getPackagesForUid(caller)); } 
+4
source share

This may seem obvious, but I will say it anyway. You can read the logs of any application in Eclipse LogCat.

If you know the name of the application and actually create the logs (that is, the logs are turned on), you filter them to view the logs specific to that application.

+2
source share

Perhaps you can use aop framework for android ...

+1
source share

All Articles