Skip to content

Commit

Permalink
Properly support all known opt-out props for PixelPropUtils and PropI…
Browse files Browse the repository at this point in the history
…mitationHooks
  • Loading branch information
osm0sis authored Jan 6, 2025
1 parent a4c8aab commit 59781b1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions module/common_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,14 @@ if [ -n "$(resetprop ro.aospa.version)" -o -n "$(resetprop net.pixelos.version)"
done
fi

# Work around supported custom ROM PropImitationHooks conflict when spoofProvider is disabled
if resetprop | grep -q "persist.sys.pihooks"; then
resetprop -n -p persist.sys.pihooks.disable.gms_props true
resetprop -n -p persist.sys.pihooks.disable.gms_key_attestation_block true
fi

# Work around supported custom ROM PixelPropsUtils conflict when spoofProvider is disabled
if [ -n "$(resetprop persist.sys.pixelprops.pi)" ]; then
resetprop -n -p persist.sys.pixelprops.pi false
resetprop -n -p persist.sys.pixelprops.gapps false
if resetprop | grep -q "persist.sys.pixelprops"; then
resetprop -n -p persist.sys.pixelprops.gms false
resetprop -n -p persist.sys.pixelprops.pi false
fi

0 comments on commit 59781b1

Please sign in to comment.