title: Android ACTIVITY_RECOGNITION Permission SDK 28 running on Android 10/Q (SDK 29)
body: <p>My Android app targets SDK 28 and connects to Google Fit to upload data and read some other data. The app uses the HistoryAPI to read com.google.step_count.delta data.</p>
  
  <p>This documentation claims that "com.google.android.gms.permission.ACTIVITY_RECOGNITION permission is converted into a pre-granted runtime permission" if the app targets SDK 28 but runs on SDK 29:  <a href="https://developers.google.com/fit/android/authorization#android_permissions" rel="noreferrer">https://developers.google.com/fit/android/authorization#android_permissions</a></p>
  
  <p>I have added  to the app's manifest like the documentation says to do.</p>
  
  <p>When this Android app is on a device running Android 10 (SDK 29) and the user connects to Google Fit for the first time, I get a log saying: </p>
  
  <pre><code>There was a problem subscribing.com.google.android.gms.common.api.ApiException: 10: SecurityException: com.google.step_count.delta requires android.permission.ACTIVITY_RECOGNITION
  </code></pre>
  
  <p>Yet the documentation claims that this will be converted into a pre-granted runtime permission.</p>
  
  <p>The team is not ready to migrate the app's target SDK to 29 just yet, so how can we continue to get com.google.step_count.delta data without this error?</p>
  
  <p>I am assuming that this log means it didn't actually connect as there was no log statement that said: </p>
  
  <pre><code>Successfully subscribed to com.google.step_count.delta
  </code></pre>