Commit Graph

342 Commits

Author SHA1 Message Date
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
Arian
ba52828323
davinci: overlay: Enable STATE_DOZE_SUSPEND
Change-Id: I30af14b78bd0a1a18ec1511b574ea9944f160175
2020-11-28 18:12:03 +01:00
SVB
b40d5db28f
davinci: rootdir: Allow all filesystems for USB-OTG
Change-Id: Ie9cef57485c337c39bae559a71582b4c66127d85
2020-11-28 18:12:03 +01:00
yankarinRG
88e69626ee
davinci: overlay: Update path defining rounded corners
Change-Id: I82669e8c10aab56d1a5ecc1b410435aa3a82e256
2020-11-28 18:12:02 +01:00
yankarinRG
53abf93216
davinci: overlay: Update window corner radius adjustment
to take software rounded corners into account

Change-Id: I056cb5f03ce065465e46dfe6db74094d43d6499b
2020-11-28 18:12:02 +01:00
yankarinRG
bfd3451ff5
davinci: overlay: Adjust window rounded corners
to make sure they will completely cover the display

Signed-off-by: Marco Rizzo <marco.rizzo.00@outlook.com>
Change-Id: I5ff1a727545c383692b02dabdbcf8810b70df1a1
2020-11-28 18:12:02 +01:00
yankarinRG
0b15b7fb4e
davinci: overlay: Add proper keyguard/statusbar configs for rounded corners
- on keyguard, added start padding to carrier text to account for the rounded corners
- on keyguard, added end padding to right system icons when multi user switch is not showing
- on keyguard, added end padding to multi user switch

Change-Id: I7c73c538c08b746f3d0f21b2d22586134a87353d
2020-11-28 18:12:02 +01:00
Ethan Chen
450d2ccbf7
davinci: rootdir: Move services to system-background cgroup
Change-Id: Id80f6369f943fc5fc1145cc6f13bddb2fe2b76e8
2020-11-28 18:12:02 +01:00
Tim Murray
4a9fbc3467
davinci: rootdir: Add restricted cpuset
bug: 78197570
Test: CTS

Change-Id: I6aaac2f3ce9ba886143e3667df2ca044c7f3d3f0
2020-11-28 18:12:02 +01:00
Arian
f5bcf08199
davinci: rootdir: Use stock cpusets from init.davinci.rc
Change-Id: I91d4e504635445a2dea6f7f3835d80f46cbc942a
2020-11-28 18:12:02 +01:00
Vincent Vidal
acd719db2d
davinci: fod: Use FOD_PRESSED_LAYER_ZORDER instead of magic number
Change-Id: I93d8519ca43db307abdf958354920da10776aa80
2020-11-28 18:12:02 +01:00
Vincent Vidal
e080227d40
davinci: fod: Include generated_kernel_headers to build libfod_extension
Change-Id: I7357fc3dca9882af3d57074e69f9fb22bc9eaa99
2020-11-28 18:12:02 +01:00
Arian
ae4d15e750
davinci: sepolicy: Label panel_info sysfs node
Change-Id: I4cda61bd146effa1e1be4e24219048089dec3d62
2020-11-28 18:12:02 +01:00
Marco Rizzo
20e302fbcf
davinci: overlay: Tune vibration levels
Change-Id: I6936b97837d0e9296503b7da01073daf9a9b00dd
2020-11-28 18:12:02 +01:00
Arian
08b5a000c0
davinci: light: Add lights HAL manifest as vintf fragment
Change-Id: I97f0c6bfb25bea8b7418c9494c981e7e2602c79f
2020-11-28 18:12:02 +01:00
Arian
9900e7e4dd
davinci: Fix Android.bp formatting
Change-Id: Id9b1deb6188b7af6170453d7f863bd54f8d360f9
2020-11-28 18:12:02 +01:00
Arian
e68fa0e063
davinci: sepolicy: Label new LED paths
Change-Id: Ibbb21ac80ddfa1d7c65968130493632ee47bd30c
2020-11-28 18:12:02 +01:00