Commit Graph

174 Commits

Author SHA1 Message Date
Arian
ffa14b3f46
sweet: Commonize cnss-daemon
Change-Id: I13a5a97cea7da2a7b798c212c127c476740cf234
2023-05-19 01:23:30 +05:30
AdarshGrewal
3c26bea583
sweet: Add headphone button jack keylayout
Change-Id: I5a0af62b6cee9d36b282894117d0ba56d8ae063c
2023-05-19 01:23:29 +05:30
basamaryan
5834ea1df6
sweet: configs: Import 0b qdcm display calibration from MIUI V13.0.10.0.SKFEUXM
* Fix NumModes in qdcm profiles
* Remove video modes
* Default to smart_MC

Change-Id: Id6a3691418604f1ef0af714613ab5581f358c129
2023-05-19 01:23:29 +05:30
basamaryan
2ecdc7959a
sweet: Update the s5kgw3 camera libraries from MIUI V13.0.5.0.SKFINXM
Change-Id: I60b98d166484480498245a13e2541cbdb119b3c2
2023-05-19 01:23:29 +05:30
basamaryan
9e2378fa52
sweet: Import adsp_avs_config.acdb from MIUI V12.5.2.0.RKFINXM
Change-Id: Ie56a7d7d22d75520c833fa44b4a5541b70cc7970
2023-05-19 01:23:29 +05:30
Marc Bourgoin
dad8998ad0
sweet: Drop QCOM WFD
Change-Id: I3dd591444dc54ebe3a32e0385cbfc3db6bfc5e1f
2023-05-19 01:23:29 +05:30
Arian
79e594ed7b
sweet: Drop manifest-qva
Change-Id: Ide6538ce3ffcca4bab6f566b8a1442ef6395aba0
2023-05-19 01:23:29 +05:30
Pavan Kumar M
2199bd627a
sweet: hidl: Update uceservice HAL to 2.3
Change-Id: I780fef79b6b370d2058a45a08230de19cce4a0af
2023-05-19 01:23:29 +05:30
Manoj Basapathi
9c034b0283
sweet: hidl: Update factory version to v2.2
Change-Id: I67c80b81f46c692b0107d86615f2ca97c58d25fa
2023-05-19 01:23:29 +05:30
Arian
6723ffb65c
sweet: init: Update fingerprints
Change-Id: If899697e949587e0e70512d06b703bb7cb7a207f
2023-05-19 01:23:29 +05:30
Arian
52dac23cb8
sweet: init: Override vendor_dlkm props too and drop bootimage
Change-Id: Ie6d455af354c059983b58cf6bef5faa320a5b00e
2023-05-19 01:23:29 +05:30
Arian
c40b5c76fa
sweet: Declare source of proprietary files
Change-Id: Iff4fcce2cbd8feb16e49c165b41cdf54bcf081c2
2023-05-19 01:23:29 +05:30
Arian
a92e961969
sweet: Set vendor security patch level according to MIUI V13.0.8.0.SKFMIXM
Change-Id: I6aa15252029927e1879ab11e36022a471e130482
2023-05-19 01:23:29 +05:30
Bruno Martins
3aaf3c4a1a
sweet: Move to common fingerprint HIDL
Change-Id: I7cb0a45c865d9dbfd800b1d633f8d5ae613bb1b9
2023-05-19 01:23:29 +05:30
Arian
1fd2f67017
Revert "sweet: Set SOC manufacturer and chipset properties"
This reverts commit ef33e3dca0.
2023-05-19 01:23:29 +05:30
Arian
c48c4882dc
Revert "sweet: Correct the chipset model name"
This reverts commit d615cfd5f4.
2023-05-19 01:23:29 +05:30
LuK1337
02f6563c8a
sweet: Sort blobs list /w sort-blobs-list.py
Change-Id: I197c6353dc50baf4ee76ed6ebf083dc00879bd96
2023-05-19 01:23:29 +05:30
basamaryan
7c0e2fa55a
sweet: Import missing camera sensors
* Without these, the images taken from the main and ultrawide lens
  will have a blue/green tint

