Skip to content

Commit

Permalink
Add support for QPR3 BETA 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Displax committed Mar 28, 2023
1 parent 04eb9de commit 0674f55
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 38 deletions.
Binary file added cfgs/pixel_6/cfgdb-whi-230216-B-9616332/cfg.db
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
1.5
• Add support for QPR3 BETA 1

1.4
• Add support for QPR2 Mar 2023 udate

Expand Down
52 changes: 19 additions & 33 deletions customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ else
abort "*********************************************************"
fi

ui_print "- Magisk version is: $MAGISK_VER_CODE"

CODENAME=$(getprop ro.product.vendor.device)
BUILDID=$(getprop ro.vendor.build.id)
CFGVERSION=$(cat /vendor/firmware/carrierconfig/release-label)
CFGHASH=$(toybox sha256sum -b /vendor/firmware/carrierconfig/cfg.db)

ui_print "- Magisk version is: $MAGISK_VER_CODE"
ui_print "- Device is: $CODENAME"
ui_print "- Build ID is: $BUILDID"
ui_print "- CFG version is: $CFGVERSION"
ui_print "- CFG file state is: $CFGHASH"


# In this module we try to fix LTE restrictions on non-certified
# (actually CIS) networks for Google Tensor devices by force set
Expand All @@ -37,6 +41,7 @@ CFGHASH=$(toybox sha256sum -b /vendor/firmware/carrierconfig/cfg.db)
# 13.0.0 TQ1A.230205.002 Feb 2023 cfgdb-whipro-221028-B-9229469 607a87c1b5e9ca28e6e400a32a1cb67fa8b11284d2240118870e65a059eac1c0 744f716abbb52eeea16696a35d5d4b111a9f0609
# 13.0.0 TQ2A.230305.008 Mar 2023 cfgdb-whipro-230210-B-9589366 543f166c290a2d503b853164f77cbd62e9b1c4d22d3423e0f44b51cc68c5e66c 363ea196cb28a63decea20ecf726a1fa4d25eb59
# 13.0.0 TQ2A.230305.008.C1 Mar 2023 cfgdb-whipro-230210-B-9589366 543f166c290a2d503b853164f77cbd62e9b1c4d22d3423e0f44b51cc68c5e66c 363ea196cb28a63decea20ecf726a1fa4d25eb59
# 13.0.0 T3B1.230224.005 QPR3_1 cfgdb-whipro-230216-B-9616331 ff8b4c8cf09f15b04420d5e5d011d3d1105f859b6fa60c52406eeeecd474f57f 0581e74fac097df08bccb38d544e4512b4121d46


# Pixel 6a product line matrix (bluejay)
Expand All @@ -53,6 +58,7 @@ CFGHASH=$(toybox sha256sum -b /vendor/firmware/carrierconfig/cfg.db)
# 13.0.0 TQ1A.230105.001.A2 Jan 2023 cfgdb-whi-221101-B-9242015 1c623e91b285306015b4387d92d26dd3d1f7d78efe1506c42d6f3e6375c00dd0 c7dead7b478f240cf3e3ac42873af315b6d715df
# 13.0.0 TQ1A.230205.002 Feb 2023 cfgdb-whi-221101-B-9242015 1c623e91b285306015b4387d92d26dd3d1f7d78efe1506c42d6f3e6375c00dd0 c7dead7b478f240cf3e3ac42873af315b6d715df
# 13.0.0 TQ2A.230305.008.E1 Mar 2023 cfgdb-whi-230302-B-9675756 772122dfaa7ae641a6386c375d06ea6d3e9c159fce3c57f35d9277199debc268 d09a227525324ae85e72e29b864e69a2de2fa448
# 13.0.0 T3B1.230224.005 QPR3_1 cfgdb-whi-230216-B-9616332 1eba474a397501dc5b7b414e5bc7eef99d83d101d50345bba4ba3ababe79eb4c 8b32543bd7770ded93d5f334bfcd29d8b2049e1d


# Pixel 6 (Pro) product line matrix (oriole, raven)
Expand All @@ -79,58 +85,38 @@ CFGHASH=$(toybox sha256sum -b /vendor/firmware/carrierconfig/cfg.db)
# 13.0.0 TQ1A.230105.002 Jan 2023 cfgdb-whi-221101-B-9242015 1c623e91b285306015b4387d92d26dd3d1f7d78efe1506c42d6f3e6375c00dd0 c7dead7b478f240cf3e3ac42873af315b6d715df
# 13.0.0 TQ1A.230205.002 Feb 2023 cfgdb-whi-221101-B-9242015 1c623e91b285306015b4387d92d26dd3d1f7d78efe1506c42d6f3e6375c00dd0 c7dead7b478f240cf3e3ac42873af315b6d715df
# 13.0.0 TQ2A.230305.008.E1 Mar 2023 cfgdb-whi-230302-B-9675756 772122dfaa7ae641a6386c375d06ea6d3e9c159fce3c57f35d9277199debc268 d09a227525324ae85e72e29b864e69a2de2fa448
# 13.0.0 T3B1.230224.005 QPR3_1 cfgdb-whi-230216-B-9616332 1eba474a397501dc5b7b414e5bc7eef99d83d101d50345bba4ba3ababe79eb4c 8b32543bd7770ded93d5f334bfcd29d8b2049e1d


# Pixel 7 (Pro) product line (panther, cheetah)
# Pixel 7/7P product line (panther, cheetah)
if [ "$CODENAME" == "panther" ] || [ "$CODENAME" == "cheetah" ] && [ "$CFGVERSION" == "cfgdb-whipro-230210-B-9589366" ]; then
ui_print "- Device is: $CODENAME"
ui_print "- Build ID is: $BUILDID"
ui_print "- CFG version is: $CFGVERSION"
ui_print "- CFG file is in the state: $CFGHASH"
cp -r "$MODPATH/cfgs/pixel_7/cfgdb-whipro-230210-B-9589366/cfg.db" "$MODPATH/system/vendor/firmware/carrierconfig/"

