Commit Graph

155 Commits

Author SHA1 Message Date
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
Steven Thomas
01ddd1a24b sweet: Add default frame rate setting
Add a new priority PRIORITY_DEVICE_PEAK_REFRESH_RATE, and a new config
setting config_defaultRefreshRate which maps to that priority. This
allows an OEM to easily specify a default frame rate different from the
peak frame rate.

Bug: 148978450
Bug: 154648391

Test: - Added new unit tests to verify DisplayModeDirector handles min,
        peak, and default refresh rate settings correctly.

- Modified a sweet to set config_defaultRefreshRate to 60Hz, confirmed
  we default to 60, but that an app calling setFrameRate(120) switches us
  to 120.

- Confirmed that the "smooth display" and "force 120Hz" options on Razer
  Phone work correctly.

- Confirmed Redfin works as it did before - still constrained to 60Hz.

Change-Id: Ibfc35abed2b67093b8114822d233bf1ca31eebb0
2022-04-13 11:38:43 -04:00
Adrian Salido
eba03e4f1b sweet: enable peak refresh rate (120hz)
Enables default setting to 120hz mode, this can be disabled through
Settings app

Bug: 130249886
Test: wipe user settings and check default peak refresh rate enabled
Change-Id: I205d793dea3f7b971972fa850b0255dcf18db923
2022-04-13 11:38:43 -04:00
daniml3
d934151ef3 sweet: override the SetRefreshRate HWC builtin display function
* This function causes the refresh rate to change randomly, and
  produces flickering on the display

* Override the original function by renaming the symbol so linker
  uses the symbol from the shim instead of the original library's
  symbol

Signed-off-by: daniml3 <daniel@danielml.dev>
Change-Id: I2fa6b3f834df79c32d22f5a057da2108cc9cacab
2022-04-13 11:38:43 -04:00
Adithya R
0f7f63e182 sweet: rootdir: Commonize zram fstab entry
* we now initialize a fixed-size 2gb zram from a separate
  fstab in common tree itself

Change-Id: Icc6800d379ca00cbc75fec2a79697ffd9ac01aec
2022-04-13 11:38:43 -04:00
Wilson Sung
d615cfd5f4 sweet: Correct the chipset model name
Bug: 194852824
Bug: 194493342
Change-Id: Ia6c35299e2122f7cb30d9d47754b031a1d1c21a9
2022-04-13 11:38:43 -04:00
Wilson Sung
ef33e3dca0 sweet: Set SOC manufacturer and chipset properties
Bug: 158284209
Bug: 180589452
Change-Id: I9be67a1a78ab1d3b4a0e717fb3381458eb4996da
2022-04-13 11:38:41 -04:00
AdarshGrewal
f68d58f9b5 sweet: fingerprint: Uprev to 2.3 HAL 2022-03-24 20:51:30 +05:30
Andrew Hexen
db8b7aa1f5 sweet: Move NFC permissions to ODM
* Ensures that NFC is enabled only on global variant.

Change-Id: I25444aae6644ca391d79282c1c5d588617483ee6
2022-03-24 20:51:30 +05:30
Erfan Abdi
e307f22c28 sweet: Disable NFC for indian devices
* Setup sweet sku when device is global.
* Move the nfc manifest entry to sweet hardware sku
  variant.

Change-Id: I76ac75cd80f85efa6dfa68753602d934a11000a3
Signed-off-by: Arian <arian.kulmer@web.de>
2022-03-24 20:51:30 +05:30
AdarshGrewal
762b245611 sweet: import nfc fw 2022-03-24 20:51:30 +05:30
Arian
21182afde7 sweet: Add NFC support
Change-Id: Ibdb149d6152e01382ed44302ca0ee28b56b5a53e
2022-03-24 20:51:30 +05:30
Chenyang Zhong
a4bdbb730c sweet: libqti-perfd-client: return a dummy value
Return a positive integer for perf lock acquire and release so
that Goodix/FPC fingerprint sensor blobs will not complain.

Goodix:
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_acquire: Failed to acquire perf lock, err: 0
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_release: Perf lock release error 0

FPC:
E fpc_tac : fpc_perf_lock_acquire: Incorrect params, Failed to acquire perf lock, err
E fpc_tac : fpc_perf_lock_release: Perf lock release error 0

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: I861672e9a738c2204755d802670f4b28b662f286
2022-03-24 20:51:30 +05:30
AdarshGrewal
84aefa3134 sweet: import fingerprint hw module 2022-03-24 20:51:30 +05:30
AdarshGrewal
b5108bd343 sweet: build common biometrics service 2022-03-24 20:50:00 +05:30
LuK1337
75169a0abc sweet: overlay: Enable min_refresh_rate setting
Change-Id: I2e16b99318003de819d84cab03f7baa33b9b6f2b
2022-03-24 20:50:00 +05:30
AdarshGrewal
fa357ee016 sweet: overlay: disable proximity sensor during doze 2022-03-24 20:50:00 +05:30
LuK1337
2ea1497b20 sweet: overlay-lineage: Add reboot to fastbootd
Change-Id: I733b4d29129f85b92222e292af46602310b9f29f
2022-03-24 20:50:00 +05:30
Alessandro Astone
b5f6d68042 sweet: Build fastbootd
Change-Id: I0b20600fe7203a7aec19cbea8f6849052585c6ab
2022-03-24 20:50:00 +05:30
AdarshGrewal
42bf168c8d sweet: overlay: Setup fingerprint position 2022-03-24 20:50:00 +05:30