I followed tutorial from here:
EDIT: android version 6.0.1
Downgraded my nexus 5 for android 6.0.1
Mitmproxy in transparent mode works, but now I can't install certificate from mitm.it
Error is "Couldn't install because certificate file couldn't be read"
I installed certificate manually in android device settings but in mitmproxy transparent mode I have errors "The client may not trust proxy's certificate". So I guess certificate isn't installed well.