GitHub/LineageOS/android_device_motorola_exynos9610-common.git
3 years agoexynos9610-common: Deduplicate handheld_core_hardware.xml copy rule
Bruno Martins [Sun, 3 Jan 2021 11:17:21 +0000 (11:17 +0000)]
exynos9610-common: Deduplicate handheld_core_hardware.xml copy rule

Since Android 10 that this is already done while inheriting from
full_base_telephony.mk.

Change-Id: If533fbf95a9cf9798ddba24955a624d26f550d62

3 years agoexynos9610-common: Remove deprecated boot animation flags
Nolen Johnson [Sun, 9 May 2021 20:28:05 +0000 (16:28 -0400)]
exynos9610-common: Remove deprecated boot animation flags

* These have been dead since, like, cm-11.0.

Change-Id: I9e082ca08425416d865b4384483eb968a8fbfbf3

3 years agoexynos9610-common: Cleanup dead targets
Nolen Johnson [Mon, 23 Nov 2020 19:46:29 +0000 (14:46 -0500)]
exynos9610-common: Cleanup dead targets

build/make/core/main.mk:1136: warning:  device/motorola/hannah/lineage_hannah.mk includes non-existent modules in PRODUCT_PACKAGES
Offending entries:
android.hardware.neuralnetworks@1.2-service-sample-all
wpa_supplicant.conf
build/make/core/main.mk:1136: error: Build failed.
15:35:26 ckati failed with: exit status 1

To do this yourself, put the following line into
lineage_$TARGET.mk:

`$(call enforce-product-packages-exist,)`

Note that the above flag must be in the product
makefile to work.

Change-Id: I0e4d93f4c3be077d49befa1f547d11d623ca74d5

3 years agoexynos9610-common: Remove TARGET_KERNEL_HEADER_ARCH
Nolen Johnson [Sun, 9 May 2021 19:56:35 +0000 (15:56 -0400)]
exynos9610-common: Remove TARGET_KERNEL_HEADER_ARCH

* Only matters if it differs from TARGET_KERNEL_ARCH.

Change-Id: I5857a9db7b9e20ab5b0c3a10c65df43990819041

3 years agoexynos9610-common: Kill deprecated TARGET_USES_MKE2FS
Nolen Johnson [Thu, 25 Jun 2020 21:17:06 +0000 (17:17 -0400)]
exynos9610-common: Kill deprecated TARGET_USES_MKE2FS

* This has been useless since some time in Pie.
* Also, is duplicated here as well.

Change-Id: Ic02238aa0f1c25cfad20a2b827c3c2fe128f3543

3 years agoexynos9610: update ShannonIms
Jan Altensen [Sun, 9 May 2021 15:35:11 +0000 (17:35 +0200)]
exynos9610: update ShannonIms

Change-Id: Icf60bd620a1b49d407f1ad4b9b4206c2db0bf69d

3 years agoexynos9610: address IMS related denials
Jan Altensen [Sun, 9 May 2021 08:09:33 +0000 (10:09 +0200)]
exynos9610: address IMS related denials

Change-Id: I20285d510605238f2c0b62890d1e8a6f07b0d651

3 years agoexynos9610: overlay: Remove old configuration and use new config for MMTEL/RCS
Brad Ebinger [Thu, 5 Dec 2019 19:37:45 +0000 (11:37 -0800)]
exynos9610: overlay: Remove old configuration and use new config for MMTEL/RCS

Remove the old config_ims_package device config and configure the
new MMTEL and RCS configurations in Telephony instead. Also,
configure the RcsService to be the default RCS service.

Bug: 111305845
Test: make checkbuild
Change-Id: I0d709b8248f1c40f0a5b50ec799396706eeadd65

3 years agoexynos9610: address mediacodec denials
Jan Altensen [Sun, 9 May 2021 05:06:16 +0000 (07:06 +0200)]
exynos9610: address mediacodec denials

Change-Id: I2943deca6987a88e6aa4d289b16ac5d695e6f0cf

3 years agoexynos9610: Don't let builds complete without vendor tree
Kevin F. Haggerty [Fri, 9 Apr 2021 14:18:37 +0000 (08:18 -0600)]
exynos9610: Don't let builds complete without vendor tree

* There is zero reason to ever build without blobs. We've even seen
  this situation with official builds from our servers. It's always
  better for a build to fail than it is for it to produce something
  that has no chance at working.

Change-Id: I4968795670c91f691e9ecdc0e4af62e16ba3a93a

3 years agoexynos9610: fixup frameworks/base overlay
Jan Altensen [Fri, 7 May 2021 08:33:37 +0000 (10:33 +0200)]
exynos9610: fixup frameworks/base overlay

