Commit Graph

508 Commits

Author SHA1 Message Date
David Su
9f9f7f97ea
davinci: 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
2020-12-30 02:02:03 +01:00
Roshan Pius
47687901d6
davinci: Add WifiOverlay
[ArianK16a]: Adapt to previous configuration

Bug: 148617260
Test: Device boots up and connects to wifi networks.
Change-Id: Iec27a6d947a232a42451ef095dc73d1a52327db5
2020-12-30 02:01:58 +01:00
Roshan Pius
f5d17f6440
davinci: overlay: Remove wifi related internal overlays
These are replaced by formal mainline module overlays.

Bug: 143464763
Test: Send for  Wifi regression tests
Change-Id: I45881ed210132252b9c5c7d6be03ed845e33f971
2020-12-30 02:01:52 +01:00
Roshan Pius
56af3a41c1
davinci: overlay: Enable Fast bss transition config
Bug: 32607043
Test: Manual testing
Change-Id: I43d34efc6b7dbca08d430b0b68f06fa70c4925cc
2020-12-30 01:47:51 +01:00
Kevin Chyn
62f0aa7ffd
davinci: overlay: Add fingerprint configuration to overlay
The framework was changed in Android R to require explicit authenticator registration.
This change allows apps to continue to use the fingerprint sensor.

Bug: 147445115

Test: Builds
Change-Id: Id3385edc784b2053c8b54ec3153728f4e6e22a45
2020-12-30 01:47:47 +01:00
Subhajeet Muhuri
fc8b758d1a
davinci: overlay: Update pinner list for new SystemUI location
Change-Id: I93c1a4b73ca1f03ca0fcf9cbe4ce1b057a739ca6
2020-12-30 01:47:47 +01:00
Martin Stjernholm
54e514ed1f
davinci: overlay: Update paths to the new ART APEX.
Test: Presubmits
Bug: 135753770
Change-Id: I98378100456dce927ccc253301a398d70d1b7368
2020-12-30 01:47:47 +01:00
Nicolas Geoffray
4eb4da8349
davinci: overlay: Update in pinned files.
Remove or update paths that don't exist.

Bug: 119800099
Test: boots
Change-Id: Ib2cea88499cf08274d620d9d85ffcafc31fee868
2020-12-30 01:47:47 +01:00
tangrobin
775f8e6483
davinci: Use phase offsets as duration
In Android R, the SurfaceFlinger calculate phase offsets
based on duration. Adopt the new way of specifying
phase offsets to SurfaceFlinger.

Bug: 158464992
Test: scrolling, app launching/closing, playing video
Change-Id: Ia717f5c0075b6adaedaf20dd6be689737edc1415
2020-12-30 01:47:47 +01:00
Yifan Hong
4696056f3c
davinci: Replace BOARD_CHARGER_ENABLE_SUSPEND with ro.charger.enable_suspend
Test: charger mode
Bug: 124118169
Change-Id: I3825d08e38d677bd7154879609857de302348b6f
2020-12-30 01:47:47 +01:00
Mikhail Naganov
5fee72ad60
davinci: Switch to Audio HAL V6
Bug: 141989952
Test: atest VtsHalAudioV6_0TargetTest
      atest VtsHalAudioEffectV6_0TargetTest
            manual audio "smoke" test

Change-Id: Ieb1cc5c7fdcc5416a328a0a5c4a1996258b81ac8
2020-12-30 01:47:46 +01:00
Robert Shih
17ff725cfa
davinci: Enable v1.3 drm plugins
Bug: 139134043
Test: MediaDrmTest
Change-Id: I7453b035ca29c7ee889d03de0d55e6d947b3cb77
2020-12-30 01:47:46 +01:00
Jimmy Chen
8341c18fac
davinci: Move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2020-12-30 01:47:46 +01:00
Ahmed ElArabawy
ee7e31623a
davinci: wifi: Remove hostapd hidl entry from manifest.xml
This CL removes the definition for the hostapd hidl interface from
manifest.xml and rely on vint-fragements entry.
This is to avoid the need to modify the revision in future

Bug: 145780363
Test: builds and wifi softap works
Change-Id: I2a9cb25209efc94f6306f38d89cb5e1ff6f72bed
2020-12-30 01:47:46 +01:00
Jimmy Chen
49dce4c7cc
davinci: wifi: Move wpa_supplicant VINTF definition to wpa_supplicant module
Bug: 36505680
Test: atest FrameworksNetTests
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Test: connect EAP access point and verify PMK cache works correctly.
Change-Id: I2c382765b8e84951fc17bb9f1c3785dcd66e7b51
2020-12-30 01:47:46 +01:00
Ahmed ElArabawy
2cb51351e0
davinci: wifi: Remove IWifi hidl entry from manifest.xml
This CL removes the definition for the IWifi hidl interface from
manifest.xml and rely on vint-fragements entry.
This is to avoid the need to modify the revision in future

