6 package com.google.appinventor.components.runtime.util;
8 import android.content.Context;
9 import android.os.Build;
10 import android.os.Environment;
92 @SuppressWarnings(
"deprecation")
94 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO) {
96 return Environment.getExternalStorageDirectory();
98 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q || forcePrivate) {
100 return context.getExternalFilesDir(
null);
102 return Environment.getExternalStorageDirectory();
123 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
159 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {