title: Toggle the debug Firebase Analytics prop at runtime on Android
body: <p>Motivation: toggle the debug Firebase Analytics property at runtime</p>
  
  <p>I'm looking for a way to switch the debug on and off through the code like it's done through adb shell here:
  <a href="https://firebase.google.com/docs/analytics/debugview" rel="nofollow noreferrer">https://firebase.google.com/docs/analytics/debugview</a></p>
  
  <p>Already tried the methods that were advised here:
  <a href="https://stackoverflow.com/a/11623309/6301831">https://stackoverflow.com/a/11623309/6301831</a></p>
  
  <p>But got this message:</p>
  
  <pre><code>Unable to set property "debug.firebase.analytics.app" to "com.pantos27.Basefook": connection failed; errno=13 (Permission denied)
  </code></pre>
  
  <p>running as root is not an option btw</p>