elif [ "$CODENAME" == "panther" ] || [ "$CODENAME" == "cheetah" ] && [ "$CFGVERSION" == "cfgdb-whipro-221028-B-9229469" ]; then
ui_print "- Device is: $CODENAME"
ui_print "- Build ID is: $BUILDID"
ui_print "- CFG version is: $CFGVERSION"
ui_print "- CFG file is in the state: $CFGHASH"
cp -r "$MODPATH/cfgs/pixel_7/cfgdb-whipro-221028-B-9229469/cfg.db" "$MODPATH/system/vendor/firmware/carrierconfig/"

# Pixel 6/6a (Pro) product line (oriole, raven, bluejay)
# Pixel 6/6P/6a product line (oriole, raven, bluejay)
elif [ "$CODENAME" == "raven" ] || [ "$CODENAME" == "oriole" ] || [ "$CODENAME" == "bluejay" ] && [ "$CFGVERSION" == "cfgdb-whi-230302-B-9675756" ]; then
ui_print "- Device is: $CODENAME"
ui_print "- Build ID is: $BUILDID"
ui_print "- CFG version is: $CFGVERSION"
ui_print "- CFG file is in the state: $CFGHASH"
cp -r "$MODPATH/cfgs/pixel_6/cfgdb-whi-230302-B-9675756/cfg.db" "$MODPATH/system/vendor/firmware/carrierconfig/"

elif [ "$CODENAME" == "raven" ] || [ "$CODENAME" == "oriole" ] || [ "$CODENAME" == "bluejay" ] && [ "$CFGVERSION" == "cfgdb-whi-221101-B-9242015" ]; then
ui_print "- Device is: $CODENAME"
ui_print "- Build ID is: $BUILDID"
ui_print "- CFG version is: $CFGVERSION"
ui_print "- CFG file is in the state: $CFGHASH"
cp -r "$MODPATH/cfgs/pixel_6/cfgdb-whi-221101-B-9242015/cfg.db" "$MODPATH/system/vendor/firmware/carrierconfig/"

elif [ "$CODENAME" == "raven" ] || [ "$CODENAME" == "oriole" ] || [ "$CODENAME" == "bluejay" ] && [ "$CFGVERSION" == "cfgdb-whi-220830-B-9008086" ]; then
ui_print "- Device is: $CODENAME"
ui_print "- Build ID is: $BUILDID"
ui_print "- CFG version is: $CFGVERSION"
ui_print "- CFG file is in the state: $CFGHASH"
cp -r "$MODPATH/cfgs/pixel_6/cfgdb-whi-220830-B-9008086/cfg.db" "$MODPATH/system/vendor/firmware/carrierconfig/"

elif [ "$CODENAME" == "raven" ] || [ "$CODENAME" == "oriole" ] || [ "$CODENAME" == "bluejay" ] && [ "$CFGVERSION" == "cfgdb-whi-220727-B-8875237" ]; then
ui_print "- Device is: $CODENAME"
ui_print "- Build ID is: $BUILDID"
ui_print "- CFG version is: $CFGVERSION"
ui_print "- CFG file is in the state: $CFGHASH"
cp -r "$MODPATH/cfgs/pixel_6/cfgdb-whi-220727-B-8875237/cfg.db" "$MODPATH/system/vendor/firmware/carrierconfig/"

# Beta stuff
elif [ "$CODENAME" == "panther" ] || [ "$CODENAME" == "cheetah" ] && [ "$CFGVERSION" == "cfgdb-whipro-230216-B-9616331" ]; then
cp -r "$MODPATH/cfgs/pixel_7/cfgdb-whipro-230216-B-9616331/cfg.db" "$MODPATH/system/vendor/firmware/carrierconfig/"

elif [ "$CODENAME" == "raven" ] || [ "$CODENAME" == "oriole" ] || [ "$CODENAME" == "bluejay" ] && [ "$CFGVERSION" == "cfgdb-whi-230216-B-9616332" ]; then
cp -r "$MODPATH/cfgs/pixel_6/cfgdb-whi-230216-B-9616332/cfg.db" "$MODPATH/system/vendor/firmware/carrierconfig/"

else
ui_print "- Device is: $CODENAME"
ui_print "- Build ID is: $BUILDID"
ui_print "- CFG version is: $CFGVERSION"
ui_print "- CFG file state is: $CFGHASH"
ui_print "- This module is only for Google Tensor devices!"
ui_print "- Note, that this module is only for SoC Google Tensor devices!"
abort "- Your device, config file or ROM build unsupported yet!"
fi

Expand Down
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=universalmdmfix
name=Universal Modem Fix
version=1.4
versionCode=5
version=1.5
versionCode=6
author=Displax [4PDA]
description=Fix LTE restrictions on non-certified (CIS) networks for Google Tensor devices.
updateJson=https://raw.githubusercontent.com/Displax/modem-fix/main/update.json
6 changes: 3 additions & 3 deletions update.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "1.4",
"versionCode": "5",
"zipUrl": "https://github.com/Displax/modem-fix/releases/download/1.4/universalmdmfix_1.4.zip",
"version": "1.5",
"versionCode": "6",
"zipUrl": "https://github.com/Displax/modem-fix/releases/download/1.5/universalmdmfix_1.5.zip",
"changelog": "https://raw.githubusercontent.com/Displax/modem-fix/main/changelog.md"
}

0 comments on commit 0674f55

Please sign in to comment.