Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

stuartore/device_xiaomi_psyche

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copyright (C) 2021 LineageOS

Twoline Build

git clone https://github.com/stuartore/aosp-setup.git && cd aosp-setup

bash aosp.sh -k --auto_build

Device configuration for Xiaomi Mi 12X (psyche)

The Xiaomi Mi 12X (codenamed "psyche") is a flagship smartphone from Xiaomi.

It was released in December 2021.

Device specifications

Basic Spec Sheet
SoC Qualcomm SM8250-AC Snapdragon 870 5G (7 nm)
CPU Octa-core (1x3.2 GHz Kryo 585 & 3x2.42 GHz Kryo 585 & 4x1.80 GHz Kryo 585)
GPU Adreno 650
Memory 128GB 8GB RAM, 256GB 8GB RAM, 256GB 12GB RAM
Shipped Android Version Android 11, MIUI 13
Battery Li-Po 4500 mAh, non-removable
Display AMOLED, 68B colors, 120Hz, Dolby Vision, HDR10+, 1100 nits (peak)

Device picture

Xiaomi Mi 12X

Trouble when building ? If you find one or more modules loss, the most possible reason is that the ROM organization do not contain it. You could search it on it's related Github profile

  name: "qti_vibrator_hal"
Found in build/soong/Android.bp

soong_config_module_type {
    name: "qti_vibrator_hal",
    module_type: "cc_defaults",
    config_namespace: "lineageQcomVars",
    bool_variables: ["qti_vibrator_use_effect_stream"],
    value_variables: ["qti_vibrator_effect_lib"],
    properties: [
        "cppflags",
        "shared_libs",
    ],
}

qti_vibrator_hal { name: "qti_vibrator_hal_defaults", soong_config_variables: { qti_vibrator_use_effect_stream: { cppflags: ["-DUSE_EFFECT_STREAM"], }, qti_vibrator_effect_lib: { shared_libs: ["%s"], }, }, }

As you find it, copy and paste the hal as well as its defaults code paragraph in "{}" in the related file who occours error, in the most cases, Android.bp

Re-run lunch to see whether error fixed. Once it compelete, you could use aosp-setup to autobuild.

Other errors' solutions follow the same reguration. If it loses, then add it. On the opposite side, delete it or change it's name to avoid being duplicate.

Credit