summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAkash Aggarwal <quic_akasagga@quicinc.com>2022-06-27 16:57:36 +0530
committerAkash Aggarwal <quic_akasagga@quicinc.com>2022-08-19 21:10:54 +0530
commit811cb3bd6a1e9cdef1a471ff5e01a0b6b8d09721 (patch)
tree268da77fca024bd1ef1076031ce1cbdac0bb19e5 /data
parent82f879b57c5750c10d0db9328466f5bc76d67518 (diff)
downloadlibqmi-811cb3bd6a1e9cdef1a471ff5e01a0b6b8d09721.tar.gz
libqmi-glib: allow hiding personal info while logging
During qmi logging, some of the information like simIccId, username, password need to be hidden from displaying in the logs to protect some of the user information.
Diffstat (limited to 'data')
-rw-r--r--data/qmi-service-dms.json142
-rw-r--r--data/qmi-service-uim.json13
-rw-r--r--data/qmi-service-voice.json98
-rw-r--r--data/qmi-service-wds.json12
-rw-r--r--data/qmi-service-wms.json15
5 files changed, 165 insertions, 115 deletions
diff --git a/data/qmi-service-dms.json b/data/qmi-service-dms.json
index bd28caef..a45a7b5b 100644
--- a/data/qmi-service-dms.json
+++ b/data/qmi-service-dms.json
@@ -245,25 +245,27 @@
"id" : "0x0025",
"since" : "1.0",
"output" : [ { "common-ref" : "Operation Result" },
- { "name" : "Esn",
- "id" : "0x10",
- "type" : "TLV",
- "since" : "1.0",
- "format" : "string",
- "prerequisites": [ { "common-ref" : "Success" } ] },
- { "name" : "Imei",
- "id" : "0x11",
- "type" : "TLV",
- "since" : "1.0",
- "format" : "string",
- "max-size" : "15",
- "prerequisites": [ { "common-ref" : "Success" } ] },
- { "name" : "Meid",
- "id" : "0x12",
- "type" : "TLV",
- "since" : "1.0",
- "format" : "string",
- "prerequisites": [ { "common-ref" : "Success" } ] },
+ { "name" : "Esn",
+ "id" : "0x10",
+ "type" : "TLV",
+ "since" : "1.0",
+ "format" : "string",
+ "prerequisites" : [ { "common-ref" : "Success" } ] },
+ { "name" : "Imei",
+ "id" : "0x11",
+ "type" : "TLV",
+ "since" : "1.0",
+ "format" : "string",
+ "max-size" : "15",
+ "personal-info" : "true",
+ "prerequisites" : [ { "common-ref" : "Success" } ] },
+ { "name" : "Meid",
+ "id" : "0x12",
+ "type" : "TLV",
+ "since" : "1.0",
+ "format" : "string",
+ "personal-info" : "true",
+ "prerequisites" : [ { "common-ref" : "Success" } ] },
{ "name" : "Imei Software Version",
"id" : "0x13",
"type" : "TLV",
@@ -306,8 +308,9 @@
{ "name" : "Protection Enabled",
"format" : "guint8",
"public-format" : "gboolean" },
- { "name" : "PIN",
- "format" : "string" } ] } ],
+ { "name" : "PIN",
+ "format" : "string",
+ "personal-info" : "true" } ] } ],
"output" : [ { "common-ref" : "Operation Result" },
{ "name" : "Pin Retries Status",
"id" : "0x10",
@@ -334,8 +337,9 @@
"contents" : [ { "name" : "Pin ID",
"format" : "guint8",
"public-format" : "QmiDmsUimPinId" },
- { "name" : "PIN",
- "format" : "string" } ] } ],
+ { "name" : "PIN",
+ "format" : "string",
+ "personal-info" : "true" } ] } ],
"output" : [ { "common-ref" : "Operation Result" },
{ "name" : "Pin Retries Status",
"id" : "0x10",
@@ -362,10 +366,12 @@
"contents" : [ { "name" : "Pin ID",
"format" : "guint8",
"public-format" : "QmiDmsUimPinId" },
- { "name" : "PUK",
- "format" : "string" },
- { "name" : "New PIN",
- "format" : "string" } ] } ],
+ { "name" : "PUK",
+ "format" : "string",
+ "personal-info" : "true" },
+ { "name" : "New PIN",
+ "format" : "string",
+ "personal-info" : "true" } ] } ],
"output" : [ { "common-ref" : "Operation Result" },
{ "name" : "Pin Retries Status",
"id" : "0x10",
@@ -392,10 +398,12 @@
"contents" : [ { "name" : "Pin ID",
"format" : "guint8",
"public-format" : "QmiDmsUimPinId" },
- { "name" : "Old PIN",
- "format" : "string" },
- { "name" : "New PIN",
- "format" : "string" } ] } ],
+ { "name" : "Old PIN",
+ "format" : "string",
+ "personal-info" : "true" },
+ { "name" : "New PIN",
+ "format" : "string",
+ "personal-info" : "true" } ] } ],
"output" : [ { "common-ref" : "Operation Result" },
{ "name" : "Pin Retries Status",
"id" : "0x10",
@@ -587,37 +595,40 @@
"service" : "DMS",
"id" : "0x0033",
"since" : "1.0",
- "input" : [ { "name" : "Info",
- "id" : "0x01",
- "type" : "TLV",
+ "input" : [ { "name" : "Info",
+ "id" : "0x01",
+ "type" : "TLV",
// API updated in 1.6
- "since" : "1.6",
- "format" : "sequence",
- "contents" : [ { "name" : "Service Programming Code",
- "format" : "string",
- "fixed-size" : "6" },
- { "name" : "System Identification Number",
- "format" : "guint16" },
- { "name" : "Mobile Directory Number",
- "format" : "string",
- "max-size" : "15" },
- { "name" : "Mobile Identification Number",
- "format" : "string",
- "max-size" : "15" } ] },
+ "since" : "1.6",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Service Programming Code",
+ "format" : "string",
+ "fixed-size" : "6" },
+ { "name" : "System Identification Number",
+ "format" : "guint16" },
+ { "name" : "Mobile Directory Number",
+ "format" : "string",
+ "max-size" : "15" },
+ { "name" : "Mobile Identification Number",
+ "format" : "string",
+ "max-size" : "15" } ],
+ "personal-info" : "true" },
{ "name" : "MN HA key",
"id" : "0x11",
"type" : "TLV",
"since" : "1.0",
"format" : "string",
"max-size" : "16",
- "size-prefix-format" : "guint8" },
+ "size-prefix-format" : "guint8",
+ "personal-info" : "true" },
{ "name" : "MN AAA key",
"id" : "0x12",
"type" : "TLV",
"since" : "1.0",
"format" : "string",
"max-size" : "16",
- "size-prefix-format" : "guint8" },
+ "size-prefix-format" : "guint8",
+ "personal-info" : "true" },
{ "name" : "PRL",
"id" : "0x13",
"type" : "TLV",
@@ -661,9 +672,10 @@
"contents" : [ { "name" : "Enabled",
"format" : "guint8",
"public-format" : "gboolean" },
- { "name" : "Lock Code",
- "format" : "string",
- "fixed-size" : "4" } ] } ],
+ { "name" : "Lock Code",
+ "format" : "string",
+ "fixed-size" : "4",
+ "personal-info" : "true" } ] } ],
"output" : [ { "common-ref" : "Operation Result" } ] },
// *********************************************************************************
@@ -767,12 +779,13 @@
"id" : "0x003C",
"since" : "1.0",
"output" : [ { "common-ref" : "Operation Result" },
- { "name" : "ICCID",
- "id" : "0x01",
- "type" : "TLV",
- "since" : "1.0",
- "format" : "string",
- "prerequisites": [ { "common-ref" : "Success" } ] } ] },
+ { "name" : "ICCID",
+ "id" : "0x01",
+ "type" : "TLV",
+ "since" : "1.0",
+ "format" : "string",
+ "personal-info" : "true",
+ "prerequisites" : [ { "common-ref" : "Success" } ] } ] },
// *********************************************************************************
{ "name" : "Set Firmware ID",
@@ -872,12 +885,13 @@
"id" : "0x0043",
"since" : "1.0",
"output" : [ { "common-ref" : "Operation Result" },
- { "name" : "IMSI",
- "id" : "0x01",
- "type" : "TLV",
- "since" : "1.0",
- "format" : "string",
- "prerequisites": [ { "common-ref" : "Success" } ] } ] },
+ { "name" : "IMSI",
+ "id" : "0x01",
+ "type" : "TLV",
+ "since" : "1.0",
+ "format" : "string",
+ "personal-info" : "true",
+ "prerequisites" : [ { "common-ref" : "Success" } ] } ] },
// *********************************************************************************
{ "name" : "UIM Get State",
diff --git a/data/qmi-service-uim.json b/data/qmi-service-uim.json
index 1b6d2a4d..02f376d9 100644
--- a/data/qmi-service-uim.json
+++ b/data/qmi-service-uim.json
@@ -127,7 +127,8 @@
{ "name" : "ICCID",
"format" : "array",
"size-prefix-format" : "guint8",
- "array-element" : { "format" : "guint8" } } ] } },
+ "array-element" : { "format" : "guint8" },
+ "personal-info" : "true" } ] } },
// *********************************************************************************
{ "common-ref" : "Physical Slot Information",
@@ -165,7 +166,9 @@
"contents" : [ { "name" : "EID",
"format" : "array",
"size-prefix-format" : "guint8",
- "array-element" : { "format" : "guint8" } } ] } },
+ "array-element" : { "format" : "guint8" },
+
+ "personal-info" : "true" } ] } },
// *********************************************************************************
{ "name" : "Reset",
@@ -247,6 +250,7 @@
"format" : "array",
"size-prefix-format" : "guint16",
"array-element" : { "format" : "guint8" },
+ "personal-info" : "true",
"prerequisites" : [ { "common-ref" : "Success" } ] },
{ "name" : "Response In Indication Token",
"id" : "0x12",
@@ -317,6 +321,7 @@
"format" : "array",
"size-prefix-format" : "guint16",
"array-element" : { "format" : "guint8" },
+ "personal-info" : "true",
"prerequisites" : [ { "common-ref" : "Success" } ] },
{ "name" : "Additional Read Result",
"id" : "0x12",
@@ -325,6 +330,7 @@
"format" : "array",
"size-prefix-format" : "guint16",
"array-element" : { "format" : "guint8" },
+ "personal-info" : "true",
"prerequisites" : [ { "common-ref" : "Success" } ] },
{ "name" : "Response In Indication Token",
"id" : "0x13",
@@ -823,7 +829,8 @@
"format" : "guint8",
"public-format" : "QmiUimDepersonalizationOperation" },
{ "name" : "Control Key",
- "format" : "string" } ] },
+ "format" : "string",
+ "personal-info" : "true" } ] },
{ "name" : "Slot",
"id" : "0x10",
"type" : "TLV",
diff --git a/data/qmi-service-voice.json b/data/qmi-service-voice.json
index f975a689..db17cc32 100644
--- a/data/qmi-service-voice.json
+++ b/data/qmi-service-voice.json
@@ -130,7 +130,8 @@
"id" : "0x01",
"type" : "TLV",
"since" : "1.14",
- "format" : "string" } ],
+ "format" : "string",
+ "personal-info" : "true" } ],
"output" : [ { "common-ref" : "Operation Result" },
{ "name" : "Call ID",
"id" : "0x10",
@@ -222,7 +223,8 @@
"format" : "guint8",
"public-format" : "QmiVoicePresentation" },
{ "name" : "Type",
- "format" : "string" } ] } } ] },
+ "format" : "string" } ] },
+ "personal-info" : "true" } ] },
// *********************************************************************************
{ "name" : "Get All Call Info",
"type" : "Message",
@@ -275,6 +277,7 @@
"public-format" : "QmiVoicePresentation" },
{ "name" : "Type",
"format" : "string" } ] },
+ "personal-info" : "true",
"prerequisites" : [ { "common-ref" : "Success" } ] } ] },
// *********************************************************************************
@@ -380,7 +383,8 @@
{ "name" : "Data",
"format" : "array",
"size-prefix-format" : "guint8",
- "array-element" : { "format" : "guint8" } } ] } ],
+ "array-element" : { "format" : "guint8" },
+ "personal-info" : "true" } ] } ],
"output" : [ { "common-ref" : "Operation Result" },
{ "name" : "Failure Cause",
"id" : "0x10",
@@ -399,7 +403,8 @@
{ "name" : "Alpha",
"format" : "array",
"size-prefix-format" : "guint8",
- "array-element" : { "format" : "guint8" } } ] },
+ "array-element" : { "format" : "guint8" },
+ "personal-info" : "true" } ] },
{ "name" : "USS Data",
"id" : "0x12",
"type" : "TLV",
@@ -411,7 +416,8 @@
{ "name" : "Data",
"format" : "array",
"size-prefix-format" : "guint8",
- "array-element" : { "format" : "guint8" } } ] },
+ "array-element" : { "format" : "guint8" },
+ "personal-info" : "true" } ] },
{ "name" : "Call Control Result Type",
"id" : "0x13",
"type" : "TLV",
@@ -435,7 +441,8 @@
"since" : "1.26",
"format" : "array",
"size-prefix-format" : "guint8",
- "array-element" : { "format" : "guint16" } } ] },
+ "array-element" : { "format" : "guint16" },
+ "personal-info" : "true" } ] },
// *********************************************************************************
{ "name" : "Answer USSD",
@@ -454,7 +461,8 @@
{ "name" : "Data",
"format" : "array",
"size-prefix-format" : "guint8",
- "array-element" : { "format" : "guint8" } } ] } ],
+ "array-element" : { "format" : "guint8" },
+ "personal-info" : "true" } ] } ],
"output" : [ { "common-ref" : "Operation Result" } ] },
// *********************************************************************************
@@ -495,14 +503,16 @@
{ "name" : "Data",
"format" : "array",
"size-prefix-format" : "guint8",
- "array-element" : { "format" : "guint8" } } ] },
+ "array-element" : { "format" : "guint8" },
+ "personal-info" : "true" } ] },
{ "name" : "USS Data UTF16",
"id" : "0x11",
"type" : "TLV",
"since" : "1.26",
"format" : "array",
"size-prefix-format" : "guint8",
- "array-element" : { "format" : "guint16" } } ] },
+ "array-element" : { "format" : "guint16" },
+ "personal-info" : "true" } ] },
// *********************************************************************************
{ "name" : "Get Config",
@@ -655,7 +665,8 @@
{ "name" : "Data",
"format" : "array",
"size-prefix-format" : "guint8",
- "array-element" : { "format" : "guint8" } } ] } ],
+ "array-element" : { "format" : "guint8" },
+ "personal-info" : "true" } ] } ],
"output" : [ { "common-ref" : "Operation Result" } ] },
{ "name" : "Originate USSD No Wait",
@@ -685,7 +696,8 @@
{ "name" : "Data",
"format" : "array",
"size-prefix-format" : "guint8",
- "array-element" : { "format" : "guint8" } } ] },
+ "array-element" : { "format" : "guint8" },
+ "personal-info" : "true" } ] },
{ "name" : "Alpha Identifier",
"id" : "0x13",
"type" : "TLV",
@@ -697,14 +709,16 @@
{ "name" : "Alpha",
"format" : "array",
"size-prefix-format" : "guint8",
- "array-element" : { "format" : "guint8" } } ] },
+ "array-element" : { "format" : "guint8" },
+ "personal-info" : "true" } ] },
{ "name" : "USS Data UTF16",
"id" : "0x14",
"type" : "TLV",
"since" : "1.26",
"format" : "array",
"size-prefix-format" : "guint8",
- "array-element" : { "format" : "guint16" } } ] },
+ "array-element" : { "format" : "guint16" },
+ "personal-info" : "true" } ] },
// *********************************************************************************
{ "name" : "Burst DTMF",
@@ -712,61 +726,67 @@
"service" : "VOICE",
"id" : "0x0028",
"since" : "1.32",
- "input" : [ { "name" : "Data",
- "id" : "0x01",
- "type" : "TLV",
- "since" : "1.32",
- "format" : "sequence",
- "contents" : [ { "name" : "Call ID",
- "format" : "guint8" },
- { "name" : "Digit Buffer",
- "format" : "string",
- "size-prefix-format" : "guint8" } ] } ],
+ "input" : [ { "name" : "Data",
+ "id" : "0x01",
+ "type" : "TLV",
+ "since" : "1.32",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Call ID",
+ "format" : "guint8" },
+ { "name" : "Digit Buffer",
+ "format" : "string",
+ "size-prefix-format" : "guint8" } ],
+ "personal-info" : "true" } ],
"output" : [ { "common-ref" : "Operation Result" },
{ "name" : "Call ID",
"id" : "0x10",
"type" : "TLV",
"since" : "1.32",
"format" : "guint8",
+ "personal-info" : "true",
"prerequisites" : [ { "common-ref" : "Success" } ] } ] },
{ "name" : "Start Continuous DTMF",
"type" : "Message",
"service" : "VOICE",
"id" : "0x0029",
"since" : "1.32",
- "input" : [ { "name" : "Data",
- "id" : "0x01",
- "type" : "TLV",
- "since" : "1.32",
- "format" : "sequence",
- "contents" : [ { "name" : "Call ID",
- "format" : "guint8" },
- { "name" : "Digit",
- "format" : "guint8" } ] } ],
+ "input" : [ { "name" : "Data",
+ "id" : "0x01",
+ "type" : "TLV",
+ "since" : "1.32",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Call ID",
+ "format" : "guint8" },
+ { "name" : "Digit",
+ "format" : "guint8" } ],
+ "personal-info" : "true" } ],
"output" : [ { "common-ref" : "Operation Result" },
{ "name" : "Call ID",
"id" : "0x10",
"type" : "TLV",
"since" : "1.32",
"format" : "guint8",
+ "personal-info" : "true",
"prerequisites" : [ { "common-ref" : "Success" } ] } ] },
{ "name" : "Stop Continuous DTMF",
"type" : "Message",
"service" : "VOICE",
"id" : "0x002A",
"since" : "1.32",
- "input" : [ { "name" : "Data",
- "id" : "0x01",
- "type" : "TLV",
- "since" : "1.32",
- "format" : "sequence",
- "contents" : [ { "name" : "Call ID",
- "format" : "guint8" } ] } ],
+ "input" : [ { "name" : "Data",
+ "id" : "0x01",
+ "type" : "TLV",
+ "since" : "1.32",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Call ID",
+ "format" : "guint8" } ],
+ "personal-info" : "true" } ],
"output" : [ { "common-ref" : "Operation Result" },
{ "name" : "Call ID",
"id" : "0x10",
"type" : "TLV",
"since" : "1.32",
"format" : "guint8",
+ "personal-info" : "true",
"prerequisites" : [ { "common-ref" : "Success" } ] } ] }
]
diff --git a/data/qmi-service-wds.json b/data/qmi-service-wds.json
index 15e67577..39368477 100644
--- a/data/qmi-service-wds.json
+++ b/data/qmi-service-wds.json
@@ -195,13 +195,15 @@
"name" : "Username",
"id" : "0x1B",
"type" : "TLV",
- "format" : "string" },
+ "format" : "string",
+ "personal-info" : "true" },
{ "common-ref" : "WDS Password",
"name" : "Password",
"id" : "0x1C",
"type" : "TLV",
- "format" : "string" },
+ "format" : "string",
+ "personal-info" : "true" },
{ "common-ref" : "WDS Authentication",
"name" : "Authentication",
@@ -793,12 +795,14 @@
"id" : "0x17",
"type" : "TLV",
"since" : "1.0",
- "format" : "string" },
+ "format" : "string",
+ "personal-info" : "true" },
{ "name" : "Password",
"id" : "0x18",
"type" : "TLV",
"since" : "1.0",
- "format" : "string" },
+ "format" : "string",
+ "personal-info" : "true" },
{ "name" : "IP Family Preference",
"id" : "0x19",
"type" : "TLV",
diff --git a/data/qmi-service-wms.json b/data/qmi-service-wms.json
index 766dd047..3af6d0da 100644
--- a/data/qmi-service-wms.json
+++ b/data/qmi-service-wms.json
@@ -72,7 +72,8 @@
{ "name" : "Raw Data",
"format" : "array",
"size-prefix-format" : "guint16",
- "array-element" : { "format" : "guint8" } } ] },
+ "array-element" : { "format" : "guint8" },
+ "personal-info" : "true" } ] },
{ "name" : "Message Mode",
"id" : "0x12",
"type" : "TLV",
@@ -90,7 +91,8 @@
{ "name" : "Raw Data",
"format" : "array",
"size-prefix-format" : "guint16",
- "array-element" : { "format" : "guint8" } } ] },
+ "array-element" : { "format" : "guint8" },
+ "personal-info" : "true" } ] },
{ "name" : "ETWS PLMN Information",
"id" : "0x14",
"type" : "TLV",
@@ -145,7 +147,8 @@
{ "name" : "Raw Data",
"format" : "array",
"size-prefix-format" : "guint16",
- "array-element" : { "format" : "guint8" } } ] },
+ "array-element" : { "format" : "guint8" },
+ "personal-info" : "true" } ] },
{ "name" : "CDMA Force On DC",
"id" : "0x10",
"type" : "TLV",
@@ -258,7 +261,8 @@
{ "name" : "Raw Data",
"format" : "array",
"size-prefix-format" : "guint16",
- "array-element" : { "format" : "guint8" } } ] } ],
+ "array-element" : { "format" : "guint8" },
+ "personal-info" : "true" } ] } ],
"output" : [ { "common-ref" : "Operation Result" },
{ "name" : "Memory Index",
"id" : "0x01",
@@ -310,7 +314,8 @@
{ "name" : "Raw Data",
"format" : "array",
"size-prefix-format" : "guint16",
- "array-element" : { "format" : "guint8" } } ],
+ "array-element" : { "format" : "guint8" },
+ "personal-info" : "true" } ],
"prerequisites" : [ { "common-ref" : "Success" } ] } ] },
// *********************************************************************************