Skip to content

Commit

Permalink
enhancer: minor adjustments
Browse files Browse the repository at this point in the history
Signed-off-by: BlackMesa123 <[email protected]>
  • Loading branch information
salvogiangri committed Aug 3, 2023
1 parent e8b4aa4 commit 485d1a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion enhancer/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ else
if grep -q 'fileencryption' /vendor/etc/fstab.*; then
if grep -q 'Knox protection required' /system/bin/vold; then
ui_print "I: Applying Secure Folder fix..."
cp "/system/bin/vold" "/system/bin/vold.bak"
cp --preserve=all "/system/bin/vold" "/system/bin/vold.bak"
PATCHED=false
$PATCHED || hex_patch "/system/bin/vold" 00E4006FEA861A11 00E4006FEABE0451 && PATCHED=true
$PATCHED || hex_patch "/system/bin/vold" 08FA805200E4006F 0800805200E4006F && PATCHED=true
Expand Down
2 changes: 1 addition & 1 deletion enhancer/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ hex_check() {
if $( ( $xxd -p "$1" | tr -d \\n | tr -d " " | grep -q "$2" ) 2>/dev/null ); then true; else false; fi
}

# hex_check <file> <old_hex> <new_hex>
# hex_patch <file> <old_hex> <new_hex>
hex_patch() {
local xxd
if xxd --help >/dev/null 2>&1; then
Expand Down

0 comments on commit 485d1a7

Please sign in to comment.