Change-Id: I41123f517cd7fe6fa9b0d8281accd3c2cfdff791

3 years agoexynos9610: import correct power_profile.xml
Jan Altensen [Fri, 7 May 2021 05:12:06 +0000 (07:12 +0200)]
exynos9610: import correct power_profile.xml

Change-Id: I46c4d2e026b44a2c6af88bc5aa93b475019d1dc6

3 years agoexynos9610: initial sepolicy
Jan Altensen [Fri, 30 Apr 2021 04:50:53 +0000 (06:50 +0200)]
exynos9610: initial sepolicy

Change-Id: I8f45bf61337ace5c98931c9036b371c77af627cc

3 years agoexynos9610: inherit samsung_slsi sepolicy
Jan Altensen [Wed, 28 Apr 2021 14:17:28 +0000 (16:17 +0200)]
exynos9610: inherit samsung_slsi sepolicy

Change-Id: I4bb0f9cbd15bf516375c9b7b3583baf26a2c6177

3 years agoexynos9610: shim: fixup audio_route_missing_ctl
Jan Altensen [Wed, 5 May 2021 13:03:01 +0000 (15:03 +0200)]
exynos9610: shim: fixup audio_route_missing_ctl

Change-Id: Ie646fde984bd676a89d1086074a0c594c4eb8f0b

3 years agoexynos9610: shim: add better reverse engineered mixer_read_event
Jan Altensen [Wed, 5 May 2021 11:53:33 +0000 (13:53 +0200)]
exynos9610: shim: add better reverse engineered mixer_read_event

 * decompiled output more or less matches now with thats on stock

Change-Id: I5b525342e0cf2b731f93bd3ac74b636fd533969d

3 years agoexynos9610: build lights hal from hardware/samsung
Jan Altensen [Tue, 4 May 2021 00:55:46 +0000 (02:55 +0200)]
exynos9610: build lights hal from hardware/samsung

Change-Id: I81d3bb350319c5449e1a4039da7558ad4c6b0772

3 years agoexynos9610: build fastcharge hal from hardware/samsung
Jan Altensen [Tue, 4 May 2021 00:44:48 +0000 (02:44 +0200)]
exynos9610: build fastcharge hal from hardware/samsung

Change-Id: Ibd59d14c5ca849cf05ce72f8c4f5a3f5471d8cf4

3 years agoexynos9610: build common usb typec hal
Jan Altensen [Tue, 4 May 2021 00:43:07 +0000 (02:43 +0200)]
exynos9610: build common usb typec hal

Change-Id: I3a12e8d96ee4bb347426aaad12545a0afd925779

3 years agoexynos9610: update vendor security patch level to 2021-04-01
Jan Altensen [Mon, 3 May 2021 05:57:01 +0000 (07:57 +0200)]
exynos9610: update vendor security patch level to 2021-04-01

 * motorola/troika_retail/troika_sprout:10/QSBS30.62-29-11-5/db5cb:user/release-keys
 * motorola/kane_retail/kane_sprout:10/QSAS30.62-33-12/e6aee:user/release-keys

Change-Id: Ie0fb405ceb2a35795cbbde8a78b8623ff7df1f90

3 years agoexynos9610: fix extract-files.sh
Jan Altensen [Mon, 3 May 2021 06:27:26 +0000 (08:27 +0200)]
exynos9610: fix extract-files.sh

 * i forgot to commit these changes previously

Change-Id: I9484c7852d65fcccf84e922d6cd3356b2a79f240

3 years agoexynos9610: correct TARGET_BOARD_PLATFORM value
Jan Altensen [Mon, 3 May 2021 00:59:19 +0000 (02:59 +0200)]
exynos9610: correct TARGET_BOARD_PLATFORM value

Change-Id: I86d8a97d7e61d1d1783684af4fecdf231a7db9a7

3 years agoexynos9610: init: add NET_RAW capability to gpsd
Jan Altensen [Sun, 2 May 2021 22:28:29 +0000 (00:28 +0200)]
exynos9610: init: add NET_RAW capability to gpsd

Change-Id: I399ad0f9c24d71d33f0aa41165f7329472fffc6c

3 years agoexynos9610: init: dont create /data/misc/fm_radio
Jan Altensen [Sun, 2 May 2021 21:42:22 +0000 (23:42 +0200)]
exynos9610: init: dont create /data/misc/fm_radio

Change-Id: I7380d8081d5005b887dd36c779679f210d1c6f77

3 years agoexynos9610: init: dont create /data/camera
Jan Altensen [Sun, 2 May 2021 08:07:15 +0000 (10:07 +0200)]
exynos9610: init: dont create /data/camera

 * its not used

