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

Commit eaf33654 authored by Doug Zongker's avatar Doug Zongker
Browse files

only do uncryption on packages in /data

If recovery is invoked with a package somewhere other than /data,
leave it alone.

Change-Id: Ief358b53df467ae24a65e30e7a631da59bf13683
parent a91ecc59
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@ char* parse_recovery_command_file()

    while (fgets(temp, sizeof(temp), f)) {
        printf("read: %s", temp);
        if (strncmp(temp, "--update_package=", strlen("--update_package=")) == 0) {
        if (strncmp(temp, "--update_package=/data/", strlen("--update_package=/data/")) == 0) {
            fn = strdup(temp + strlen("--update_package="));
            strcpy(temp, "--update_package=@" CACHE_BLOCK_MAP "\n");
        }