android - How to hook/monitor network calls made by integrated third party libraries? -


we working on ad mediation project requires integrating arbitrary number of third party libraries larger framework. libraries have common behavior of contacting external server , returning valid android layout or failing, can assume no knowledge or control on internal functions.

the server interaction carried out third-party library opaque standpoint of framework/app initiates call sequence. potentially allows library implemented access , transmit sensitive information based on permissions of app.

the objective calling process able capture http request being made integrated library @ framework/app level before passed out network. ideal case ability process , potentially block request. alternative find way log requests , provide feedback actionable analysis.

i'm not finding helpful in docs or searching forums. possible in android?

you think second helper-app without permissions, takes 3rd-party libs plugins. main-app communicates via aidl helper-app. 3rd-party libs can give abstract commands 'load_ad https://...'. actual requests done main-app. alternatively aidl 3rd-party libraries broadcast commands (see broadcastreceiver).

the second app uses same android:shareduserid , creates permission can granted main-app. way helper-app possible client of main-app.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -