Commit graph

879 commits

Author SHA1 Message Date
Albert Tang
af2cf817e7 dre: Remove building audio HAL 4.0
This was needed by sensors.ssc.so in OOS 11, but not in OOS 12.

Change-Id: I32f82433d74ccffb5cae78846117b1f59c8eaaac
2022-10-11 08:31:23 -05:00
Alexander Koskovich
a8fffbcca3 dre: Update WCNSS configuration from DE2117_11.C.15
* OnePlus reads MAC address from QMI DMS now.

 * Since that was the only custom change, move back
   to proprietary files.

This commit is a partial revert of 83d0538609.

Change-Id: I9e89def5258f9085e7169a1a6753cbdabd1d548c
2022-10-11 08:31:23 -05:00
Alexander Koskovich
273c9562ff dre: init: Use the same PID/VIDs from OOS
Change-Id: Ieaa52f748c75272b80fa6f3e7018cdb71e3a2f7f
2022-10-11 08:31:23 -05:00
Albert Tang
c6a5802e47 dre: init: Add st21nfc device entry
Change-Id: Ie55b061c1a5cc695e487690feea22245f18c418a
2022-10-11 08:31:23 -05:00
Alexander Koskovich
51ba5a3de2 dre: init: Add oplusreserve1 ueventd entry
Change-Id: I3aa6e23e38d9e525e0e1d823e0933ab81c8f81af
2022-10-11 08:31:23 -05:00
Alexander Koskovich
234c55f48c dre: init: Load WiFi firmware from ODM
Change-Id: Id18a7aea8d38a62bb871f588d3620583a0e4e562
2022-10-11 08:31:23 -05:00
Alexander Koskovich
6d5dddd02a dre: Add oplus_sensor_fb
Change-Id: I289d5e3270fe0b3e8b185b4bf22f1d9c59209f48
2022-10-11 08:31:23 -05:00
Alexander Koskovich
3deb110867 dre: init: Chown used display nodes
Change-Id: Iea4985c06e6094464b5b5dfa7a06294e895a9971
2022-10-11 08:31:23 -05:00
Alexander Koskovich
5ba23790d0 dre: init: Add vendor_dlkm fstab entry
Change-Id: Id265ea956fd8d9d3ea7b598f960b9eede07a921e
2022-10-11 08:31:23 -05:00
Jimmy Chen
b9667921a4 dre: Move WiFi supplicant service definition to dedicated RC
Change-Id: I7c448ecb511a738903ebe3702fefdf2cb13c3be3
2022-10-11 08:31:23 -05:00
Alexander Koskovich
34a40e275c dre: Pick up USB configurations from QCOM
* If we want to override anything in particular, e.g.
   PID/VIDs we will create a seperate script named
   'init.oplus.usb.rc'.

Change-Id: I83882d8992eb367211871130c163f4ca5689fcd4
2022-10-11 08:31:23 -05:00
Alexander Koskovich
5dc7536c35 dre: Add rest of QTI scripts to proprietary-files
* We won't be touching these.

Change-Id: Iec07925125b8fc27e807dea635ef2b17f5c7898b
2022-10-11 08:31:23 -05:00
Albert Tang
fd363c65df dre: Import QCOM scripts from LA.UM.9.16.r1-10900-MANNAR.QSSI12.0
Change-Id: I351b26ce78e4a40475eecdbee438e33cd52e5d08
2022-10-11 08:31:23 -05:00
Alexander Koskovich
8170122ba9 dre: Nuke rootdir from orbit
Change-Id: I163b5a68e2791ba379add991bf68cd171e722ba0
2022-10-11 08:31:23 -05:00
Albert Tang
b0d5291408 dre: Update blobs to Android 12 (DE2117_11.C.15)
Change-Id: Ie768fe44ebb2c09218a805de674e45f96ab7d12b
2022-10-11 08:31:07 -05:00
althafvly
689ab738cb dre: sepolicy: Remove debugfs related rules
- Removed from sepolicy_vndr

Change-Id: Ifd65abd0292577ec050904265310f17b86e10899
2022-08-31 11:14:08 +05:30
Albert Tang
96121babc7 dre: sepolicy: Redo health nodes
This should fix the battery gauge not updating at all.

Change-Id: Iacc0a89bad03d4490948d8aff069073bd22ba5c9
2022-07-25 20:15:57 -05:00
Albert Tang
03fe31d9d8 dre: overlay: Remove color modes
This is not present in stock OOS (both 11 and 12), and the kernel lacks
any support for them.

Change-Id: I84488285d48ab42b259751cd55444f272d9bd3b6
2022-07-18 14:38:43 -05:00
Albert Tang
5bb147a914 dre: Move WCNSS config back to proprietary files
read_mac_addr_from_mac_file has no effect, thus making such modification
unnecessary.

Change-Id: I30120867953fb2c24933837c81d21b1a3d59ebe9
2022-07-18 14:38:43 -05:00
Albert Tang
8abcf2d6c7 dre: Use local version of wifi-mac-generator
MAC_1_PATH does not exist in the N200, causing a 10-second delay in
generating MAC addresses. By that point, the WLAN driver has already
failed to get a MAC address, thus leaving Wi-Fi broken.

Change-Id: Iab2d34aa9db9e8843108b90b203e82f915c79bda
2022-07-18 14:38:43 -05:00
Albert Tang
63af35b020 dre: Build st21nfc from source
Change-Id: I9dfcba67ec51702050a0834375054d0a495c740c
2022-07-18 14:38:43 -05:00
Albert Tang
e9076c14d6 dre: Remove hash for vendor.qti.hardware.camera.postproc impl
Change-Id: Ia004d81a7e99a9c23d763ef89d580e5edae168a0
2022-07-15 17:30:24 -05:00
Albert Tang
8d72ba5ea1 dre: Revert "sm8350-common: Autopatch vendor.qti.hardware.camera.postproc impl"
Not needed, as the method call to be patched out is not present.

This reverts commit c5ef1cac3b.

Change-Id: I28a054b13a2f192e020af14b7885977f786a2fb6
2022-07-04 16:07:54 -05:00
Albert Tang
fedebef567 dre: Reorganize and cleanup BoardConfig and device makefiles
Change-Id: Ic5dd33de9cb9ba54b929cb252fe2a0e33c83c2ef
2022-06-14 20:07:01 -05:00
Jimmy Chen
652ecac63f dre: Move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2022-06-14 20:06:15 -05:00
Albert Tang
d736c9340f dre: sepolicy: Fix flashlight
Change-Id: I95ebf14ffaae81b28204505d23ee448213c23bea
2022-06-14 20:05:00 -05:00
Alexander Koskovich
0d269abc59 dre: sepolicy: Allow update engine to flash oplusstanvbk
* Needed when payload.bin contains oplusstanvbk.

Change-Id: I5139aff2b0152790e1ebf8c598fc99c0f00fd21d
2022-06-13 16:31:47 -05:00
Albert Tang
e3efd3e14c dre: Align status bar with camera cutout
Change-Id: I913879c595011b8d9775d95cb0015b78ab4f3183
2022-06-13 15:43:47 -05:00
Albert Tang
aa5a3c68d7 dre: Enable automatic refresh rate switching
Change-Id: Idfed67ca24da746207e911ebb80e5c2e0481b5dc
2022-06-13 10:36:54 -05:00
Albert Tang
0246645893 dre: Move SurfaceFlinger properties to vendor.prop
Change-Id: I6a7aff873e528ad3bcd859547492694de142f605
2022-06-13 10:36:54 -05:00
Albert Tang
88601fee6c dre: Disable the serial console
Change-Id: Ie156b3aef3128f2adbc875f3ea5b6f13f0df7888
2022-06-13 10:24:35 -05:00
althafvly
f20c9d1520 dre: overlays: set physical location of side fps
- we have fps on power button, so same values

Change-Id: Ieec34eef8c5a26b075da1314445b2b06391ec7b4
2022-06-10 22:30:47 -05:00
Albert Tang
0d0657c07d dre: Declare power button as fingerprint sensor
Change-Id: I326e6c514cce00dad562d46bb4721bb3a2ddeaa4
2022-06-10 22:30:12 -05:00
Albert Tang
2f13abf6d5 dre: Set voice call volume steps to 9
Change-Id: I3ae8d2466aaaa563b2aa10e3675608bc68976591
2022-06-10 22:30:12 -05:00
Alexander Koskovich
845d1950c9 dre: Disable QCOM system daemon
* For factory use only and has real performance costs.

