fix internal storage messages

This commit is contained in:
radius 2016-06-17 09:27:39 -05:00
parent 3b3e822d78
commit b0932af025
3 changed files with 5 additions and 5 deletions

View File

@ -72,8 +72,7 @@ static char screenshot_dir[PATH_MAX_LENGTH];
static char downloads_dir[PATH_MAX_LENGTH];
static char apk_dir[PATH_MAX_LENGTH];
static char app_dir[PATH_MAX_LENGTH];
static char internal_storage_path[PATH_MAX_LENGTH];
static char internal_storage_app_path[PATH_MAX_LENGTH];
#else
static const char *proc_apm_path = "/proc/apm";
static const char *proc_acpi_battery_path = "/proc/acpi/battery";

View File

@ -46,7 +46,8 @@
bool test_permissions(const char *path);
char sdcard_dir[PATH_MAX_LENGTH];
char internal_storage_path[PATH_MAX_LENGTH];
char internal_storage_app_path[PATH_MAX_LENGTH];
struct android_app;

View File

@ -664,9 +664,9 @@ static int menu_displaylist_parse_system_info(menu_displaylist_info_t *info)
menu_entries_add_enum(info->list, tmp, "", MENU_ENUM_LABEL_UNKNOWN, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
#ifdef ANDROID
bool perms = test_permissions(sdcard_dir);
bool perms = test_permissions(internal_storage_path);
snprintf(tmp, sizeof(tmp), "%s: %s", "Internal SD card status",
snprintf(tmp, sizeof(tmp), "%s: %s", "Internal storage status",
perms ? "read-write" : "read-only");
menu_entries_add_enum(info->list, tmp, "",
MENU_ENUM_LABEL_UNKNOWN, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);