Bug: 138243400
Test: builds and wifi works
Change-Id: Icaff93193e10d4953d9947d2739b05959ece79f1
2020-12-30 01:47:46 +01:00
Steven Moreland
84db948604
davinci: Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I640a3f0e0839214523627bf0b59fd5ae9dd2c61c
2020-12-30 01:47:40 +01:00
Arian
af13479df1
davinci: sepolicy: Unlabel audio_hw_socket
Change-Id: Ic5e5f477651282537040bb2e7d1aabfa48518697
2020-12-30 01:47:16 +01:00
Arian
3613fe7f16
davinci: Drop unused gnsspps
Change-Id: I5811042197ffc19dd56c3609afafa6e10acf48c8
2020-12-30 01:47:16 +01:00
Arian
3476ddfcaf
davinci: Drop unused packages and proprietary files
Change-Id: Ia71338d2cb795977af9c6ff945e2715fb693ea1a
2020-12-30 01:47:09 +01:00
jonerlin
c260ac2ed9
davinci: overlay: Enable the SAP Profile
* overlay profile_supported_sap config true to support SAP profile

Bug: 124730932
Test: Manually
Change-Id: I1329c17773b5379b51acc6881e444845afe0c59b
2020-12-30 01:47:00 +01:00
Nolen Johnson
41bfa0763e
davinci: Don't declare BOARD_VENDOR
* Only matters when it differs from the device OEM.

Change-Id: Id9af8263cb42dc7a0e3a9ce8677385e224910302
2020-12-30 01:46:40 +01:00
Nolen Johnson
ee3053b83d
davinci: bluetooth: Disable clean turn on
* This isn't needed anymore.

Change-Id: Ib77e5212099d82bbc07aea6044eb35109faff5cb
2020-12-17 23:48:20 +01:00
Daniel Mentz
d101d05406
davinci: Remove ineffective BOARD_KERNEL_OFFSET variable
Remove various variables related to where kernel and ramdisk are loaded
by the bootloader. There are two reasons for this:

1. The B1C1 bootloader ignores all the offset values for kernel, ramdisk
and tags. The default B1C1 memory layout has been designed to accomodate
a larger KASAN kernel.

2. The variables BOARD_KERNEL_TAGS_OFFSET and BOARD_RAMDISK_OFFSET are
ignored by the Android build system (unless they are copied into the
BOARD_MKBOOTIMG_ARGS variable). This is in contrast to the variables
BOARD_KERNEL_BASE, BOARD_KERNEL_PAGESIZE and BOARD_MKBOOTIMG_ARGS which
are referenced by build/make/core/Makefile

Bug: 117832711
Change-Id: I3404a4e084ed063d51077a3a80229854362c768b
2020-12-17 23:48:09 +01:00
Arian
9c8177ebfa
davinci: rootdir: Enable qcrild and data services instead of starting them
* Enabling the services allows them to start at their proper stage (class main)
* Enable them on boot to ensure they are enabled before class main starts

Change-Id: I71c3fcb72b38d247d304fda2fa6b2cc76baa0db2
2020-12-17 23:47:56 +01:00
Arian
8ab6135938
davinci: Start data services
* These modules are disabled by default and started by
  init.class_main.sh which we do not ship. Start them from init.qcom.rc
  on post-fs-data instead, just like qcrild.

Change-Id: Ifa907b5e33d8d3d08e64baaabfb8e3e450925e96
2020-12-17 23:31:16 +01:00
Arian
9d5292a31e
davinci: hidl: Add touchfeature fqname
Change-Id: I4952e11a5c9adc5caec4d4a30cbe3f4e24bd3fca
2020-12-17 23:31:15 +01:00
Arian
fcadd257a8
davinci: Add missing speaker protection properties and drop unused properties
Change-Id: Iee351b80e54897b2eb609dab149001189f7ddb48
2020-12-17 23:31:15 +01:00
daniml3
4a06e932be
davinci: Disable NFC service for indian devices
Change-Id: I08e7955bf70adb15cbe5f8f8c3f226c05b135b27
2020-12-17 23:31:09 +01:00
Arian
472e0182dc
davinci: parts: Restore the LED's previous state after popup
* We are using the left led as notification LED and hence it
  could be breathing or shining while we open or close the
  camera. So we don't just set it's brightness to 0 but read
  and store the state of the LED before enabling it and
  restoring that afterwards.

* To ensure that the left LED is shining while the camera
  opens or closes we set it's breathing effect to 0 before
  enabling the LEDs.

