0

I want to modify AOSP to capture the network traffic and file operation behavior of APPs installed on my ROM. I have installed the rom to my nexus_6p. I don`t know how to modify AOSP to capture(OR log) the network traffic cause i am not very well in android development. Please tell me where or how to modify it. If there is any article, you can also post it. Thank you

I am not a malicious developer , this is just my project which detects suspicious apk and this project Will not be made public.

Thanks again!

R.s
  • 11
  • 1

2 Answers2

1

No need to modify the AOSP source, you can run an app that will do this. Android has a mechanism for routing traffic to an app called VpnService (it's not actually a vpn).

There are apps that already do this, for example tPacketCapture.

If you're interested in developing such an app yourself, you may find these questions of interest:

Android VpnService, packets forwarding

Sending a raw packet to a NetworkInterface in Android doesn't work?

brunorey
  • 2,135
  • 1
  • 18
  • 26
0

You can achieve your goal by modifying the AOSP.

You have to do something to these following components which produce network traffic.

  • OkHttpRequest

  • Webview.apk

If you need any further help, I would attach here detailed technical tips or step-by-step manual.

ariane26
  • 163
  • 1
  • 6
  • 25