├── Android.bp ├── AndroidProducts.mk ├── BoardConfig.mk ├── README.md ├── android-info-extra.txt ├── audio ├── audio_platform_info.xml ├── audio_policy_volumes.xml ├── default_volume_tables.xml ├── mixer_paths_overlay_dynamic.xml ├── mixer_paths_overlay_static.xml ├── sound_trigger_mixer_paths_wcd9340.xml └── sound_trigger_platform_info.xml ├── board-info.txt ├── device.mk ├── extract-files.py ├── gps └── gps_debug.conf ├── idc ├── uinput-fpc.idc └── uinput-goodix.idc ├── init ├── Android.bp ├── fstab.qcom └── init.target.rc ├── keylayout ├── gpio-keys.kl ├── uinput-fpc.kl └── uinput-goodix.kl ├── lineage.dependencies ├── lineage_dipper.mk ├── manifest.xml ├── nfc ├── libnfc-nci.conf └── libnfc-nxp.conf ├── overlay-lineage └── lineage-sdk │ ├── lineage │ └── res │ │ └── res │ │ └── values │ │ └── config.xml │ └── packages │ └── LineageSettingsProvider │ └── res │ └── values │ └── defaults.xml ├── overlay ├── frameworks │ └── base │ │ ├── core │ │ └── res │ │ │ └── res │ │ │ ├── values │ │ │ └── config.xml │ │ │ └── xml │ │ │ └── power_profile.xml │ │ └── packages │ │ ├── SettingsProvider │ │ └── res │ │ │ └── values │ │ │ └── defaults.xml │ │ └── overlays │ │ └── NoCutoutOverlay │ │ └── res │ │ └── values │ │ └── config.xml └── packages │ └── apps │ └── CarrierConfig │ └── res │ └── xml │ └── vendor.xml ├── proprietary-files.txt ├── rro_overlays └── WifiOverlay │ ├── Android.bp │ ├── AndroidManifest.xml │ └── res │ └── values │ └── config.xml ├── setup-makefiles.py ├── system.prop └── vendor.prop /Android.bp: -------------------------------------------------------------------------------- 1 | soong_namespace { 2 | } 3 | 4 | install_symlink { 5 | name: "gps.conf_symlink", 6 | installed_location: "etc/gps.conf", 7 | symlink_target: "/vendor/etc/gps.conf", 8 | } 9 | -------------------------------------------------------------------------------- /AndroidProducts.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2018-2019 The LineageOS Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | PRODUCT_MAKEFILES := \ 17 | $(LOCAL_DIR)/lineage_dipper.mk 18 | -------------------------------------------------------------------------------- /BoardConfig.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2018-2024 The LineageOS Project 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | 7 | # Inherit from sdm845-common 8 | include device/xiaomi/sdm845-common/BoardConfigCommon.mk 9 | 10 | BUILD_BROKEN_DUP_RULES := true 11 | 12 | DEVICE_PATH := device/xiaomi/dipper 13 | 14 | # Assert 15 | TARGET_OTA_ASSERT_DEVICE := dipper 16 | 17 | # Display 18 | TARGET_SCREEN_DENSITY := 440 19 | 20 | # Kernel 21 | TARGET_KERNEL_CONFIG += vendor/xiaomi/dipper.config 22 | 23 | # HIDL 24 | DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml 25 | 26 | # Partitions 27 | BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864 28 | 29 | # Properties 30 | TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop 31 | TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop 32 | 33 | # Recovery 34 | TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/init/fstab.qcom 35 | 36 | # Inherit from the proprietary version 37 | include vendor/xiaomi/dipper/BoardConfigVendor.mk 38 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Copyright (C) 2018 The LineageOS Project 2 | 3 | Device configuration for Xiaomi Mi 8 4 | ========================================= 5 | 6 | The Xiaomi Mi 8 (codenamed _"dipper"_) is a high-end smartphone from Xiaomi. 7 | 8 | It was announced in May 2018. Release date was June 2018. 9 | 10 | ## Device specifications 11 | 12 | Basic | Spec Sheet 13 | -------:|:------------------------- 14 | SoC | Qualcomm SDM845 Snapdragon 845 15 | CPU | Octa-core (4x2.8 GHz Kryo 385 Gold & 4x1.8 GHz Kryo 385 Silver) 16 | GPU | Adreno 630 17 | Memory | 6 GB RAM 18 | Shipped Android Version | 8.1 with MIUI 9.5 19 | Storage | 64/128/256 GB 20 | Battery | Non-removable Li-Ion 3400 mAh battery 21 | Display | 1080 x 2248 pixels, 18:9 ratio, 6.21 inches, Super AMOLED (~402 ppi density) 22 | Camera | Dual 12 MP, 4-axis OIS, 2x optical zoom, dual PDAF, dual-LED (dual tone) flash 23 | 24 | ## Device picture 25 | 26 | ![Xiaomi Mi 8](https://xiaomi-mi.com/uploads/CatalogueImage/01_b_16982_1527780977.jpg "Xiaomi Mi 8 in black") 27 | -------------------------------------------------------------------------------- /android-info-extra.txt: -------------------------------------------------------------------------------- 1 | require version-trustzone=XF.5.0.1-00161 2 | -------------------------------------------------------------------------------- /audio/audio_platform_info.xml: -------------------------------------------------------------------------------- 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 | 127 | 132 | 137 | 138 | 139 | 140 | 141 | 142 | 144 | 146 | 148 | 149 | 150 | 152 | 153 | 154 | 156 | 157 | 158 | 160 | 161 | 162 | 164 | 165 | 166 | 168 | 169 | 170 | 172 | 174 | 175 | 176 | 178 | 180 | 181 | 182 | 184 | 186 | 188 | 189 | 190 | 192 | 194 | 195 | 196 | 198 | 200 | 201 | 202 | 204 | 206 | 207 | 208 | 210 | 212 | 213 | 214 | 216 | 218 | 220 | 221 | 222 | 224 | 226 | 228 | 229 | 230 | 232 | 234 | 236 | 237 | 238 | 240 | 242 | 244 | 245 | 246 | 248 | 249 | 250 | 252 | 254 | 255 | 256 | 258 | 260 | 262 | 263 | 264 | 266 | 268 | 269 | 270 | 272 | 274 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | -------------------------------------------------------------------------------- /audio/audio_policy_volumes.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 24 | 25 | 26 | 28 | 30 | 32 | 34 | 36 | 37 | 1,-3800 38 | 33,-2400 39 | 73,-1500 40 | 100,-600 41 | 42 | 44 | 46 | 48 | 49 | 1,-3500 50 | 26,-2500 51 | 50,-1250 52 | 73,-900 53 | 100,0 54 | 55 | 57 | 59 | 60 | 1,-6200 61 | 26,-4000 62 | 73,-1500 63 | 100,0 64 | 65 | 66 | 1,-7000 67 | 7,-4750 68 | 14,-4150 69 | 27,-3400 70 | 40,-2600 71 | 53,-1800 72 | 65,-1200 73 | 93,-500 74 | 100,0 75 | 76 | 78 | 80 | 82 | 83 | 1,-3500 84 | 26,-2500 85 | 50,-1250 86 | 73,-900 87 | 100,0 88 | 89 | 91 | 93 | 95 | 96 | 1,-3800 97 | 33,-2400 98 | 73,-1500 99 | 100,-600 100 | 101 | 103 | 105 | 106 | 0,-420 107 | 33,-280 108 | 66,-140 109 | 100,0 110 | 111 | 113 | 115 | 117 | 119 | 121 | 123 | 125 | 127 | 128 | 1,-3800 129 | 33,-2600 130 | 73,-1600 131 | 100,-600 132 | 133 | 135 | 137 | 139 | 141 | 143 | 145 | 147 | 149 | 151 | 153 | 155 | 157 | 159 | 161 | 163 | 165 | 167 | 169 | 170 | 171 | 0,-4200 172 | 33,-2800 173 | 66,-1400 174 | 100,0 175 | 176 | 177 | 178 | 0,-2400 179 | 33,-1600 180 | 66,-800 181 | 100,0 182 | 183 | 184 | 185 | 1,-4400 186 | 33,-3200 187 | 66,-2200 188 | 100,-1600 189 | 190 | 191 | 192 | 1,-3500 193 | 26,-2500 194 | 73,-1120 195 | 100,0 196 | 197 | 198 | 199 | -------------------------------------------------------------------------------- /audio/default_volume_tables.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 0,0 22 | 100,0 23 | 24 | 25 | 0,-9600 26 | 100,-9600 27 | 28 | 29 | 30 | 1,-3200 31 | 33,-2400 32 | 73,-1800 33 | 100,-600 34 | 35 | 36 | 37 | 1,-5800 38 | 20,-4000 39 | 60,-1700 40 | 100,0 41 | 42 | 43 | 44 | 1,-4950 45 | 33,-3350 46 | 66,-1700 47 | 100,-600 48 | 49 | 50 | 51 | 1,-5800 52 | 20,-4000 53 | 60,-1700 54 | 100,0 55 | 56 | 57 | 58 | 1,-4950 59 | 33,-3350 60 | 66,-1700 61 | 100,0 62 | 63 | 64 | 65 | 1,-5800 66 | 20,-4000 67 | 60,-2100 68 | 100,-1000 69 | 70 | 71 | 72 | 1,-12700 73 | 20,-8000 74 | 60,-4000 75 | 100,0 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 0,-5800 85 | 20,-4000 86 | 60,-1700 87 | 100,0 88 | 89 | 90 | 91 | 92 | 0,-4950 93 | 33,-3350 94 | 66,-1700 95 | 100,0 96 | 97 | 98 | 99 | 100 | 0,-5800 101 | 20,-4000 102 | 60,-1700 103 | 100,0 104 | 105 | 106 | 107 | 108 | 0,-4950 109 | 33,-3350 110 | 66,-1700 111 | 100,0 112 | 113 | 114 | 115 | 116 | 0,-5800 117 | 20,-4000 118 | 60,-2100 119 | 100,-1000 120 | 121 | 122 | 123 | 124 | 0,-12700 125 | 20,-8000 126 | 60,-4000 127 | 100,0 128 | 129 | 130 | -------------------------------------------------------------------------------- /audio/mixer_paths_overlay_dynamic.xml: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /audio/mixer_paths_overlay_static.xml: -------------------------------------------------------------------------------- 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 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | -------------------------------------------------------------------------------- /audio/sound_trigger_mixer_paths_wcd9340.xml: -------------------------------------------------------------------------------- 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 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | -------------------------------------------------------------------------------- /audio/sound_trigger_platform_info.xml: -------------------------------------------------------------------------------- 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 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 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 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 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 | 256 | 257 | -------------------------------------------------------------------------------- /board-info.txt: -------------------------------------------------------------------------------- 1 | require board=sdm845|dipper 2 | -------------------------------------------------------------------------------- /device.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2018-2024 The LineageOS Project 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | 7 | $(call inherit-product, $(SRC_TARGET_DIR)/product/non_ab_device.mk) 8 | 9 | $(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_o_mr1.mk) 10 | 11 | # Get non-open-source specific aspects 12 | $(call inherit-product, vendor/xiaomi/dipper/dipper-vendor.mk) 13 | 14 | # Boot animation 15 | TARGET_SCREEN_HEIGHT := 2248 16 | TARGET_SCREEN_WIDTH := 1080 17 | 18 | # Overlays 19 | DEVICE_PACKAGE_OVERLAYS += \ 20 | $(LOCAL_PATH)/overlay \ 21 | $(LOCAL_PATH)/overlay-lineage 22 | 23 | PRODUCT_PACKAGES += \ 24 | NoCutoutOverlay 25 | 26 | # Permissions 27 | PRODUCT_COPY_FILES += \ 28 | frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ 29 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ 30 | frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ 31 | frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml \ 32 | frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.hifi_sensors.xml \ 33 | frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \ 34 | frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml 35 | 36 | # Screen density 37 | PRODUCT_AAPT_CONFIG := normal 38 | PRODUCT_AAPT_PREF_CONFIG := xxhdpi 39 | 40 | # Treble 41 | PRODUCT_USE_VNDK_OVERRIDE := true 42 | 43 | # Inherit from sdm845-common 44 | $(call inherit-product, device/xiaomi/sdm845-common/sdm845.mk) 45 | 46 | # Audio 47 | PRODUCT_COPY_FILES += \ 48 | $(LOCAL_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \ 49 | $(LOCAL_PATH)/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ 50 | $(LOCAL_PATH)/audio/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ 51 | $(LOCAL_PATH)/audio/mixer_paths_overlay_dynamic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_overlay_dynamic.xml \ 52 | $(LOCAL_PATH)/audio/mixer_paths_overlay_static.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_overlay_static.xml \ 53 | $(LOCAL_PATH)/audio/sound_trigger_mixer_paths_wcd9340.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9340.xml \ 54 | $(LOCAL_PATH)/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml 55 | 56 | # Control groups and task profiles 57 | PRODUCT_COPY_FILES += \ 58 | system/core/libprocessgroup/profiles/cgroups_28.json:$(TARGET_COPY_OUT_VENDOR)/etc/cgroups.json \ 59 | system/core/libprocessgroup/profiles/task_profiles_28.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json 60 | 61 | # Device fstab 62 | PRODUCT_PACKAGES += \ 63 | fstab.qcom \ 64 | fstab.qcom.ramdisk 65 | 66 | # Device init scripts 67 | PRODUCT_PACKAGES += \ 68 | init.target.rc 69 | 70 | # GPS 71 | PRODUCT_COPY_FILES += \ 72 | $(LOCAL_PATH)/gps/gps_debug.conf:$(TARGET_COPY_OUT_SYSTEM)/etc/gps_debug.conf 73 | 74 | PRODUCT_PACKAGES += \ 75 | gps.conf_symlink 76 | 77 | # Input 78 | PRODUCT_COPY_FILES += \ 79 | $(LOCAL_PATH)/idc/uinput-fpc.idc:system/usr/idc/uinput-fpc.idc \ 80 | $(LOCAL_PATH)/idc/uinput-goodix.idc:system/usr/idc/uinput-goodix.idc 81 | 82 | PRODUCT_COPY_FILES += \ 83 | $(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \ 84 | $(LOCAL_PATH)/keylayout/uinput-fpc.kl:system/usr/keylayout/uinput-fpc.kl \ 85 | $(LOCAL_PATH)/keylayout/uinput-goodix.kl:system/usr/keylayout/uinput-goodix.kl 86 | 87 | # LiveDisplay 88 | PRODUCT_PACKAGES += \ 89 | vendor.lineage.livedisplay@2.0-service.xiaomi_sdm845 90 | 91 | # NFC 92 | PRODUCT_PACKAGES += \ 93 | android.hardware.nfc-service.nxp \ 94 | com.android.nfc_extras \ 95 | Tag 96 | 97 | PRODUCT_COPY_FILES += \ 98 | $(LOCAL_PATH)/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf \ 99 | $(LOCAL_PATH)/nfc/libnfc-nxp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf 100 | 101 | # PocketMode 102 | PRODUCT_PACKAGES += \ 103 | XiaomiPocketMode 104 | 105 | # Soong namespaces 106 | PRODUCT_SOONG_NAMESPACES += \ 107 | $(LOCAL_PATH) 108 | 109 | # WiFi 110 | PRODUCT_PACKAGES += \ 111 | TargetWifiOverlay 112 | -------------------------------------------------------------------------------- /extract-files.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env -S PYTHONPATH=../../../tools/extract-utils python3 2 | # 3 | # SPDX-FileCopyrightText: 2025 The LineageOS Project 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | 7 | from extract_utils.fixups_blob import ( 8 | blob_fixup, 9 | blob_fixups_user_type, 10 | ) 11 | from extract_utils.fixups_lib import ( 12 | lib_fixups, 13 | ) 14 | from extract_utils.main import ( 15 | ExtractUtils, 16 | ExtractUtilsModule, 17 | ) 18 | 19 | namespace_imports = [ 20 | 'hardware/qcom-caf/common/libqti-perfd-client', 21 | 'hardware/qcom-caf/sdm845', 22 | 'hardware/xiaomi', 23 | 'vendor/qcom/opensource/display', 24 | 'vendor/xiaomi/sdm845-common' 25 | ] 26 | 27 | blob_fixups: blob_fixups_user_type = { 28 | 'vendor/lib/camera/components/com.qti.node.watermark.so': blob_fixup() 29 | .add_needed('libpiex_shim.so'), 30 | ( 31 | 'vendor/lib/libarcsoft_dualcam_refocus_front.so', 32 | 'vendor/lib/libarcsoft_dualcam_refocus_rear_t.so', 33 | 'vendor/lib/libarcsoft_dualcam_refocus_rear_w.so' 34 | ): blob_fixup() 35 | .clear_symbol_version('remote_handle_close') 36 | .clear_symbol_version('remote_handle_invoke') 37 | .clear_symbol_version('remote_handle_open'), 38 | 'vendor/lib/libmmcamera_faceproc.so': blob_fixup() 39 | .clear_symbol_version('__aeabi_memcpy') 40 | .clear_symbol_version('__aeabi_memset') 41 | .clear_symbol_version('__gnu_Unwind_Find_exidx'), 42 | } # fmt: skip 43 | 44 | module = ExtractUtilsModule( 45 | 'dipper', 46 | 'xiaomi', 47 | blob_fixups=blob_fixups, 48 | lib_fixups=lib_fixups, 49 | namespace_imports=namespace_imports, 50 | ) 51 | 52 | if __name__ == '__main__': 53 | utils = ExtractUtils.device_with_common(module, 'sdm845-common', module.vendor) 54 | utils.run() 55 | -------------------------------------------------------------------------------- /gps/gps_debug.conf: -------------------------------------------------------------------------------- 1 | NTP_SERVER=pool.ntp.org 2 | LONGTERM_PSDS_SERVER_1=http://gllto.glpals.com/7day/v5/latest/lto2.dat 3 | LONGTERM_PSDS_SERVER_2=http://gllto1.glpals.com/7day/v5/latest/lto2.dat 4 | LONGTERM_PSDS_SERVER_3=http://gllto2.glpals.com/7day/v5/latest/lto2.dat 5 | SUPL_HOST=supl.google.com 6 | SUPL_PORT=7275 7 | -------------------------------------------------------------------------------- /idc/uinput-fpc.idc: -------------------------------------------------------------------------------- 1 | # 2 | # FPC1020 Touch sensor driver 3 | # 4 | # Copyright (c) 2013,2014 Fingerprint Cards AB 5 | # 6 | # This program is free software; you can redistribute it and/or 7 | # modify it under the terms of the GNU General Public License Version 2 8 | # as published by the Free Software Foundation. 9 | # 10 | 11 | device.internal = 1 12 | 13 | keyboard.layout = uinput-fpc 14 | keyboard.builtIn = 1 15 | keyboard.orientationAware = 1 16 | 17 | -------------------------------------------------------------------------------- /idc/uinput-goodix.idc: -------------------------------------------------------------------------------- 1 | # 2 | # Goodix Touch sensor driver 3 | # 4 | # Copyright (c) 2017 Goodix 5 | # 6 | # This program is free software; you can redistribute it and/or 7 | # modify it under the terms of the GNU General Public License Version 2 8 | # as published by the Free Software Foundation. 9 | # 10 | 11 | device.internal = 1 12 | 13 | keyboard.layout = uinput-goodix 14 | keyboard.builtIn = 1 15 | keyboard.orientationAware = 1 16 | 17 | -------------------------------------------------------------------------------- /init/Android.bp: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2024 The LineageOS Project 3 | // SPDX-License-Identifier: Apache-2.0 4 | // 5 | 6 | prebuilt_etc { 7 | name: "fstab.qcom", 8 | src: "fstab.qcom", 9 | soc_specific: true, 10 | ramdisk_available: true, 11 | } 12 | 13 | prebuilt_etc { 14 | name: "init.target.rc", 15 | src: "init.target.rc", 16 | sub_dir: "init/hw", 17 | soc_specific: true, 18 | } 19 | -------------------------------------------------------------------------------- /init/fstab.qcom: -------------------------------------------------------------------------------- 1 | # Android fstab file. 2 | # The filesystem that contains the filesystem e2fsck binary (typically /system) cannot 3 | # specify 'check', and must come before any filesystems that do specify 'check' 4 | 5 | # 6 | system /system ext4 ro,barrier=1,discard wait,logical,first_stage_mount 7 | system_ext /system_ext ext4 ro,barrier=1,discard wait,logical,first_stage_mount 8 | product /product ext4 ro,barrier=1,discard wait,logical,first_stage_mount 9 | vendor /vendor ext4 ro,barrier=1,discard wait,logical,first_stage_mount 10 | odm /odm ext4 ro,barrier=1,discard wait,logical,first_stage_mount 11 | /dev/block/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=0,noauto_da_alloc latemount,wait,check,fileencryption=ice,quota 12 | /dev/block/bootdevice/by-name/modem /vendor/firmware_mnt vfat ro,shortname=lower,uid=0,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait 13 | /dev/block/bootdevice/by-name/dsp /vendor/dsp ext4 ro,nosuid,nodev,barrier=1 wait 14 | /dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 noatime,nosuid,nodev,barrier=1 wait 15 | /dev/block/bootdevice/by-name/bluetooth /vendor/bt_firmware vfat ro,shortname=lower,uid=1002,gid=3002,dmask=227,fmask=337,context=u:object_r:bt_firmware_file:s0 wait 16 | /dev/block/bootdevice/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1 wait 17 | /dev/block/bootdevice/by-name/misc /misc emmc defaults defaults 18 | /dev/block/bootdevice/by-name/boot /boot emmc defaults recoveryonly 19 | /dev/block/bootdevice/by-name/recovery /recovery emmc defaults recoveryonly 20 | 21 | /devices/platform/soc/a600000.ssusb/a600000.dwc3/xhci-hcd.0.auto* /storage/usbotg vfat nosuid,nodev wait,voldmanaged=usbotg:auto 22 | -------------------------------------------------------------------------------- /init/init.target.rc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013-2018, The Linux Foundation. All rights reserved. 2 | # 3 | # Redistribution and use in source and binary forms, with or without 4 | # modification, are permitted provided that the following conditions are 5 | # met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above 9 | # copyright notice, this list of conditions and the following 10 | # disclaimer in the documentation and/or other materials provided 11 | # with the distribution. 12 | # * Neither the name of The Linux Foundation nor the names of its 13 | # contributors may be used to endorse or promote products derived 14 | # from this software without specific prior written permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED 17 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT 19 | # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 20 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 23 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 25 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 26 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # 29 | 30 | on init 31 | write /sys/class/leds/ir/max_brightness 63 32 | 33 | on boot 34 | chown gps system /sys/devices/platform/soc/890000.spi/spi_master/spi32766/spi32766.0/nstandby 35 | chmod 0774 /sys/devices/platform/soc/890000.spi/spi_master/spi32766/spi32766.0/nstandby 36 | chown gps system /dev/bbd_control 37 | chmod 0774 /dev/bbd_control 38 | chown gps system /dev/bbd_patch 39 | chmod 0774 /dev/bbd_patch 40 | chown gps system /dev/bbd_sensor 41 | chmod 0774 /dev/bbd_sensor 42 | 43 | on post-fs-data 44 | mkdir /data/vendor/gps 45 | mkdir /data/vendor/gps/log 46 | mkdir /data/vendor/gps/log/gps 47 | mkdir /data/vendor/gps/log/lhd 48 | chown gps system /data/vendor/gps 49 | chown gps system /data/vendor/gps/log 50 | chown gps system /data/vendor/gps/log/gps 51 | chown gps system /data/vendor/gps/log/lhd 52 | chown gps system /dev/ttyBCM 53 | chmod 775 /data/vendor/gps 54 | chmod 775 /data/vendor/gps/log 55 | chmod 770 /data/vendor/gps/log/gps 56 | chmod 770 /data/vendor/gps/log/lhd 57 | chmod 775 /dev/ttyBCM 58 | 59 | service glgps /vendor/bin/glgps -c /vendor/etc/gpsconfig.xml 60 | socket gps seqpacket 660 gps system 61 | class late_start 62 | user gps 63 | group system inet sdcard_rw wakelock 64 | ioprio rt 0 65 | 66 | service ignss_2_0 /vendor/bin/ignss_2_0 67 | class late_start 68 | user system 69 | group system inet sdcard_rw wakelock 70 | 71 | service lhd /vendor/bin/lhd /vendor/etc/lhd.conf 72 | class late_start 73 | user gps 74 | group system inet net_raw sdcard_rw wakelock 75 | ioprio rt 0 76 | 77 | service remosaic_daemon /vendor/bin/remosaic_daemon 78 | class late_start 79 | user camera 80 | group camera 81 | -------------------------------------------------------------------------------- /keylayout/gpio-keys.kl: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013, The Linux Foundation. All rights reserved. 2 | # 3 | # Redistribution and use in source and binary forms, with or without 4 | # modification, are permitted provided that the following conditions are 5 | # met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above 9 | # copyright notice, this list of conditions and the following 10 | # disclaimer in the documentation and/or other materials provided 11 | # with the distribution. 12 | # * Neither the name of The Linux Foundation nor the names of its 13 | # contributors may be used to endorse or promote products derived 14 | # from this software without specific prior written permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED 17 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT 19 | # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 20 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 23 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 25 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 26 | 27 | key 115 VOLUME_UP 28 | key 114 VOLUME_DOWN 29 | key 102 HOME 30 | key 528 FOCUS 31 | key 766 CAMERA 32 | -------------------------------------------------------------------------------- /keylayout/uinput-fpc.kl: -------------------------------------------------------------------------------- 1 | # 2 | # FPC1020 Touch sensor driver 3 | # 4 | # Copyright (c) 2013,2014 Fingerprint Cards AB 5 | # 6 | # This program is free software; you can redistribute it and/or 7 | # modify it under the terms of the GNU General Public License Version 2 8 | # as published by the Free Software Foundation. 9 | # 10 | 11 | #key 96 DPAD_CENTER VIRTUAL 12 | #key 102 HOME VIRTUAL 13 | #key 105 DPAD_LEFT VIRTUAL 14 | #key 106 DPAD_RIGHT VIRTUAL 15 | 16 | -------------------------------------------------------------------------------- /keylayout/uinput-goodix.kl: -------------------------------------------------------------------------------- 1 | # 2 | # Goodix Touch sensor driver 3 | # 4 | # Copyright (c) 2017 Goodix 5 | # 6 | # This program is free software; you can redistribute it and/or 7 | # modify it under the terms of the GNU General Public License Version 2 8 | # as published by the Free Software Foundation. 9 | # 10 | 11 | #key 96 DPAD_CENTER VIRTUAL 12 | #key 102 HOME VIRTUAL 13 | #key 105 DPAD_LEFT VIRTUAL 14 | #key 106 DPAD_RIGHT VIRTUAL 15 | 16 | -------------------------------------------------------------------------------- /lineage.dependencies: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "repository": "android_device_xiaomi_sdm845-common", 4 | "target_path": "device/xiaomi/sdm845-common" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /lineage_dipper.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2018-2019,2022 The LineageOS Project 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | 7 | $(call inherit-product, device/xiaomi/dipper/device.mk) 8 | 9 | # Inherit some common Lineage stuff. 10 | $(call inherit-product, vendor/lineage/config/common_full_phone.mk) 11 | 12 | # Device identifier. This must come after all inclusions. 13 | PRODUCT_NAME := lineage_dipper 14 | PRODUCT_DEVICE := dipper 15 | PRODUCT_BRAND := Xiaomi 16 | PRODUCT_MODEL := MI 8 17 | PRODUCT_MANUFACTURER := Xiaomi 18 | 19 | PRODUCT_BUILD_PROP_OVERRIDES += \ 20 | BuildDesc="dipper-user 8.1.0 OPM1.171019.011 V9.5.5.0.OEAMIFA release-keys" \ 21 | BuildFingerprint=Xiaomi/dipper/dipper:8.1.0/OPM1.171019.011/V9.5.5.0.OEAMIFA:user/release-keys 22 | 23 | PRODUCT_GMS_CLIENTID_BASE := android-xiaomi 24 | -------------------------------------------------------------------------------- /manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | android.hardware.gnss 4 | hwbinder 5 | 2.0 6 | 1.1 7 | 8 | IGnss 9 | default 10 | 11 | 12 | 13 | android.hardware.keymaster 14 | hwbinder 15 | 3.0 16 | 17 | IKeymasterDevice 18 | default 19 | 20 | 21 | 22 | android.hardware.secure_element 23 | hwbinder 24 | 1.0 25 | 26 | ISecureElement 27 | SIM1 28 | eSE1 29 | 30 | 31 | 32 | vendor.goodix.hardware.fingerprintextension 33 | hwbinder 34 | 1.0 35 | 36 | IGoodixBiometricsFingerprint 37 | default 38 | 39 | 40 | 41 | vendor.lineage.livedisplay 42 | hwbinder 43 | 2.0 44 | 45 | IDisplayModes 46 | default 47 | 48 | 49 | IPictureAdjustment 50 | default 51 | 52 | 53 | ISunlightEnhancement 54 | default 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /nfc/libnfc-nci.conf: -------------------------------------------------------------------------------- 1 | ########################## Start of libnfc-nci.conf ########################### 2 | ############################################################################### 3 | # Application options 4 | NFC_DEBUG_ENABLED=1 5 | 6 | ############################################################################### 7 | # File used for NFA storage 8 | NFA_STORAGE="/data/nfc" 9 | 10 | ############################################################################### 11 | # Force UICC to only listen to the following technology(s). 12 | # The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. 13 | # Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B | NFA_TECHNOLOGY_MASK_F 14 | UICC_LISTEN_TECH_MASK=0x07 15 | 16 | ############################################################################### 17 | # Configure the default Destination Gate used by HCI (the default is 4, which 18 | # is the ETSI loopback gate. 19 | NFA_HCI_DEFAULT_DEST_GATE=0xF0 20 | 21 | ############################################################################### 22 | # Enabling/Disabling Forward functionality 23 | # Disable 0x00 24 | # Enable 0x01 25 | NXP_FWD_FUNCTIONALITY_ENABLE=0x01 26 | 27 | ############################################################################### 28 | # AID for Empty Select command 29 | # If specified, this AID will be substituted when an Empty SELECT command is 30 | # detected. The first byte is the length of the AID. Maximum length is 16. 31 | AID_FOR_EMPTY_SELECT={08:A0:00:00:01:51:00:00:00} 32 | 33 | ############################################################################### 34 | # When screen is turned off, specify the desired power state of the controller. 35 | # 0: power-off-sleep state; DEFAULT 36 | # 1: full-power state 37 | # 2: screen-off card-emulation (CE4/CE3/CE1 modes are used) 38 | SCREEN_OFF_POWER_STATE=1 39 | 40 | ############################################################################### 41 | # Default poll duration (in ms) 42 | # The defualt is 500ms if not set (see nfc_target.h) 43 | #NFA_DM_DISC_DURATION_POLL=333 44 | 45 | ############################################################################### 46 | # Force tag polling for the following technology(s). 47 | # The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. 48 | # Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B | 49 | # NFA_TECHNOLOGY_MASK_F | NFA_TECHNOLOGY_MASK_ISO15693 | 50 | # NFA_TECHNOLOGY_MASK_B_PRIME | NFA_TECHNOLOGY_MASK_KOVIO | 51 | # NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE. 52 | # 53 | # Notable bits: 54 | # NFA_TECHNOLOGY_MASK_A 0x01 /* NFC Technology A */ 55 | # NFA_TECHNOLOGY_MASK_B 0x02 /* NFC Technology B */ 56 | # NFA_TECHNOLOGY_MASK_F 0x04 /* NFC Technology F */ 57 | # NFA_TECHNOLOGY_MASK_ISO15693 0x08 /* Proprietary Technology */ 58 | # NFA_TECHNOLOGY_MASK_KOVIO 0x20 /* Proprietary Technology */ 59 | # NFA_TECHNOLOGY_MASK_A_ACTIVE 0x40 /* NFC Technology A active mode */ 60 | # NFA_TECHNOLOGY_MASK_F_ACTIVE 0x80 /* NFC Technology F active mode */ 61 | POLLING_TECH_MASK=0xCF 62 | 63 | ############################################################################### 64 | # Force P2P to only listen for the following technology(s). 65 | # The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. 66 | # Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_F | 67 | # NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE 68 | # 69 | # Notable bits: 70 | # NFA_TECHNOLOGY_MASK_A 0x01 /* NFC Technology A */ 71 | # NFA_TECHNOLOGY_MASK_F 0x04 /* NFC Technology F */ 72 | # NFA_TECHNOLOGY_MASK_A_ACTIVE 0x40 /* NFC Technology A active mode */ 73 | # NFA_TECHNOLOGY_MASK_F_ACTIVE 0x80 /* NFC Technology F active mode */ 74 | P2P_LISTEN_TECH_MASK=0xC5 75 | 76 | PRESERVE_STORAGE=0x01 77 | 78 | ############################################################################## 79 | # Deactivate notification wait time out in seconds used in ETSI Reader mode 80 | # 0 - Infinite wait 81 | NFA_DM_DISC_NTF_TIMEOUT=100 82 | 83 | ############################################################################### 84 | # AID_MATCHING constants 85 | # AID_MATCHING_EXACT_ONLY 0x00 86 | # AID_MATCHING_EXACT_OR_PREFIX 0x01 87 | # AID_MATCHING_PREFIX_ONLY 0x02 88 | AID_MATCHING_MODE=0x01 89 | 90 | ############################################################################### 91 | # Enable/Disable Block Route feature. 92 | # Block Route will restrict routing to first matched rule 93 | # Block Route enable 0x01 94 | # Block Route disable 0x00 95 | NFA_BLOCK_ROUTE=0x00 96 | 97 | ############################################################################### 98 | #Set the default Felica T3T System Code : 99 | #This settings will be used when application does not set this parameter 100 | DEFAULT_SYS_CODE={FE:FF} 101 | 102 | ############################################################################### 103 | -------------------------------------------------------------------------------- /nfc/libnfc-nxp.conf: -------------------------------------------------------------------------------- 1 | #============================================================================ 2 | # File Name: libnfc-nxp.conf 3 | # 4 | # Description: 5 | # NFC configuration management file 6 | # 7 | # Modification History: 8 | # Revision 1.0 2017/01/04 20:50:20 xiaohua.wang@xiaomi.com 9 | # Initial draft version for Xiaomi C1 P2 board 10 | # 11 | # Revision 1.1 2017/03/01 16:32:09 xiaohua.wang@xiaomi.com 12 | # Upgrade NFCC firmware version to 11.1.E 13 | # 14 | # Revision 1.2 2017/06/30 23:45:41 xiaohua.wang@xiaomi.com 15 | # Improved notification management of received NCI Mode Set 16 | # 17 | # Revision 1.3 firmware version to 11.1.13/14 18 | # Kevin.hu@nxp.com 2017/09/05 16:06:41 19 | #============================================================================= 20 | 21 | # FW_VERSION=ALMSL 11.1.13/14 22 | # DEVICE_MANUFACTURER=Xiaomi 23 | # DEVICE_MODEL=E1 24 | 25 | # This file is used by NFC NXP NCI HAL(external/libnfc-nci/halimpl/pn5x) 26 | # and NFC Service Java Native Interface Extensions (packages/apps/Nfc/nci/jni/extns/pn5x) 27 | ############################################################################### 28 | # Application options 29 | # Logging Levels 30 | # NXPLOG_DEFAULT_LOGLEVEL 0x01 31 | # ANDROID_LOG_DEBUG 0x03 32 | # ANDROID_LOG_WARN 0x02 33 | # ANDROID_LOG_ERROR 0x01 34 | # ANDROID_LOG_SILENT 0x00 35 | NXPLOG_EXTNS_LOGLEVEL=0x02 36 | NXPLOG_NCIHAL_LOGLEVEL=0x02 37 | NXPLOG_NCIX_LOGLEVEL=0x02 38 | NXPLOG_NCIR_LOGLEVEL=0x02 39 | NXPLOG_FWDNLD_LOGLEVEL=0x02 40 | NXPLOG_TML_LOGLEVEL=0x02 41 | NFC_DEBUG_ENABLED=0x00 42 | 43 | ############################################################################### 44 | # Nfc Device Node name 45 | NXP_NFC_DEV_NODE="/dev/nq-nci" 46 | 47 | ############################################################################### 48 | # Extension for Mifare reader enable 49 | MIFARE_READER_ENABLE=0x01 50 | 51 | ############################################################################### 52 | # Vzw Feature enable 53 | VZW_FEATURE_ENABLE=0x01 54 | 55 | ############################################################################### 56 | # Firmware file type 57 | # .so file 0x01 58 | # .bin file 0x02 59 | NXP_FW_TYPE=0x01 60 | 61 | ############################################################################### 62 | # File name for Firmware 63 | NXP_FW_NAME="libpn553_fw.so" 64 | 65 | ############################################################################### 66 | # System clock source selection configuration 67 | # define CLK_SRC_XTAL 1 68 | # define CLK_SRC_PLL 2 69 | NXP_SYS_CLK_SRC_SEL=0x01 70 | 71 | ############################################################################### 72 | # System clock frequency selection configuration 73 | # define CLK_FREQ_13MHZ 1 74 | # define CLK_FREQ_19_2MHZ 2 75 | # define CLK_FREQ_24MHZ 3 76 | # define CLK_FREQ_26MHZ 4 77 | # define CLK_FREQ_38_4MHZ 5 78 | # define CLK_FREQ_52MHZ 6 79 | NXP_SYS_CLK_FREQ_SEL=0x01 80 | 81 | ############################################################################### 82 | # The timeout value to be used for clock request acknowledgment 83 | # min value = 0x01 to max = 0x06 84 | NXP_SYS_CLOCK_TO_CFG=0x06 85 | 86 | ############################################################################### 87 | # NXP proprietary settings 88 | NXP_ACT_PROP_EXTN={2F, 02, 00} 89 | 90 | ############################################################################### 91 | # NFC forum profile settings 92 | NXP_NFC_PROFILE_EXTN={20, 02, 05, 01, A0, 44, 01, 00} 93 | 94 | ############################################################################### 95 | # NFCC Configuration Control 96 | # Allow NFCC to manage RF Config 0x01 97 | # Don't allow NFCC to manage RF Config 0x00 98 | NXP_NFC_MERGE_RF_PARAMS={20, 02, 04, 01, 85, 01, 01} 99 | 100 | ############################################################################### 101 | # Standby enable settings 102 | NXP_CORE_STANDBY={2F, 00, 01, 01} 103 | 104 | ############################################################################### 105 | # NXP TVDD configurations settings 106 | # Allow NFCC to configure External TVDD, two configurations (1 and 2) supported, 107 | # out of them only one can be configured at a time. 108 | NXP_EXT_TVDD_CFG=0x02 109 | 110 | ############################################################################### 111 | # config1:SLALM, 3.3V for both RM and CM 112 | NXP_EXT_TVDD_CFG_1={20, 02, 0F, 01, A0, 0E, 0B, 31, 01, 01, 31, 00, 00, 00, 01, 00, D0, 0C} 113 | 114 | ############################################################################### 115 | # config2: use DCDC in CE, use Tx_Pwr_Req, set CFG2 mode, SLALM, 116 | # monitoring 5V from DCDC, 3.3V for both RM and CM, DCDCWaitTime=4.2ms 117 | NXP_EXT_TVDD_CFG_2={20, 02, 0F, 01, A0, 0E, 0B, 11, 01, C2, C2, 00, BA, 1E, 15, 00, D0, 0C} 118 | 119 | ############################################################################### 120 | # config3: use DCDC in CE, use Tx_Pwr_Req, SLALM, monitoring 5V from DCDC, 121 | # DCDCWaitTime=4.2ms 122 | NXP_EXT_TVDD_CFG_3={20, 02, 0B, 02, A0, 66, 01, 01, A0, 0E, 03, 52, 40, 0A} 123 | 124 | ############################################################################### 125 | # NXP RF configuration ALM/PLM settings 126 | # This section needs to be updated with the correct values based on the platform 127 | NXP_RF_CONF_BLK_1={ 128 | 20, 02, E7, 1B, 129 | A0, 0D, 06, 06, 37, 08, 76, 00, 00, 130 | A0, 0D, 03, 24, 03, 7D, 131 | A0, 0D, 06, 02, 35, 00, 3E, 00, 00, 132 | A0, 0D, 06, 04, 35, F4, 05, 70, 02, 133 | A0, 0D, 06, C2, 35, 00, 3E, 00, 03, 134 | A0, 0D, 06, 04, 42, F8, 40, FF, FF, 135 | A0, 0D, 04, 32, 42, F8, 40, 136 | A0, 0D, 04, 46, 42, 68, 40, 137 | A0, 0D, 04, 56, 42, 78, 40, 138 | A0, 0D, 04, 5C, 42, 80, 40, 139 | A0, 0D, 04, CA, 42, 68, 40, 140 | A0, 0D, 06, 06, 42, 00, 02, F6, F6, 141 | A0, 0D, 06, 32, 4A, 53, 07, 00, 1B, 142 | A0, 0D, 06, 46, 4A, 33, 07, 00, 07, 143 | A0, 0D, 06, 56, 4A, 43, 07, 00, 07, 144 | A0, 0D, 06, 5C, 4A, 11, 07, 01, 07, 145 | A0, 0D, 06, 34, 44, 66, 08, 00, 00, 146 | A0, 0D, 06, 48, 44, 65, 0A, 00, 00, 147 | A0, 0D, 06, 58, 44, 55, 08, 00, 00, 148 | A0, 0D, 06, 5E, 44, 55, 08, 00, 00, 149 | A0, 0D, 06, CA, 44, 65, 0A, 00, 00, 150 | A0, 0D, 06, 06, 44, 04, 04, C4, 00, 151 | A0, 0D, 06, 34, 2D, DC, 20, 04, 00, 152 | A0, 0D, 06, 48, 2D, 15, 34, 1F, 01, 153 | A0, 0D, 06, 58, 2D, 0D, 48, 0C, 01, 154 | A0, 0D, 06, 5E, 2D, 0D, 5A, 0C, 01, 155 | A0, 0D, 06, CA, 2D, 15, 34, 1F, 01 156 | } 157 | 158 | ############################################################################### 159 | # NXP RF configuration ALM/PLM settings 160 | # This section needs to be updated with the correct values based on the platform 161 | # Enable DLMA 162 | NXP_RF_CONF_BLK_2={ 163 | 20, 02, D6, 01, A0, 34, D2, 23, 04, 18, 47, 40, 00, 00, 40, 01, 32, 00, 40, 01, 47, 00, 40, 01, 6C, 00, 40, 01, B1, 00, 40, 01, 1E, 01, 08, 01, A0, 01, 48, 00, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 48, 01, 00, 00, 08, 03, 00, 00, 08, 01, 00, 00, C8, 02, 00, 00, C8, 00, 00, 00, 88, 02, 00, 00, 48, 02, 00, 00, B8, 00, 00, 00, 68, 00, 00, 00, 18, 00, 00, 00, 08, 02, 00, 00, 00, 00, 00, 00, 00, 00, 47, 00, 00, 40, 01, 32, 00, 40, 01, 47, 00, 40, 01, 6C, 00, 40, 01, B1, 00, 40, 01, 1E, 01, 08, 01, A0, 01, 48, 00, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 48, 01, 00, 00, 08, 03, 00, 00, 08, 01, 00, 00, C8, 02, 00, 00, C8, 00, 00, 00, 88, 02, 00, 00, 48, 02, 00, 00, B8, 00, 00, 00, 68, 00, 00, 00, 18, 00, 00, 00, 08, 02, 00, 00, 00, 00 164 | } 165 | 166 | ############################################################################### 167 | # NXP RF configuration ALM/PLM settings 168 | # This section needs to be updated with the correct values based on the platform 169 | # Disable DPC 170 | NXP_RF_CONF_BLK_3={ 171 | 20, 02, 5B, 01, A0, 0B, 57, 11, 11, 90, 78, 0F, 4E, 00, 3D, 95, 00, 00, 3D, 9F, 00, 00, 50, 9F, 00, 00, 59, 9F, 00, 00, 5A, 9F, 00, 00, 64, 9F, 00, 00, 65, 9F, 00, 00, 6E, 9F, 00, 00, 72, 9F, 00, 00, 79, 9F, 00, 00, 7B, 9F, 00, 00, 84, 9F, 00, 00, 86, 9F, 00, 00, 8F, 9F, 00, 00, 91, 9F, 00, 00, 9A, 9F, 00, 00, A1, 9F, 00, 00, A7, 9F, 00, 00, B0, 1F, 00, 00, B9, 1F, 00, 00 172 | } 173 | 174 | ############################################################################### 175 | # NXP RF configuration ALM/PLM settings 176 | # This section needs to be updated with the correct values based on the platform 177 | # CE detector/phase 178 | NXP_RF_CONF_BLK_4={ 179 | 20, 02, 21, 04, 180 | A0, 38, 04, 06, 06, 06, 00, 181 | A0, 3A, 08, C8, 00, C8, 00, C8, 00, C8, 00, 182 | A0, 0D, 06, 06, 16, 0E, 00, 1F, 00, 183 | A0, B1, 02, A8, 02 184 | } 185 | 186 | ############################################################################### 187 | # NXP RF configuration ALM/PLM settings 188 | # This section needs to be updated with the correct values based on the platform 189 | #NXP_RF_CONF_BLK_5={ 190 | #} 191 | 192 | ############################################################################### 193 | # NXP RF configuration ALM/PLM settings 194 | # This section needs to be updated with the correct values based on the platform 195 | #NXP_RF_CONF_BLK_6={ 196 | #} 197 | 198 | ############################################################################### 199 | # Set configuration optimization decision setting 200 | # Enable = 0x01 201 | # Disable = 0x00 202 | NXP_SET_CONFIG_ALWAYS=0x01 203 | 204 | ############################################################################### 205 | # Core configuration extensions 206 | # A009 - Time-out before standby 207 | # A0EC - Disable/Enable SWP1 interface 208 | # A0ED - Disable/Enable SWP2 interface 209 | # A05E - Send RID automatically in Jewel Reader mode 210 | # A012 - NFCEE interface 2 configuration 211 | # A040 - Low Power Card Detector Enable 212 | # A041 - Low Power Card Detector Threshold 213 | # A042 - Low Power Card Detector Sampling 214 | # A043 - Low Power Card Detector Hybrid 215 | # A0D5 - SWP/DWP desired baudrate 216 | # A0D8 - Configure the number of Sliding Windows used on DWP 217 | # A0DD - Retry on SWP2 interface 218 | # A0F2 - SVDD_PWR_REQ enable 219 | # A09F - Add ON/OFF guard time for SVDD power management(Step value ~1mSec) 220 | # A096 - Notify all AIDs 221 | # A037 - SE DWP system configuration 222 | NXP_CORE_CONF_EXTN={ 223 | 20, 02, 51, 13, 224 | A0, 09, 02, 90, 01, 225 | A0, EC, 01, 01, 226 | A0, ED, 01, 03, 227 | A0, 5E, 01, 01, 228 | A0, 12, 01, 02, 229 | A0, 40, 01, 01, 230 | A0, 41, 01, 05, 231 | A0, 43, 01, 04, 232 | A0, 46, 02, BA, 27, 233 | A0, 47, 02, BA, 27, 234 | A0, 81, 01, 01, 235 | A0, D5, 01, 0A, 236 | A0, D8, 01, 02, 237 | A0, DD, 01, 2D, 238 | A0, F2, 01, 01, 239 | A0, 9F, 02, 08, 08, 240 | A0, 96, 01, 01, 241 | A0, 37, 01, 35, 242 | A0, 3F, 01, 01 243 | } 244 | 245 | ############################################################################### 246 | # Core configuration rf field filter settings to enable set to 01 to disable set 247 | # to 00 last bit 248 | NXP_CORE_RF_FIELD={ 20, 02, 05, 01, A0, 62, 01, 00 } 249 | 250 | ############################################################################### 251 | # To enable i2c fragmentation set i2c fragmentation enable 0x01 to disable set 252 | # to 0x00 253 | NXP_I2C_FRAGMENTATION_ENABLED=0x00 254 | 255 | ############################################################################### 256 | # Core configuration settings 257 | NXP_CORE_CONF={ 258 | 20, 02, 2E, 0E, 259 | 28, 01, 00, 260 | 21, 01, 00, 261 | 30, 01, 08, 262 | 31, 01, 03, 263 | 32, 01, 60, 264 | 38, 01, 01, 265 | 33, 04, 01, 02, 03, 04, 266 | 54, 01, 06, 267 | 50, 01, 02, 268 | 5B, 01, 00, 269 | 80, 01, 01, 270 | 81, 01, 01, 271 | 82, 01, 0E, 272 | 18, 01, 01 273 | } 274 | 275 | ############################################################################### 276 | # Mifare Classic Key settings 277 | # NXP_CORE_MFCKEY_SETTING={20, 02, 25,04, A0, 51, 06, A0, A1, A2, A3, A4, A5, 278 | # A0, 52, 06, D3, F7, D3, F7, D3, F7, 279 | # A0, 53, 06, FF, FF, FF, FF, FF, FF, 280 | # A0, 54, 06, 00, 00, 00, 00, 00, 00} 281 | 282 | ############################################################################### 283 | # Default SE Options 284 | # No secure element 0x00 285 | # eSE 0x01 286 | # UICC 0x02 287 | # UICC2 0x04 288 | NXP_DEFAULT_SE=0x01 289 | 290 | ############################################################################### 291 | #Enable SWP full power mode when phone is power off 292 | NXP_SWP_FULL_PWR_ON=0x00 293 | 294 | ############################################################################### 295 | #### Select the CHIP #### 296 | # PN547C2 0x01 297 | # PN65T 0x02 298 | # PN548AD 0x03 299 | # PN66T 0x04 300 | # PN551 0x05 301 | # PN67T 0x06 302 | # PN553 0x07 303 | # PN80T 0x08 304 | NXP_NFC_CHIP=0x08 305 | 306 | ############################################################################### 307 | # CE when Screen state is locked 308 | # This setting is for DEFAULT_AID_ROUTE, 309 | # DEFAULT_DESFIRE_ROUTE and DEFAULT_MIFARE_CLT_ROUTE 310 | # Disable 0x00 311 | # Enable 0x01 312 | NXP_CE_ROUTE_STRICT_DISABLE=0x01 313 | 314 | ############################################################################### 315 | #Timeout in secs to get NFCEE Discover notification 316 | NXP_DEFAULT_NFCEE_DISC_TIMEOUT=20 317 | 318 | ############################################################################### 319 | NXP_DEFAULT_NFCEE_TIMEOUT=20 320 | 321 | ############################################################################### 322 | # Timeout in secs 323 | NXP_SWP_RD_START_TIMEOUT=0x0A 324 | 325 | ############################################################################### 326 | # Timeout in secs 327 | NXP_SWP_RD_TAG_OP_TIMEOUT=0x01 328 | 329 | ############################################################################### 330 | # Set the default AID route Location : 331 | # This settings will be used when application does not set this parameter 332 | # host 0x00 333 | # eSE 0x01 334 | # UICC 0x02 335 | # UICC2 0x03 336 | DEFAULT_AID_ROUTE=0x00 337 | 338 | ############################################################################### 339 | #Set the Mifare Desfire route Location : 340 | #This settings will be used when application does not set this parameter 341 | # host 0x00 342 | # eSE 0x01 343 | # UICC 0x02 344 | # UICC2 0x03 345 | DEFAULT_DESFIRE_ROUTE=0x01 346 | 347 | ############################################################################### 348 | # Set the Mifare CLT route Location : 349 | # This settings will be used when application does not set this parameter 350 | # host 0x00 351 | # eSE 0x01 352 | # UICC 0x02 353 | # UICC2 0x03 354 | DEFAULT_MIFARE_CLT_ROUTE=0x01 355 | 356 | ############################################################################### 357 | # Set the Felica CLT route Location : 358 | # This settings will be used when application does not set this parameter 359 | # eSE 0x01 360 | # UICC 0x02 361 | # UICC2 0x03 362 | DEFAULT_FELICA_CLT_ROUTE=0x01 363 | 364 | ############################################################################### 365 | # Set the default AID Power state : 366 | # This settings will be used when application does not set this parameter 367 | # bit pos 0 = Switch On 368 | # bit pos 1 = Switch Off 369 | # bit pos 2 = Battery Off 370 | # bit pos 3 = Screen Lock 371 | # bit pos 4 = Screen Off 372 | DEFAULT_AID_PWR_STATE=0x19 373 | 374 | ############################################################################### 375 | # Set the Mifare Desfire Power state : 376 | # This settings will be used when application does not set this parameter 377 | # bit pos 0 = Switch On 378 | # bit pos 1 = Switch Off 379 | # bit pos 2 = Battery Off 380 | # bit pos 3 = Screen Lock 381 | # bit pos 4 = Screen Off 382 | DEFAULT_DESFIRE_PWR_STATE=0x1B 383 | 384 | ############################################################################### 385 | # Set the Mifare CLT Power state : 386 | # This settings will be used when application does not set this parameter 387 | # bit pos 0 = Switch On 388 | # bit pos 1 = Switch Off 389 | # bit pos 2 = Battery Off 390 | # bit pos 3 = Screen Lock 391 | # bit pos 4 = Screen Off 392 | DEFAULT_MIFARE_CLT_PWR_STATE=0x1B 393 | 394 | ############################################################################### 395 | # Set the Felica CLT Power state : 396 | # This settings will be used when application does not set this parameter 397 | # bit pos 0 = Switch On 398 | # bit pos 1 = Switch Off 399 | # bit pos 2 = Battery Off 400 | # bit pos 3 = Screen Lock 401 | # bit pos 4 = Screen Off 402 | DEFAULT_FELICA_CLT_PWR_STATE=0x1B 403 | 404 | ############################################################################### 405 | # AID Matching platform options 406 | # AID_MATCHING_L 0x01 407 | # AID_MATCHING_K 0x02 408 | AID_MATCHING_PLATFORM=0x01 409 | 410 | ############################################################################### 411 | # P61 interface options 412 | # NFC 0x01 413 | # SPI 0x02 414 | NXP_P61_LS_DEFAULT_INTERFACE=0x01 415 | 416 | ############################################################################### 417 | # P61 LTSM interface options 418 | # NFC 0x01 419 | # SPI 0x02 420 | NXP_P61_LTSM_DEFAULT_INTERFACE=0x01 421 | 422 | ############################################################################### 423 | # CHINA_TIANJIN_RF_SETTING 424 | # Enable 0x01 425 | # Disable 0x00 426 | NXP_CHINA_TIANJIN_RF_ENABLED=0x01 427 | 428 | ############################################################################### 429 | # SWP_SWITCH_TIMEOUT_SETTING 430 | # Allowed range of swp timeout setting is 0x00 to 0x3C [0 - 60]. 431 | # Timeout in milliseconds, for example 432 | # No Timeout 0x00 433 | # 10 millisecond timeout 0x0A 434 | NXP_SWP_SWITCH_TIMEOUT=0x0A 435 | 436 | ############################################################################### 437 | # P61 interface options for JCOP Download 438 | # NFC 0x01 439 | # SPI 0x02 440 | NXP_P61_JCOP_DEFAULT_INTERFACE=0x01 441 | 442 | ############################################################################### 443 | # P61 JCOP OS download options 444 | # FRAMEWORK API BY APPLICATION 0x00 445 | # AT BOOT_TIME 0x01 446 | NXP_JCOPDL_AT_BOOT_ENABLE=0x00 447 | 448 | ############################################################################### 449 | # Loader service version 450 | # NFC service checks for LS version 2.0 or 2.1 451 | # LS2.0 0x20 452 | # LS2.1 0x21 453 | # LS2.2 0x22 454 | # AT NFC service intialization 455 | NXP_LOADER_SERVICE_VERSION=0x21 456 | 457 | ############################################################################### 458 | # Timeout value in milliseconds for NFCC standby mode.The range is between 5000 459 | # msec to 20000 msec and zero is to disable. 460 | NXP_NFCC_STANDBY_TIMEOUT=0 461 | 462 | ############################################################################### 463 | # Dynamic RSSI feature enable 464 | # Disable 0x00 465 | # Enable 0x01 466 | NXP_AGC_DEBUG_ENABLE=0x00 467 | 468 | ############################################################################### 469 | #Virtual Mode ESE and Wired Mode ongoing delay Wired Mode 470 | # For Technology routing to ESE Technology Mask = 4 471 | # For ISO-DEP Protocol routing to ESE Mask = 2 472 | # It can also take TECH|PROTO = 6 473 | # To ignore the delay set mask to = 0 474 | NXP_ESE_WIRED_PRT_MASK=0x00 475 | 476 | ############################################################################### 477 | # Virtual Mode UICC and Wired Mode ongoing delay Wired Mode 478 | # For Technology routing to UICC Technology Mask = 4 479 | # For ISO-DEP Protocol routing to UICC set Mask = 2 480 | # For Select AID Routing to UICC set Mask = 1 481 | # It can also take values TECH|PROTO|SELECT_AID = 7 , 6 , 5 ,3 .To ignore delay 482 | # set mask = 0 483 | NXP_UICC_WIRED_PRT_MASK=0x00 484 | 485 | ################################################################################ 486 | # RF field true delay Wired Mode 487 | # delay wired mode = 1 488 | # allow wired mode = 0 489 | NXP_WIRED_MODE_RF_FIELD_ENABLE=0x00 490 | 491 | ############################################################################### 492 | # Config to allow adding aids 493 | # NFC on/off is required after this config 494 | # 1 = enabling adding aid to NFCC routing table. 495 | # 0 = disabling adding aid to NFCC routing table. 496 | NXP_ENABLE_ADD_AID=0x01 497 | 498 | ############################################################################### 499 | # JCOP-3.3 continuous process timeout in msec and value should be in Hexadecimal 500 | # JCOP CP TIMEOUT 501 | NXP_CP_TIMEOUT={00, 77} 502 | 503 | ############################################################################### 504 | # Enable/Disable checking default proto SE Id 505 | # Disable 0x00 506 | # Enable 0x01 507 | NXP_CHECK_DEFAULT_PROTO_SE_ID=0x01 508 | 509 | ############################################################################### 510 | # NXP_CN_TRANSIT_BLK_NUM_CHECK_ENABLE 511 | # Enable/Disable block number checks for china transit use case 512 | # Enable 0x01 513 | # Disable 0x00 514 | NXP_CN_TRANSIT_BLK_NUM_CHECK_ENABLE=0x01 515 | 516 | ############################################################################### 517 | # Wired mode resume timeout vaule in wired mode resume feature enable 518 | # DWP resume time out in ms( 4 bytes hex value and LSB first) 519 | # example 1000 = 0x03E8 520 | # exmaple 2000 = 0x07D0 521 | # example 500 = 0x01F4 522 | NXP_WIREDMODE_RESUME_TIMEOUT=0x02 523 | 524 | ############################################################################### 525 | # Power to eSE is controlled by DH or PMU depending on following configurations 526 | # define DH_PWR_CONTROL 1 527 | # define PMU_PWR_CONTROL 2 528 | NXP_ESE_POWER_DH_CONTROL=1 529 | 530 | ############################################################################### 531 | # Timeout value in milliseconds for wired mode resume after RF field event timeout 532 | NXP_NFCC_RF_FIELD_EVENT_TIMEOUT=3000 533 | 534 | ############################################################################### 535 | # NXP PMU Support configuration is sent if PMU_PWR_CONTROL is configured 536 | # External PMU available in phone ON and phone OFF case if NXP_ESE_POWER_EXT_PMU=1 537 | # External PMU available only in phone ON case if NXP_ESE_POWER_EXT_PMU=2 538 | NXP_ESE_POWER_EXT_PMU=2 539 | 540 | ############################################################################### 541 | # Whether to allow wired mode in desfire and mifare CLT 542 | # Disable 0x00 543 | # Enable 0x01 544 | NXP_ALLOW_WIRED_IN_MIFARE_DESFIRE_CLT=0x00 545 | 546 | ############################################################################### 547 | # Vendor Specific Proprietary Protocol & Discovery Configuration 548 | # Set to 0xFF if unsupported 549 | # byte[0] NCI_PROTOCOL_18092_ACTIVE 550 | # byte[1] NCI_PROTOCOL_B_PRIME 551 | # byte[2] NCI_PROTOCOL_DUAL 552 | # byte[3] NCI_PROTOCOL_15693 553 | # byte[4] NCI_PROTOCOL_KOVIO 554 | # byte[5] NCI_PROTOCOL_MIFARE 555 | # byte[6] NCI_DISCOVERY_TYPE_POLL_KOVIO 556 | # byte[7] NCI_DISCOVERY_TYPE_POLL_B_PRIME 557 | # byte[8] NCI_DISCOVERY_TYPE_LISTEN_B_PRIME 558 | NFA_PROPRIETARY_CFG={05:FF:FF:06:81:80:70:FF:FF} 559 | 560 | ################################################################################# 561 | # Bail out mode 562 | # If set to 1, NFCC is using bail out mode for either Type A or Type B poll. 563 | NFA_POLL_BAIL_OUT_MODE=0x00 564 | 565 | ############################################################################### 566 | # Default Secure Element route id 567 | DEFAULT_OFFHOST_ROUTE=0x02 568 | 569 | ############################################################################## # 570 | # White list of Hosts 571 | # This values will be the Hosts(NFCEEs) in the HCI Network. 572 | DEVICE_HOST_WHITE_LIST={80:81:C0} 573 | 574 | ############################################################################### 575 | # Choose the presence-check algorithm for type-4 tag. If not defined, the default value is 1. 576 | # 0 NFA_RW_PRES_CHK_DEFAULT; Let stack selects an algorithm 577 | # 1 NFA_RW_PRES_CHK_I_BLOCK; ISO-DEP protocol's empty I-block 578 | # 2 NFA_RW_PRES_CHK_RESET; Deactivate to Sleep, then re-activate 579 | # 3 NFA_RW_PRES_CHK_RB_CH0; Type-4 tag protocol's ReadBinary command on channel 0 580 | # 4 NFA_RW_PRES_CHK_RB_CH3; Type-4 tag protocol's ReadBinary command on channel 3 581 | PRESENCE_CHECK_ALGORITHM=1 582 | 583 | ############################################################################### 584 | # Configure the NFC Extras to open and use a static pipe. If the value is 585 | # not set or set to 0, then the default is use a dynamic pipe based on a 586 | # destination gate (see NFA_HCI_DEFAULT_DEST_GATE). Note there is a value 587 | # for each UICC (where F3="UICC0" and F4="UICC1") 588 | OFF_HOST_ESE_PIPE_ID=0x19 589 | OFF_HOST_SIM_PIPE_ID=0x20 590 | 591 | ########################################################################### 592 | # Extended APDU length for ISO_DEP 593 | ISO_DEP_MAX_TRANSCEIVE=0xFEFF 594 | 595 | ############################################################################### 596 | # Restrict routing to first matched rule only. 597 | # Blacklist enable 0x01 598 | # Blacklist disable 0x00 599 | NXP_PROP_BLACKLIST_ROUTING=0x00 600 | 601 | ############################################################################### 602 | # Send DWP interface reset command as part of SE open 603 | # Disable 0x00 604 | # Enable 0x01 605 | NXP_DWP_INTF_RESET_ENABLE=0x01 606 | 607 | ############################################################################### 608 | # Timeout value in milliseconds for JCOP OS download to complete 609 | OS_DOWNLOAD_TIMEOUT_VALUE=60000 610 | 611 | ############################################################################### 612 | # Timeout value in milliseconds to send response for Felica command received 613 | NXP_HCEF_CMD_RSP_TIMEOUT_VALUE=5000 614 | -------------------------------------------------------------------------------- /overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 21 | true 22 | 100 23 | true 24 | 25 | 66 | 232 67 | 68 | 73 | 74 | 38-default-OLED:standard 75 | 01-warm:reading 76 | 02-cool:dynamic 77 | P3_CE:dci_p3 78 | srgb_d65:srgb 79 | 80 | 81 | 82 | true 83 | 84 | 86 | true 87 | 88 | -------------------------------------------------------------------------------- /overlay-lineage/lineage-sdk/packages/LineageSettingsProvider/res/values/defaults.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 23 | 2 24 | 25 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | 25 | true 26 | 27 | 32 | true 33 | 34 | 36 | true 37 | 38 | 43 | 2000 44 | 4000 45 | 46 | 56 | 57 | 1 58 | 2 59 | 3 60 | 4 61 | 8 62 | 12 63 | 20 64 | 33 65 | 55 66 | 90 67 | 148 68 | 245 69 | 403 70 | 665 71 | 1097 72 | 1808 73 | 2981 74 | 5000 75 | 76 | 77 | 90 | 91 | 10.45935 92 | 29.25559 93 | 34.240692 94 | 37.514347 95 | 40.018696 96 | 46.885098 97 | 51.626434 98 | 58.610405 99 | 66.890915 100 | 77.61644 101 | 90.221886 102 | 105.80314 103 | 126.073845 104 | 154.16931 105 | 191.83717 106 | 240.74442 107 | 294.84857 108 | 348.05453 109 | 399.81 110 | 111 | 112 | 116 | 117 | 1 118 | 2 119 | 3 120 | 4 121 | 5 122 | 6 123 | 7 124 | 8 125 | 9 126 | 10 127 | 11 128 | 12 129 | 13 130 | 14 131 | 15 132 | 16 133 | 17 134 | 18 135 | 19 136 | 20 137 | 21 138 | 22 139 | 23 140 | 24 141 | 25 142 | 26 143 | 27 144 | 28 145 | 29 146 | 30 147 | 31 148 | 32 149 | 33 150 | 34 151 | 35 152 | 36 153 | 37 154 | 38 155 | 39 156 | 40 157 | 41 158 | 42 159 | 43 160 | 44 161 | 45 162 | 46 163 | 47 164 | 48 165 | 49 166 | 50 167 | 51 168 | 52 169 | 53 170 | 54 171 | 55 172 | 56 173 | 57 174 | 58 175 | 59 176 | 60 177 | 61 178 | 62 179 | 63 180 | 64 181 | 65 182 | 66 183 | 67 184 | 68 185 | 69 186 | 70 187 | 71 188 | 72 189 | 73 190 | 74 191 | 75 192 | 76 193 | 77 194 | 78 195 | 79 196 | 80 197 | 81 198 | 82 199 | 83 200 | 84 201 | 85 202 | 86 203 | 87 204 | 88 205 | 89 206 | 90 207 | 91 208 | 92 209 | 93 210 | 94 211 | 95 212 | 96 213 | 97 214 | 98 215 | 99 216 | 100 217 | 101 218 | 102 219 | 103 220 | 104 221 | 105 222 | 106 223 | 107 224 | 108 225 | 109 226 | 110 227 | 111 228 | 112 229 | 113 230 | 114 231 | 115 232 | 116 233 | 117 234 | 118 235 | 119 236 | 120 237 | 121 238 | 122 239 | 123 240 | 124 241 | 125 242 | 126 243 | 127 244 | 128 245 | 129 246 | 130 247 | 131 248 | 132 249 | 133 250 | 134 251 | 135 252 | 136 253 | 137 254 | 138 255 | 139 256 | 140 257 | 141 258 | 142 259 | 143 260 | 144 261 | 145 262 | 146 263 | 147 264 | 148 265 | 149 266 | 150 267 | 151 268 | 152 269 | 153 270 | 154 271 | 155 272 | 156 273 | 157 274 | 158 275 | 159 276 | 160 277 | 161 278 | 162 279 | 163 280 | 164 281 | 165 282 | 166 283 | 167 284 | 168 285 | 169 286 | 170 287 | 171 288 | 172 289 | 173 290 | 174 291 | 175 292 | 176 293 | 177 294 | 178 295 | 179 296 | 180 297 | 181 298 | 182 299 | 183 300 | 184 301 | 185 302 | 186 303 | 187 304 | 188 305 | 189 306 | 190 307 | 191 308 | 192 309 | 193 310 | 194 311 | 195 312 | 196 313 | 197 314 | 198 315 | 199 316 | 200 317 | 201 318 | 202 319 | 203 320 | 204 321 | 205 322 | 206 323 | 207 324 | 208 325 | 209 326 | 210 327 | 211 328 | 212 329 | 213 330 | 214 331 | 215 332 | 216 333 | 217 334 | 218 335 | 219 336 | 220 337 | 221 338 | 222 339 | 223 340 | 224 341 | 225 342 | 226 343 | 227 344 | 228 345 | 229 346 | 230 347 | 231 348 | 232 349 | 233 350 | 234 351 | 235 352 | 236 353 | 237 354 | 238 355 | 239 356 | 240 357 | 241 358 | 242 359 | 243 360 | 244 361 | 245 362 | 246 363 | 247 364 | 248 365 | 249 366 | 250 367 | 251 368 | 252 369 | 253 370 | 254 371 | 255 372 | 373 | 374 | 381 | 382 | 2.74 383 | 3.09 384 | 3.54 385 | 4.05 386 | 4.66 387 | 5.26 388 | 5.87 389 | 6.66 390 | 7.63 391 | 8.55 392 | 9.59 393 | 10.48 394 | 11.7 395 | 13.11 396 | 14.5 397 | 15.93 398 | 17.23 399 | 18.35 400 | 19.97 401 | 21.87 402 | 23.28 403 | 24.72 404 | 26.51 405 | 28.29 406 | 30.08 407 | 31.87 408 | 33.65 409 | 35.44 410 | 37.23 411 | 39.01 412 | 40.8 413 | 42.59 414 | 44.35 415 | 45.92 416 | 47.49 417 | 49.06 418 | 50.63 419 | 52.2 420 | 53.77 421 | 55.34 422 | 56.91 423 | 58.48 424 | 60.05 425 | 61.62 426 | 63.19 427 | 64.76 428 | 66.33 429 | 67.9 430 | 69.47 431 | 71.04 432 | 72.57 433 | 74.1 434 | 75.62 435 | 77.15 436 | 78.68 437 | 80.2 438 | 81.73 439 | 83.26 440 | 84.78 441 | 86.31 442 | 87.84 443 | 89.36 444 | 90.89 445 | 92.41 446 | 93.94 447 | 95.47 448 | 96.99 449 | 98.76 450 | 100.55 451 | 102.33 452 | 104.12 453 | 105.9 454 | 107.69 455 | 109.47 456 | 111.26 457 | 113.05 458 | 114.83 459 | 116.62 460 | 118.4 461 | 120.19 462 | 121.97 463 | 123.76 464 | 125.54 465 | 127.33 466 | 129.23 467 | 131.23 468 | 133.22 469 | 135.22 470 | 137.22 471 | 139.21 472 | 141.21 473 | 143.2 474 | 145.2 475 | 147.2 476 | 149.19 477 | 151.19 478 | 153.18 479 | 155.18 480 | 157.17 481 | 159.17 482 | 161.17 483 | 163.22 484 | 165.33 485 | 167.44 486 | 169.56 487 | 171.67 488 | 173.78 489 | 175.9 490 | 178.01 491 | 180.12 492 | 182.24 493 | 184.35 494 | 186.46 495 | 188.57 496 | 190.69 497 | 192.8 498 | 194.91 499 | 197.03 500 | 198.81 501 | 200.09 502 | 201.37 503 | 202.65 504 | 203.94 505 | 205.22 506 | 206.5 507 | 207.78 508 | 209.06 509 | 210.34 510 | 211.63 511 | 212.91 512 | 214.19 513 | 215.47 514 | 216.75 515 | 218.04 516 | 219.32 517 | 220.62 518 | 221.98 519 | 223.34 520 | 224.7 521 | 226.06 522 | 227.42 523 | 228.78 524 | 230.13 525 | 231.49 526 | 232.85 527 | 234.21 528 | 235.57 529 | 236.93 530 | 238.29 531 | 239.64 532 | 241.0 533 | 242.36 534 | 243.72 535 | 245.25 536 | 246.79 537 | 248.33 538 | 249.87 539 | 251.41 540 | 252.95 541 | 254.49 542 | 256.03 543 | 257.56 544 | 259.1 545 | 260.64 546 | 262.18 547 | 263.72 548 | 265.26 549 | 266.8 550 | 268.34 551 | 269.88 552 | 271.46 553 | 273.06 554 | 274.65 555 | 276.24 556 | 277.83 557 | 279.42 558 | 281.02 559 | 282.61 560 | 284.2 561 | 285.79 562 | 287.38 563 | 288.98 564 | 290.57 565 | 292.16 566 | 293.75 567 | 295.34 568 | 296.94 569 | 298.45 570 | 299.94 571 | 301.44 572 | 302.93 573 | 304.42 574 | 305.91 575 | 307.41 576 | 308.9 577 | 310.39 578 | 311.88 579 | 313.38 580 | 314.87 581 | 316.36 582 | 317.85 583 | 319.35 584 | 320.84 585 | 322.33 586 | 323.9 587 | 325.5 588 | 327.1 589 | 328.7 590 | 330.3 591 | 331.9 592 | 333.5 593 | 335.1 594 | 336.7 595 | 338.3 596 | 339.9 597 | 341.5 598 | 343.1 599 | 344.7 600 | 346.3 601 | 347.91 602 | 349.51 603 | 351.09 604 | 352.65 605 | 354.21 606 | 355.76 607 | 357.32 608 | 358.88 609 | 360.43 610 | 361.99 611 | 363.55 612 | 365.1 613 | 366.66 614 | 368.22 615 | 369.78 616 | 371.33 617 | 372.89 618 | 374.45 619 | 376.0 620 | 377.52 621 | 378.91 622 | 380.31 623 | 381.7 624 | 383.09 625 | 384.49 626 | 385.88 627 | 387.27 628 | 388.67 629 | 390.06 630 | 391.45 631 | 392.84 632 | 394.24 633 | 395.63 634 | 397.02 635 | 398.42 636 | 399.81 637 | 638 | 639 | 642 | 1 643 | 644 | 647 | 7 648 | 649 | 651 | 98 652 | 653 | 655 | 1 656 | 657 | 669 | 670 | M295,0 671 | 295.818519,24.176374 672 | C285.295731,69.8076784 267.243762,88 236.156733,88 673 | L0,88 674 | L-236.156733,88 675 | C-267.243762,88 -285.295731,69.8076784 -295.818519,24.176374 676 | L-295,0 677 | Z 678 | 679 | 680 | 681 | 88.0px 682 | 24.0dp 683 | 684 | 687 | true 688 | 689 | 691 | false 692 | 693 | 694 | true 695 | 696 | 697 | 698 | 0 699 | 1 700 | 3 701 | 702 | 703 | 704 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/xml/power_profile.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 0 4 | 70 5 | 320 6 | 11.14 7 | 1.56 8 | 0.81 9 | 182.79 10 | 20.37 11 | 16.4 12 | 22.63 13 | 160 14 | 586 15 | 65.47 16 | 230 17 | 46.78 18 | 19 | 6.57 20 | 6.57 21 | 22 | 0 23 | 0 24 | 0 25 | 0 26 | 27 | 4 28 | 4 29 | 30 | 31 | 300000 32 | 403200 33 | 480000 34 | 576000 35 | 652800 36 | 748800 37 | 825600 38 | 902400 39 | 979200 40 | 1056000 41 | 1132800 42 | 1228800 43 | 1324800 44 | 1420800 45 | 1516800 46 | 1612800 47 | 1689600 48 | 1766400 49 | 50 | 51 | 43.59 52 | 45.08 53 | 46.3 54 | 47.18 55 | 47.45 56 | 49.1 57 | 50.08 58 | 52.19 59 | 53.39 60 | 53.7 61 | 57.24 62 | 59.74 63 | 62.74 64 | 65.57 65 | 69.21 66 | 73.43 67 | 77.77 68 | 81.46 69 | 70 | 71 | 300000 72 | 403200 73 | 480000 74 | 576000 75 | 652800 76 | 748800 77 | 825600 78 | 902400 79 | 979200 80 | 1056000 81 | 1132800 82 | 1209600 83 | 1286400 84 | 1363200 85 | 1459200 86 | 1536000 87 | 1612800 88 | 1689600 89 | 1766400 90 | 1843200 91 | 1920000 92 | 1996800 93 | 2092800 94 | 2169600 95 | 2246400 96 | 2323200 97 | 2400000 98 | 2476800 99 | 2553600 100 | 2649600 101 | 102 | 103 | 55.64 104 | 59.85 105 | 62.9 106 | 67.56 107 | 70.91 108 | 75.2 109 | 78.72 110 | 84.21 111 | 89.26 112 | 94.8 113 | 101.02 114 | 105.51 115 | 111.87 116 | 118.53 117 | 128.99 118 | 137.49 119 | 146.46 120 | 154.62 121 | 173.55 122 | 179.36 123 | 209.68 124 | 236.7 125 | 246.27 126 | 268.23 127 | 275.14 128 | 292.46 129 | 316.98 130 | 341.44 131 | 371.42 132 | 416.77 133 | 134 | 9.85 135 | 4.87 136 | 3400 137 | 0 138 | 0 139 | 0 140 | 141 | 0 142 | 143 | .0002 144 | .002 145 | .02 146 | .2 147 | 2 148 | 149 | 3300 150 | 151 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | Xiaomi Mi 8 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/overlays/NoCutoutOverlay/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 22 | false 23 | 24 | 26 | true 27 | 28 | 29 | 28dp 30 | 28dp 31 | 32 | 33 | -------------------------------------------------------------------------------- /overlay/packages/apps/CarrierConfig/res/xml/vendor.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /proprietary-files.txt: -------------------------------------------------------------------------------- 1 | # Device proprietary files - from dipper's MIUI package V12.5.2.0.QEACNXM CN stable version 2 | 3 | # Current blobs with ELF checks disabled: 4 | # libSNPE depends on libgcc intrinsics (unresolved __aeabi_f2lz and __aeabi_ul2f symbols) 5 | 6 | # ACDB data 7 | vendor/etc/acdbdata/adsp_avs_config.acdb 8 | vendor/etc/acdbdata/Forte/Forte_Bluetooth_cal.acdb 9 | vendor/etc/acdbdata/Forte/Forte_Codec_cal.acdb 10 | vendor/etc/acdbdata/Forte/Forte_General_cal.acdb 11 | vendor/etc/acdbdata/Forte/Forte_Global_cal.acdb 12 | vendor/etc/acdbdata/Forte/Forte_Handset_cal.acdb 13 | vendor/etc/acdbdata/Forte/Forte_Hdmi_cal.acdb 14 | vendor/etc/acdbdata/Forte/Forte_Headset_cal.acdb 15 | vendor/etc/acdbdata/Forte/Forte_Speaker_cal.acdb 16 | vendor/etc/acdbdata/Forte/Forte_workspaceFile.qwsp 17 | 18 | # ADSP modules 19 | vendor/lib/rfsa/adsp/dirac_resource.dar 20 | vendor/lib/rfsa/adsp/libarcsoft_dualcam_refocus_skel.so 21 | vendor/lib/rfsa/adsp/libSuperSensor_skel.so 22 | vendor/lib/rfsa/adsp/misound_res.bin 23 | 24 | # Audio (speaker amplifier) firmware 25 | vendor/firmware/tas2557_uCDSP_aac.bin 26 | vendor/firmware/tas2557_uCDSP_goer.bin 27 | 28 | # Audio (speaker amplifier) calibration 29 | vendor/etc/tas2557_aac.ftcfg 30 | vendor/etc/tas2557_goer.ftcfg 31 | 32 | # Audio 33 | vendor/lib/libacdbloader.so 34 | vendor/lib/libcsd-client.so 35 | 36 | # Bluetooth 37 | vendor/bin/hw/android.hardware.bluetooth@1.0-service-qti 38 | vendor/etc/init/android.hardware.bluetooth@1.0-service-qti.rc 39 | vendor/lib64/hw/android.hardware.bluetooth@1.0-impl-qti.so 40 | vendor/lib64/hw/vendor.qti.hardware.bluetooth_sar@1.0-impl.so 41 | vendor/lib64/hw/vendor.qti.hardware.btconfigstore@1.0-impl.so 42 | vendor/lib64/libbtnv.so 43 | vendor/lib64/vendor.qti.hardware.bluetooth_sar@1.0.so 44 | 45 | # Camera 46 | vendor/bin/remosaic_daemon 47 | vendor/etc/camera/age_gender_bg 48 | vendor/etc/camera/beauty_ui9_intelligent_params.config 49 | vendor/etc/camera/camxoverridesettings.txt 50 | vendor/etc/camera/crown_156_128.bin 51 | vendor/etc/camera/dualcamera.png 52 | vendor/etc/camera/eyelineblush.cng 53 | vendor/etc/camera/face_goodly_208_180 54 | vendor/etc/camera/face_ravishing_238_224 55 | vendor/etc/camera/face_splendid_274_200 56 | vendor/etc/camera/female_bg.png 57 | vendor/etc/camera/female_icon.png 58 | vendor/etc/camera/hdr_ui9_params.config 59 | vendor/etc/camera/lf_facerank_model.bin 60 | vendor/etc/camera/male_bg.png 61 | vendor/etc/camera/male_icon.png 62 | vendor/etc/camera/Miui-Light.ttf 63 | vendor/etc/camera/MIUI_Time.ttf 64 | vendor/etc/camera/people_gender.dat 65 | vendor/etc/camera/score_bg.png 66 | vendor/etc/camera/score_icon.png 67 | vendor/etc/camera/sdm_ys_32p_120_21_5_perturb50.bin 68 | vendor/etc/camera/watermark_font_2300_3199.dat 69 | vendor/lib64/libremosaic_daemon.so 70 | vendor/lib64/libremosaiclib.so 71 | vendor/lib/camera/com.qti.sensor.imx363.so 72 | vendor/lib/camera/com.qti.sensor.ov7251.so 73 | vendor/lib/camera/com.qti.sensor.s5k3m3.so 74 | vendor/lib/camera/com.qti.sensor.s5k3t1.so 75 | vendor/lib/camera/com.qti.sensormodule.imx333.bin 76 | vendor/lib/camera/com.qti.sensormodule.imx363.bin 77 | vendor/lib/camera/com.qti.sensormodule.liteon_imx333.bin 78 | vendor/lib/camera/com.qti.sensormodule.liteon_imx363.bin 79 | vendor/lib/camera/com.qti.sensormodule.liteon_s5k3m3sn03.bin 80 | vendor/lib/camera/com.qti.sensormodule.ov7251.bin 81 | vendor/lib/camera/com.qti.sensormodule.s5k3m3sn03.bin 82 | vendor/lib/camera/com.qti.sensormodule.s5k3t1.bin 83 | vendor/lib/camera/com.qti.sensormodule.s5k3t1_qtech.bin 84 | vendor/lib/camera/com.qti.tuned.default.bin 85 | vendor/lib/camera/com.qti.tuned.liteon_imx363.bin 86 | vendor/lib/camera/com.qti.tuned.liteon_s5k3m3.bin 87 | vendor/lib/camera/com.qti.tuned.qtech_s5k3t1.bin 88 | vendor/lib/camera/com.qti.tuned.semco_imx363.bin 89 | vendor/lib/camera/com.qti.tuned.semco_s5k3m3.bin 90 | vendor/lib/camera/com.qti.tuned.sunny_ov7251.bin 91 | vendor/lib/camera/com.qti.tuned.sunny_s5k3t1.bin 92 | vendor/lib/camera/components/com.arcsoft.node.capturebokeh.so 93 | vendor/lib/camera/components/com.arcsoft.node.capturefusion.so 94 | vendor/lib/camera/components/com.arcsoft.node.hdr.so 95 | vendor/lib/camera/components/com.arcsoft.node.hdrchecker.so 96 | vendor/lib/camera/components/com.arcsoft.node.realtimebokeh.so 97 | vendor/lib/camera/components/com.arcsoft.node.skinbeautifier.so 98 | vendor/lib/camera/components/com.arcsoft.node.smoothtransition.so 99 | vendor/lib/camera/components/com.arcsoft.node.superlowlight.so 100 | vendor/lib/camera/components/com.mi.node.aiadd.so 101 | vendor/lib/camera/components/com.mi.node.aiasd.so 102 | vendor/lib/camera/components/com.qti.eisv2.so 103 | vendor/lib/camera/components/com.qti.eisv3.so 104 | vendor/lib/camera/components/com.qti.hvx.addconstant.so 105 | vendor/lib/camera/components/com.qti.hvx.binning.so 106 | vendor/lib/camera/components/com.qti.node.dummyrtb.so 107 | vendor/lib/camera/components/com.qti.node.dummysat.so 108 | vendor/lib/camera/components/com.qti.node.eisv2.so 109 | vendor/lib/camera/components/com.qti.node.eisv3.so 110 | vendor/lib/camera/components/com.qti.node.gpu.so 111 | vendor/lib/camera/components/com.qti.node.memcpy.so 112 | vendor/lib/camera/components/com.qti.node.photosolid.so 113 | vendor/lib/camera/components/com.qti.node.remosaic.so 114 | vendor/lib/camera/components/com.qti.node.sr.so 115 | vendor/lib/camera/components/com.qti.node.swregistration.so 116 | vendor/lib/camera/components/com.qti.node.watermark.so 117 | vendor/lib/camera/components/com.qti.node.xiaomigenderage.so 118 | vendor/lib/camera/components/com.qti.stats.aec.so 119 | vendor/lib/camera/components/com.qti.stats.aecwrapper.so 120 | vendor/lib/camera/components/com.qti.stats.af.so 121 | vendor/lib/camera/components/com.qti.stats.afd.so 122 | vendor/lib/camera/components/com.qti.stats.asd.so 123 | vendor/lib/camera/components/com.qti.stats.awb.so 124 | vendor/lib/camera/components/com.qti.stats.awbwrapper.so 125 | vendor/lib/camera/components/com.qti.stats.pdlib.so 126 | vendor/lib/camera/components/com.qti.stats.pdlibsony.so 127 | vendor/lib/camera/components/com.qti.stats.pdlibwrapper.so 128 | vendor/lib/camera/components/com.vidhance.node.eis.so 129 | vendor/lib/camera/components/com.xiaomi.node.mibokeh.so 130 | vendor/lib/camera/components/etc/GpuKernelRepo.pb 131 | vendor/lib/camera/components/etc/model_back.dlc 132 | vendor/lib/camera/components/etc/model_front.dlc 133 | vendor/lib/camera/components/etc/morpho_lowlight4.0.xml 134 | vendor/lib/camera/components/etc/morpho_lowlight4.0_adrc_high.xml 135 | vendor/lib/camera/components/etc/morpho_lowlight4.0_adrc_high_1.xml 136 | vendor/lib/camera/fdconfigpreview.bin 137 | vendor/lib/camera/fdconfigpreviewlite.bin 138 | vendor/lib/camera/fdconfigvideo.bin 139 | vendor/lib/camera/fdconfigvideolite.bin 140 | vendor/lib/hw/camera.qcom.so 141 | vendor/lib/hw/com.qti.chi.override.so 142 | vendor/lib/libarcsoft_beautyshot.so 143 | vendor/lib/libarcsoft_dualcam_image_optical_zoom.so 144 | vendor/lib/libarcsoft_dualcam_refocus.so 145 | vendor/lib/libarcsoft_dualcam_refocus_front.so 146 | vendor/lib/libarcsoft_dualcam_refocus_rear_t.so 147 | vendor/lib/libarcsoft_dualcam_refocus_rear_w.so 148 | vendor/lib/libarcsoft_dualcam_video_optical_zoom.so 149 | vendor/lib/libarcsoft_high_dynamic_range.so 150 | vendor/lib/libarcsoft_low_light_hdr.so 151 | vendor/lib/libarcsoft_portrait_lighting.so 152 | vendor/lib/libarcsoft_portrait_lighting_c.so 153 | vendor/lib/libarcsoft_supernight.so 154 | vendor/lib/libc++_shared.so 155 | vendor/lib/libcamera_dirty.so 156 | vendor/lib/libcamera_scene.so 157 | vendor/lib/libcamxfdalgov7.so 158 | vendor/lib/libcamxfdengine.so 159 | vendor/lib/libcamxstatscore.so 160 | vendor/lib/libcamxtintlessalgo.so 161 | vendor/lib/libcom.qti.chinodeutils.so 162 | vendor/lib/libFaceGrade.so 163 | vendor/lib/libft2vendor.so 164 | vendor/lib/libHalSuperSensorServer.so 165 | vendor/lib/libmibokeh_845.so 166 | vendor/lib/libmmcamera_faceproc.so 167 | vendor/lib/libmmcamera_faceproc2.so 168 | vendor/lib/libmpbase.so 169 | vendor/lib/libremosaic_daemon.so 170 | vendor/lib/libSNPE.so;DISABLE_CHECKELF 171 | vendor/lib/libSuperSensor.so 172 | vendor/lib/libSuperSensorCPU.so 173 | vendor/lib/libswregistrationalgo.so 174 | vendor/lib/libsymphony-cpu.so 175 | vendor/lib/libsymphonypower.so 176 | vendor/lib/libtonemapalgo.so 177 | vendor/lib/libvidhance.so 178 | vendor/lib/libXMFD_AgeGender.so 179 | vendor/lib/lib_denoiser3.so 180 | vendor/lib/mibokeh_845_opencl.bin 181 | 182 | # Camera firmware 183 | vendor/firmware/bu64748gwz.prog 184 | vendor/firmware/CAMERA_ICP.elf 185 | 186 | # Camera OIS firmware 187 | vendor/firmware/dipper_ois.coeff 188 | vendor/firmware/dipper_ois.prog 189 | vendor/firmware/dipper_ois_liteon.coeff 190 | vendor/firmware/dipper_ois_liteon.prog 191 | 192 | # Display configs 193 | vendor/etc/sdr_config.cfg 194 | vendor/etc/hdr_config.cfg 195 | 196 | # Fingerprint 197 | vendor/lib64/hw/fingerprint.fpc.so:vendor/lib64/hw/fingerprint.fpc.sdm845.so;FIX_SONAME 198 | vendor/lib64/hw/fingerprint.goodix.so:vendor/lib64/hw/fingerprint.goodix.sdm845.so;FIX_SONAME 199 | vendor/lib64/libgf_ca.so 200 | vendor/lib64/libgf_hal.so 201 | 202 | # GNSS 203 | vendor/bin/glgps 204 | vendor/bin/gps.cer 205 | vendor/bin/ignss_2_0 206 | vendor/bin/lhd 207 | vendor/etc/gps.conf 208 | vendor/etc/gpsconfig.xml 209 | vendor/etc/lhd.conf 210 | vendor/etc/SensorHub.patch 211 | vendor/lib64/android.hardware.gnss@2.0-impl-xiaomi.so 212 | vendor/lib64/hw/flp.brcm.so;FIX_SONAME 213 | vendor/lib64/hw/gps.brcm.so;FIX_SONAME 214 | vendor/lib64/libdiagjni.so 215 | vendor/lib64/libgps.utils.so 216 | 217 | # Keymaster 218 | vendor/bin/hw/android.hardware.keymaster@3.0-service-qti 219 | vendor/etc/init/android.hardware.keymaster@3.0-service-qti.rc 220 | vendor/lib64/hw/android.hardware.keymaster@3.0-impl-qti.so 221 | 222 | # NFC firmware 223 | vendor/firmware/libpn553_rec.so 224 | vendor/lib/libpn553_fw.so 225 | 226 | # QDCM calibration data 227 | vendor/etc/qdcm_calib_data_ss_notch_fhd_cmd_dsi_panel.xml 228 | 229 | # Secure element 230 | vendor/bin/hw/vendor.qti.secure_element@1.0-service 231 | vendor/etc/init/vendor.qti.secure_element@1.0-service.rc 232 | vendor/lib64/hw/android.hardware.secure_element@1.0-impl.so 233 | 234 | # Sensors 235 | vendor/lib64/sensors.ssc.so 236 | 237 | # Sensors configs 238 | vendor/etc/sensors/config/adux1050_0.json 239 | vendor/etc/sensors/config/ak991x_dri_0.json 240 | vendor/etc/sensors/config/bmp285_0.json 241 | vendor/etc/sensors/config/config_list.txt 242 | vendor/etc/sensors/config/icm206xx_0.json 243 | vendor/etc/sensors/config/sdm845_adux1050_0.json 244 | vendor/etc/sensors/config/sdm845_ak991x_0.json 245 | vendor/etc/sensors/config/sdm845_bmp285_0.json 246 | vendor/etc/sensors/config/sdm845_icm206xx_0.json 247 | vendor/etc/sensors/config/sdm845_power_0.json 248 | vendor/etc/sensors/config/sdm845_tmd2725.json 249 | vendor/etc/sensors/config/sns_amd.json 250 | vendor/etc/sensors/config/sns_aod.json 251 | vendor/etc/sensors/config/sns_basic_gestures.json 252 | vendor/etc/sensors/config/sns_bring_to_ear.json 253 | vendor/etc/sensors/config/sns_cm.json 254 | vendor/etc/sensors/config/sns_device_orient.json 255 | vendor/etc/sensors/config/sns_diag_filter.json 256 | vendor/etc/sensors/config/sns_distance_bound.json 257 | vendor/etc/sensors/config/sns_dpc.json 258 | vendor/etc/sensors/config/sns_facing.json 259 | vendor/etc/sensors/config/sns_fmv.json 260 | vendor/etc/sensors/config/sns_geomag_rv.json 261 | vendor/etc/sensors/config/sns_gyro_cal.json 262 | vendor/etc/sensors/config/sns_mag_cal.json 263 | vendor/etc/sensors/config/sns_multishake.json 264 | vendor/etc/sensors/config/sns_nonui.json 265 | vendor/etc/sensors/config/sns_pedometer.json 266 | vendor/etc/sensors/config/sns_rmd.json 267 | vendor/etc/sensors/config/sns_rotv.json 268 | vendor/etc/sensors/config/sns_smd.json 269 | vendor/etc/sensors/config/tmd2725.json 270 | vendor/etc/sensors/hals.conf 271 | vendor/etc/sensors/sns_reg_config 272 | 273 | # Snapdragon Computer Vision Engine 274 | vendor/lib/libscveFaceLandmarks.so 275 | vendor/lib/libscveFaceRecognition.so 276 | 277 | # Thermal configs 278 | vendor/etc/thermal-engine-sdm845-arvr.conf 279 | vendor/etc/thermal-engine-sdm845-camera.conf 280 | vendor/etc/thermal-engine-sdm845-class0.conf 281 | vendor/etc/thermal-engine-sdm845-extreme.conf 282 | vendor/etc/thermal-engine-sdm845-high.conf 283 | vendor/etc/thermal-engine-sdm845-map.conf 284 | vendor/etc/thermal-engine-sdm845-nolimits.conf 285 | vendor/etc/thermal-engine-sdm845-phone.conf 286 | vendor/etc/thermal-engine-sdm845-pubgmhd.conf 287 | vendor/etc/thermal-engine-sdm845-sgame.conf 288 | vendor/etc/thermal-engine-sdm845-tgame.conf 289 | vendor/etc/thermal-engine-sdm845.conf 290 | vendor/etc/thermal-engine.conf 291 | -------------------------------------------------------------------------------- /rro_overlays/WifiOverlay/Android.bp: -------------------------------------------------------------------------------- 1 | runtime_resource_overlay { 2 | name: "TargetWifiOverlay", 3 | theme: "TargetWifiOverlay", 4 | product_specific: true 5 | } 6 | -------------------------------------------------------------------------------- /rro_overlays/WifiOverlay/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 21 | 22 | 27 | 28 | -------------------------------------------------------------------------------- /rro_overlays/WifiOverlay/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | Xiaomi Mi 8 22 | 23 | -------------------------------------------------------------------------------- /setup-makefiles.py: -------------------------------------------------------------------------------- 1 | #!./extract-files.py --regenerate_makefiles 2 | -------------------------------------------------------------------------------- /system.prop: -------------------------------------------------------------------------------- 1 | # Camera 2 | persist.camera.sat.fallback.dist=45 3 | persist.camera.sat.fallback.dist.d=5 4 | persist.camera.sat.fallback.luxindex=405 5 | persist.camera.sat.fallback.lux.d=20 6 | 7 | # Display 8 | ro.surface_flinger.has_wide_color_display=true 9 | -------------------------------------------------------------------------------- /vendor.prop: -------------------------------------------------------------------------------- 1 | # Audio 2 | ro.vendor.audio.soundfx.type=mi 3 | 4 | # Bluetooth 5 | bluetooth.device.default_name=Xiaomi Mi 8 6 | 7 | # Display 8 | ro.surface_flinger.has_wide_color_display=true 9 | 10 | # Display postprocessing 11 | vendor.display.enable_default_color_mode=1 12 | 13 | # Fingerprint 14 | persist.vendor.fingerprint.type=rear 15 | 16 | # GNSS 17 | ro.hardware.flp=brcm 18 | ro.hardware.gps=brcm 19 | 20 | # USB 21 | vendor.usb.product_string=Xiaomi Mi 8 22 | --------------------------------------------------------------------------------