Commit Graph

100 Commits

Author SHA1 Message Date
ae0eb756ee msm8974-common: 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]

Oneplus 5,5t were launched with Nougat (API level 25), 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: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Change-Id: If8c09fa1868f60a451ced9e094e5796e46545fc0
2022-12-10 20:21:52 +01:00
3431b3798f msm8974-common: Build mock hidl power stats
* Fix for hidl power stats errors.
- Now with this we fixing both errors:
BatteryStatsService: Unable to load Power Hal or power.stats HAL
hwservicemanager: getTransport: Cannot find entry android.hardware.power.stats@1.0::IPowerStats/default in either framework or device manifest.
hwservicemanager: getTransport: Cannot find entry android.hardware.power@1.0::IPower/default in either framework or device manifest.
2022-12-02 21:24:38 +01:00
25b53ebb61 msm8974-common: Inherit several Android Go configurations
Beneficial for everyone, even on non-Go devices.
2022-11-27 16:29:24 +01:00
1238d5b4d0 msm8974-common: Speed profile services and wifi-service to reduce RAM and storage 2022-11-27 16:28:14 +01:00
c1c2ca26da msm8974-common: Uprev to audio 7.1 2022-11-26 19:45:43 +01:00
6850a3ff78 msm8974-common: Add custom audio service
with reverts of:
LineageOS/android_hardware_interfaces@3f8f599
LineageOS/android_hardware_interfaces@d90c474

Fixed bluetooth audio
2022-11-26 19:42:50 +01:00
4e8c9b2b08 msm8974-common: Drop support for Snapdragon Camera
* Won't be implemented this cycle (or ever again hopefully).

Change-Id: Ie2a346319dfe814deaf9833cb31640505cc6b7dc
2022-10-09 12:19:36 +02:00
a55aeeba2a msm8974-common: Switch to health AIDL HAL
Change-Id: Icbb7194943388679abd25b2dbd105424c34496a1
2022-10-09 11:57:25 +02:00
824be3531e msm8974-common: Switch audio HAL to V7 2022-10-09 11:57:18 +02:00
becaedc12d msm8974-common: drop audio.a2dp.default
- building from here
  https://github.com/LineageOS/android_build/blob/lineage-18.1/target/product/full_base.mk\#L35

Change-Id: Ib71c1abd381468ec3621d60e5ca959f738f51168
2022-09-24 12:48:53 +02:00
Janis Danisevskis
83085fd5b3 msm8974-common: update keymaster to 4.1
Remove keymaster 3.0 entries and update to 4.1.
2022-08-18 11:42:31 +02:00
dianlujitao
a15c8e8f7d msm8974-common: Uprev to audio hal 5.0
Audio hal 2.0 was deprecated in Android 12.  Using audio hal 6.0 causes
a bootloop during OS startup so we use 5.0 for now.
2022-08-18 11:42:13 +02:00
Tim Zimmermann
d5e6bcaee5 msm8974-common: switch to new AIDL light HAL
Old hardware.light hidl will cause OS to get stuck at boot animation.
2022-08-18 11:40:53 +02:00
Michael Bestas
10eedbc70b msm8974-common: Don't build tinymix
* This tool can be built manually for debugging cases,
  there is no need to ship it in production

Change-Id: I9ab8b076b4bede70c368c198960ceabc68dad65b
2021-04-12 13:41:41 -04:00
Kevin F. Haggerty
dbc57d889c
msm8974-common: 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
2021-04-09 10:20:09 -06:00
Kevin F. Haggerty
1b4cc55e16
Revert "Revert "msm8974-common: Build and enable fastbootd""
This reverts commit fd7fe5dd86.

Change-Id: Ie729c8ecd70fe0a92f54be9f3f20d89de032b861
2021-01-14 06:41:27 -07:00
Nolen Johnson
87e7dd6201
msm8974-common: Cleanup dead targets
Offending entries:
audio_policy.msm8974
build/make/core/main.mk:1136: error: Build failed.

Change-Id: I0e4d93f4c3be077d49befa1f547d11d623ca74d5
2020-12-30 12:55:16 -07:00
Kevin F. Haggerty
fd7fe5dd86
Revert "msm8974-common: Build and enable fastbootd"
* This seems to be wholly dead for legacy functionfs. Pour one out,
  she led a great, yet short-lived, life.

This reverts commit 53fd5b0828.
This reverts commit 8b07abf736.

