Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nooriro/f2af8770f6fdb078b9e255e3fb0228d1 to your computer and use it in GitHub Desktop.
Save nooriro/f2af8770f6fdb078b9e255e3fb0228d1 to your computer and use it in GitHub Desktop.
setting {
canonicalName: "45005"
apns {
apn {
name: "SKT IMS"
value: "ims"
type: IMS
protocol: IPV4V6
}
apn {
name: "SKT LTE INTERNET"
value: "lte.sktelecom.com"
type: CBS
type: DEFAULT
type: MMS
type: SUPL
type: FOTA
server: "*"
mmsc: "http://omms.nate.com:9082/oma_mms"
mmscProxy: "smart.nate.com"
mmscProxyPort: "9093"
protocol: IPV4V6
}
apn {
name: "SKT IA"
value: ""
type: IA
protocol: IPV4V6
}
}
configs {
config {
key: "allow_emergency_numbers_in_call_log_bool"
boolValue: true
}
config {
key: "bandwidth_string_array"
textArray {
item: "GPRS:24,24"
item: "EDGE:70,18"
item: "UMTS:115,115"
item: "CDMA-IS95A:14,14"
item: "CDMA-IS95B:14,14"
item: "1xRTT:30,30"
item: "EvDo-rev.0:750,48"
item: "EvDo-rev.A:950,550"
item: "HSDPA:4300,620"
item: "HSUPA:4300,1800"
item: "HSPA:4300,1800"
item: "EvDo-rev.B:1500,550"
item: "eHRPD:750,48"
item: "HSPAP:13000,3400"
item: "TD-SCDMA:115,115"
item: "LTE:30000,15000"
item: "NR_NSA:563200,61440"
item: "NR_NSA_MMWAVE:563200,614400"
item: "NR_SA:563200,61440"
}
}
config {
key: "carrier_certificate_string_array"
textArray {
item: "AD27B68A191CE2D91204BADB438550F4620054C15EBFA13C10B492CD998FDC40"
}
}
config {
key: "carrier_instant_lettering_available_bool"
boolValue: false
}
config {
key: "carrier_instant_lettering_encoding_string"
textValue: "EUC-KR"
}
config {
key: "carrier_instant_lettering_escaped_chars_string"
textValue: "\"\\"
}
config {
key: "carrier_instant_lettering_invalid_chars_string"
textValue: "[\\n]"
}
config {
key: "carrier_instant_lettering_length_limit_int"
intValue: 16
}
config {
key: "enableSMSDeliveryReports"
boolValue: false
}
config {
key: "maxImageHeight"
intValue: 1944
}
config {
key: "maxImageWidth"
intValue: 2592
}
config {
key: "maxMessageSize"
intValue: 1048576
}
config {
key: "support_conference_call_bool"
boolValue: false
}
}
}
setting {
canonicalName: "kt_kr"
apns {
apn {
name: "KT IMS"
value: "ims.ktfwing.com"
type: IMS
protocol: IPV4V6
}
apn {
name: "KT"
value: "lte.ktfwing.com"
type: CBS
type: DEFAULT
type: MMS
type: SUPL
type: FOTA
server: "*"
mmsc: "http://mmsc.ktfwing.com:9082"
}
apn {
name: "KT IA"
value: ""
type: IA
protocol: IPV4V6
}
}
configs {
config {
key: "allow_emergency_numbers_in_call_log_bool"
boolValue: true
}
config {
key: "bandwidth_string_array"
textArray {
item: "GPRS:24,24"
item: "EDGE:70,18"
item: "UMTS:115,115"
item: "CDMA-IS95A:14,14"
item: "CDMA-IS95B:14,14"
item: "1xRTT:30,30"
item: "EvDo-rev.0:750,48"
item: "EvDo-rev.A:950,550"
item: "HSDPA:4300,620"
item: "HSUPA:4300,1800"
item: "HSPA:4300,1800"
item: "EvDo-rev.B:1500,550"
item: "eHRPD:750,48"
item: "HSPAP:13000,3400"
item: "TD-SCDMA:115,115"
item: "LTE:30000,15000"
item: "NR_NSA:563200,61440"
item: "NR_NSA_MMWAVE:563200,614400"
item: "NR_SA:563200,61440"
}
}
config {
key: "carrier_certificate_string_array"
textArray {
item: "98987CACCAAF8355A4DC1FEF2600441F8B0EC923BBFAA3327D099CE4CDE29B0E"
item: "7117EE13C842F1009553C8B70FFF7CF30EC8F04118AE87B6722E2F05193EA09A"
item: "30BCC971FC0B69D54E7795B73EA2B11BF526E783850AFD2E73E1EE66DF120630"
item: "5EB5628F73BDA9BA3E89EDE80779F105EB45392F19B58844C879E078394CC0B6"
item: "EAF56C49D86B958F040A14CE1A94D4C416E44AA19C6AF87C2CC7E02E5DD9B771"
item: "EE0E64652EC30DE70A3753F4B139B782092608739A9FD213A0A9075F13F97DC5"
item: "34DF0E7A9F1CF1892E45C056B4973CD81CCF148A4050D11AEA4AC5A65F900A42"
item: "0334C8DDD8877B41912D950754D82BE8713E0573AF6D56FBB0537E1FD322A125"
item: "F5A500ED4E83B7E9BDF80E1837B4A7A1D5D2D03C6B5AE66060644E8C9BF76C87"
item: "C14BC5BC392DA316E7477D3BB4FB1AC045CDB7FA07874967143633F69373493F"
}
}
config {
key: "carrier_instant_lettering_available_bool"
boolValue: false
}
config {
key: "carrier_instant_lettering_encoding_string"
textValue: "EUC-KR"
}
config {
key: "carrier_instant_lettering_invalid_chars_string"
textValue: "[\"<>\\\\\\n]"
}
config {
key: "carrier_instant_lettering_length_limit_int"
intValue: 64
}
config {
key: "enableSMSDeliveryReports"
boolValue: false
}
config {
key: "maxImageHeight"
intValue: 1944
}
config {
key: "maxImageWidth"
intValue: 2592
}
config {
key: "maxMessageSize"
intValue: 1048576
}
config {
key: "support_conference_call_bool"
boolValue: false
}
}
}
setting {
canonicalName: "lguplus_kr"
apns {
apn {
name: "LG uplus IMS"
value: "IMS"
type: IMS
mmsc: "http://omammsc.uplus.co.kr:9084"
protocol: IPV4V6
roamingProtocol: IPV4V6
}
apn {
name: "LG uplus"
value: "internet.lguplus.co.kr"
type: CBS
type: DEFAULT
type: MMS
type: SUPL
type: FOTA
mmsc: "http://omammsc.uplus.co.kr:9084"
protocol: IPV4V6
roamingProtocol: IPV4V6
}
apn {
name: "LG uplus IA"
value: ""
type: IA
protocol: IPV4V6
roamingProtocol: IPV4V6
}
}
configs {
config {
key: "additional_call_setting_bool"
boolValue: false
}
config {
key: "allow_emergency_numbers_in_call_log_bool"
boolValue: true
}
config {
key: "bandwidth_string_array"
textArray {
item: "GPRS:24,24"
item: "EDGE:70,18"
item: "UMTS:115,115"
item: "CDMA-IS95A:14,14"
item: "CDMA-IS95B:14,14"
item: "1xRTT:30,30"
item: "EvDo-rev.0:750,48"
item: "EvDo-rev.A:950,550"
item: "HSDPA:4300,620"
item: "HSUPA:4300,1800"
item: "HSPA:4300,1800"
item: "EvDo-rev.B:1500,550"
item: "eHRPD:750,48"
item: "HSPAP:13000,3400"
item: "TD-SCDMA:115,115"
item: "LTE:30000,15000"
item: "NR_NSA:563200,61440"
item: "NR_NSA_MMWAVE:563200,614400"
item: "NR_SA:563200,61440"
}
}
config {
key: "carrier_certificate_string_array"
textArray {
item: "2e8478b7b90411ad9075a182725b9a37857440a170fefa8853ee945d0a88170c"
item: "6a26b25d1fa974aed6f81ed30a55a72d51e20f6905decbf01e84ecce5fb96454"
item: "0f18fddfc990b285798f3bee5710cc5cde9ffd913fd6942f296c4656c7065d8c"
item: "0c3eff3693ba9a469fc836c046ebc726ac50c54b36370af8d26cb774b8e88b9f"
item: "4986b8386ce4dc1cfd01f5b0541d88caca2695fe24c4d909c8fec2d6a26a2beb"
item: "1a8791e1f56e2195b31df30217a2ffe0ef5be2cc6d0058796d2d7f5ce9738cf4"
item: "ac3a4e7afeddde9550922ed6e3af343a3fe99a0e5f5a80902354052341ceaef4"
item: "606c79a42e1fcb54b1f0abed3602d4aa7b6823ba9909e0df17edce0bcba7b35f"
item: "4b0170b8c2924f85c9cebc6230e7eca39d4d8f86cfc443f2f25b93558aabf4df"
item: "370259a6a2d8f6cbc838d7375dd2dc6bf05b7a8a5c8d27def9539431b34f43af"
item: "4f444ba61644f72a47c99187eab4ebb9f7127ea38eeaacfa0a305511bf55233f"
item: "cefc3c7e03e7156bb9fc9e4d31edec96fd461782e7f37cb6e79850bfc1f9c7fb"
item: "8f452024920b1e8e0380e293e40426dffe0adfb5e675f4cc6f9266e1c08afa21"
item: "212beda6fbf1a07b3557a02c3cf0646263eed855a632f0d45f0bceb311c064c6"
item: "34bfb7ae9228d1117d6f594c6812f969ca7aaeb3dbd44be713d1ec2f122d8d01"
}
}
config {
key: "carrier_instant_lettering_available_bool"
boolValue: false
}
config {
key: "carrier_instant_lettering_encoding_string"
textValue: "EUC-KR"
}
config {
key: "carrier_instant_lettering_invalid_chars_string"
textValue: "[\"<>\\\\\\n]"
}
config {
key: "carrier_instant_lettering_length_limit_int"
intValue: 64
}
config {
key: "enableSMSDeliveryReports"
boolValue: false
}
config {
key: "maxImageHeight"
intValue: 1944
}
config {
key: "maxImageWidth"
intValue: 2592
}
config {
key: "maxMessageSize"
intValue: 1048576
}
config {
key: "smsToMmsTextLengthThreshold"
intValue: 80
}
config {
key: "support_conference_call_bool"
boolValue: false
}
}
}
canonicalName: "default"
version: 30000000036
configs {
config {
key: "carrier_promote_wfc_on_call_fail_bool"
boolValue: true
}
config {
key: "carrier_volte_tty_supported_bool"
boolValue: false
}
config {
key: "config_ims_rcs_package_override_string"
textValue: "com.google.android.ims"
}
config {
key: "gps.lpp_profile"
textValue: "2"
}
config {
key: "show_iccid_in_sim_status_bool"
boolValue: true
}
}
8 {
1: 1624467880
}
@nooriro
Copy link
Author

