Commit Graph

46 Commits

Author SHA1 Message Date
danielml
601fddecdf
sweet: Get rid of libinit
* Use the `import` function of build.prop files to override the
  model-specific properties based on the ro.boot.hwc and product SKU
  values, both set by the bootloader

* Set a custom product property source order, so that the ODM
  and vendor properties have preference over the other sources

* Switch to vendor SKU for enabling NFC exclusively on variants that
  support it, as the product SKU is set by the bootloader

* Create a symlink from /vendor/etc/audio/sku_sweet to /vendor/etc, as
  the audio HAL takes the former as directory for audio configs
  if SKU is set to `sweet`

Change-Id: I312a059e0cbcbad6aa052bd32142b70dcf0a7adc
Signed-off-by: danielml <daniel@danielml.dev>
2024-03-28 13:03:10 -04:00
LuK1337
b4eec28a20
sweet: Redo libsdmcore shim
Instead of injecting custom dependency into libsdmcore.so, provide a
custom hwcomposer implementation that overrides the *unwanted* symbol
before loading the vendor implementation.

Change-Id: Icc6551f9260a0eb8a7f7a616588c65472a9366e9
2024-02-13 13:51:34 -05:00
danielml
d0c51f6735
sweet: Remove redundant libqti-perfd-client from PRODUCT_PACKAGES
* libqti-perfd-client is built by sm6150.mk

Change-Id: Icb913e03061b94f9ace1313a2e43e8a571784fd1
Signed-off-by: danielml <daniel@danielml.dev>
2024-02-13 13:51:33 -05:00
Georg Veichtlbauer
b142b5dd7f
sweet: Remove unneeded NFC packages
* NfcNci and SecureElement are built by handheld_system.mk

Change-Id: I83f686b67778634b584a58d8bae95d237e6dbad1
2023-07-08 00:05:12 +05:30
basamaryan
10425ed914
Revert "sweet: overlay refresh rate strings"
This reverts commit 9b93de2d49.

Change-Id: I8c12cae0b0ef72b08ffee1f47876e35784dd3a79
2023-07-08 00:05:10 +05:30
Alexander Koskovich
d7dada299e
sweet: Drop PRODUCT_BUILD_SUPER_PARTITION
* Super image is not generated by a default 'm' build,
   but we at least want it for dist builds.

Change-Id: Ia12a5314632509fcd309d51ddf757efdc37499c3
2023-06-19 22:19:53 +05:30
basamaryan
054bb18429
sweet: Commonize PRODUCT_USE_DYNAMIC_PARTITIONS
Change-Id: I4f55c0e321617f222cf2df5d2ae5585703d99848
2023-06-19 22:19:53 +05:30
Arian
cd5df20cdd
sweet: Commonize fstab
Change-Id: I99d91293aca9af3592ef41436d2334357b418226
2023-06-04 22:14:34 +05:30
basamaryan
47c1ebd7f1
sweet: Commonize fastbootd
Change-Id: I43d9521431b36b84776139d71c2dbf26c430c0fd
2023-06-04 22:14:29 +05:30
basamaryan
885a5d01ae Revert "sweet: Add headphone button jack keylayout"
This reverts commit 3c26bea583.

Reason for revert: Fixed in I8ecc1609d929ac5a8d4d73711b15b4a741d910a3
2023-06-04 12:23:23 +02:00
daniml3
7e5fc2e8b2
sweet: Use GetPreviewImageData shim for com.qti.node.watermark
Signed-off-by: daniml3 <daniel@danielml.dev>
Change-Id: I92e51fdf1dc7d877c7affafbf9803ba5d504be07
2023-05-19 01:23:30 +05:30
Bowgo Tsai
ace9bd248d
sweet: Removing gsi_keys.mk
It's no longer required to install the compliance GSI
public keys into the ramdisk. Those public keys just need
to be included in the VTS test suite for GSI verification.