Change-Id: Ibdfbff3072398bc77ec3257b60622cfc50e8d857
2020-12-17 23:30:59 +01:00
Arian
1db9129db8
davinci: parts: Allow to wake the screen instead of pulsing
Co-authored-by: Nauval Rizky <enuma.alrizky@gmail.com>
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I1e74f8eafa51843e77d2d8c514c646a4494327cd
2020-11-28 18:12:03 +01:00
Arian
fed308cae8
davinci: parts: clang-format everything
Change-Id: Iae92b7197a58b4353dafa7e24d67ebb5f096f2b5
2020-11-28 18:12:03 +01:00
Arian
a5fe3b11a6
davinci: parts: Always show the warning dialog
Change-Id: I979cc479ee928edf0e203489264df340326fbf5b
2020-11-28 18:12:03 +01:00
Arian
d738bb5729
davinci: parts: Add a warning dialog for manual calibrations
Change-Id: Id764e1cbe1a8c535c0039938097465d9a0dcd02b
2020-11-28 18:12:03 +01:00
Arian
cf282db685
davinci: parts: Add a setting to calibrate the motor
Change-Id: I9f76124759bf8497b5cd72293b5c36f85b4d1787
2020-11-28 18:12:03 +01:00
Arian
236c8747e3
davinci: parts: Quickly takeback the motor in free fall
Change-Id: Ib31f4cf5b1de4cd9366b3d15945749a53d260690
2020-11-28 18:12:03 +01:00
Arian
4f2af261f3
davinci: parts: Delay creating MotorStatusCallback when the motor is opened
* Give the motor enough time to close in case it was
  still opened on boot without showing the error dialog.

Change-Id: Ibc00a999858f5067bbcf07bfecc779f1d0bf3664
2020-11-28 18:12:03 +01:00
jhenrique09
027a842a58
davinci: parts: Implement popup motor calibration
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: If1f6c757cbf521fd27f7124284f40ea602f53ba8
2020-11-28 18:12:03 +01:00
Arian
b97294d58f
davinci: Build the vendor.xiaomi.hardware.motor@1.0 interface
Change-Id: Ieda22802167fb20f54b301f3c686f158599f09eb
2020-11-28 18:12:03 +01:00
Arian
169d43565e
davinci: parts: Directly takeback the motor if it's not closed on create
* using updateMotor does not make sense here because it
  would only close it when the state is MOTOR_STATUS_POPUP,
  but we explicitly also want to try to take it back when
  it's jammed.

Change-Id: I7594fe01266a514a9fd780d17a91b0c7f957a1e1
2020-11-28 18:12:03 +01:00
Arian
4df3381a1d
davinci: parts: clang-format
Change-Id: I90c5c1f9529277821cd3a05ba4861588e8a6f323
2020-11-28 18:12:03 +01:00
Arian
358b4e7a2b
Revert "davinci: parts: Try to take the motor back on boot when opened"
This reverts commit b4dca743ea.
2020-11-28 18:12:03 +01:00
Arian
c98553ca6e
davinci: Add clang-format configuration
Change-Id: I125056c23d0e4ed74b2b96f13842c39a39de7b45
2020-11-28 18:12:03 +01:00
Volodymyr Zhdanov
b41622fbac
davinci: rootdir: Don't configure zram in init.qcom.post_boot.sh
* let it use the size which is set in fstab

Change-Id: Ie84d0674a643e637d5ef894399d76ede25d00eeb
2020-11-28 18:12:03 +01:00
Arian
d017391602
davinci: power: We only have goodix screen's
Change-Id: Ifca047e768ff338f7d9432ca78bd75141583c272
2020-11-28 18:12:03 +01:00
Arian
91911144f8
davinci: sepolicy: Drop unused fingerprint sepolicy rules
Change-Id: I5dd29315c94d971eb5162bd1ed24f2fecf3de305
2020-11-28 18:12:03 +01:00
Arian
7b875c6270
davinci: Add 32-bit perf stack and drop unused libskewknob
* Our audio HAL want's to use it

Change-Id: I2146369cacbb4f5a342781842bf34ce93db551f0
2020-11-28 18:12:03 +01:00
Arian
e4426a8806
davinci: init: Cleanup unused includes
Change-Id: Ib713665e84bdfb3e41e6d54618308b32cfba8f1b
2020-11-28 18:12:03 +01:00
Arian
d55ed606b2
davinci: tfa98xx: Cleanup audio_amplifier
* Drop unnecessary shared libraries and c includes
* Replace libhardware c include with libhardware_headers
* Drop unused includes and commented code
* Refactor is_speaker to a bool
* Alphabetize share libraries and speaker devices
* Replace hard-coded sm6150 with $(TARGET_BOARD_PLATFORM)
* Drop unnecessary optional tag

Change-Id: I067e0dae75021cd677892d3b83fbe922fef245f5
2020-11-28 18:12:03 +01:00
PIPIPIG233666
fdf5278aba
davinci: Add audio amplifier for TFA amp feedback
* Fixes broken stereo channel seperation.

* Logic and original code by Smosia, slightly rewritten and moved to audio amplifier HAL by Pig.

Co-authored-by: Smosia <stasenko_nv@nrcki.ru>
Signed-off-by: Arian <arian.kulmer@web.de>
Change-Id: I369555a9fcb06065177636b436d2e006c7a0b07d
2020-11-28 18:12:03 +01:00