Change-Id: Iaf69a2fae52df0c0443e39ea343bfaa47a9700d8

3 years agoexynos9610: Enable v1.3 clearkey drm plugin
Robert Shih [Tue, 26 Nov 2019 06:25:42 +0000 (22:25 -0800)]
exynos9610: Enable v1.3 clearkey drm plugin

Bug: 139134043
Test: MediaDrmTest
Change-Id: Ie34e59947577988f75fae52d22e3f573f4b92420

3 years agoexynos9610: init: remove unknown/deprecated properties
Jan Altensen [Sat, 1 May 2021 02:30:14 +0000 (04:30 +0200)]
exynos9610: init: remove unknown/deprecated properties

Change-Id: I59fd8e12cf5fc01e9eca65a6f2be7fe406099ad1

3 years agoexynos9610: relocate thermal log file
Jan Altensen [Fri, 30 Apr 2021 04:56:22 +0000 (06:56 +0200)]
exynos9610: relocate thermal log file

Change-Id: I624c12100f59d8034e388fe0166e6cf935e9a04d

3 years agoexynos9610: drop dolby dms service
Jan Altensen [Fri, 30 Apr 2021 04:55:12 +0000 (06:55 +0200)]
exynos9610: drop dolby dms service

Change-Id: Icdc20377ce628eb200964a64baeef28f27866978

3 years agoexynos9610: remove nfc manifest entry
Jan Altensen [Tue, 27 Apr 2021 17:00:21 +0000 (19:00 +0200)]
exynos9610: remove nfc manifest entry

 * its a vintf manifest fragment now

Change-Id: Ie81a0a3d7eb690fccb6987f16250d1c57cb1e8cd

3 years agoexynos9610: build nfc hal from source
Jan Altensen [Sat, 24 Apr 2021 00:54:40 +0000 (02:54 +0200)]
exynos9610: build nfc hal from source

Change-Id: Ief7ef8f2a597b1a978ea4b0ec4e41391cec03a99

3 years agoexynos9610: manifest: Remove Trust interface entry
Michael Bestas [Fri, 1 Jan 2021 03:15:05 +0000 (05:15 +0200)]
exynos9610: manifest: Remove Trust interface entry

This has been turned into a VINTF fragment.

Change-Id: Iaf53a2e1fbac75d53ec11d4c56c51230f4758daf

3 years agoexynos9610: Switch to patchelf from tools-lineage
Michael Bestas [Thu, 5 Nov 2020 17:50:53 +0000 (19:50 +0200)]
exynos9610: Switch to patchelf from tools-lineage

Change-Id: If1a7328804fb9bc39ccec70690f1090f2d0509b3

3 years agoexynos9610: Switch to standalone extract utils
Michael Bestas [Sat, 19 Dec 2020 00:53:35 +0000 (02:53 +0200)]
exynos9610: Switch to standalone extract utils

* Align with templates while we are at it

Change-Id: Ife50623a3d1b8733f5cc76995c982d8950d39ad4

3 years agoexynos9610: correct recovery pixel format
Jan Altensen [Thu, 24 Dec 2020 19:08:56 +0000 (20:08 +0100)]
exynos9610: correct recovery pixel format

Change-Id: Icd506928128c2a0250b7dfeead64f75b13ea88c1
(cherry picked from commit 407ebf3aec6769947410f7d7a01063953c511a3c)

3 years agoexynos9610: dependencies: fix kernel path
Jan Altensen [Thu, 24 Dec 2020 08:12:33 +0000 (09:12 +0100)]
exynos9610: dependencies: fix kernel path

 * no idea how i havent noticed that earlier

Change-Id: I7bb3dcbc5bbf639840552d155642773412376f07

3 years agoexynos9610: add shim for __cxa_demangle
Jan Altensen [Thu, 15 Oct 2020 16:55:43 +0000 (18:55 +0200)]
exynos9610: add shim for __cxa_demangle

 * `libc++demangle` exists but is a static library
 * cxa_demangle.cpp taken from `refs/tags/android-11.0.0_r1`

Change-Id: I5ffcad94cb8523ea9badf1084f9419136dedf3ad

3 years agoexynos9610: copy vndk29 libprotobuf-cpp-lite and patchelf libwvhidl
Jan Altensen [Mon, 12 Oct 2020 21:01:55 +0000 (23:01 +0200)]
exynos9610: copy vndk29 libprotobuf-cpp-lite and patchelf libwvhidl

Change-Id: I22aa2e9f1bd26fe45318e9e04bcc79e6201114a3

3 years agoexynos9610: remove erroneous entry from ueventd.rc
Jan Altensen [Mon, 12 Oct 2020 21:00:42 +0000 (23:00 +0200)]
exynos9610: remove erroneous entry from ueventd.rc

Change-Id: I06f7477f56b54de3f6c1ee6802a656902ce41398

3 years agoexynos9610: Use Soong namespace to avoid device build conflicts
Ethan Chen [Tue, 2 Oct 2018 11:51:03 +0000 (13:51 +0200)]
exynos9610: Use Soong namespace to avoid device build conflicts

Change-Id: Id04f464102264b6f2e8d49b39389c7e346613b39

3 years agoexynos9610: remove libhidltransport/libhwbinder dependencies from proprietary files
Jan Altensen [Wed, 30 Sep 2020 03:37:30 +0000 (05:37 +0200)]
exynos9610: remove libhidltransport/libhwbinder dependencies from proprietary files

Change-Id: Ic48d4cdf62a3daf855b855c932327c38c842dba7

3 years agoexynos9610: Fix host_init_verifier errors
Jan Altensen [Wed, 30 Sep 2020 02:56:43 +0000 (04:56 +0200)]
exynos9610: Fix host_init_verifier errors

Change-Id: Id9bd0830de1f7d65965e5dbe918efb4091dc182d

3 years agoexynos9610: wifi: Remove hostapd hidl entry from manifest.xml
Ahmed ElArabawy [Fri, 6 Dec 2019 03:55:20 +0000 (19:55 -0800)]
exynos9610: 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

3 years agoexynos9610: wifi: Move wpa_supplicant VINTF definition to
Jimmy Chen [Fri, 30 Aug 2019 08:45:09 +0000 (16:45 +0800)]
exynos9610: 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

3 years agoexynos9610: wifi: Remove IWifi hidl entry from manifest.xml
Ahmed ElArabawy [Tue, 23 Jul 2019 22:28:34 +0000 (15:28 -0700)]
exynos9610: 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

3 years agoexynos9610: drop libhidltransport dependencys
Jan Altensen [Mon, 14 Sep 2020 02:38:17 +0000 (04:38 +0200)]
exynos9610: drop libhidltransport dependencys

Change-Id: I803e723ecc791c453bb6be4966aef21898b4f261

3 years agoexynos9610: add shim for android_memset32
Jan Altensen [Wed, 16 Sep 2020 02:27:03 +0000 (04:27 +0200)]
exynos9610: add shim for android_memset32

 * memset32.S and android_memset.S taken from Q

Change-Id: Id0878f89cdc4b754c8af3b4cc0a1920030155fad

3 years agoexynos9610: use MotoActions from hardware/motorola
Jan Altensen [Wed, 23 Dec 2020 15:40:54 +0000 (16:40 +0100)]
exynos9610: use MotoActions from hardware/motorola

Change-Id: Ic63fdbbe9f3e908b515a1a39da1c9de53b9e2ed6

3 years agoexynos9610: update vendor security patch level to 2020-11-01
Jan Altensen [Mon, 7 Dec 2020 07:37:36 +0000 (08:37 +0100)]
exynos9610: update vendor security patch level to 2020-11-01

 * motorola/troika_retail/troika_sprout:10/QSBS30.62-29-9/d809e:user/release-keys
 * motorola/kane_retail/kane_sprout:10/QSAS30.62-33-6/5a953:user/release-keys

Change-Id: I56a9e7d9eb32d21e7890e35ebd22cd4b5ece85d3

3 years agoexynos9610: Use TARGET_SCREEN_DENSITY
Anton Hansson [Fri, 18 Jan 2019 14:10:45 +0000 (14:10 +0000)]
exynos9610: Use TARGET_SCREEN_DENSITY

This variable is used to auto-populate the ro.sf.lcd_density as
well as selecting density bucket for resources in recovery.

Bug: 118676832
Test: adb shell getprop ro.sf.lcd_density
Test: boot into recovery
Change-Id: Ib383d18b61e7a2058a69ae26136aa053fdba4df2

3 years agoexynos9610: Specify the source of common blobs
Bruno Martins [Fri, 17 Apr 2020 19:47:11 +0000 (20:47 +0100)]
exynos9610: Specify the source of common blobs

Change-Id: I38bd7d529f8ac47f108b111f7dbec07141839cd7

3 years agoexynos9610: Ship Snap
Bruno Martins [Fri, 26 Oct 2018 13:11:03 +0000 (14:11 +0100)]
exynos9610: Ship Snap

 * Also allow Snap to use aux camera while at it.

