Skip to content

Commit

Permalink
file_changed: disable the checks
Browse files Browse the repository at this point in the history
- the check always returns "unchanged" misleading people
  • Loading branch information
corsicanu committed Jan 10, 2022
1 parent c03cc07 commit 1944b32
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions META-INF/com/google/android/update-binary
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ rm_from_manifest() {
ui_print " - Found $i."
md5=$( md5 $i )
sed -i -e '/<hal format="hidl">/{N;/<name>vendor\.samsung'"$path_extra"'\.security\.'"$service"'<\/name>/{:loop;N;/<\/hal>/!bloop;d}}' $i
file_changed $i $md5
# file_changed $i $md5
fi
done
}
Expand All @@ -106,7 +106,7 @@ disable_fbe() {
# This comments out the offending line and adds an edited one.
sed -i -e 's/^\([^#].*\)fileencryption=[^,]*\(.*\)$/# &\n\1encryptable\2/g' $i
sed -i -e 's/^\([^#].*\)forceencrypt=[^,]*\(.*\)$/# &\n\1encryptable\2/g' $i
file_changed $i $md5
# file_changed $i $md5
fi
done
}
Expand All @@ -125,7 +125,7 @@ disable_vaultkeeper() {
ui_print " - Found $i."
md5=$( md5 $i )
sed -i -e 's/^[^#].*$/# &/' $i
file_changed $i $md5
# file_changed $i $md5
fi
done
else
Expand Down Expand Up @@ -172,7 +172,7 @@ disable_cass() {
ui_print " - Found $i. Disabling..."
md5=$( md5 $i )
sed -i -e 's/^[^#].*cass.*$/# &/' -re '/\/(system|vendor)\/bin\/cass/,/^#?$/s/^[^#]*$/#&/' $i
file_changed $i $md5
# file_changed $i $md5
fi
done
}
Expand All @@ -192,7 +192,7 @@ disable_proca() {
if [ -f $i ]; then
ui_print " - Found $i. Disabling..."
sed -i -e 's/^[^#]/# &/' $i
file_changed $i $md5
# file_changed $i $md5
fi
done

Expand Down

0 comments on commit 1944b32

Please sign in to comment.