Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

information about the device has been corrected #1

Open
wants to merge 110 commits into
base: lineage-21
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
1e36541
sweet: overlay: frameworks: cancel FP operation if not idle
AliHasan7671 Oct 20, 2022
184dae9
sweet: configs: audio: Fix mic volume
neobuddy89 Apr 9, 2022
0f50b31
sweet: parts: change package name to settingslib.widget from settings…
Pulkit077 Dec 16, 2022
d21203a
sweet: Drop component overrides
bgcngm Sep 21, 2022
cf89bdb
sweet: Remove bdroid_buildcfg.h
mikeNG Sep 29, 2022
26b2ba7
sweet: init.qcom.rc: Remove discard command tuning
Mar 16, 2022
a9c958a
sweet: Define AAPT configuration
UtsavBalar1231 Aug 21, 2022
b186fa9
Revert "sweet: dynamically patch libsdmcore.so"
Pulkit077 Dec 20, 2022
16ad340
sweet: shim stock libsdmcore.so
danielml3 Jul 20, 2022
df5d800
sweet: libsdmcore-shim: override the PopulateDisplayAttributes function
danielml3 Aug 8, 2022
5ce7f19
sweet: overlay: frameworks: Configure RefreshRate brightness thresholds
althafvly Nov 16, 2021
65d6f19
[CAF] sweet: properties: disable backpressure
Pulkit077 Dec 12, 2021
5e1ea4d
sweet: update blobs & fingerprint from sweetin V13.0.9.0.SKFINXM
Pulkit077 Jan 17, 2023
810f7ca
sweet: update blobs & fingerprint from sweet V13.0.15.0.SKFMIXM
Pulkit077 Jan 17, 2023
9fe5462
sweet: include MIUICamera if exists
AdarshGrewal Apr 3, 2022
0c427bb
sweet: parts: Remove proximity sensor gestures
ZIDAN44 Sep 24, 2021
82e2d47
sweet: properties: Fix camera interface on ViLTE calls
iamimmanuelraj Aug 12, 2021
b43ef9c
sweet: properties: Force usage of HWC for setting brightness
adithya2306 Aug 12, 2022
c79d179
sweet: Update libarcsoft_super_night_raw compatible with camera package
neobuddy89 Oct 14, 2021
4547106
sweet: properties: Disable SF composition prediction model on 5.4 and…
SrinivasQuic Jul 21, 2022
6c19b8e
sweet: properties: Remove unused persist.bluetooth.a2dp_offload.cap p…
EdwinMoq Jan 7, 2023
a036d78
sweet: overlay: SystemUI: update status bar paddding
Pulkit077 Feb 18, 2023
1d319bc
sweet: disable BT Audio A2DP
Pulkit077 Feb 25, 2023
81191fe
sweet: properties: Disable continuous transaction tracing on all buil…
SamarV-121 Aug 18, 2022
d220fc4
sweet: update blobs & fingerprint from sweetin V13.0.10.0.SKFINXM
Pulkit077 Mar 3, 2023
819c5e3
sweet: revert audio blobs to sweetin V13.0.5.0.SKFINXM
Pulkit077 Mar 3, 2023
0bd0b3f
sweet: configs: msm_irqbalance: Do not balance msm_drm and kgsl-3d0 IRQs
xboxfanj Jul 6, 2020
93fcd46
Revert "sweet: configs: audio: Add hotword input for hotword mic conc…
Pulkit077 Mar 20, 2023
efb307b
sweet: configs: audio: update audio policy from sweetin V13.0.10.0.SK…
Pulkit077 Mar 21, 2023
c8de621
sweet: configs: audio: Remove FM Tuner from input devices
iovxw Mar 2, 2022
80b4096
sweet: configs: audio: Fix mic issues in apps like WhatsApp
markakash Dec 6, 2021
5414e0c
sweet: sepolicy: Dont audit vendor_diag_device denials
Jabiyeff Jun 4, 2022
852083c
sweet: sepolicy: Ignore more harmless denials
neobuddy89 Jul 23, 2022
288aab9
sweet: sepolicy: Ignore few more diag denials
Pulkit077 Mar 21, 2023
b03b5f0
sweet: Remove no longer needed aptX blobs
mikeNG Mar 14, 2023
2aba6c0
sweet: parts: drop DC Dimming
Pulkit077 Mar 24, 2023
fd7a104
Revert "sweet: sepolicy: label extcon files"
Pulkit077 Apr 15, 2023
fca2aca
sweet: properties: Disable Skia tracing by default
May 12, 2022
3a93e7e
sweet: properties: Force pre-5.10 devices to treat 170M as sRGB in SF
xboxfanj Nov 28, 2022
9980ab8
sweet: update blobs from LA.QSSI.13.0.r1-09700-qssi.0 & LA.UM.9.1.r1-…
Pulkit077 Apr 20, 2023
d092209
Revert "sweet: properties: Fix camera interface on ViLTE calls"
Pulkit077 Apr 21, 2023
4c9dc28
sweet: update GPS blobs from hanoip S2RIS32.32-20-7-7
Pulkit077 Mar 20, 2023
8512b6a
sweet: configs: update GPS configs from hanoip S2RIS32.32-20-7-7
Pulkit077 Mar 20, 2023
61efa7e
sweet: configs: gps: tune down debug log to error only
orges Jan 24, 2021
e0e920d
sweet: sepolicy: allow GNSS service to find sensorservice HAL
Pulkit077 Mar 25, 2023
61f94dc
sweet: update blobs & fingerprint from sweetin V14.0.1.0.TKFINXM
Pulkit077 Apr 16, 2023
1f1762e
sweet: update blobs & fingerprint from sweet V14.0.1.0.TKFMIXM
Pulkit077 Apr 16, 2023
b31f38c
sweet: configs: update from sweetin V14.0.1.0.TKFINXM
Pulkit077 Apr 16, 2023
650998f
sweet: properties: update from sweetin V14.0.1.0.TKFINXM
Pulkit077 Apr 16, 2023
6407fed
sweet: overlay: CarrierConfig: update from sweetin V14.0.1.0.TKFINXM
Pulkit077 Apr 21, 2023
8e5bfc7
sweet: sepolicy: label back disp_param
Pulkit077 Apr 16, 2023
7f7efb5
sweet: parts: Implement dc dimming
nullxception Mar 31, 2020
45c1b28
sweet: sepolicy: ignore IMS diag denial
Pulkit077 Apr 21, 2023
689f322
sweet: sepolicy: allow FP to use vendor binder IPC
Pulkit077 May 1, 2023
30b1ea6
sweet: parts: Add activity for handling QS tile long click action
nullxception Feb 15, 2022
a23aa98
sweet: parts: Redirect DiracTileService long-click to DiracActivity
nullxception Feb 15, 2022
7246cb5
sweet: parts: Redirect DCDimming Tile long click to DCDimming activity
Pulkit077 Jun 17, 2023
c2ef04e
sweet: parts: display: check for node before updating DCDimming Tile
Pulkit077 Jun 17, 2023
60d9121
sweet: Build Lineage Health HAL
mikeNG Mar 3, 2023
d9dddbf
sweet: manifest: lineage_device_framework_matrix: Add vendor.lineage.…
mikeNG Mar 3, 2023
46b1625
sweet: properties: set `saturated` as default color mode
Pulkit077 Jun 18, 2023
c0ff00b
sweet: sepolicy: Allow hal_graphics_composer_default to read bootanim…
basamaryan Jul 12, 2022
d5395ea
sweet: ueventd: Remove all permissions from /sys/devices/soc0/serial_…
mikeNG May 11, 2023
4439516
sweet: overlay: frameworks: Remove obsolete overlays
mikairyuu Aug 19, 2022
3f0c973
sweet: Update mi thermald patching method
nullxception Dec 24, 2021
d8d2539
sweet: switch to sweetin V12.5.10.0.RKFINXM thermal blobs
Pulkit077 Jun 21, 2023
f394871
Revert "sweet: Add headphone button jack keylayout"
basamaryan Jun 3, 2023
5de2365
sweet: overlay: Add Notch Bar Killer overlay
itz63c Mar 27, 2019
20f62c7
sweet: properties: Drop SF latch_unsignaled property
vware Apr 17, 2023
fcdc597
sweet: overlay: frameworks: leave displayId blank in sfps properties
Pulkit077 Jun 23, 2023
93a46a9
sweet: properties: remove `persist.vendor.audio.misound.disable`
Pulkit077 Jul 12, 2023
8221516
sweet: parts: drop dirac
Pulkit077 Jul 9, 2023
d365ff1
sweet: audio: Remove raw flag for audio pop
Demon000 Jul 17, 2020
ac6efc8
sweet: add support for Mi Dolby
Pulkit077 Jul 7, 2023
ada4a4d
Revert "sweet: properties: Enable compress voip audio feature"
Pulkit077 Jul 12, 2023
d47465d
sweet: configs: audio: Fix "Earpiece" audio output
phhusson Apr 23, 2018
4fae988
sweet: overlay: SystemUI: add overlays for ripple with face unlock
Pulkit077 Nov 10, 2022
f23cd84
sweet: add AOSP recovery support
ZIDAN44 Jun 17, 2023
e9f11b5
sweet: libinit: set `ro.product.mod_device` property
Pulkit077 Dec 18, 2022
eed5667
Revert "sweet: add support for Mi Dolby"
Pulkit077 Jul 14, 2023
b4b3598
sweet: support updatable APEX
jiyongp May 18, 2019
6630c78
sweet: vibrator: fix misleading indentation error
Pulkit077 Oct 5, 2023
da0c648
sweet: build vendor variant of `android.frameworks.sensorservice`
Pulkit077 Oct 8, 2023
c184964
sweet: Add prebuilt protobuf 3.9.1 to vendor partition.
tweenk Nov 11, 2022
fd27b9e
sweet: Build libprotobuf-cpp-lite-3.9.1-vendorcompat
luk1337 Oct 19, 2023
9995f84
sweet: update makefile to use the AIDL wifi service
xt0032rus Oct 28, 2022
f5f61ff
sweet: properties: Drop deprecated IWLAN property
mikeNG Nov 22, 2023
d0a00a1
sweet: BoardConfig: Migrate to restructured sepolicy_vndr
bgcngm Oct 24, 2023
b977443
sweet: Enable casefolding support on userdata
drosen-google Jul 16, 2021
f461e87
sweet: properties: Use FUSE passthrough by default
balsini Mar 8, 2021
f80681e
sweet: parts: Target current sdk
ArianK16a Nov 4, 2021
3b3522e
sweet: parts: Declare exported flags in manifest
ArianK16a Nov 4, 2021
db47f59
Revert "sweet: properties: Drop SF latch_unsignaled property"
Pulkit077 Nov 1, 2023
4759de4
sweet: audio: re-enable A2DP
Pulkit077 Oct 21, 2023
ae8e09d
sweet: configs: audio: add a2dp output
Pulkit077 Dec 20, 2023
19106b0
sweet: interfaces: update displayfeature & touchfeature
SebaUbuntu Dec 22, 2023
40c11e2
sweet: interfaces: touchfeature: Fix method ordering
adithya2306 Dec 6, 2023
4336e34
sweet: parts: thermal: adapt to updated touchfeature interface
Pulkit077 Dec 22, 2023
1b9e6f1
sweet: properties: Disable SF client composition cache for <5.4 targets
Jun 12, 2020
18a2e16
sweet: properties: Set debug.sf.auto_latch_unsignaled to 0 for 5.10 a…
Jan 27, 2023
f5d4bce
add support for sweet_k6a
Pulkit077 Dec 7, 2023
181ae49
sweet_k6a: update blobs from sweet_k6a V14.0.5.0.THGMIXM
Pulkit077 Dec 8, 2023
ed12f62
sweet_k6a: vibrator: add `awinic_haptic` support for sweet_k6a
Pulkit077 Dec 8, 2023
b231b3b
sweet_k6a: configs: import sweet_k6a audio changes
Pulkit077 Dec 8, 2023
c04537c
sweet_k6a: configs: import sweet_k6a media changes
Pulkit077 Dec 16, 2023
6333886
sweet_k6a: sepolicy: address fingerprint denials
Pulkit077 Dec 16, 2023
5d4c4dd
sweet_k6a: sepolicy: allow cnss to r&w WiFi / BT mac via property
Pulkit077 Dec 16, 2023
5d852ba
sweet_k6a: sepolicy: allow camera to access `gpu_available_frequencies`
Pulkit077 Dec 16, 2023
a7f03de
sweet_k6a: sepolicy: address some power supply & wakeup denials
Pulkit077 Dec 16, 2023
9190a71
information about the device has been corrected
Vilez0 Jan 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