Change-Id: I65beba444c9ae71b2fe248f201448cacd15e764f

3 years agoexynos9610: exynos-thermald: disable logging
Jan Altensen [Thu, 15 Oct 2020 16:03:58 +0000 (18:03 +0200)]
exynos9610: exynos-thermald: disable logging

 * removes the log spam every second

Change-Id: Ib2099717624971df7a08e260bce1e3d19fa205ef

3 years agoexynos9610: add required repositories to lineage.dependencies
Jan Altensen [Tue, 6 Oct 2020 04:58:16 +0000 (06:58 +0200)]
exynos9610: add required repositories to lineage.dependencies

Change-Id: Ic9134e691ea94140cdd2fec94d2c09e05dc6dab3

3 years agoexynos9610: update vendor security patch level to 2020-09-01
Jan Altensen [Mon, 5 Oct 2020 07:20:42 +0000 (09:20 +0200)]
exynos9610: update vendor security patch level to 2020-09-01

 * motorola/troika_retail/troika_sprout:10/QSBS30.62-29-7/0ea60:user/release-keys
 * motorola/kane_retail/kane_sprout:10/QSAS30.62-33-4/2d332:user/release-keys

Change-Id: If39b9a041008b2a3bda861153b51d53fd3701039

3 years agoexynos9610: decommonize ro.radio.imei.sv
Jan Altensen [Mon, 5 Oct 2020 07:17:31 +0000 (09:17 +0200)]
exynos9610: decommonize ro.radio.imei.sv

Change-Id: If3a884908ff5f099d91ef73c69e81a4b62ecc518

3 years agoexynos9610: decommonize libril_sitril and libsitril
Jan Altensen [Mon, 5 Oct 2020 07:13:00 +0000 (09:13 +0200)]
exynos9610: decommonize libril_sitril and libsitril

 * apparently they are different for troika and kane

Change-Id: I683cb107938d9895996971da173c45805f76deb4

3 years agoexynos9610: Exclude lineage-sdk overlays from RRO
Dan Pasanen [Fri, 1 Nov 2019 12:19:07 +0000 (07:19 -0500)]
exynos9610: Exclude lineage-sdk overlays from RRO

* lineage-sdk overlays don't work with RRO

Change-Id: Iff826faf1864388066a488acc9682636b98d1098

3 years agoexynos9610: Enforce RRO for all resource overlays
Anton Hansson [Wed, 7 Nov 2018 16:10:05 +0000 (16:10 +0000)]
exynos9610: Enforce RRO for all resource overlays

Bug: 118823052
Test: make
Change-Id: I579d09480c7a482543ea616dd5c493d825bb98b1

3 years agoexynos9610: Enforce RRO on framework-res
Jaekyun Seok [Wed, 5 Apr 2017 02:23:26 +0000 (11:23 +0900)]
exynos9610: Enforce RRO on framework-res

Overlays only for framework-res will be converted into RROs.

Other overlays can't be converted due to some known issues on app RRO.

Bug: 36231603
Change-Id: Idca30fdbbcc990fd124de16a06a112a346612a61

3 years agoexynos9610: fix wifi hotspot
Jan Altensen [Fri, 25 Sep 2020 18:03:56 +0000 (20:03 +0200)]
exynos9610: fix wifi hotspot

Change-Id: Ie8542357cc8418dc98d4559b9417e5b16d2af421

3 years agoexynos9610: Disable LiveDisplay
Nolen Johnson [Tue, 11 Feb 2020 22:34:03 +0000 (22:34 +0000)]
exynos9610: Disable LiveDisplay

Co-authored-by: Paul Keith <javelinanddart@gmail.com>
Co-authored-by: Nolen Johnson <johnsonnolen@gmail.com>
Co-authored-by: Michael W <baddaemon87@gmail.com>
Change-Id: I86f19316f7291debc057a0a2e96e3a67a8c8a1f9

3 years agoexynos9610: add fingerprint navigation support
Jan Altensen [Wed, 9 Sep 2020 10:09:13 +0000 (12:09 +0200)]
exynos9610: add fingerprint navigation support

Change-Id: I74a41888ff12c9eed31efa5b56c9a61757dd6531

3 years agoexynos9610: copy libGLES_mali.so to vulkan.exynos9610.so
Jan Altensen [Tue, 8 Sep 2020 18:09:26 +0000 (20:09 +0200)]
exynos9610: copy libGLES_mali.so to vulkan.exynos9610.so

 * symlinks arent working for some reason

Change-Id: Ic0b8f5158577447bdfd23d3fa7499fc70bb73f33

