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:
@@ -126,12 +126,12 @@ case "$1" in
|
|||||||
mount_system
|
mount_system
|
||||||
mkdir -p $C
|
mkdir -p $C
|
||||||
if check_prereq; then
|
if check_prereq; then
|
||||||
if check_whitelist system; then
|
if check_whitelist $S; then
|
||||||
unmount_system
|
unmount_system
|
||||||
exit 127
|
exit 127
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
check_blacklist system
|
check_blacklist $S
|
||||||
preserve_addon_d
|
preserve_addon_d
|
||||||
run_stage pre-backup
|
run_stage pre-backup
|
||||||
run_stage backup
|
run_stage backup
|
||||||
|
Reference in New Issue
Block a user