title: Android 10 - Audio Settings Permission Denial: setSpeakerphoneOn()
body: <p>I'm running on Android 10 and cannot turn on speaker phone using Kotlin.
  Below is my code and it will always show False during incall.</p>
  
  <p>MainActivity.kt</p>
  
  <pre><code>val audioManager = getSystemService(Context.AUDIO_SERVICE) as AudioManager
  audioManager.mode = AudioManager.MODE_IN_COMMUNICATION
  audioManager.isSpeakerphoneOn = true
  if (audioManager.isSpeakerphoneOn)
      Toast.makeText(this, "True", Toast.LENGTH_SHORT).show()
  else
      Toast.makeText(this, "False", Toast.LENGTH_SHORT).show()
  </code></pre>
  
  <p>AndroidManifest.xml</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /&gt;
  </code></pre>
  
  <p>Logcat</p>
  
  <pre><code>04-18 10:43:58.064  1313  3118 W AS.AudioService: Audio Settings Permission Denial: setSpeakerphoneOn() from pid=8073, uid=10213
  </code></pre>