3 years agoexynos9610: move LineageActions to system
Joshua Blanchard [Sun, 20 Oct 2019 17:00:34 +0000 (19:00 +0200)]
exynos9610: move LineageActions to system

Change-Id: I843c188bde89e37483fc66dbc4d09e2a600a37fe

3 years agoexynos9610: kang LineageActions from nash
Jan Altensen [Fri, 4 Sep 2020 21:17:43 +0000 (23:17 +0200)]
exynos9610: kang LineageActions from nash

Change-Id: Iaad009cb167850e39b324edcea302eccb5b0fccf

3 years agoexynos9610: Force enable VoLTE and VoWifi
SagarMakhar [Tue, 12 May 2020 13:39:46 +0000 (13:39 +0000)]
exynos9610: Force enable VoLTE and VoWifi

Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
Change-Id: Idd8b6a5c1706546356c8c58d23218fd538d7d74d

3 years agoexynos9610: hardcoded id and rev in dtbo config
Jan Altensen [Mon, 24 Aug 2020 11:32:01 +0000 (13:32 +0200)]
exynos9610: hardcoded id and rev in dtbo config

 * mkdtboimg.py does not support parsing DT yet

Change-Id: I16eb0b872c7846aae776042debf775fe7b19d072

3 years agoexynos9610: adopt to new dtbo generation method
Jan Altensen [Mon, 24 Aug 2020 11:30:57 +0000 (13:30 +0200)]
exynos9610: adopt to new dtbo generation method

Change-Id: I90b3c1c8c3e8ee19d0f99ad8a3d9ba8bdb2be55a

3 years agoexynos9610: add stock overlays
Jan Altensen [Sun, 23 Aug 2020 16:36:16 +0000 (18:36 +0200)]
exynos9610: add stock overlays

Change-Id: I45d7dda4b1dce181e59ece2ebbfd3ff75128cc42

3 years agoexynos9610: remove motorola specific audo effects
Jan Altensen [Sun, 23 Aug 2020 16:23:54 +0000 (18:23 +0200)]
exynos9610: remove motorola specific audo effects

 * they break bluetooth audio on AOSP

Change-Id: I483748cf915e2ae31ccc67c472ebe4d191c3e63f

3 years agoexynos9610: Advertise support for extended length nfc
Paul Keith [Sat, 28 Sep 2019 12:24:39 +0000 (14:24 +0200)]
exynos9610: Advertise support for extended length nfc

* Value obtained from decompiling stock NfcNci.apk

Change-Id: I703ca07d0bd28412390e8c4076c7824bab6e1ace

3 years agoexynos9610: set vendor security patch
Jan Altensen [Tue, 18 Aug 2020 16:55:05 +0000 (18:55 +0200)]
exynos9610: set vendor security patch

Change-Id: I893e29cf6bcab7fc185a6611b9caa8600f927e6b

3 years agoexynos9610: Build Trust HAL
Joey [Sun, 13 Jan 2019 09:21:11 +0000 (10:21 +0100)]
exynos9610: Build Trust HAL

Change-Id: I92706987f8d3094cdfb82e71e5331b7efe69e5df

3 years agoexynos9610: Don't apply persist.vendor.usb.config
dianlujitao [Wed, 18 Sep 2019 07:30:54 +0000 (15:30 +0800)]
exynos9610: Don't apply persist.vendor.usb.config

 * Otherwise adb turns on after reboot every time.

Change-Id: I66631f1f38a3e3a16e6d3dad87c83d0a98e6f851

3 years agoexynos9610: build usb hal
Jan Altensen [Sun, 16 Aug 2020 17:37:58 +0000 (19:37 +0200)]
exynos9610: build usb hal

Change-Id: Id7840a26322016a6e55e2aeea2ee4d4e41d10148

3 years agoexynos9610: Rename USB HAL suffix to exynos9610
Rashed Abdel-Tawab [Wed, 21 Aug 2019 23:55:03 +0000 (16:55 -0700)]
exynos9610: Rename USB HAL suffix to exynos9610

Change-Id: Iffc638b3bf747be07e9ce34278edeb546b905948

3 years agoexynos9610: USB: Use -Werror
Chih-Hung Hsieh [Thu, 2 Nov 2017 22:22:43 +0000 (15:22 -0700)]
exynos9610: USB: Use -Werror

* Remove unused variables.
* Return result of registerAsService().

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I79d1add6190e835de20a0b0c247bbbb259096c14

3 years agoexynos9610: USB: Add 'vendor.' prefix to a vendor HAL
Jaekyun Seok [Wed, 30 Aug 2017 01:54:11 +0000 (10:54 +0900)]
exynos9610: USB: Add 'vendor.' prefix to a vendor HAL
 service name

