Commit Graph

218 Commits

Author SHA1 Message Date
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
AdarshGrewal
1b074efa78 sweet: define screen density 2021-07-12 16:58:47 +05:30
DennySPB
a0cc5fb715 sweet: power: Decrease launch boost to 3sec
* 5s is just too much long plus battery drainer

Signed-off-by: DennySPB <dennyspb@gmail.com>
Change-Id: I7e037c45cd2296a8bbd67d6bd63c212c0ef2a805
Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
2021-07-12 16:58:47 +05:30
Bruno Martins
121e9b01ce sweet: power: Remove Google-specific camera hints
Change-Id: I06a83be233490f0b23cebd83bb71172b7044727b
2021-07-12 16:58:47 +05:30
Arian
99d8f03186 sweet: power: Import powerhint configuration from Pixel 4A
powerhint.json is checked out to https://android.googlesource.com/device/google/sunfish/+/refs/tags/android-11.0.0_r38/powerhint.json.

Change-Id: Ib576cea82363865cefd5e5fa2e7c746c0b95c3a8
2021-07-12 16:58:47 +05:30
Arian
53d3c0a5b1 sweet: Add ultrasound sepolicy
Change-Id: I5b16c2f76f66375fbef3c0b1ccb91f2e857dfb9d
2021-07-12 16:33:37 +05:30
Arian
aaa3a6c87f sweet: init: Cleanup unused includes
Change-Id: Ib713665e84bdfb3e41e6d54618308b32cfba8f1b
2021-07-12 16:33:37 +05:30
Arian
a7a27ba917 sweet: init: Use variables for the region specific properties
Change-Id: I67df78d83007f872fd22c9b177e82234ef494523
2021-07-12 16:33:37 +05:30
Arian
2b862b0c6b sweet: init: Always set the ro.build props
* ro.build. properties are set at runtime if not set
  already (after libinit runs) in android 10 hence
  ro.build.fingerprint wasn't set since the prop did
  not contain a value while libinit ran.

Change-Id: I213c4c2c730c294c42a5d4db70359e7b49d7947e
2021-07-12 16:33:37 +05:30
LuK1337
ea8fecdd6f sweet: init: Override everything ^.^
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: I8b617e57ef5345cb55e697c29a63c036512ed0af
2021-07-12 16:33:37 +05:30
AbhiShek Aggarwal
4993f0ecbb sweet: Add custom init to set proper variants
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: I04f09a14cf41c89b3135c53e3089d5c3e703aae0
2021-07-12 16:33:37 +05:30
AdarshGrewal
14cb9ceb69 sweet: Import audio configs from MIUI V12.5.4.0.RKFMIXM 2021-07-12 16:33:36 +05:30
daniml3
57030969c3 sweet: pin acdbdata from sweetin MIUI V12.5.2
Signed-off-by: daniml3 <danimoral1001@gmail.com>
Change-Id: I6ad029ec06eb29dda8157338ece34b0e1a9080c8
2021-07-12 16:33:36 +05:30
AdarshGrewal
3e2c1b5b96 sweet: add Ultrasound blobs 2021-07-12 16:33:36 +05:30
daniml3
6fa6d44e65 sweet: import camera configurations for s5kgw3
* Fixes green tint on cameras on 64MP camera variant

Signed-off-by: daniml3 <danimoral1001@gmail.com>
Change-Id: I29d875bf33167dcfb577fd4b29e26fe6c3e98bba
2021-07-12 16:33:36 +05:30
AdarshGrewal
7dfa5d7c55 sweet: import camera blobs 2021-07-12 16:33:36 +05:30
AdarshGrewal
4f3964e27b sweet: import mi_thermald 2021-07-12 16:33:36 +05:30
AdarshGrewal
8f20052600 sweet: import Import blobs 2021-07-12 16:33:36 +05:30
AdarshGrewal
5faffe2783 sweet: import Graphics firmware 2021-07-12 16:33:36 +05:30
AdarshGrewal
5588f0f167 sweet: import wifi blobs 2021-07-12 16:33:36 +05:30