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
This commit is contained in:
Davide Garberi
2020-01-19 17:44:11 +01:00
parent 23d677b5de
commit 6b83f943ad

View File

@@ -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