From 6b83f943adbba1b4772b617f975f9a068bde6942 Mon Sep 17 00:00:00 2001 From: Davide Garberi Date: Sun, 19 Jan 2020 17:44:11 +0100 Subject: [PATCH] backuptool: Run check_{black, white}list with proper system path * If any of these two function gets run on a recovery mounting system to /system, /system/addon.d won't exist while /system/system/addon.d will. * Run the functions with $S as argument to make this work correctly Change-Id: I02e7b91429a9e74d28bdb77e56955dad97ca75ac --- prebuilt/common/bin/backuptool.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prebuilt/common/bin/backuptool.sh b/prebuilt/common/bin/backuptool.sh index 9c620461..e873b2ed 100755 --- a/prebuilt/common/bin/backuptool.sh +++ b/prebuilt/common/bin/backuptool.sh @@ -126,12 +126,12 @@ case "$1" in mount_system mkdir -p $C if check_prereq; then - if check_whitelist system; then + if check_whitelist $S; then unmount_system exit 127 fi fi - check_blacklist system + check_blacklist $S preserve_addon_d run_stage pre-backup run_stage backup