Change-Id: I494769c2106638d8e442f43dfedf399e7f90aa9e
2020-12-30 07:42:55 -07:00
Bruno Martins
30833334a5
msm8974-common: Move graphics composer to hwbinder
The passthrough impl is dead as of Android 11 QPR1.

Change-Id: Ic10e93398363f03551afe39715cb664bbbce1683
2020-12-14 13:43:45 -07:00
Arian
684a57b5dc
msm8974-common: Build new aidl qti power HAL
Change-Id: I4bdea354e54d34d0dfe9b811e228fc6f8762d2ed
2020-12-12 10:00:39 -07:00
Amit Pundir
85a6137a28
msm8974-common: Add gatekeeper software HIDL service.
Use the default software implementation of gatekeeper.

Change-Id: Id696752ad78047155cad6a5dafe7ca1b4fe86345
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2020-12-12 10:00:39 -07:00
Kevin F. Haggerty
3111569cd9
msm8974-common: Ship libcutils-v29.so for use by libsec-ril*.so
* libsec-ril*.so files need strdup8to16, which is is dropped in the API
  30 library, but can be found in the API 29 prebuilt.

Change-Id: Iaa54b061048a00f832d18396a82212905af0fd7e
2020-12-12 09:06:36 -07:00
Kevin F. Haggerty
b59ddb8101
msm8974-common: Use libprotobuf-cpp-lite-v29.so for libwvdrmengine.so
* libwvdrmengine.so needs _ZN6google8protobuf8internal13empty_string_E
  which is dropped in the API 30 library, but can be found in the
  API 29 prebuilt

Change-Id: I39e3251d53b14f3325282b12e6a6bf741ebcf63a
2020-12-12 09:06:36 -07:00
LuK1337
77c7d91b39
msm8974-common: 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: I6d8492dd7c56bfdb2ca00f3477634a46fa55b1c0
2020-11-30 22:21:22 -07:00
Bruno Martins
ae581bc02d
msm8974-common: Build 2.1 health HAL
The devices fail to boot otherwise.

Change-Id: I5bc6ae361a5319224b87ef6a4d7127b6b5bc9a97
2020-11-30 22:21:22 -07:00
Wang Han
b9a1d97191
msm8974-common: Switch to TimeKeep
* SE policies are imported and modified from
   https://github.com/sonyxperiadev/device-sony-sepolicy.
   Modifications are needed because qcom legacy policy
   contains conflicting labels and rules.

Change-Id: Id04a824dea69976f6fc9d48bef77859cc82971ed
2020-09-07 05:28:51 -06:00
Kevin F. Haggerty
d9fdcde7d2
Revert "msm8974-common: Make the external camera provider ignore internal cameras"
* Even though camera.device@3.4-external-impl still will look for the
  file, this is seemingly no longer required in Q due to changes
  elsewhere in the stack.

This reverts commit cf207232cb.

Change-Id: Ibd19f4d7abeafb7f4d8af1ca6226d6065058538c
2020-09-06 04:12:07 -06:00
Arne Coucheron
7f220cbdb2
msm8974-common: Build common legacy gnss hal
Change-Id: I56095b9c3bba065779c90b6aeb61ebfed6af7e77
2020-06-26 18:07:43 -06:00
Bruno Martins
eac9496d05
msm8974-common: Binderize them all
* Switch to binderized HAL services as possible and update
   HIDL manifest accordingly.

Change-Id: Id50291488d655187aa013c51bdd6890dca010564
2020-05-29 12:14:16 -06:00
Sean Callanan
05bc27344c
msm8974-common: Switch to IMapper 2.1
Test: display CTS
Bug: 62535446
Change-Id: I2d6d0d118014eb2b99a6832b4c900ae21c062517
2020-05-15 10:43:56 -06:00
Alessandro Astone
53fd5b0828 msm8974-common: Build and enable fastbootd
Change-Id: I0b20600fe7203a7aec19cbea8f6849052585c6ab
2020-04-27 18:49:42 -04:00
Wang Han
853a30dffe
msm8974-common: Import loader config for media swcodec
* This config needs to be modified for legacy devices. As
   there is no easy way to split it, import it into device
   tree and bind mount it instead.

 * Head at android-10.0.0_r2
   (3ac371484399da6efbd0c835aa461d3326263ab1).