Bug: 176869478
Test: TreeHugger
Change-Id: I26c4a1c7dba28a3c8cf88af64d8539fdc23a4f28
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
Bruno Martins
3aaf3c4a1a
sweet: Move to common fingerprint HIDL
Change-Id: I7cb0a45c865d9dbfd800b1d633f8d5ae613bb1b9
2023-05-19 01:23:29 +05:30
Arian
7eea3ff318
sweet: Add consumerir support
Change-Id: Ic21699e059f92a7dbf883ef2359c5fcbdd40aeb7
2022-05-01 00:16:10 -04:00
AdarshGrewal
4331942be1 sweet: Drop CutoutRingService 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
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
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
Arian
21182afde7 sweet: Add NFC support
Change-Id: Ibdb149d6152e01382ed44302ca0ee28b56b5a53e
2022-03-24 20:51:30 +05:30
AdarshGrewal
b5108bd343 sweet: build common biometrics service 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
Luca Stefani
f238afe71e sweet: overlay-lineage: Specify device has a notch
Change-Id: Ib912728020f85c820b10d5102365dc37f9a54342
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
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
c7b9e112e1 sweet: import stock qdcm profile 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
850f212a3a sweet: Build vndservicemanager 2022-03-24 20:50:00 +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
AdarshGrewal
14cb9ceb69 sweet: Import audio configs from MIUI V12.5.4.0.RKFMIXM 2021-07-12 16:33:36 +05:30
raghavt20
6122b67040 sweet: Build 1.0 sensors service
* It was decommonized because some devices require 2.0 sensors service

Change-Id: Ieb0d5dc846d3cd0ee35487a31779b7b182f1a4fc
2021-07-12 16:33:24 +05:30
Arian
5c82ac57ee sweet: Add prebuilt audio HAL
Change-Id: I889bf86fab97e704c33d0ce0c9f831a99ad33925
2021-07-12 16:28:16 +05:30
AbhiShek Aggarwal
4d23c197b2 sweet: overlay: Import brightness overlays from MIUI
Change-Id: Ib00b3817eece7bb8ff0acafb3d545e4324d7c26d
2021-07-12 16:28:16 +05:30
Arian
b0dadb8019 sweet: Configure partitions
Change-Id: I802acf41be02788cb14646fbcfc2e9bbdb1f99f9
2021-07-12 16:28:16 +05:30
AdarshGrewal
089bc8c331 sweet: Inherit from sm6150-common 2021-07-12 16:28:16 +05:30
AdarshGrewal
af5d80cb3e sweet: rootdir: Import fstab 2021-07-12 16:28:16 +05:30
Jiyong Park
7b570dca07 sweet: support updatable APEX
Before, updatable_apex.mk was inherited indirectly from
mainline_system.mk. Since mainline_system.mk no longer inherits
updatable_apex.mk, updatable_apex.mk is inherited directly from
device-specific mk file.

Bug: 132664085
Test: choosecombo to phoenix; get_build_var TARGET_FLATTEN_APEX
shows false

Change-Id: I7162567b732f284f618a77cf09f5b40aadd913d5
Merged-In: I7162567b732f284f618a77cf09f5b40aadd913d5
2021-07-12 16:28:16 +05:30
Bowgo Tsai
c62f427eee sweet: Adding GSI keys
Bug:112293933
Test: tree hugger
Change-Id: I112ece91566e6cea066cd637bfed5cae6761ae66
2021-07-12 16:28:16 +05:30
AdarshGrewal
57864dabce sweet: Declare shipping API level 2021-07-12 16:28:16 +05:30
AdarshGrewal
68c442c7ef sweet: inherit the proprietary vendor 2021-07-12 16:28:16 +05:30
Ethan Chen
31fc943209 sweet: Use Soong namespace to avoid device build conflicts
Change-Id: Id04f464102264b6f2e8d49b39389c7e346613b39
2021-07-12 16:28:16 +05:30
AdarshGrewal
799abfe47a sweet: Initial device tree 2021-07-10 16:41:06 +05:30