To prevent property name collisions between properties of system and
vendor, 'vendor.' prefix must be added to a vendor HAL service name.
You can see the details in http://go/treble-sysprop-compatibility.

Test: succeeded building and tested on a walleye device
Bug: 36796459
Change-Id: Idc995c550657feca5e0f934444a31805bc3538f9

3 years agoexynos9610: USB: Fix potential racing by wall time change
Wei Wang [Fri, 11 Aug 2017 22:05:46 +0000 (15:05 -0700)]
exynos9610: USB: Fix potential racing by wall time change
 in USBhal

pthread_cond_timedwait used wall time so it might introduce racing,
pthread_cond_timedwait_monotonic_np is Android specific but it is being
deprecated. And now Android support pthread_condattr_setclock so use it
to wait on CLOCK_MONOTONIC instead.

Bug: 64623895
Test: USB switch function works, charging/MTP/PTP
Change-Id: I136533ff90ef1be2b042ef1e0829643f2f7aa968

3 years agoexynos9610: USB: HAL: enable auto suspend for USB headsets
Yueyao Zhu [Wed, 28 Jun 2017 19:13:28 +0000 (12:13 -0700)]
exynos9610: USB: HAL: enable auto suspend for USB headsets

Adds a thread that handles add uevents of USB devices, and
enables auto suspend on that USB device (i.e. set power/control
to auto) if the device idProduct/idVendor is whitelisted.

The android kernel will already autosuspend audio devices,
however this enables autosuspend for the Google USB-C to
3.5mm adapter, which presents an HID-only interface when
no 3.5mm headset is connected.

Test: with the selinux and .rc changes for access permission
- MIR without headset: power/control set to auto
- MIR with headset: power/control set to auto
- regular mouse: power/control set to on

Bug: 38352281
Change-Id: I81572584ea02f6bdc814e70ab3439ab86c34a50a

3 years agoexynos9610: USB: HAL: run as user root, group root system
Yueyao Zhu [Wed, 28 Jun 2017 22:47:38 +0000 (15:47 -0700)]
exynos9610: USB: HAL: run as user root, group root system

This allows USB HAL to write USB sysfs nodes.

Bug: 38352281
Change-Id: Iaf8f1bad1a0394e553996b7a42bc34745b769b16

3 years agoexynos9610: USB HAL: Use 1.1 IUsb intead of 1.0 IUsb
Badhri Jagan Sridharan [Wed, 28 Jun 2017 00:03:49 +0000 (17:03 -0700)]
exynos9610: USB HAL: Use 1.1 IUsb intead of 1.0 IUsb

Use 1.1 IUsb in order to make register the service as 1.1 compatible.
This enables lshal to recognize the hal service as 1.1 implementation.

Bug: 62917546
Test: Manually verified lshal output
android.hardware.usb@1.0::IUsb/default   0/1             782     6024 568
android.hardware.usb@1.1::IUsb/default   0/1             782     6024 568

Change-Id: I9b0817841dbcc345a1d854ee4a5193797181ea3f

3 years agoexynos9610: Usb: HAL: Update wahoo HAL
Badhri Jagan Sridharan [Tue, 13 Jun 2017 17:52:16 +0000 (10:52 -0700)]
exynos9610: Usb: HAL: Update wahoo HAL

This CL rebases wahoo HAL based on the kernel change to update
sysfs interface.

https://partner-android-review.googlesource.com/#/c/836088/

Bug: 62272992
Test: Verify USB dialog on wahoo
Change-Id: I8bc8f494176c7648abeb9783fbd18dc837793bda

3 years agoexynos9610: USB: HAL: update hal to V1_1
Badhri Jagan Sridharan [Wed, 19 Apr 2017 00:41:35 +0000 (17:41 -0700)]
exynos9610: USB: HAL: update hal to V1_1

This CL adds support to notify frameworks when an audio
or debug accessory is attached.

Bug: 36604276
Test: Manually test inserting an Audio accessory.
Change-Id: I9ec0f88ed85ed593b31132ba58bfedb51a435cd8

3 years agoexynos9610: USB: HIDL: check the status of
Badhri Jagan Sridharan [Wed, 29 Mar 2017 18:45:18 +0000 (11:45 -0700)]
exynos9610: USB: HIDL: check the status of
 registerAsService

registerAsService call could fail. Hence check the return value.

Bug: 36704362
Change-Id: I46dcd74dbee6aba72cf344f10854e5d4b1b6de18

3 years agoexynos9610: The IUsb interface uses "default" service name
Badhri Jagan Sridharan [Tue, 28 Mar 2017 21:24:00 +0000 (14:24 -0700)]
exynos9610: The IUsb interface uses "default" service name

