Android: completely disabling deviceidle ("Doze") in Android M?
<p>In a rooted Android M device, I want to completely disable deviceidle mode ("Doze"), all the time. Yes, I know this affects my battery life, and that's fine with me.</p>

<p>I know that I can invoke the following:</p>

<pre><code>dumpsys deviceidle disable
</code></pre>

<p>However, I haven't been able to find detailed docs for that subcommand. Does it actually disable "Doze" completely and permanently on my device (or at least until the next boot), or does it perform some other related function?</p>

<p>If that "dumpsys deviceidle disable" command isn't the way to permanently disable "Doze", is there some other way, perhaps via the Android Java API? Actually, a Java-API solution would be ideal, if one exists.</p>