LOCAL_PATH := $(call my-dir)

ifneq ($(filter sweet,$(TARGET_DEVICE)),)
ifneq ($(filter sweet_k6a,$(TARGET_DEVICE)),)

subdir_makefiles=$(call first-makefiles-under,$(LOCAL_PATH))
$(foreach mk,$(subdir_makefiles),$(info including $(mk) ...)$(eval include $(mk)))
Expand Down
2 changes: 1 addition & 1 deletion AndroidProducts.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
#

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/lineage_sweet.mk
$(LOCAL_DIR)/lineage_sweet_k6a.mk
23 changes: 14 additions & 9 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0
#

DEVICE_PATH := device/xiaomi/sweet
DEVICE_PATH := device/xiaomi/sweet_k6a

BUILD_BROKEN_DUP_RULES := true
BUILD_BROKEN_DUP_SYSPROP := true
Expand All @@ -27,14 +27,11 @@ TARGET_2ND_CPU_VARIANT := generic
TARGET_2ND_CPU_VARIANT_RUNTIME := cortex-a76

# Assert
TARGET_OTA_ASSERT_DEVICE := sweet,sweetin
TARGET_OTA_ASSERT_DEVICE := sweet,sweetin,sweet_k6a

# Audio
AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true

# Bluetooth
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth/include

