Environment

Class of android.os · Environment.java · Android's reference

public class Environment

The device's storage folders, in the app's folder on the host (snx.android.Main.dataRoot).

Fields

public static final String MEDIA_MOUNTED = "mounted" source
public static final String MEDIA_REMOVED = "removed" source
public static final String MEDIA_UNKNOWN = "unknown" source
public static String DIRECTORY_MUSIC source
public static String DIRECTORY_PICTURES source
public static String DIRECTORY_MOVIES source
public static String DIRECTORY_DOWNLOADS source
public static String DIRECTORY_DCIM source
public static String DIRECTORY_DOCUMENTS source

Methods

public static File getRootDirectory() source
public static File getDataDirectory() source
public static File getDownloadCacheDirectory() source
public static File getExternalStorageDirectory() source
public static File getExternalStoragePublicDirectory(String type) source
public static String getExternalStorageState() source
public static String getExternalStorageState(File path) source
public static String getStorageState(File path) deprecated source
public static boolean isExternalStorageRemovable() source
public static boolean isExternalStorageEmulated() source
public static boolean isExternalStorageManager() source

"All files access", which an app that asks for MANAGE_EXTERNAL_STORAGE has, as each permission it asks for here

public static boolean isExternalStorageManager(File path) source
public static boolean isExternalStorageLegacy() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.