Change-Id: I2d25c28c2ba146fa4464cb49f02ead6a6d787b48
2022-06-10 22:30:12 -05:00
Albert Tang
7f5a985687 dre: Import audio configs from LA.UM.9.14.r1-19200.02-LAHAINA.QSSI13.0
The SM8350 audio HAL has SM4350 configuration files, so we will just
import those.

Any configurations not imported from there were pulled from OOS 11.0.6.0.DE17AA.

Change-Id: I2bed70eba6b08d63b3bcc15c93ed1fc54ea0a770
2022-06-10 22:29:42 -05:00
Albert Tang
b5eeaf89ed dre: Add WCN vendor props
While we are at it, correct the wifi module name too.

Change-Id: I546477ef194efb9fa2e94f195ddc0ff0242b8a90
2022-06-06 21:01:30 -05:00
Albert Tang
f651de3a0d dre: sepolicy: Add new sysfs health nodes
Change-Id: I0160abf0d9f2adc1877726a7672e9d313afc8aad
2022-06-06 21:01:30 -05:00
Albert Tang
f60e1d5110 dre: Switch to generic QTI vibrator
Change-Id: I12159fced7097084b2ed80c2d20f12aeb23ebf0c
2022-06-06 21:01:30 -05:00
Albert Tang
50ca8fb110 dre: Remove PowerShare HAL
This feature relies on wireless charging capabilities, which the Nord
N200 lacks.

This reverts commit d2493c7765.

Change-Id: I44753bd51d3f1a812999607ae67bc431b561f750
2022-06-06 21:01:30 -05:00
Albert Tang
a00313b8fa dre: Remove support for wireless charging.
The Nord N200 does not have this feature.

This reverts commit dc568fa506.

Change-Id: I27468e57453bb433f36b852c0f10c857db1d53de
2022-06-06 21:01:30 -05:00
Albert Tang
aa630780b5 dre: sepolicy: Redo sysfs nodes for wakeup
Also edit sysfs nodes for livedisplay_tunables.

Change-Id: I10239dd4710cd38ddc323a18cdd857b3526b4dc6
2022-06-06 21:01:30 -05:00
Albert Tang
10739e6f80 dre: sepolicy: Fix block and thermal data paths
Change-Id: Ie8c730a95898499f548239c67f37e5ff47578b3e
2022-06-06 21:01:30 -05:00
Albert Tang
40c5487ca9 dre: sepolicy: Remove OP charger feature
OnePlus does not ship their DASH/Warp Charging feature with the N200.
Their 18W block is most likely just a rebranded QTI charger.

Change-Id: I176b3bd91877943f76b0db6e146ea845e0bf2d55
2022-06-06 21:01:30 -05:00
Albert Tang
1a73073a2f dre: Sync permissions with OOS 11.0.6.0.DE17AA
Change-Id: I41d0d27c45ef5d3f3392c8619d914c3a8fff9cb7
2022-06-06 21:01:30 -05:00
Albert Tang
2e43ab76f9 dre: Sync properties with OOS 11.0.6.0.DE17AA
Change-Id: I5a95e81a3baa4d3b7acd7b538796298565c01dfd
2022-06-06 21:01:30 -05:00
Albert Tang
79d957ce67 dre: Use OSS ST NFC
OnePlus chose to go with ST21NFC instead of NXP.

Change-Id: I48765e548cd018a2420fe00994aecd48c4ca9227
2022-06-06 21:01:16 -05:00
Albert Tang
35633e4a49 dre: Drop ro.gfx.driver
Neither of these exist in stock OOS.

Change-Id: Id37646e1c357b23782606acd6fb17eb5b034c2a2
2022-06-05 18:26:10 -05:00
Albert Tang
e32b6d0ef5 dre: Do not specify sepolicy version in manifest
Change-Id: I6918598f7c74b082d17e1f0fd8202d652187f7a6
2022-06-05 18:26:10 -05:00
Albert Tang
7ef0ff78eb dre: Switch to generic fingerprint HAL
The fingerprint HAL in hardware/oneplus is mainly for devices
with FOD, which the Nord N200 does not support.

ID mismatches will make the generic HAL fail, so hack the goodix
blob to fix it.

Change-Id: I0724569ed1105d8c63075286987ad56ea0ecd078
2022-06-05 18:22:39 -05:00