Change-Id: I95d15ada42315f3d3a01bbeb274b7d35a5c6e652
2023-05-19 01:23:29 +05:30
AdarshGrewal
55c25c6840
sweet: init: Add support for JAPAN region
Change-Id: I84d07e2de321839d9d9adfe42d351658ddb6f409
2023-05-19 01:23:29 +05:30
Zafer Yusuf Vardar
ec6950d6f7
sweet: Address elliptic denials
Change-Id: I0a43f0667505ba42f2cfa73e63fb34779787e1af
2023-05-19 01:23:29 +05:30
shawnlin
ebe70fba27
sweet: overlay: Fixed status bar glitch for apps that access internal resource dimen
Bring back old usage of status_bar_height, status_bar_height_portrait,
and status_bar_height_landscape by set the size containing cutout size.

Bug: 216782082
Test: make
Change-Id: I0bf97352bc07e45d7694f9512266f08e7139c103
2022-06-25 17:59:48 +05:30
Georg Veichtlbauer
423d055677
sweet: overlay: Update deprecated screen power items
* screen.on -> screen.on.display0
* screen.full -> screen.full.display0

AOSP frameworks/base: 8ac63071a4e6da7e0740f5eb6c6753218efcfd3a

Change-Id: Iad50e6cb63368e2d71e6fa1dbb6997c0f95d321e
2022-05-01 00:16:11 -04:00
AdarshGrewal
8b7207c5a2
sweet: overlay: Increase Statusbar height 2022-05-01 00:16:11 -04:00
LuK1337
22cb9b4e87
sweet: overlay: Configure side fingerprint sensor properties
Change-Id: I75ba312895d18eae8c89db4dbb24a6945bad9860
2022-05-01 00:16:11 -04:00
Bruno Martins
4299839e0e
sweet: overlay: Set physical power button and fps location
This sets config_is_powerbutton_fps, since the device has
fps embedded in the power button. It makes frameworks report that
fingerprint sensor is located on the side of the device, which
can be observed when enrolling a fingerprint for the first time.

Change-Id: Ifa079488db642c8a470e40cb585c08e9c85d7cf4
2022-05-01 00:16:11 -04:00
Erik Müller
2514e80506
sweet: overlay: Disable proximity sensor check before pulsing
* The device's ultrasound proximity sensor is not active
   during standby, thus it can't be used as a check before
   pulsing. This fixes Ambient Display.

Change-Id: I1fc416247ed13cbfba245f37a4aafeae74ddbff7
2022-05-01 00:16:11 -04:00
Arian
7cb1e9f6b8
sweet: overlay: Change default status bar height
AOSP has changed how the status bar height is determined
in commit [1]. Since then status_bar_height_portrait is
ignored in favor of getting the height dynamically based
on display cutouts. Devices are supposed to keep the
default value and let system handle the display cutout.
However, we do not have a display cutout but instead
change the status bar height to match our heavily rounded
corners, which was not taken into consideration in the
commit. Hence change the default status bar height
directly so that the status bar height matches the
rounded corners.

[1]: 16496cb5c1

Change-Id: I9470fbe9058de3b326e12dc092f94e20faab0a47
2022-05-01 00:16:10 -04:00
Arian
33c276f957
sweet: sepolicy: Address IR denials
Change-Id: I04dd5b7036614028c219534179c1dfa01010dbe9
2022-05-01 00:16:10 -04:00
Arian
7eea3ff318
sweet: Add consumerir support
Change-Id: Ic21699e059f92a7dbf883ef2359c5fcbdd40aeb7
2022-05-01 00:16:10 -04:00
Alessandro Astone
cd511d7e6d
sweet: overlay: Update power profile to match framework change
* Commit LineageOS/android_frameworks_base@3d422c3 renamed:
   cpu.idle -> cpu.suspend
   cpu.awake -> cpu.idle

Change-Id: Id6b289bf01b117d98a6c334fd36619505e0653ec
2022-05-01 00:16:10 -04:00
Arian
81d4696653
sweet: overlay: Remove dsp. prefix from audio and video power profiles
* AOSP power_profile.xml does not include this prefix
2022-05-01 00:16:10 -04:00
Arian
9603eedcb6
sweet: overlay: Import power_profile 2022-05-01 00:16:10 -04:00
Kuba Wojciechowski
01a3bae6f0
sweet: sepolicy: initial rules for batterysecret
* Fixes:
07-25 15:31:45.325     0     0 I init    : starting service 'batterysecret'...
07-25 15:31:45.336     0     0 F init    : cannot setexeccon('u:r:batterysecret:s0') for batterysecret: Invalid argument
07-25 15:31:45.345     0     0 I init    : Service 'batterysecret' (pid 6483) exited with status 6
07-25 15:31:45.345     0     0 I init    : Sending signal 9 to service 'batterysecret' (pid 6483) process group...

