title: Android 11 - Kiosk Mode Lock Screen NFC Issue
body: <p>I have an application that runs as a kiosk using Android Management API - some of my customers prefer to use MDM platforms such as Intune and Airwatch.</p>
  <p>We use the Samsung XCover Series for our dedicated devices.</p>
  <p>It appears that with Android 11 there has arisen a new issue.</p>
  <p>When the phone is running, be it as a single use Kiosk app locked to my application, or a multi-app setting using a third party MDM Platform, the screen will time out after a period of time. Once the screen times out, the Android 11 device enters the &quot;Swipe to lock&quot;, but shows the app or MDM kiosk on top of this (hence the user has no knowledge this is happening). This is causing NFC to stop functioning as the device is essentially locked.</p>
  <p>This can be reproduced and verified as follows:</p>
  <ol>
  <li>Take two phones, one Android 11 and one 9.</li>
  <li>Provisioning them to run as kiosk using any application</li>
  <li>Wait for the screen to timeout on both phones.</li>
  <li>Finally update the policy to run as &quot;force_installed&quot;.</li>
  <li>The Android 11 phone will return to &quot;Swipe to unlock&quot;, the 9 phone will not.</li>
  </ol>
  <p>The same issue occurs on Android 10 but was easily fixed by turning the Lock Screen to Off in the device settings. Unfortunately, on Android 11 it appears that disabling this feature has no affect on the lock status of the device while running as a kiosk.</p>
  <p>I have come up with a temporary solution for devices that are locked to our application, by keeping the screen alive when the app is running in the foreground. This however does not suit our customers who also use other apps within their environment.</p>