<div dir="ltr"><span id="gmail-result_box" class="gmail-" lang="en"><span>When a user wants to have
 a hidden service active in sleep mode has to pay the toll imposed by 
Android and we can not do anything about it without patching Tor.</span><br><br><span>So
 I think our best approach is to ask the user to include Orbot in the 
white list of Doze when there is some hidden service active and remind 
him to delete Orbot from the list when all the services are paused.</span><br><br><span class="gmail-">I
 have written the code that manages the permission with the minimum impact, 
but I would like to know what Nathan thinks before adding it to my 
branch.<br><br></span></span></div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-07 22:46 GMT+01:00 arrase <span dir="ltr"><<a href="mailto:arrase@gmail.com" target="_blank">arrase@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span id="m_5985504597516843865gmail-result_box" class="m_5985504597516843865gmail-" lang="en"><span class="m_5985504597516843865gmail-">I knew the problem but I did not address it in depth because until now it was not an intensive use of hidden services in Orbot.</span><br><br><span>Now that I have finished my changes it is time to study the problem but I need to write some code before deciding a solution.</span><br><br><span class="m_5985504597516843865gmail-">I will keep you informed of my progress.</span><br><br><span class="m_5985504597516843865gmail-">I have read your comments on the link you attach and I want to thank you for the information gathering work you have done.</span><br><br><span class="m_5985504597516843865gmail-">I think at the technical level you have exposed all the arguments.<br><br></span></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-12-07 1:10 GMT+01:00 Greg Troxel <span dir="ltr"><<a href="mailto:gdt@lexort.com" target="_blank">gdt@lexort.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I tried to use briar, which uses a HS on every user's device to get<br>
metadata protection for messaging:<br>
<br>
  <a href="https://briarproject.org/" rel="noreferrer" target="_blank">https://briarproject.org/</a><br>
<br>
and noticed that it kept my phone always awake.  After some very helpful<br>
discussions, I understand that the basic issue (vast<br>
oversimplification!) is that tor's state machine expects to be called<br>
once/second, and essentially this isn't compatible with android/doze.<br>
<br>
So I wonder what you are doing about hidden services in orbot?  Are you<br>
taking a wake lock?  Being a good doze citizen?  Does this really work<br>
(meaning you can keep a HS registered in doze, and the app will notice<br>
arriving traffic in 10 minutes when it hits maintenance window)?  With<br>
or without whitelisting?  Or do you think I'm confused (that would be<br>
great, in this situation)?<br>
<br>
<a href="https://code.briarproject.org/akwizgran/briar/issues/769" rel="noreferrer" target="_blank">https://code.briarproject.org/<wbr>akwizgran/briar/issues/769</a><br>
<br>
<a href="https://lists.torproject.org/pipermail/tor-dev/2016-December/011708.html" rel="noreferrer" target="_blank">https://lists.torproject.org/p<wbr>ipermail/tor-dev/2016-December<wbr>/011708.html</a><br>
<a href="https://lists.torproject.org/pipermail/tor-dev/2016-December/011713.html" rel="noreferrer" target="_blank">https://lists.torproject.org/p<wbr>ipermail/tor-dev/2016-December<wbr>/011713.html</a><br>
<br>
(It's on my todo list to change the code to not object to being called<br>
up to about 900s late, and to remove the wake lock from briar, and see<br>
what happens.)<br>
<br>
Thanks,<br>
Greg<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>