Commit graph

492 commits

Author SHA1 Message Date
ivanmeler
65301c7c08 switch to generic livedisplay hal from hw/samsung 2023-05-09 06:12:12 +00:00
ivanmeler
e43f5f4c5d Update hals defininitions 2023-05-09 06:07:13 +00:00
ivanmeler
e876ad8e50 switch to hw/samsung touch hal 2023-05-09 06:02:24 +00:00
ivanmeler
7dbb22e31a Move configs to configs folder 2023-05-09 05:56:32 +00:00
LuK1337
f13fcbe224 remove unused keylayouts 2023-05-09 05:47:24 +00:00
LuK1337
f043538251 gts3l-common: vintf: Enforce vintf manifest override
* Apparently this is now required on all non full treble devices since
  google added a sleep(1) in libhidl...

Change-Id: I9d473c88157d87c440b6f5f07776695a384f0336
2023-05-08 23:45:56 +00:00
ivanmeler
ce0dfc7fa4 Switch to new lights hal 2023-05-08 22:55:27 +00:00
ivanmeler
bcb75562a8 fix torch after camera usage 2023-05-08 22:29:40 +00:00
Paul Keith
b5e75f480d msm8996-common: Hex-edit libmmcamera2_isp_modules for P's mutex restrictions
* Google has been tightening up mutexes by disallowing calling
  pthread_mutex_destroy on an already destroyed mutex in P
* This normally isn't an issue, but Qualcomm, in their infinite
  wisdom, decided to destroy a mutex in a loop in isp_module_stop_session
  when they were freeing some related memory allocations
* This results in a SIGABRT in mm-qcamera-daemon from a
  __fortify_fatal call in HandleUsingDestroyedMutex in libc
* To work around this, phtread_mutex_destroy and phtread_cond_destroy
  moved outside of the loop so they only calls 1 time