# Bootloader
TARGET_NO_BOOTLOADER := true

Expand Down Expand Up @@ -74,9 +71,12 @@ BOARD_KERNEL_SEPARATED_DTBO := true

TARGET_KERNEL_CLANG_COMPILE := true
TARGET_KERNEL_CONFIG := vendor/sweet_user_defconfig
TARGET_KERNEL_SOURCE := kernel/xiaomi/sweet
TARGET_KERNEL_SOURCE := kernel/xiaomi/sweet_k6a
KERNEL_LD := LD=ld.lld

# Lineage Health
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS := false

# Manifest
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \
$(DEVICE_PATH)/manifests/device_framework_matrix.xml \
Expand Down Expand Up @@ -136,8 +136,10 @@ BOARD_USES_QCOM_HARDWARE := true
TARGET_BOARD_PLATFORM := sm6150

# Recovery
BOARD_INCLUDE_RECOVERY_DTBO := true
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom
TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888
TARGET_USES_AOSP_RECOVERY := true

# Releasetools
TARGET_RELEASETOOLS_EXTENSIONS := $(DEVICE_PATH)
Expand All @@ -150,10 +152,10 @@ BOARD_VENDOR_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/vendor
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/private
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/public
TARGET_SEPOLICY_DIR := msmsteppe
-include device/qcom/sepolicy_vndr-legacy-um/SEPolicy.mk
-include device/qcom/sepolicy_vndr/SEPolicy.mk

