title: Is it possible to completely disable the Doze mode and Standby mode?
body: <p>I have a requirement to create an app that should run 24/7. I don't care about battery drain, becoz app will not be submitted to PlayStore and its only for the selected user.I also understand app will only last for one day, that is acceptable in my case.  </p>
  
  <p>The application functionality mainly dependent on network and Bluetooth functionality and the most of the code written in pre marshmallow and changing the whole implementation is not a right option for me now. </p>
  
  <p>So is there any way to create the app without any restriction? Also, As observed some of the Device manufacturers put an extra layer of battery optimization to make this worse.</p>
  
  <p>I tried to create a dummy foreground service with partial wakelock, but this not seems to be working. and even whitelisting the app didn't solve the issue.</p>
  
  <p><strong>There is no proper documentation from Google</strong> about what are the functionalities will be affected from doze/standby. According to Google doc the background task will not be suspended, it only deferred until the next maintenance window. If that is the case, App should be able to print all the app that is missed during doze period. But as observed app will print the log only during the maintenance window. The is will break the expected behavior.</p>
  
  <p>Whitelisting is a good option but app will be still be affected by the doze mode. What is the reason to restrict the app behavior even when the user explicitly chose not to? It very frustrating when the app behaves differently in different device OS, Manufacturer etc. </p>
  
  <p>Sorry for the story. I would like to understand is there any way to completely disable Doze and standby mode without changing the existing implementation? <strong>I have gone through the various document, but there is NO WAY to achieve this 100%.</strong> Please share your thoughts</p>