title: Nearby Connections API: Android 12 fails to advertise and discover devices with unknown status codes (8037, 8038, 8039)
body: <p>I'm developing an app that uses Nearby Connections API with basic P2P strategy. Suddenly, weirdly enough I'm not able to advertise and discover devices on my Pixel 3a with newest Android 12 and Play Services. <code>OnFailureListeners</code> throw these exceptions:</p>
  <ul>
  <li>for discovering: <code>8037: unknown status code: 8037</code></li>
  <li>for advertising: <code>8038: unknown status code: 8038</code></li>
  </ul>
  <p>Indeed they cannot be found in <a href="https://developers.google.com/android/reference/com/google/android/gms/nearby/connection/ConnectionsStatusCodes" rel="nofollow noreferrer">docs</a> and source code.
  I also checked Google's &quot;Rock Papers Scissors&quot; official sample and it throws the same error codes.</p>
  <p>Of course I reinstalled the app and restarted &amp; updated my phone. EDIT: I also did the factory reset and it didn't help. But after I downgraded to latest Android 11 using Android Flash Tool, it started working again. Moreover, everything still works fine on Android 11, 10 and 9 using different phones.</p>
  <p>Any ideas what causes this issue? It just worked fine for last two weeks and stopped working today. I believe it needs some deep investigation in source code (Xlythe if I may ask for your help, that would be really great).</p>