Signed-off-by: Kuba Wojciechowski <nullbytepl@gmail.com>
Change-Id: I4c547a0162275a1fb99b1038f8bdd5b1f8632095
2022-05-01 00:16:09 -04:00
Arian
451812196b
sweet: Import batterysecret from V12.5.9.0.RKFMIXM
Change-Id: I6e227a12a5c017eacb47e08294d79821b1a321ee
2022-05-01 00:16:09 -04:00
Adithya R
88235849e0
sweet: Declare stereo speakerphone support in audio HAL
* pulled from stock, without this switching to speaker mode
   in call causes audio to redirect 10x louder through earpiece

 * also without this speaker functionality from calls can break
2022-05-01 00:16:09 -04:00
Noonlord
dcbb2fd702
sweet: Import fluence props from stock 2022-05-01 00:16:09 -04:00
AdarshGrewal
0dbeba1284
sweet: overlay: allow lower Minimum Brightness 2022-05-01 00:16:08 -04:00
Alexey Kuzmin
492abfe3ce sweet: overlay: Change all three default haptic levels to high
Bug:131774557
Test: flash a new C2F2 device with format, open accessibility vibration
settings. The current vibration intensity levels should be High

Change-Id: I0dc6488a4aa10ba3d606ecaa29729d4f0ecb9a1d
(cherry picked from commit 5b34c1ea60d65fc899484b727c5ecf32e47979ff)
2022-04-13 11:38:43 -04:00
Arian
11a58013fe sweet: overlay: Import vibration patterns from AOSP
Change-Id: I87d7cfcc7463daa5e570cebe3018fac2937905ff
2022-04-13 11:38:43 -04:00
AdarshGrewal
644857a7a6 sweet: overlay: Enable front-facing camera protection
* Prevents halo ring/effect on front camera
2022-04-13 11:38:43 -04:00
AdarshGrewal
4331942be1 sweet: Drop CutoutRingService 2022-04-13 11:38:43 -04:00
Volodymyr Zhdanov
8362249e06 sweet: Reserve less system/product space for gapps builds
* we just want to have a bit to flash some basic stuffs and do some replacements

Change-Id: I1226cfebf7ea0f52fd64ba64221cff56685ba084
2022-04-13 11:38:43 -04:00
Volodymyr Zhdanov
20172899c1 sweet: Increase reserved space on product and system partitions
* low inodes shouldn't be possible issue anymore

Change-Id: I6b366fc873be5472ae2dbd2594cfe67e14c0f002
2022-04-13 11:38:43 -04:00
Cosmin Tanislav
19ac5b46f6 sweet: Reserve 100MB on each dynamic partition
Change-Id: I7960bc6a365946924fcae90a61035d13af9ac9c4
2022-04-13 11:38:43 -04:00
Sebastiano Barezzi
544fc0219c sweet: sepolicy: Address fingerprint HAL denials
Change-Id: I1ccdd30942db00aff8d8a348df69b1f3f34723d6
2022-04-13 11:38:43 -04:00
Noonlord
d544bf99b6 sweet: Add vendor.xiaomi.hardware.fingerprintextension to FCM 2022-04-13 11:38:43 -04:00
basamaryan
301cb77497 sweet: rootdir: add recovery to fstab 2022-04-13 11:38:43 -04:00
Tim Zimmermann
9ec0aef1fc sweet: Make all elf prebuilts packages 2022-04-13 11:38:43 -04:00
AdarshGrewal
9b93de2d49 sweet: overlay refresh rate strings
* to display 120 Hz instead of 90 Hz
2022-04-13 11:38:43 -04:00
Danny Lin
e6aac8d339 sweet: Enable refresh rate toggle in Settings
sweet supports switching between 60 and 120 Hz refresh rates, so let's
expose it in Settings -> Display -> Smooth Display for users to save
battery if necessary.

Test: visual confirmation after toggling several times
Change-Id: Ie698ec4d4e738afd2a9055dba2369233103a4f13
2022-04-13 11:38:43 -04:00