Commit Graph

237 Commits

Author SHA1 Message Date
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
Luca Stefani
f238afe71e sweet: overlay-lineage: Specify device has a notch
Change-Id: Ib912728020f85c820b10d5102365dc37f9a54342
2022-03-24 20:50:00 +05:30
David Su
0db882ff27 sweet: Don't sign Wifi RROs with platform cert
Preinstalled overlays needn't be signed with the same cert
as the package it overlays, simply being preinstalled is
enough. Sign with the default cert instead for now, which
provides fewer special privileges.

Bug: 162195999
Test: verify values still overlaid correctly
Change-Id: I017491fd383551c5aadf8648edb900e0c12a27b8
2022-03-24 20:50:00 +05:30
AdarshGrewal
5eac8a1e4b sweet: add RROs for setting correct device name and hotspot ssid
Check device variant by using ro.boot.hwc and
ro.boot.proudct.hardware.sku, and set the correct model based on
value of ro.product.marketname on stock ROM
2022-03-24 20:50:00 +05:30
LuK1337
0b3b0b648a sweet: Set default Settings.Global.DEVICE_NAME according to MIUI
MIUI uses ro.product.marketname for default device name.

Change-Id: I310c1ffc581b72653783d1093d9e7ebde544bb16
2022-03-24 20:50:00 +05:30
Roshan Pius
9f7837ef6f sweet: Add SweetWifiOverlay
Bug: 148617260
Test: Device boots up and connects to wifi networks.
Change-Id: Iec27a6d947a232a42451ef095dc73d1a52327db5
2022-03-24 20:50:00 +05:30
daniml3
0fa352aec3 sweet: show a ring on the camera cutout when its in use
* For avoiding halo effect on low light conditions

* Achieve this by creating a custom ImageView that its shown when the
  camera is in use

Signed-off-by: daniml3 <danimoral1001@gmail.com>
Change-Id: Iedca0f0d4b304b020daf0ebec74e245581824c98
2022-03-24 20:50:00 +05:30
AdarshGrewal
a8346c1c79 sweet: overlay: setup device overlays 2022-03-24 20:50:00 +05:30
adarshgrewal
9799001523 sweet: qdcm: default to smart_MC 2022-03-24 20:50:00 +05:30
Arian
ed72209837 sweet: qdcm: Remove video modes
Signed-off-by: adarshgrewal <adarshgrewal@gmail.com>
2022-03-24 20:50:00 +05:30
adarshgrewal
1b99200a63 sweet: qdcm: fix NumModes in qdcm profiles
ummm there are actually only 20 modes but NumModes says 21
2022-03-24 20:50:00 +05:30
adarshgrewal
c7b9e112e1 sweet: import stock qdcm profile 2022-03-24 20:50:00 +05:30
Weikai Kong
7f20f7bf30 sweet: add back ro.vendor.extension_library definition
* We aren't using QCOM's perfd but our blobs still check for this.
 * To avoid unnecessary errors, let's just add it back.

Change-Id: Icc44b330f21a658cfa8ded691a6628d8f62c3649
2022-03-24 20:50:00 +05:30
Lucchetto
09782fa380 sweet: Create dummy libqti-perfd-client
* proprietary perfd blobs can finally be nuked without breaking goodix
* we could even map the functions to use libperfmgr powerhints in the future

Change-Id: I124652f3041761966a3e3bd97c757fecc39cc5fb
2022-03-24 20:50:00 +05:30
AdarshGrewal
7c5329f4d0 sweet: hidl: Include lineage FCM from vendor 2022-03-24 20:50:00 +05:30
AdarshGrewal
e4c38321a5 sweet: hidl: setup framework compatibility matrix 2022-03-24 20:50:00 +05:30
AdarshGrewal
850f212a3a sweet: Build vndservicemanager 2022-03-24 20:50:00 +05:30
AdarshGrewal
8a980a17aa sweet: allow building with dup rules 2021-09-16 17:50:06 +05:30
AdarshGrewal
bd8cc5cbe7 sweet: add asserts for sweet and sweetin 2021-09-16 17:50:01 +05:30