By default, it is expected that the service does not rename itself
unless there is more than one service exposed by the interface. This
CL changes the usb hal service name back to "default" instead of
"usb_hal"

Bug: 36097487
Test: Manually tested role swap and UI behavior
Change-Id: I4a0aa4423c80cd893c578bc58b9276956daba732

3 years agoexynos9610: USB HAL: initial type-c hal
Badhri Jagan Sridharan [Mon, 13 Mar 2017 22:12:36 +0000 (15:12 -0700)]
exynos9610: USB HAL: initial type-c hal

Bug: 36097487
Test: Manually tested role swap and UI behavior
Change-Id: I5ce520da521e0714001b60164ac850dddbd644c3

3 years agoexynos9610: add slsi wpa_supplicant_8_lib to CFI paths
Jan Altensen [Sat, 15 Aug 2020 23:24:11 +0000 (01:24 +0200)]
exynos9610: add slsi wpa_supplicant_8_lib to CFI paths

Change-Id: Ib2bf001d0d104eeb2540682fd15c2df7dcf1518b

3 years agoexynos9610: proprietary-files-vendor: copy wifi debug files
Jan Altensen [Mon, 10 Aug 2020 20:26:50 +0000 (22:26 +0200)]
exynos9610: proprietary-files-vendor: copy wifi debug files

Change-Id: Ifa8af8703f1819b3393df3d0c4c6ac0a2c594981

3 years agoexynos9610: move ro.hardware.sensors to device specific repo
Jan Altensen [Mon, 20 Jul 2020 10:02:49 +0000 (12:02 +0200)]
exynos9610: move ro.hardware.sensors to device specific repo

Change-Id: I76f3efa85a6f87d05a85d8fbd8fe72fd62ce93b6

3 years agoexynos9610: update (p2p|wpa)_supplicant.conf location
Jan Altensen [Wed, 15 Jul 2020 08:48:14 +0000 (10:48 +0200)]
exynos9610: update (p2p|wpa)_supplicant.conf location

Change-Id: I857c05211f9673b885575c0a61be2a774acf8b4c

3 years agoexynos9610: remove seclable from charon, gpsd, thermald and cbd
Jan Altensen [Wed, 15 Jul 2020 04:47:05 +0000 (06:47 +0200)]
exynos9610: remove seclable from charon, gpsd, thermald and cbd

Change-Id: I471825e82b86a74fc8a59e1a024a347259467064

3 years agoexynos9610: split system and vendor props
Jan Altensen [Mon, 13 Jul 2020 03:00:53 +0000 (05:00 +0200)]
exynos9610: split system and vendor props

Change-Id: Ib09cf6c6c53254ade2a29c88354541c9f7f50ea7

3 years agoexynos9610: build all required HALs/libraries
Jan Altensen [Mon, 13 Jul 2020 03:00:02 +0000 (05:00 +0200)]
exynos9610: build all required HALs/libraries

Change-Id: I788e11867048cf19731e962cca8d3d71e4dbcf9e

3 years agoexynos9610: add manifest
Jan Altensen [Mon, 13 Jul 2020 02:46:25 +0000 (04:46 +0200)]
exynos9610: add manifest

Change-Id: I51a44bf6b4d590afa96ca03528a2b77d3e92cece

3 years agoexynos9610: add TARGET_FS_CONFIG_GEN
Jan Altensen [Mon, 13 Jul 2020 02:45:55 +0000 (04:45 +0200)]
exynos9610: add TARGET_FS_CONFIG_GEN

Change-Id: Ib9df6abaacdd4387f004687e9baccfa6ac89fdbd

3 years agoexynos9610: set ENABLE_VENDOR_RIL_SERVICE
Jan Altensen [Mon, 13 Jul 2020 02:44:12 +0000 (04:44 +0200)]
exynos9610: set ENABLE_VENDOR_RIL_SERVICE

Change-Id: If2896a5a6ce33da6078473378f50a24a94387718

3 years agoexynos9610: build libbt-vendor
Jan Altensen [Mon, 13 Jul 2020 02:42:41 +0000 (04:42 +0200)]
exynos9610: build libbt-vendor

Change-Id: I40f69d4bcd3c1a77ea38022837045e988807dad0

3 years agoexynos9610: add libaudioproxy shim
Jan Altensen [Sat, 11 Jul 2020 00:42:26 +0000 (02:42 +0200)]
exynos9610: add libaudioproxy shim

Change-Id: Ia33ba25ddda23eb015aea05d92d62d43d98c165d