ibasso: Default to assuming the external SD card is inserted

Detection at startup is proving to be unreliable.  Even if card is not
present at startup, upon insertion it will sort itself out properly.

Change-Id: I9ee90b724c90c530a39264f698c200a48aa72b1d
This commit is contained in:
Solomon Peachy 2021-04-12 16:34:55 -04:00
parent b6fce99046
commit c0a49d9bdf
1 changed files with 6 additions and 1 deletions

View File

@ -26,6 +26,7 @@
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/poll.h>
#include <sys/socket.h>
#include <sys/types.h>
@ -82,7 +83,7 @@ static void vold_monitor_open_socket(void)
}
/* Track state of external SD */
bool extsd_present = false;
bool extsd_present = true; /* Worst-case is it will show up empty */
/*
bionic does not have pthread_cancel.
@ -107,6 +108,10 @@ static void* vold_monitor_run(void* nothing)
DEBUGF("DEBUG %s: Thread start.", __func__);
/* Check to see if external SD is mounted */
// extsd_present = !system("mountpoint -q /mnt/external_sd");
// extsd_present = !system("mount -o remount,rw /mnt/external_sd");
vold_monitor_open_socket();
if(_vold_monitor_socket_fd < 0)
{