Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fe3ebfa authored by San Mehat's avatar San Mehat Committed by Android (Google) Code Review
Browse files

Merge "sdutil: Use new MountService api method names"

parents 56e74504 cf7aa68e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ static void millisecondSleep(int milliseconds) {

static int mount(const char* path) {
    String16 string(path);
    gMountService->mountMedia(string);
    gMountService->mountVolume(string);
    
    for (int i = 0; i < 60; i++) {
        if (isMounted(path)) {
@@ -137,7 +137,7 @@ static int asec_path(const char *id) {

static int unmount(const char* path) {
    String16 string(path);
    gMountService->unmountMedia(string);
    gMountService->unmountVolume(string);

    for (int i = 0; i < 20; i++) {
        if (!isMounted(path)) {
@@ -155,7 +155,7 @@ static int format(const char* path) {

    if (isMounted(path))
        return -EBUSY;
    gMountService->formatMedia(string);
    gMountService->formatVolume(string);

    return 0;
}