From ebc18ce3c636399776f942f72446d3c100d9ec21 Mon Sep 17 00:00:00 2001 From: Kampalus <59146588+Kampalus@users.noreply.github.com> Date: Wed, 7 Oct 2020 08:47:09 +0200 Subject: [PATCH 01/12] grus: enable battery stats --- Xiaomi/Mi9SE/res/xml/power_profile.xml | 141 +++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 Xiaomi/Mi9SE/res/xml/power_profile.xml diff --git a/Xiaomi/Mi9SE/res/xml/power_profile.xml b/Xiaomi/Mi9SE/res/xml/power_profile.xml new file mode 100644 index 0000000..6e2f9ab --- /dev/null +++ b/Xiaomi/Mi9SE/res/xml/power_profile.xml @@ -0,0 +1,141 @@ + + + + 0 + 58.61 + 281.38 + 10.4 + 0.84 + 0.66 + 226.4 + 9.82 + 14.48 + 92.05 + 164.26 + 723 + 77.47 + + 204.58 + 9.78 + + 8.96 + 8.96 + + + + 0 + + + 6 + 2 + + + 300000 + 576000 + 748000 + 998400 + 1209600 + 1324800 + 1516800 + 1612800 + 1780000 + + + 27.36 + 31.3 + 33.28 + 41.15 + 46.59 + 51.15 + 57.75 + 62.39 + 73.05 + + + 300000 + 652800 + 825600 + 979200 + 1132800 + 1363200 + 1536000 + 1747200 + 1843200 + 1996800 + 2054400 + 2169600 + 2208000 + 2304000 + + + 39.32 + 52.98 + 60.94 + 71.46 + 82.99 + 105.8 + 122.44 + 149.89 + 184.13 + 208.16 + 235.4 + 261.15 + 270.98 + 299.82 + + 9.72 + + + 22.7 + + + 3070 + + 0 + 0 + 0 + + + 0 + + .0002 + .002 + .02 + .2 + 2 + + + 0 + 0 + 0 + + 0 + 0 + 0 + 0 + 0 + + 0 + + + 0 + 0 + + 0 + From 537af62d976eca05fd5efa4104428850a96672ec Mon Sep 17 00:00:00 2001 From: Kampalus <59146588+Kampalus@users.noreply.github.com> Date: Wed, 7 Oct 2020 08:49:54 +0200 Subject: [PATCH 02/12] grus: enable auto brightness and configure brightness values --- Xiaomi/Mi9SE/res/values/config.xml | 631 +++++++++++++++++++++++++++++ 1 file changed, 631 insertions(+) create mode 100644 Xiaomi/Mi9SE/res/values/config.xml diff --git a/Xiaomi/Mi9SE/res/values/config.xml b/Xiaomi/Mi9SE/res/values/config.xml new file mode 100644 index 0000000..c00a5fc --- /dev/null +++ b/Xiaomi/Mi9SE/res/values/config.xml @@ -0,0 +1,631 @@ + + + + + true + + + 1 + 2 + 3 + 4 + 8 + 12 + 20 + 33 + 55 + 90 + 148 + 245 + 403 + 665 + 1097 + 1808 + 2981 + 5000 + + + + 10.45935 + 29.25559 + 34.240692 + 37.514347 + 40.018696 + 46.885098 + 51.626434 + 58.610405 + 66.890915 + 77.61644 + 90.221886 + 105.80314 + 126.073845 + 154.16931 + 191.83717 + 240.74442 + 294.84857 + 348.05453 + 420 + + + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 + 26 + 27 + 28 + 29 + 30 + 31 + 32 + 33 + 34 + 35 + 36 + 37 + 38 + 39 + 40 + 41 + 42 + 43 + 44 + 45 + 46 + 47 + 48 + 49 + 50 + 51 + 52 + 53 + 54 + 55 + 56 + 57 + 58 + 59 + 60 + 61 + 62 + 63 + 64 + 65 + 66 + 67 + 68 + 69 + 70 + 71 + 72 + 73 + 74 + 75 + 76 + 77 + 78 + 79 + 80 + 81 + 82 + 83 + 84 + 85 + 86 + 87 + 88 + 89 + 90 + 91 + 92 + 93 + 94 + 95 + 96 + 97 + 98 + 99 + 100 + 101 + 102 + 103 + 104 + 105 + 106 + 107 + 108 + 109 + 110 + 111 + 112 + 113 + 114 + 115 + 116 + 117 + 118 + 119 + 120 + 121 + 122 + 123 + 124 + 125 + 126 + 127 + 128 + 129 + 130 + 131 + 132 + 133 + 134 + 135 + 136 + 137 + 138 + 139 + 140 + 141 + 142 + 143 + 144 + 145 + 146 + 147 + 148 + 149 + 150 + 151 + 152 + 153 + 154 + 155 + 156 + 157 + 158 + 159 + 160 + 161 + 162 + 163 + 164 + 165 + 166 + 167 + 168 + 169 + 170 + 171 + 172 + 173 + 174 + 175 + 176 + 177 + 178 + 179 + 180 + 181 + 182 + 183 + 184 + 185 + 186 + 187 + 188 + 189 + 190 + 191 + 192 + 193 + 194 + 195 + 196 + 197 + 198 + 199 + 200 + 201 + 202 + 203 + 204 + 205 + 206 + 207 + 208 + 209 + 210 + 211 + 212 + 213 + 214 + 215 + 216 + 217 + 218 + 219 + 220 + 221 + 222 + 223 + 224 + 225 + 226 + 227 + 228 + 229 + 230 + 231 + 232 + 233 + 234 + 235 + 236 + 237 + 238 + 239 + 240 + 241 + 242 + 243 + 244 + 245 + 246 + 247 + 248 + 249 + 250 + 251 + 252 + 253 + 254 + 255 + + + + 2.2 + 3.29 + 4.93 + 6.57 + 8.22 + 9.86 + 11.5 + 13.14 + 14.79 + 16.43 + 18.07 + 19.71 + 21.35 + 23 + 24.64 + 26.28 + 27.92 + 29.57 + 31.21 + 32.85 + 34.49 + 36.13 + 37.78 + 39.42 + 41.06 + 42.7 + 44.35 + 45.99 + 47.63 + 49.27 + 50.91 + 52.56 + 54.2 + 55.84 + 57.48 + 59.13 + 60.77 + 62.41 + 64.05 + 65.69 + 67.34 + 68.98 + 70.62 + 72.26 + 73.91 + 75.55 + 77.19 + 78.83 + 80.47 + 82.12 + 83.76 + 85.4 + 87.04 + 88.69 + 90.33 + 91.97 + 93.61 + 95.25 + 96.9 + 98.54 + 100.18 + 101.82 + 103.47 + 105.11 + 107.16 + 108.8 + 110.44 + 112.09 + 113.73 + 115.37 + 117.01 + 118.66 + 120.3 + 121.94 + 123.58 + 125.22 + 126.87 + 128.51 + 130.15 + 131.79 + 133.44 + 135.08 + 136.72 + 138.36 + 140 + 141.65 + 143.29 + 144.93 + 146.57 + 148.22 + 149.86 + 151.5 + 153.14 + 154.79 + 156.43 + 158.07 + 159.71 + 161.35 + 163 + 164.64 + 166.28 + 167.92 + 169.57 + 171.21 + 172.85 + 174.49 + 176.13 + 177.78 + 179.42 + 181.06 + 182.7 + 184.35 + 185.99 + 187.63 + 189.27 + 190.91 + 192.56 + 194.2 + 195.84 + 197.48 + 199.13 + 200.77 + 202.41 + 204.05 + 205.69 + 207.34 + 208.98 + 210.62 + 212.67 + 214.32 + 215.96 + 217.6 + 219.24 + 220.88 + 222.53 + 224.17 + 225.81 + 227.45 + 229.1 + 230.74 + 232.38 + 234.02 + 235.66 + 237.31 + 238.95 + 240.59 + 242.23 + 243.88 + 245.52 + 247.16 + 248.8 + 250.44 + 252.09 + 253.73 + 255.37 + 257.01 + 258.66 + 260.3 + 261.94 + 263.58 + 265.22 + 266.87 + 268.51 + 270.15 + 271.79 + 273.44 + 275.08 + 276.72 + 278.36 + 280 + 281.65 + 283.29 + 284.93 + 286.57 + 288.22 + 289.86 + 291.5 + 293.14 + 294.79 + 296.43 + 298.07 + 299.71 + 301.35 + 303 + 304.64 + 306.28 + 307.92 + 309.57 + 311.21 + 312.85 + 314.49 + 316.54 + 318.19 + 319.83 + 321.47 + 323.11 + 324.76 + 326.4 + 328.04 + 329.68 + 331.32 + 332.97 + 334.61 + 336.25 + 337.89 + 339.54 + 341.18 + 342.82 + 344.46 + 346.1 + 347.75 + 349.39 + 351.03 + 352.67 + 354.32 + 355.96 + 357.6 + 359.24 + 360.88 + 362.53 + 364.17 + 365.81 + 367.45 + 369.1 + 370.74 + 372.38 + 374.02 + 375.66 + 377.31 + 378.95 + 380.59 + 382.23 + 383.88 + 385.52 + 387.16 + 388.8 + 390.44 + 392.09 + 393.73 + 395.37 + 397.01 + 398.66 + 400.3 + 401.94 + 403.58 + 405.22 + 406.87 + 408.51 + 410.15 + 411.79 + 413.44 + 415.08 + 416.72 + 418.36 + 420 + + + 1 + + 255 + + 98 + + 6 + + 25 + From 0c0a38418a8c20b28befce104395cf41d02e153e Mon Sep 17 00:00:00 2001 From: Kampalus <59146588+Kampalus@users.noreply.github.com> Date: Wed, 7 Oct 2020 08:50:40 +0200 Subject: [PATCH 03/12] grus: enable display color profile options --- Xiaomi/Mi9SE/res/values/config.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Xiaomi/Mi9SE/res/values/config.xml b/Xiaomi/Mi9SE/res/values/config.xml index c00a5fc..f005f31 100644 --- a/Xiaomi/Mi9SE/res/values/config.xml +++ b/Xiaomi/Mi9SE/res/values/config.xml @@ -628,4 +628,11 @@ May be less than the minimum allowed brightness setting that can be set by the user. --> 25 + + + + 0 + 1 + 3 + From 6d2d4f4e9b2f0142e565359579e608e5ff42d5d0 Mon Sep 17 00:00:00 2001 From: Kampalus <59146588+Kampalus@users.noreply.github.com> Date: Wed, 7 Oct 2020 08:51:43 +0200 Subject: [PATCH 04/12] grus: enable WiFi background scan and dual band WiFi --- Xiaomi/Mi9SE/res/values/config.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Xiaomi/Mi9SE/res/values/config.xml b/Xiaomi/Mi9SE/res/values/config.xml index f005f31..13c6a9b 100644 --- a/Xiaomi/Mi9SE/res/values/config.xml +++ b/Xiaomi/Mi9SE/res/values/config.xml @@ -635,4 +635,12 @@ 1 3 + + + true + + true From bc7f619fce1d2164b8846bcc1cc1c05bf99104e2 Mon Sep 17 00:00:00 2001 From: Kampalus <59146588+Kampalus@users.noreply.github.com> Date: Wed, 7 Oct 2020 08:52:12 +0200 Subject: [PATCH 05/12] grus: enable Bluetooth Low Energy --- Xiaomi/Mi9SE/res/values/config.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Xiaomi/Mi9SE/res/values/config.xml b/Xiaomi/Mi9SE/res/values/config.xml index 13c6a9b..c9958e1 100644 --- a/Xiaomi/Mi9SE/res/values/config.xml +++ b/Xiaomi/Mi9SE/res/values/config.xml @@ -643,4 +643,7 @@ scan and wake the host when a configured SSID is detected by the dongle. This chipset capability can provide power savings when wifi needs to be always kept on. --> true + + + true From 6432d747a7d275adc75eb7af2c6affe3f679c045 Mon Sep 17 00:00:00 2001 From: Kampalus <59146588+Kampalus@users.noreply.github.com> Date: Wed, 7 Oct 2020 08:54:47 +0200 Subject: [PATCH 06/12] grus: configure doze and enable Always on Display --- Xiaomi/Mi9SE/res/values/config.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Xiaomi/Mi9SE/res/values/config.xml b/Xiaomi/Mi9SE/res/values/config.xml index c9958e1..913c4ce 100644 --- a/Xiaomi/Mi9SE/res/values/config.xml +++ b/Xiaomi/Mi9SE/res/values/config.xml @@ -646,4 +646,12 @@ true + + + true + + true From 11ddd8ec35daa3be2830c969625f68f62993bdc7 Mon Sep 17 00:00:00 2001 From: Kampalus <59146588+Kampalus@users.noreply.github.com> Date: Wed, 7 Oct 2020 08:55:24 +0200 Subject: [PATCH 07/12] grus: enable Night Display --- Xiaomi/Mi9SE/res/values/config.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Xiaomi/Mi9SE/res/values/config.xml b/Xiaomi/Mi9SE/res/values/config.xml index 913c4ce..97ad42f 100644 --- a/Xiaomi/Mi9SE/res/values/config.xml +++ b/Xiaomi/Mi9SE/res/values/config.xml @@ -654,4 +654,10 @@ true + + + true + + true From 1bb6cfa089f77f86fba8cdb5ed5e964c83f8df93 Mon Sep 17 00:00:00 2001 From: Kampalus <59146588+Kampalus@users.noreply.github.com> Date: Wed, 7 Oct 2020 08:55:46 +0200 Subject: [PATCH 08/12] grus: enable multi user --- Xiaomi/Mi9SE/res/values/config.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Xiaomi/Mi9SE/res/values/config.xml b/Xiaomi/Mi9SE/res/values/config.xml index 97ad42f..bcc8703 100644 --- a/Xiaomi/Mi9SE/res/values/config.xml +++ b/Xiaomi/Mi9SE/res/values/config.xml @@ -660,4 +660,9 @@ true + + + true + + 4 From 21d817fd9d8163fe7083ef50fe3ac0bd7a1376be Mon Sep 17 00:00:00 2001 From: Kampalus <59146588+Kampalus@users.noreply.github.com> Date: Wed, 7 Oct 2020 08:56:41 +0200 Subject: [PATCH 09/12] grus: enable VoLTE --- Xiaomi/Mi9SE/res/values/config.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Xiaomi/Mi9SE/res/values/config.xml b/Xiaomi/Mi9SE/res/values/config.xml index bcc8703..88c9abf 100644 --- a/Xiaomi/Mi9SE/res/values/config.xml +++ b/Xiaomi/Mi9SE/res/values/config.xml @@ -665,4 +665,10 @@ true 4 + + + true + + org.codeaurora.ims From 17777eac2d9d2f7ce19ffe0b08747aca5db64666 Mon Sep 17 00:00:00 2001 From: Kampalus <59146588+Kampalus@users.noreply.github.com> Date: Wed, 7 Oct 2020 09:52:11 +0200 Subject: [PATCH 10/12] grus: don't configure multi user on GSI --- Xiaomi/Mi9SE/res/values/config.xml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Xiaomi/Mi9SE/res/values/config.xml b/Xiaomi/Mi9SE/res/values/config.xml index 88c9abf..98082d7 100644 --- a/Xiaomi/Mi9SE/res/values/config.xml +++ b/Xiaomi/Mi9SE/res/values/config.xml @@ -661,14 +661,9 @@ in hardware. --> true - - true - - 4 - true + empty string is passed in -->ea8076 org.codeaurora.ims From ab6a29c0846149cece2d116ffa04a2aaa6621b93 Mon Sep 17 00:00:00 2001 From: Kampalus <59146588+Kampalus@users.noreply.github.com> Date: Wed, 7 Oct 2020 09:55:42 +0200 Subject: [PATCH 11/12] tests: allow overlays to configure config_availableColorModes --- tests/knownKeys | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/knownKeys b/tests/knownKeys index 9c3365c..8718372 100644 --- a/tests/knownKeys +++ b/tests/knownKeys @@ -123,3 +123,4 @@ wifi_localhotspot_configure_ssid_default config_defaultPeakRefreshRate config_wifi_connected_mac_randomization_supported config_wifi_p2p_mac_randomization_supported +config_availableColorModes From 60f81a72406a59bce46bc153e74a21bc3c6dafb7 Mon Sep 17 00:00:00 2001 From: Kampalus <59146588+Kampalus@users.noreply.github.com> Date: Wed, 7 Oct 2020 10:05:05 +0200 Subject: [PATCH 12/12] grus: remove the name of the display panel I accidentally pasted in --- Xiaomi/Mi9SE/res/values/config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xiaomi/Mi9SE/res/values/config.xml b/Xiaomi/Mi9SE/res/values/config.xml index 98082d7..a515529 100644 --- a/Xiaomi/Mi9SE/res/values/config.xml +++ b/Xiaomi/Mi9SE/res/values/config.xml @@ -664,6 +664,6 @@ true ea8076 + empty string is passed in --> org.codeaurora.ims