nooriro commented Nov 23, 2021

  • Installing protoc (protobuf compiler)
    sudo apt install protobuf-compiler

  • Schema file for decoding .pb files in /product/etc/CarrierSettings of Google Pixel devices
    https://github.com/daradib/carriersettings-extractor/blob/master/carriersettings.proto

  • Protobuf decoding command
    See https://github.com/daradib/carriersettings-extractor#protobuf-definitions

    • w/o line numbers (for original text):
    protoc --decode=MultiCarrierSettings carriersettings.proto < crosshatch-spb3.210618.013/product/etc/CarrierSettings/others.pb | sed -n 'N;/\(45005\|kt_kr\|lguplus_kr\)/,/^}/P;D'
    protoc --decode=MultiCarrierSettings carriersettings.proto < crosshatch-spb3.210618.016/product/etc/CarrierSettings/others.pb | sed -n 'N;/\(45005\|kt_kr\|lguplus_kr\)/,/^}/P;D'
    protoc --decode=MultiCarrierSettings carriersettings.proto < crosshatch-spb4.210715.011/product/etc/CarrierSettings/others.pb | sed -n 'N;/\(45005\|kt_kr\|lguplus_kr\)/,/^}/P;D'
    protoc --decode=MultiCarrierSettings carriersettings.proto < crosshatch-spb4.210715.014/product/etc/CarrierSettings/others.pb | sed -n 'N;/\(45005\|kt_kr\|lguplus_kr\)/,/^}/P;D'
    protoc --decode=MultiCarrierSettings carriersettings.proto < crosshatch-spb5.210812.002/product/etc/CarrierSettings/others.pb | sed -n 'N;/\(45005\|kt_kr\|lguplus_kr\)/,/^}/P;D'
    protoc --decode=MultiCarrierSettings carriersettings.proto < crosshatch-sp1a.210812.015/product/etc/CarrierSettings/others.pb | sed -n 'N;/\(45005\|kt_kr\|lguplus_kr\)/,/^}/P;D'
    protoc --decode=MultiCarrierSettings carriersettings.proto < raven-sd1a.210817.037/product/etc/CarrierSettings/others.pb | sed -n 'N;/\(45005\|kt_kr\|lguplus_kr\)/,/^}/P;D'
    
    • w/ line numbers (for convenience):
    protoc --decode=MultiCarrierSettings carriersettings.proto < crosshatch-spb3.210618.013/product/etc/CarrierSettings/others.pb | nl -ba | sed -n 'N;/\(45005\|kt_kr\|lguplus_kr\)/,/^\([[:space:]]*[[:digit:]]\{1,\}[[:space:]]\|\)}/P;D'
    protoc --decode=MultiCarrierSettings carriersettings.proto < crosshatch-spb3.210618.016/product/etc/CarrierSettings/others.pb | nl -ba | sed -n 'N;/\(45005\|kt_kr\|lguplus_kr\)/,/^\([[:space:]]*[[:digit:]]\{1,\}[[:space:]]\|\)}/P;D'
    protoc --decode=MultiCarrierSettings carriersettings.proto < crosshatch-spb4.210715.011/product/etc/CarrierSettings/others.pb | nl -ba | sed -n 'N;/\(45005\|kt_kr\|lguplus_kr\)/,/^\([[:space:]]*[[:digit:]]\{1,\}[[:space:]]\|\)}/P;D'
    protoc --decode=MultiCarrierSettings carriersettings.proto < crosshatch-spb4.210715.014/product/etc/CarrierSettings/others.pb | nl -ba | sed -n 'N;/\(45005\|kt_kr\|lguplus_kr\)/,/^\([[:space:]]*[[:digit:]]\{1,\}[[:space:]]\|\)}/P;D'
    protoc --decode=MultiCarrierSettings carriersettings.proto < crosshatch-spb5.210812.002/product/etc/CarrierSettings/others.pb | nl -ba | sed -n 'N;/\(45005\|kt_kr\|lguplus_kr\)/,/^\([[:space:]]*[[:digit:]]\{1,\}[[:space:]]\|\)}/P;D'
    protoc --decode=MultiCarrierSettings carriersettings.proto < crosshatch-sp1a.210812.015/product/etc/CarrierSettings/others.pb | nl -ba | sed -n 'N;/\(45005\|kt_kr\|lguplus_kr\)/,/^\([[:space:]]*[[:digit:]]\{1,\}[[:space:]]\|\)}/P;D'
    protoc --decode=MultiCarrierSettings carriersettings.proto < raven-sd1a.210817.037/product/etc/CarrierSettings/others.pb | nl -ba | sed -n 'N;/\(45005\|kt_kr\|lguplus_kr\)/,/^\([[:space:]]*[[:digit:]]\{1,\}[[:space:]]\|\)}/P;D'
    
  • Calculating SHA-1 hash values of decoded text
    carriersettings-decode-sha1-crosshatch-raven-211124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment