Commit Graph

94 Commits

Author SHA1 Message Date
Arian
5e19c3c612
davinci: telephony: Import privapp-permissions
Change-Id: I8425916a404407e3839a61a5b6d96b520c1bca22
2020-08-05 14:03:32 +02:00
Demon000
a399b58601
davinci: Patch qti-telephony-common.jar to work on AOSP
* The following diff has been applied:

Change-Id: I28625de48e122e73b0d1df8d2351cd158a2a58e4

--- a/smali/com/qualcomm/qti/internal/telephony/WifiManagerCompatible.smali
+++ b/smali/com/qualcomm/qti/internal/telephony/WifiManagerCompatible.smali
@@ -17,7 +17,7 @@
     .locals 1

     .line 13
-    sget-boolean v0, Lmiui/os/Build;->IS_GLOBAL_BUILD:Z
+    const v0, 1

     return v0
 .end method
@@ -27,13 +27,6 @@
     .param p0, "context"    # Landroid/content/Context;
     .param p1, "set"    # I

-    .line 9
-    invoke-static {p0}, Landroid/net/wifi/MiuiWifiManager;->getInstance(Landroid/content/Context;)Landroid/net/wifi/MiuiWifiManager;
-
-    move-result-object v0
-
-    invoke-virtual {v0, p1}, Landroid/net/wifi/MiuiWifiManager;->setSARLimit(I)V
-
     .line 10
     return-void
 .end method
2020-08-05 14:03:32 +02:00
Arian
66442a7c21
davinci: Add CNE configs for VoWifi
Change-Id: I1f48317abbe34a35ba8b07ca2a6cdb278782fa00
2020-08-05 14:03:32 +02:00
Arian
8d37458fea
davinci: telephony: Import blobs
Change-Id: Ic6a6efc9d76b9ad73009ba76e8cf3d737a908336
2020-08-05 14:03:32 +02:00
Arian
a96c124bbe
davinci: telephony: Build required packages
Change-Id: Ia2faf1a49729142796b711a291fe07eb84fb5adb
2020-08-05 14:03:32 +02:00
Arian
fc2ad20eab
davinci: power: Import sub system restart blob
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I66c534a37d80e6ebefc75f370e64ba924574e584
2020-08-05 14:03:32 +02:00
Arian
a069620a9d
davinci: power: Import poweroff alarm blobs
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I31ecaac525679a1c57ab68ab6f2576e19810bd96
2020-08-05 14:03:32 +02:00
Bruno Martins
a4c9f8201b
davinci: power: Scan input devices for eligible DT2W node
It is no longer a surprise for anyone to see Xiaomi shipping the same
device with different displays and different displays usually mean
different touchscreen drivers.

The current double tap handling in the power HAL only takes into
account one specific node, meant to be set in the device tree.
However, if the touchscreen was registered as a different input device
it would cause the feature to be broken. Address the issue by iterating
through the input devices in order to find one supported touchscreen
input to be used.

Co-authored-by: LuK1337 <priv.luk@gmail.com>
Change-Id: I2f7fb4a8b0c9cd1a16d6c2b93602d285a191f170
2020-08-05 14:03:32 +02:00
TheScarastic
a0e115027a
davinci: power: Support event-based dt2w node
Change-Id: I08c874f3ca50fad1db820ddd85ef0f5d7ccf0ed2
2020-08-05 14:03:32 +02:00
Arian
b2d6a22c11
davinci: power: Prepare HAL extension
Change-Id: Ia2fcbb47d61970521eb4b3da769f4f160580c61a
2020-08-05 14:03:32 +02:00
Arian
d884716edc
davinci: power: Build HAL
Change-Id: I650e36366cf6e8b368699f63fe82702e89394cf6
2020-08-05 14:03:32 +02:00
vasishath
4979e2c172
davinci: light: Detect maximum brightness dynamically
Change-Id: I9385be40a8598e1142bb3844446b6bbeb5aab008
2020-08-05 14:03:32 +02:00
Demon000
b7413b8791
davinci: light: Simplify alpha scaling logic
Change-Id: I9b5c15d5ec4865d3bf829457d6f110ddb3af6e94
2020-08-05 14:03:32 +02:00
Demon000
25523a776d
davinci: light: Do not turn on breathing for unlit hardware states
Change-Id: I093fb2fb81012a473eda232d3c3407d0e0791907
2020-08-05 14:03:32 +02:00
Demon000
13a3863832
davinci: light: Avoid resetting state
The handler function is called regardless of whether the value of the
highest priority state changed.
In case of the notification led, this translates to the breathing
process being reset, which triggers my OCD.

Change-Id: I4880b00602cbb739219871f1d7ce9ad85d87bc1b
2020-08-05 14:03:32 +02:00
Demon000
feedda1d84
davinci: light: Avoid uint32_t underflow
Change-Id: If4f9360cc301ee8ba9f432dbbe3379c2c634c574
2020-08-05 14:03:32 +02:00
Demon000
e5440961f0
davinci: light: Properly scale brightness range
Change-Id: I0c7b9d2644bbc67a1d404e60bbb2fcc7d8a305ec
2020-08-05 14:03:32 +02:00
Arian
5af8701925
davinci: lights: Adjust for davincis LEDs
Change-Id: If9e5afe292b023a8aa4d5ba509e206f9a4ff371f
2020-08-05 14:03:32 +02:00
Demon000
3e94ffe9a3
davinci: light: Import HAL from Xiaomi msm8998-common
Change-Id: Ieee4277f15927b4522deaec9a709809cf6db6fea
2020-08-05 14:03:32 +02:00
TheScarastic
06d11196a5
davinci: Make fod color transparent and add custom icon
Change-Id: I0156a30f2d79b773878220ab016936c7208f8250
2020-08-05 14:03:32 +02:00
LuK1337
42d82f7684
davinci: fod: Implement handleAcquire()
Change-Id: Ica796fbd468e2df0ee666a0d0c6cbde628d6989f
2020-08-05 14:03:32 +02:00
Demon000
48c907ba7c
davinci: fod: Frop \n from logs
Change-Id: I1ec1e1bbdb1bf6d034bba05cd653458f04d5e544
2020-08-05 14:03:32 +02:00
xingrz
b5ddfbb07f
davinci: fod: Link vendor.goodix.hardware.biometrics.fingerprint@2.1
Change-Id: I222ceee06955fe6c530b63078bb1734ffecce913
2020-08-05 14:03:32 +02:00
Demon000
4bb20c1ea8
davinci: fod: Use 630nit fod value
Change-Id: Idfbe04e3d54635b610808494a7939beada5b3e4f
2020-08-05 14:03:32 +02:00
Demon000
e456f36fe1
davinci: fod: Improve semantics
* do not use (void) to silence unused parameters
 * do not specify namespace for IFingerprintInscreenCallback

Change-Id: Ife9d0799a091c539028f775a728d2c8c31ffbf98
2020-08-05 14:03:32 +02:00
Demon000
c89dcfb0df
davinci: fod: Remove onRelase calls duplication
Change-Id: I90f9b0a883cfed516998652cf95f4424c8e06b2b
2020-08-05 14:03:31 +02:00
Demon000
7cebc6e538
davinci: fod: Calculate dim amount based on real brightness
Change-Id: I72b7dd1fca426cc442f9a6fa382f413bbaadfc76
2020-08-05 14:03:31 +02:00
Arian
22363a500d
davinci: fod: Copy hardware permissions from frameworks/native
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I9e535684792d900f50e9f09d550a4762061e090b
2020-08-05 14:03:31 +02:00
Demon000
ac23ec6af9
davinci: fod: Implement in-screen fingerprint HAL
Change-Id: I8fd985bf4eab1747351f9e717cc33fa6d5ab1517
2020-08-05 14:03:31 +02:00
Arian
03c116e1c0
davinci: fod: Import blobs
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I2ebfe9454ff9bce6013e29eb74d8c6bd00225c7d
2020-08-05 14:03:31 +02:00
Arian
3df219168d
davinci: parts: Add icons for popup settings
Change-Id: I30dffa4f9e91d9b76a1d8daefd1da8449bac19bc
2020-08-05 14:03:31 +02:00
jhenrique09
b4dca743ea
davinci: parts: Try to take the motor back on boot when opened
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: I36ff53e23221b6704f0fa5e108329722cf71f504
2020-08-05 14:03:31 +02:00
jhenrique09
619c58031f
davinci: parts: Check if motor is busy before doing any operation
Change-Id: I83e383d5f6d3d8e723259bc55945aab48e5acd6c
2020-08-05 14:03:31 +02:00
jhenrique09
65c44dd66e
davinci: parts: Add popup camera sound effects and LED toggle
Change-Id: Iaf66650ae68d2680fa0c9b933f2c4e634bc21e74
2020-08-05 14:03:31 +02:00
TheScarastic
932a2bcad0
davinci: parts: Add support for camera popup light
Change-Id: I531123cc6db5e823490c0c5bcf31bafe068a49f5
2020-08-05 14:03:31 +02:00
TheScarastic
89e3be0eee
davinci: Initial popup camera impl
Change-Id: I9b34ec87715febedfe173e9f9ef5ccdbf7521f35
2020-08-05 14:03:31 +02:00
arian
5d15a19de5
davinci: parts: Add icons for doze
Change-Id: Ibbb18065f97ed6f8f5376752495255aeafe1db82
2020-08-05 14:03:31 +02:00
Arian
8b5675114b
davinci: parts: Import from xiaomi_sdm845-common
e261035d91/parts

Change-Id: I442f48780ca020f3e420ee4ccaf8ac07b05457cb
2020-08-05 14:03:31 +02:00
Arian
494d2c91bd
davinci: bluetooth: Add builcfg
Change-Id: I0caa5eb0e08243eb618669678983b65d9e90651f
2020-08-05 14:03:31 +02:00
Arian
94de6ed2e1
davinci: bluetooth: Copy hardware permissions from frameworks/native
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: Ie09c75a63aca03aa61f3606f761a8b10ccdf7505
2020-08-05 14:03:31 +02:00
Arian
3e3ea29100
davinci: bluetooth: Import blobs
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I3b1ca243276045897335b1b26142f27c0f448d06
2020-08-05 14:03:31 +02:00
Arian
ddd2142bf1
davinci: camera: Build Snap
Change-Id: I3b1ca243276045897335b1b26142f27c0f448d06
2020-08-05 14:03:31 +02:00
Arian
310f9d78e5
davinci: camera: Copy hardware permissions from frameworks/native
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: Ief92b2adfec0e365c0a73181cbf4b40c95b36070
2020-08-05 14:03:31 +02:00
Arian
9daef7d18e
davinci: camera: Build libdng_sdk.vendor
Change-Id: I84bd86e25f8be413dbab30da31a6858b109ea147
2020-08-05 14:03:31 +02:00
Arian
c17ce45eaf
davinci: camera: Build camera provider
Change-Id: Ief92b2adfec0e365c0a73181cbf4b40c95b36070
2020-08-05 14:03:29 +02:00
Arian
53f881c9d5
davinci: camera: Import motor blobs
Change-Id: I7b76763a38c2f5777201ed1048307ee63f87b2b2
2020-08-05 14:02:38 +02:00
Arian
e3862f3904
davinci: camera: Import blobs
Change-Id: I6add4b3d7e25d781768b8aa623796ecd7c8f3ef7
2020-08-05 14:02:12 +02:00
Pig
5cdff50fbd
davinci: Include hardware/xiaomi soong namespace
Change-Id: I6a53bc85d9a9c3eb2a7174d868e2bf5f589e478e
2020-06-23 21:54:04 +02:00
Glen Kuhne
888ec201cf
davinci: overlay: Set default hotspot ssid
Added a device specific overlay that changes the default name
from "AndroidAp" to "Xiaomi Mi 9T"

Test: Builds, manually verified name change
Bug: 36368950
Change-Id: I38a5f6fb950d6a45342080bae186a8ed276d94bf
2020-06-23 21:53:27 +02:00
Bruno Martins
578710badc
davinci: overlay: Declare STATE_DOZE support
* This is required for Ambient Display to work properly.

Change-Id: Ibad86be4e1c43a221fc2224d0a8f8ca2c938a6c7
2020-06-23 21:34:11 +02:00