[Google Pixel 4 XL Questions & Answers] kabd_225:
I combined both methods from previous answer in this thread but if someone can just ignore the 8th point and give me feedback it will be awesome !

1. Remove the SIM CARD and Reset your Phone then skip everthing you can.

2. Enable USB Debugging on your phone.

3. Install the NetPatch app using adb install NetPatch.apk.

4. Open Settings > Apps > NetPatch > App Battery usage and allow background usage.

5. Go to Settings > Network & Internet > VPN > NetPatch settings, then activate "Always-On VPN" and "Block connections without VPN".

6. Run the following ADB script to uninstall the carrier apps and services:

adb shell pm uninstall -k --user 0 com.google.android.carriersetup
adb shell pm uninstall -k --user 0 com.verizon.mips.services
adb shell pm uninstall -k --user 0 com.google.android.wfcactivation
adb shell pm uninstall -k --user 0 com.google.android.carrier
adb shell pm uninstall -k --user 0 com.google.android.carrierlocation
adb shell pm uninstall -k --user 0 com.google.android.omadm.service
adb shell pm uninstall -k --user 0 com.google.android.pixel.setupwizard
adb shell pm uninstall -k --user 0 com.google.android.setupwizard
adb shell pm uninstall -k --user 0 com.google.android.partnersetup
adb shell pm uninstall -k --user 0 com.google.android.apps.work.oobconfig
adb shell pm uninstall -k --user 0 com.google.android.apps.work.clouddpc

Some may fail, but it's okay if they do.

7. Run the following ADB commands to deny permissions for the remaining carrier-related apps and services:

adb shell cmd appops set com.google.android.apps.work.oobconfig WAKE_LOCK deny
adb shell cmd appops set com.google.android.apps.work.oobconfig RUN_IN_BACKGROUND deny
adb shell cmd appops set com.google.android.apps.work.oobconfig RUN_ANY_IN_BACKGROUND deny
adb shell cmd appops set com.google.android.apps.work.oobconfig START_FOREGROUND deny
adb shell cmd appops set com.google.android.apps.work.oobconfig ACCESS_RESTRICTED_SETTINGS deny

adb shell cmd appops set com.google.android.carriersetup WAKE_LOCK deny
adb shell cmd appops set com.google.android.carriersetup RUN_IN_BACKGROUND deny
adb shell cmd appops set com.google.android.carriersetup RUN_ANY_IN_BACKGROUND deny
adb shell cmd appops set com.google.android.carriersetup START_FOREGROUND deny
adb shell cmd appops set com.google.android.carriersetup ACCESS_RESTRICTED_SETTINGS deny

adb shell cmd appops set com.google.android.carrier WAKE_LOCK deny
adb shell cmd appops set com.google.android.carrier RUN_IN_BACKGROUND deny
adb shell cmd appops set com.google.android.carrier RUN_ANY_IN_BACKGROUND deny
adb shell cmd appops set com.google.android.carrier START_FOREGROUND deny
adb shell cmd appops set com.google.android.carrier ACCESS_RESTRICTED_SETTINGS deny

adb shell cmd appops set com.google.android.carrierlocation WAKE_LOCK deny
adb shell cmd appops set com.google.android.carrierlocation RUN_IN_BACKGROUND deny
adb shell cmd appops set com.google.android.carrierlocation RUN_ANY_IN_BACKGROUND deny
adb shell cmd appops set com.google.android.carrierlocation START_FOREGROUND deny
adb shell cmd appops set com.google.android.carrierlocation ACCESS_RESTRICTED_SETTINGS deny

adb shell cmd appops set com.google.android.partnersetup WAKE_LOCK deny
adb shell cmd appops set com.google.android.partnersetup RUN_IN_BACKGROUND deny
adb shell cmd appops set com.google.android.partnersetup RUN_ANY_IN_BACKGROUND deny
adb shell cmd appops set com.google.android.partnersetup START_FOREGROUND deny
adb shell cmd appops set com.google.android.partnersetup ACCESS_RESTRICTED_SETTINGS deny

adb shell cmd appops set com.google.android.pixel.setupwizard WAKE_LOCK deny
adb shell cmd appops set com.google.android.pixel.setupwizard RUN_IN_BACKGROUND deny
adb shell cmd appops set com.google.android.pixel.setupwizard RUN_ANY_IN_BACKGROUND deny
adb shell cmd appops set com.google.android.pixel.setupwizard START_FOREGROUND deny
adb shell cmd appops set com.google.android.pixel.setupwizard ACCESS_RESTRICTED_SETTINGS deny

adb shell cmd appops set com.verizon.mips.services WAKE_LOCK deny
adb shell cmd appops set com.verizon.mips.services RUN_IN_BACKGROUND deny
adb shell cmd appops set com.verizon.mips.services RUN_ANY_IN_BACKGROUND deny
adb shell cmd appops set com.verizon.mips.services START_FOREGROUND deny
adb shell cmd appops set com.verizon.mips.services ACCESS_RESTRICTED_SETTINGS deny

adb shell cmd appops set com.google.android.pixel.setupwizard WAKE_LOCK deny
adb shell cmd appops set com.google.android.pixel.setupwizard RUN_IN_BACKGROUND deny
adb shell cmd appops set com.google.android.pixel.setupwizard RUN_ANY_IN_BACKGROUND deny
adb shell cmd appops set com.google.android.pixel.setupwizard START_FOREGROUND deny
adb shell cmd appops set com.google.android.pixel.setupwizard ACCESS_RESTRICTED_SETTINGS deny

adb shell cmd appops set com.google.android.apps.work.clouddpc WAKE_LOCK deny
adb shell cmd appops set com.google.android.apps.work.clouddpc RUN_IN_BACKGROUND deny
adb shell cmd appops set com.google.android.apps.work.clouddpc RUN_ANY_IN_BACKGROUND deny
adb shell cmd appops set com.google.android.apps.work.clouddpc START_FOREGROUND deny
adb shell cmd appops set com.google.android.apps.work.clouddpc ACCESS_RESTRICTED_SETTINGS deny

8. Open the NetPatch app and look for carrier-related packages above. If found, disable their network communication (Wi-Fi or mobile data) from within the app.

You can always reset your phone again if something wrong happens but it works fine on Pixel 7 with Android 15 Beta 2.

Note: This process removes carrier-related apps and services from your device. So use at your own risk.