How can I find the ad library used by an android application

4.3k views Asked by At

I have downloaded the source codes of open source android apps. I have around 2000 of them. I wish to do an analysis on ad libraries used by android apps. I have 2 questions,

  1. How can I find whether an app uses ad library
  2. If it uses, how can I find the name of the ad library (eg. AdMob, InMobi etc.)
3

There are 3 answers

3
Sohan On BEST ANSWER

Instead of going through the source code of each open-source app and looking for relevant JARs, an easier way to go about this is to use this Android app called Addons Detector. The app will analyse all the add-ons you have in each installed app. It works really well in detecting which ad network your apps are using.

Google Play link.

EDIT: An other way to approach this is to use a software like Charles (charlesproxy.com). This essentially analyses all the HTTP traffic on your network. So you can run the app and then monitor the HTTP packets on Charles. This way you will be able to detect the ad-networks that are being used. It might be pain-staking but it will definitely work.

3
trebron On

Analyze libs folder for files matching InMobi*.jar, GoogleAdMob*.jar, etc.

2
Just Passing On

This paper gives a list of major ad libraries, which may be helpful in setting up your DB: http://arxiv.org/pdf/1303.0857.pdf