src/api-impl: misc stubbing

This commit is contained in:
Mis012
2022-12-27 17:21:21 +01:00
parent 696fa5a192
commit 2e4590c4d8
15 changed files with 226 additions and 52 deletions

View File

@@ -622,8 +622,8 @@ public class Environment {
* {@link #MEDIA_BAD_REMOVAL}, or {@link #MEDIA_UNMOUNTABLE}.
*/
public static String getExternalStorageState() {
final File externalDir = sCurrentUser.getExternalDirsForApp()[0];
return getStorageState(externalDir);
// we don't do stupid stuff like having this on a separate partition, so it should always be "mounted"
return MEDIA_MOUNTED;
}
/**