title: Reboot android programatically on Android Enterprise dedicated device
body: <p>We are migrating from the legacy Android Device Administrator to the new Android Enterprise policies, but we are facing a challenge migrating one functionality that need to reboot the android when some hardware functionality stop working (like gms/gps stuck).</p>
  <p>We are using the <code>DevicePolicyManager</code> (<code>devicePolicyManager.reboot(yourAdminComponent)</code>) right now but I'm not sure how to migrate it to the &quot;new&quot; way.</p>
  <p>I'm still learning from this new method, I've tried to find the replacement for the DevicePolicyManager but I have no success and I CAN'T root my device, so doing through <code>su</code> is not an option for me.</p>
  <p>(There is a possibility that I completelly misunderstood the statement on this page <a href="https://developers.google.com/android/work/device-admin-deprecation" rel="nofollow noreferrer">https://developers.google.com/android/work/device-admin-deprecation</a> and I'm trying to find the wrong answers)</p>