Commit Graph

368 Commits

Author SHA1 Message Date
Arian
d52b6c8e3a
davinci: Build new aidl qti power HAL
Change-Id: I4bdea354e54d34d0dfe9b811e228fc6f8762d2ed
2020-12-30 02:02:56 +01:00
LuK1337
b9c9a2f990
davinci: Switch vintf manifest from copy files to build targets
* Fixes:
  build/make/core/Makefile:49: error: VINTF metadata found in PRODUCT_COPY_FILES

Change-Id: I0a7ddebff54563f7901b6ce5d6af9580ea201a77
2020-12-30 02:02:56 +01:00
Roman Kiryanov
d31a2efe1f
davinci: Replace audio@2.0-service with audio.service
Legacy service name, use android.hardware.audio.service instead

Bug: 153579444
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Merged-In: I4c05accb86dd0c9cd1b3fef3d84e0d54b2afc6a1
Change-Id: I6b55b4b1db2577f4176c99dca7021cfe78e13307
2020-12-30 02:02:56 +01:00
Shivaprasad Hongal
2f5455db88
davinci: avb: Compile recovery image as a chain partition
Add AVB flags to compile recovery image
as a chained partition. This is required
for safe OTA when multislot support is
not present.

Change-Id: I1115eba4038e6fcaa61440846a25861366996ed4
2020-12-30 02:02:56 +01:00
LuK1337
ade3b573a1
davinci: Drop android.hardware.thermal HAL
android.hardware.thermal@1.0::IThermal/default is deprecated in compatibility matrix at FCM Version 4; it should not be served.

Change-Id: Icc3c672a0bf6b9e4ee76ccf91e6cdca5fb778fde
2020-12-30 02:02:38 +01:00
Alastair Donaldson
51e609a853
davinci: Add android.software.vulkan.deqp.level, version 2020-03-01
This change sets the new Vulkan dEQP level feature flag to the value
corresponding to the Vulkan dEQP tests for Android 11.

Change-Id: I0715787b310f48c27747849ebd0724e0ca6fbbde
2020-12-30 02:02:27 +01:00
Ryan Mitchell
aedf08f9cf
davinci: Use component-override to configure Bluetooth
Runtime Resource Overlays (RROs) can no longer change the value of
resources in manifest when read during PackagerParser.

This change uses component-override to enable the service by default
on this device.

Remove usages of profile_supported_sap from overlays as they no
longer configure the enable state of .sap.SapService.

Bug: 135048762
Test: adb shell pm query-services \
      com.android.bluetooth/.sap.SapService

Change-Id: I284d254a921b14d1533745611a083f4b5a27d9dc
2020-12-30 02:02:16 +01:00
Anton Hansson
5a50ae0cb1
davinci: Enforce RRO for all resource overlays
Bug: 118823052
Test: make
Change-Id: I579d09480c7a482543ea616dd5c493d825bb98b1
2020-12-30 02:02:03 +01:00
Arian
bbffa4d83a
davinci: overlay: Remove tethering regexs
Change-Id: Ia844ce570b1829a5fe587858ac5e9e36a6988c9b
2020-12-30 02:02:03 +01:00
Michael Bestas
c97a140a84
davinci: TetheringOverlay: Drop custom dhcp range
Qcom extends default range to add wigig support,
which we don't support.

Change-Id: I17324e41b8345de508e8d2627ea282c65ab1262b
2020-12-30 02:02:03 +01:00
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