title: Path to "device protected storage" or "direct boot" sharedprefs file
body: <p>Starting with Android Nougat, I used the following code to move the sharedprefs location from the &quot;credential encrypted storage&quot; to &quot;device encrypted storage&quot; so that I can access it before the user unlocks the device (otherwise known as DirectBoot):</p>
  <pre><code>if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.N) {
          // All N devices have split storage areas, but we may need to
          // move the existing preferences to the new device protected
          // storage area, which is where the data lives from now on.
          final Context deviceContext = context.createDeviceProtectedStorageContext();
          if (!deviceContext.moveSharedPreferencesFrom(context, PREFERENCES_NAME)) {
              Utils.logWarn(TAG, &quot;Failed to migrate shared preferences.&quot;);
          }
          storageContext = deviceContext;
      } else {
          storageContext = context;
      }
      sharedPreferences = storageContext.getSharedPreferences(PREFERENCES_NAME, Context.MODE_PRIVATE);
  </code></pre>
  <p>The old location for the file was in /data/data/app_name/shared_prefs/shared_prefs_file_name.xml</p>
  <p><strong>Where is the new location for the shared prefs file?</strong></p>
  <p>I'd like to know this so that I can copy the file to external storage for a backup/restore function.</p>