mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-05 07:55:00 -04:00
Prevent Qualcomm location stack from reading chipset serial number
The deblobber already removes xtra-daemon which is what actually performs the requests. This is just extra sanctity. Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
366b4eb5ef
commit
c544c28b94
9 changed files with 17 additions and 2 deletions
|
@ -492,6 +492,14 @@ volteOverride() {
|
|||
}
|
||||
export -f volteOverride;
|
||||
|
||||
hardenLocationSepolicy() {
|
||||
#Prevent Qualcomm location stack from reading chipset serial number
|
||||
find device -name "hal_gnss*.te" -type f -exec sh -c "awk -i inplace '!/sysfs_soc/' {}" \;
|
||||
find device -name "location.te" -type f -exec sh -c "awk -i inplace '!/sysfs_soc/' {}" \;
|
||||
echo "Removed serial number access to Qualcomm location stacks";
|
||||
}
|
||||
export -f hardenLocationSepolicy;
|
||||
|
||||
hardenLocationConf() {
|
||||
local gpsConfig=$1;
|
||||
#Debugging: adb logcat -b all | grep -i -e locsvc -e izat -e gps -e gnss -e location -e xtra
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue