From 77681faf38acb443e011f9e4f9d0412702f6fbf6 Mon Sep 17 00:00:00 2001 From: Henrik <15855905+high3eam@users.noreply.github.com> Date: Sat, 8 Feb 2025 13:01:22 +0100 Subject: [PATCH] Update README.md --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 39813fc..5ad2cec 100644 --- a/README.md +++ b/README.md @@ -1 +1,24 @@ -## Check Releases for Magisk modules +## [Check Releases for Magisk modules](https://github.com/high3eam/pixel9-EU-combos/releases) +## Edit combos yourself +- Download [`protoc`](https://github.com/protocolbuffers/protobuf/releases) as well as the ShannonUeCap [`.proto template`](https://github.com/handymenny/uecapabilityparser/tree/main/src/main/resources/definition) files from the [uecapabilityparser repository](https://github.com/handymenny/uecapabilityparser). +- Then use protoc to decode the protobuf binary file. +For NR combos, use: +```sh +protoc --decode=ShannonNrUECap ShannonNrUeCap.proto < PLATFORM_11376227466629817631.binarypb > decoded.txt +``` +For LTE combos, use: +```sh +protoc --decode=ShannonLteUECap ShannonLteUeCap.proto < lte_2160127815.binarypb > decoded.txt +``` +Then, edit, add or delete combos as you like. + +After that, recompile to protobuf binary. + +For NR combos, use: +```sh +protoc --encode=ShannonNrUECap ShannonNrUeCap.proto < decoded.txt > PLATFORM_11376227466629817631.binarypb +``` +For LTE combos, use: +```sh +protoc --encode=ShannonLteUECap ShannonLteUeCap.proto < decoded.txt > lte_2160127815.binarypb +```