# Vendor security patch level
VENDOR_SECURITY_PATCH := 2022-07-01
VENDOR_SECURITY_PATCH := 2023-03-01

# Verified Boot
BOARD_AVB_ENABLE := true
Expand Down Expand Up @@ -186,4 +188,7 @@ WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY := true
WPA_SUPPLICANT_VERSION := VER_0_8_X

# inherit from the proprietary version
-include vendor/xiaomi/sweet/BoardConfigVendor.mk
-include vendor/xiaomi/sweet_k6a/BoardConfigVendor.mk

# Inherit from proprietary files for miuicamera
-include vendor/xiaomi/sweet_k6a-miuicamera/products/board.mk
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Copyright (C) 2021 - The LineageOS Project

Device tree for Xiaomi Redmi Note 10 Pro
Device tree for Xiaomi Redmi Note 12 Pro 4G
==============

The Xiaomi Redmi Note 10 Pro (codenamed "sweet / sweetin") are mid range smartphones from Xiaomi.
The Xiaomi Redmi Note 12 Pro 4G (codenamed "sweet_k6a) is mid range smartphones from Xiaomi.

## Device specifications

Expand All @@ -13,17 +13,17 @@ Basic | Spec Sheet
| Chipset | Qualcomm SM7150 Snapdragon 732G (8 nm) |
| GPU | Adreno 618 |
| Memory | 6/8 GB RAM |
| Shipped Android Version | 11 with MIUI 12 |
| Storage | 128 GB (UFS 2.2) |
| Battery | Non-removable Li-Po 5020 mAh |
| Shipped Android Version | 11 with MIUI 13 |
| Storage | 128/256 GB (UFS 2.2) |
| Battery | Non-removable Li-Po 5000 mAh |
| Display | 1080 x 2400 pixels, 6.67 inches (~395 ppi pixel density) |
| Rear camera 1 | 64 MP, f/1.9, LED flash, HDR, panorama, 4K@30fps |
| Rear camera 2 | 8 MP, f/2.2, 118˚ (ultrawide) |
| Rear camera 1 | 108 MP, f/1.9, LED flash, HDR, panorama, 4K@30fps |
| Rear camera 2 | 8 MP, f/2.2, 120˚ (ultrawide) |
| Rear camera 3 | 5 MP, f/2.4, (macro) |
| Rear camera 4 | 2 MP, f/2.4, (depth) |
| Front Camera | 16 MP, f/2.5, Panorama, 1080p@30fps |
| Sensors | Fingerprint (side-mounted), accelerometer, gyro, proximity, compass |
| Release Date | March 2021 |
| Front Camera | 16 MP, f/2.4, Panorama, 1080p@30fps |
| Sensors | Fingerprint (side-mounted), accelerometer, gyro, ultrasound proximity, compass |
| Release Date | April 2023 |

## Device picture
![Xiaomi Redmi Note 10 Pro](https://i.imgur.com/t3byGh9.png "Xiaomi Redmi Note 10 Pro")
![Xiaomi Redmi Note 12 Pro 4G](https://i01.appmifile.com/v1/MI_18455B3E4DA706226CF7535A58E875F0267/pms_1681210731.51053703.png "Xiaomi Redmi Note 12 Pro 4G")
44 changes: 0 additions & 44 deletions configs/audio/a2dp_audio_policy_configuration.xml

This file was deleted.

16 changes: 14 additions & 2 deletions configs/audio/audio_io_policy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ outputs {
}
direct_pcm_24 {
flags AUDIO_OUTPUT_FLAG_DIRECT
formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT|AUDIO_FORMAT_PCM_32_BIT
formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT|AUDIO_FORMAT_PCM_32_BIT
sampling_rates 44100|48000|88200|96000|176400|192000|352800|384000
bit_width 24
app_type 69940
Expand Down Expand Up @@ -90,7 +90,7 @@ outputs {
}
compress_offload_24 {
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
formats AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO
formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO
sampling_rates 44100|48000|88200|96000|176400|192000
bit_width 24
app_type 69940
Expand All @@ -104,6 +104,18 @@ inputs {
bit_width 16
app_type 69938
}
record_24bit {
formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_24_BIT
sampling_rates 44100|48000|88200|96000|176400|192000
bit_width 24
app_type 69948
}
record_32bit {
formats AUDIO_FORMAT_PCM_32_BIT|AUDIO_FORMAT_PCM_FLOAT
sampling_rates 44100|48000|88200|96000|176400|192000
bit_width 32
app_type 69949
}
record_compress_16 {
flags AUDIO_INPUT_FLAG_COMPRESS
formats AUDIO_FORMAT_PCM_16_BIT
Expand Down
Loading