I am using a piece of software called proxydroid to use my device as a proxy server, and its the only one I found that does not require root. I'm not sure if this will help you, but his open source project and code can be found here:
https://github.com/madeye/proxydroid
I noticed that the application will freeze after a while or if a large number of requests are sent immediately, but I did not have the opportunity to find out why this is happening.
source share