1. Download our Official Android App: Forums for Android!

Apps App to intercept network traffic and change responses

Discussion in 'Android Development' started by Juo, Feb 17, 2016.

  1. Juo

    Juo Lurker
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    3
    Joined:
    Feb 17, 2016

    Feb 17, 2016
    3
    1
    16
    Male
    Hi,

    Can anyone tell me if it is possible to develop an android app that when running (probably as a Service), monitors incoming network traffic (http responses etc), and change the content of the responses? Has to be without requiring rooting the device :)

    Applications might be netnanny type stuff, where you can stop profane language appearing on your kids phone, on their facebook or instagram accounts etc - it detects certain posts and blocks the content by changing the http response. (Oh and would also need to work over https as well as http :)

    It looks like that this is possible in iOS by using NSURLProtocol, but I don't see an Android equivalent.

    I think its possible on a rooted device, but otherwise not possible. I have tried a basic proxy server running locally, but that requires setting the proxy settings, which then means the phone can't access remote network.

    Thanks for any help :)
     

    Advertisement

  2. Juo

    Juo Lurker
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    3
    Joined:
    Feb 17, 2016

    Feb 17, 2016
    3
    1
    16
    Male
    Woops, just saw the Please Read sticky, my bad, sorry :oops:
     
    Unforgiven likes this.
  3. svim

    svim Android Expert
    Rank:
     #28
    Points:
    708
    Posts:
    4,842
    Joined:
    Dec 19, 2013

    Dec 19, 2013
    4,842
    4,091
    708
    Illinois
  4. Unforgiven

    Unforgiven ...eschew obfuscation...
    Moderator
    Rank:
     #1
    Points:
    4,488
    Posts:
    38,270
    Joined:
    Jun 23, 2010

    Jun 23, 2010
    38,270
    47,478
    4,488
    Male
    Douglas, MA
    Moved to the right place for you.:)
     

Share This Page

Loading...