* ASM instructions
before:
.text:00007662                 LDR             R6, [SP,#0x40+ptr]
.text:00007664                 ADD             R5, R9
.text:00007666                 SUBS            R7, #1
.text:00007668                 BNE             loc_7606
.text:0000766A                 ADD.W           R0, R6, #0x146000
.text:0000766E                 ADD.W           R0, R0, #0x5A0 ; mutex
.text:00007672                 BLX             pthread_mutex_destroy

after:
.text:00007662                 MOVS            R0, R0
.text:00007664                 MOVS            R0, R0
.text:00007666                 MOVS            R0, R0
.text:00007668                 MOVS            R0, R0
.text:0000766A                 ADD.W           R0, R6, #0x146000
.text:0000766E                 ADD.W           R0, R0, #0x5A0 ; mutex
.text:00007672                 BLX             pthread_mutex_destroy

Change-Id: I36dfab9f3afb8c9e010da8c6b02c2d9eff856c07
2023-05-08 22:04:42 +00:00
ivanmeler
fd353af1a2 Fix audio configs 2023-05-08 21:03:31 +00:00
ivanmeler
b84f00f105 wip: fix camera again 2023-05-05 12:36:10 +00:00
ivanmeler
f639d98d88 remove snap overlay 2023-05-05 08:40:10 +00:00
Deokgyu Yang
f092427739 gts3l-common: camera: Build vendor.qti.hardware.camera.device@1.0 64bit too
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I21a81abfed7fa0de6a200661af7aa0fba7ed12ca
2023-05-05 08:39:12 +00:00
Deokgyu Yang
72669029fa gts3l-common: camera: Remove deprecated TARGET_USES_QTI_CAMERA_DEVICE
* Dead as of https://review.lineageos.org/c/LineageOS/android_vendor_lineage/+/331507.
* We already build vendor.qti.hardware.camera.device@1.0
  so we have what we need.

It refers to:
  https://review.lineageos.org/c/LineageOS/android_device_razer_aura/+/331539

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I1e8c2d4cd7bb725bfc7ba5020f071b8e716a5263
2023-05-05 08:39:03 +00:00
Deokgyu Yang
a32da50c29 gts3l-common: camera: Drop TARGET_SUPPORT_HAL1 flag
As it deprecated since Android 12

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Iaf334ac6196fd642574031e16c6e4ab9872159c6
2023-05-05 08:38:53 +00:00
Deokgyu Yang
4fb6fa7365 gts3l-common: camera: Don't use Snap
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ic667e5e76f45e9bf64bf30c33e569b6ccc0e0640
2023-05-05 08:38:44 +00:00
Deokgyu Yang
92db14ea64 gts3l-common: camera: Build HIDL libs into vendor
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ie1141ebeeb0c626aebb80fec793666b46cc1b71f
2023-05-05 08:38:31 +00:00
Deokgyu Yang
dad77cceb3 gts3l-common: device: Don't use the overlay from samsung/qcom-common
Not that meaningful this time

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I0af589e0dd4f2840d1151062a45502fd47d4b1b6
2023-05-05 08:36:31 +00:00
Deokgyu Yang
f9bb4e223a gts3l-common: rootdir/etc: Start qseecomd early
Unless the device crashes few times at the first boot

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I0d48eeaf4b434280657b00753b4bf287b160f2f7
2023-05-05 08:36:15 +00:00
ivanmeler
50cc31cc70 misc 12 bringup 2023-05-05 08:35:47 +00:00
Deokgyu Yang
6eb142080f gts3l-common: sepolicy: Update SEPolicy for Android S
Roughly addressed the denials

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I0d761dca3e17d9f16fab9edf947e593fe8a66f34
2023-05-05 08:15:52 +00:00
Deokgyu Yang
2962f3cc14 gts3l-common: sepolicy: Remove tzdaemon_prop
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I68155875639b94ccf0d09c8dc93e495e1e8204be
2023-05-05 08:15:05 +00:00
Deokgyu Yang
fb9e49bd68 gts3l-common: sepolicy: Attach vendor_property_type to properties
Refers to:
4e01176578

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I67253226b0d4c7cc87851ee23040ca0c08a8fb62
2023-05-05 08:14:56 +00:00
Deokgyu Yang
aa0dc7197e gts3l-common: boardconfig: Remove TARGET_USES_64_BIT_BINDER
The TARGET_USES_64_BIT_BINDER option is deprecated and can be removed

Refers to:
https://review.lineageos.org/c/LineageOS/android_device_samsung_gts4lv-common/+/326237

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I28d5082f641350ab8a00551c1721b11e5deb87fd
2023-05-05 08:14:48 +00:00
Deokgyu Yang
cdbbc337a1 gts3l-common: rootdir/etc: Replace writepid with task_profiles command for cgroup migration
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.

Bug: 191283136
Test: build and boot

Refers to:
https://review.lineageos.org/c/LineageOS/android_device_xiaomi_gauguin/+/324467

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I0005d141f15713f277d1de3be46fd3c25de8deef
2023-05-05 08:14:36 +00:00
Deokgyu Yang
2b3b20f7b4 gts3l-common: props: Set ro.vndk.version to current
To fix the error below:
E ashmem  : memfd: ro.vndk.version not defined or invalid (), this is mandated since P

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Id019485ed9432d7780e64bacf8781656fb595248
2023-05-05 08:14:23 +00:00
Deokgyu Yang
032e66b50c Revert "gts3l-common: thermal: We don't need thermal-engine configs"
This reverts commit 253aaf67aba62889fd6286d7afec7acfcb6999be.
2023-05-05 08:13:41 +00:00
Deokgyu Yang
032e9d0ef4 gts3l-common: props: Change from sys.usb.controller to vendor.usb.controller
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ia8c97fa0b1329de46e5b1bee535689537ebb0028
2023-05-05 08:12:57 +00:00
Deokgyu Yang
487091a338 gts3l-common: device: Build AOSP bluetooth audio HAL v2.0
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: If5e934ef2268ccc59f0b90ff47846a9b11cc87e4
2023-05-05 08:11:09 +00:00
Deokgyu Yang
8240c7238e gts3l-common: device: Build netd 1.0 too
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I65f76fe499dbc25d079fb757e3d92b6acd51eb47
2023-05-05 08:10:53 +00:00
ivanmeler
160db1bfab Drop TARGET_SEC_FP_HAL_VARIANT that is obsolete 2023-05-05 08:10:27 +00:00
ivanmeler
09cdb43d71 Remove device health 2023-05-05 08:07:34 +00:00
Deokgyu Yang
99a1de97a4 gts3l-common: device: Fix typo for libcutils VNDK
What a silly mistake..

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Id362fdefc6773dc275f1aeca17d761855a4d405d
2023-05-05 08:06:39 +00:00
Deokgyu Yang
287b7552a2 gts3l-common: boardconfig: Don't use clang for building kernel
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Id1b5f016a6d8c75100e04b8149f07423ab8a8221
2023-05-05 08:05:11 +00:00
Deokgyu Yang
773cbc33d1 gts3l-common: sepolicy: Add hal_graphics_composer_default policies
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I9489d618c7ffaa9200b91ab06496a236afb18488
2023-05-05 08:00:05 +00:00
ivanmeler
85611c65ce Use nokias pm 2023-05-05 07:58:14 +00:00
Deokgyu Yang
48d2931e97 gts3l-common: fingerprint: Migrate to fingerprint HIDL v2.3
This service got uprev'd in hardware/samsung project.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I59705292f45bd76cd76355fd345d6a3495ece62f
2023-05-05 07:55:55 +00:00
Deokgyu Yang
dc14a15217 gts3l-common: device: Use v29 VNDK libs
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I2521a182c5277aa3c09f72c0265d789203a20b13
2023-05-05 07:55:08 +00:00
Deokgyu Yang
ddc2b22d6d gts3l-common: device: Shim Samsung health HAL with libutils-v30.so
This resolves the absence of the following symbol:
_ZN7android23sp_report_stack_pointerEv

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I04538953f867bcf057511240429b09cbcffbbfde
2023-05-05 07:52:04 +00:00
Deokgyu Yang
beb2f94316 gts3l-common: device: Ship cgroups.json and task_profiles.json
Google's prebuilt cgroups.json and task_profiles.json for products
launched with previous API levels only covers
ro.product.first_api_level >= 28. [1]

gts3l were launched with Nougat (API level 24), so schedtune and
task groups are completely broken. Since the system also checks
/vendor/etc for vendor profiles, make a copy of cgroups_28.json
and task_profiles_28.json and ship them to /vendor/etc. Profiles
for previous API levels are all the same anyway.

Test: boot and check /dev/stune/

[1] system/core/libprocessgroup/profiles/

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I2d57d7d0c35357d1f4fd30fb2d6f99a83ee01e84
2023-05-05 07:51:09 +00:00
Deokgyu Yang
d251e699d4 gts3l-common: rootdir: Move ueventd.qcom.rc to /vendor/etc
This is the preferred location as of Android 12.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I69bdc20ba4da0bc102d81f274cb8524673459b8a
2023-05-05 07:50:57 +00:00
Deokgyu Yang
59a92898b1 gts3l-common: rootdir/etc: Prefix 'vendor' to rild.libpath
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Idd08d8be6e08c977674884fe423d699e951b67a4
2023-05-05 07:50:45 +00:00
Deokgyu Yang
89f37e9f2b gts3l-common: device: Switch to IMapper 2.1
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I251a1840b77815d89b22fe68261fcc19e3f1e018
2023-05-05 07:50:01 +00:00
ivanmeler
07d684f38e Build more libs 2023-05-05 07:49:46 +00:00
Deokgyu Yang
4ef34a0bf4 gts3l-common: device: Add OpenGL ES feature flags
Populates a new	feature	flag to	record the level of OpenGL ES dEQP
test support.  Updates the analogous Vulkan dEQP feature flag to the
value for the next dessert release.

https://review.lineageos.org/c/LineageOS/android_device_samsung_gta4xl-common/+/322426/1
https://review.lineageos.org/c/LineageOS/android_device_samsung_gta4xl-common/+/322427/1

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I2147d46bd9fa5a3d66e2aa226687a35fd00ee488
2023-05-05 07:48:16 +00:00
Deokgyu Yang
5e9b48b387 gts3l-common: prop: Set SOC manufacturer and chipset properties
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I9fa4c80c8bd9e80c6d81dc5356892e0b6bada421
2023-05-05 07:47:45 +00:00
Deokgyu Yang
b49145b65c gts3l-common: overlay: Update SurfaceFlinger pin on all targets
This change replaces the '/system/lib64/libsurfaceflinger.so' pin, as
the file was removed in ag/12524602. The updated pin relies on
go/aog/1552085, as system_service needs read access to SurfaceFlinger.

Bug: 176197656
Test: adb shell dumpsys pinner (coral)
      - shows that /system/bin/surfaceflinger is successfully pinned
      adb logcat | grep PinnerService (coral)
      - no longer shows a file-not-found error in PinnerService

This commit refers:
https://review.lineageos.org/c/LineageOS/android_device_samsung_gts4lv-common/+/320761/1

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I58a9abaa556a41aed4710daa16989e781191e324
2023-05-05 07:47:30 +00:00
ivanmeler
118024c165 Update pinner list 2023-05-05 07:47:09 +00:00
Deokgyu Yang
22a547463d gts3l-common: prop: Set BPF support level to false
This allows a legacy device launched with Android (pre-)O and running
a pre-4.9-P+ kernel to declare itself as not eBPF capable.

This commit refers:
https://review.lineageos.org/c/LineageOS/android_device_samsung_universal8890-common/+/320655

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I47da5061fee21a70efe149a3ab160dad5f595cd8
2023-05-05 07:45:15 +00:00
Deokgyu Yang
8406038711 gts3l-common: manifest: Change shipping FCM version in the manifest
Reffered:
https://review.lineageos.org/c/LineageOS/android_device_samsung_s3ve3g-common/+/317701

"""
Shipping API level less than 24 corresponds to legacy FCM version.

This addresses the following build warning:

   Warning: Shipping FCM Version is inferred from Shipping API level. Declare Shipping FCM Version in device manifest directly.

Change-Id: Ib230c345ff7deb552597824838b8809ceefbbe8a
"""

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I7bb701d895c6e7772abeb50b2f9254c1a74d8142
2023-05-05 07:43:46 +00:00