Change-Id: I8d5003d7cd3a471c569844aede4b5ea4c68ae36b
2020-04-25 14:27:00 -06:00
Michael Bestas
5fd2d661c8
msm8974-common: Update to power HAL 1.2
Change-Id: Ic8c5f7e9c77a95befff5661e1634683ec6c25ac4
2020-04-24 18:56:19 -06:00
Bruno Martins
dbe62622f8
msm8974-common: Switch to legacy Wi-Fi service
Change-Id: I690bc80349e47907a29a89b8a6f96659f1c61aba
2020-04-24 18:45:40 -06:00
Bruno Martins
ffa2231296
msm8974-common: Drop mediaextractor seccomp policy
These syscalls are now allowed by default.

Change-Id: I405f609d030331e19031612cbd912a54a3c72339
2020-04-24 16:20:43 -06:00
Kevin F. Haggerty
b46d020e98
msm8974-common: Build the Samsung hwbinder light service
Change-Id: I33c259766914a5a714b05b59735ee2a8d70b0a5c
2020-04-24 15:44:37 -06:00
Paul Keith
5006db0ec0 msm8974-common: Remove unnecessary keylayout files
* Nothing uses these keylayout files

Change-Id: I477445fd226f5fc77125fa5706e42cd8e0fe8b02
2020-03-31 19:23:55 +02:00
Paul Keith
95faaa3643 msm8974-common: Migrate all properties system.prop
* We already set props via system.prop, so let's not mix
  and match between that and PRODUCT_PROPERTY_OVERRIDES.

Change-Id: I92c6863b8393640e2239decd7f089ee890b3c7f7
2020-03-26 17:46:41 +02:00
Paul Keith
50045fa46e msm8974-common: Transition to consumerir HIDL hal
Change-Id: I85950a46eebec0e9a4b34681b2042467231b33b3
2020-01-31 15:08:24 +01:00
Kevin F. Haggerty
66b282da2e
msm8974-common: Build Samsung LiveDisplay service
Change-Id: I74d38aa0df3179bb00b942135e8ff055aa8a5658
2019-05-07 07:20:49 -06:00
Paul Keith
c036f18fe2
msm8974-common: Build vendor.lineage.touch HAL from hardware/samsung
Change-Id: I6eca1e9875cb5793a3a45c6e77bc201946ebd897
2019-04-10 06:45:59 -06:00
Joey
021211d1ea
msm8974-common: Build Trust HAL
Change-Id: I2a426b2c2dda70f41e3c3ea6f85905b0daf65f0d
Signed-off-by: Joey <joey@lineageos.org>
2019-02-24 06:57:36 -07:00
Michael Bestas
a88e2e277a
msm8974-common: Move media configs to vendor
Change-Id: Iffa5bfcac6e363ddd320ef3af5ccdc8c55f7942f
2019-02-19 07:58:26 -07:00
Bruno Martins
99b3981287
msm8974-common: Allow media UID process to access CameraServiceProxy
* This fixes the following error on camera-in-mediaserver devices:

   E CameraService_proxy: Calling UID: 1013 doesn't match expected  camera service UID!

Change-Id: I185e34e8983b286436bfc0fe36cfdf260ef78170
2018-12-31 15:22:36 -07:00
Daniel Jarai
cf207232cb
msm8974-common: Make the external camera provider ignore internal cameras
* The external camera provider occupies our camera v4l2 nodes,
  potentially crashing the kernel driver and blocking the camera HAL.
  Unfortunately, there's no easy way to just disable it, so let's just
  tell it to ignore the internal video devices.

Change-Id: I00c67de1b94a1f7eca1bf458d1d0e4de3507aa81
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
2018-11-12 20:35:01 -07:00
Michael Bestas
482de62af8
msm8974-common: Switch to 1.1 power HAL
Change-Id: I4690a5b913141427a828d6a3a4af407d35a10775
2018-10-06 08:34:19 -06:00
Kevin F. Haggerty
e1b8705691
msm8974-common: Build binderized samsung8974 sensors service
Change-Id: I85010c4ab26c771c585e0dc65d14552853f147c2
2018-09-21 16:02:05 -06:00
Kevin F. Haggerty
68ef2d47da
msm8974-common: Commonize camera packages and manifest entries
Change-Id: I348680ccf6541b13289d1470c7e91111be4992c0
2018-09-15 11:52:02 -06:00
Bruno Martins
d0d2796406 msm8974-common: Switch to common basic USB HAL
Change-Id: I0e0809a2338f006063c5160bb7aec36a555cebab
2018-09-05 22:53:22 +02:00
Hashbang173
5e3b3ba5e3 msm8974-common: Enable HWC2on1 adapter
* This fixes display (see: d265c42386)

Change-Id: Ic749a38828563be7dacd005aeb91dbce3121ae07
2018-08-20 17:53:16 -06:00