Commit Graph

198 Commits

Author SHA1 Message Date
87aa83a89d mondrianwifi: 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-08-25 15:50:10 +02:00
54dd274635 mondrianwifi: Move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2021-08-25 15:47:55 +02:00
b485245b82 mondrianwifi: Import stock Dalvik heap overrides
Change-Id: Ifac6650a874cf982a6e767da92599d4b6230a637
2021-08-25 15:35:43 +02:00
ca4c9a2abf mondrianwifi: Create media_profiles_V1_0.xml
media_profiles_V1_0.xml is created from media_profiles.xml by replacing
the dtd schema inside media_profiles.xml with an external reference to
/system/etc/media_profiles_V1_0.dtd.

Change-Id: I0fbb03603a72d0108a96bfa0f0a4ceb12ef3d430
2021-08-25 13:50:05 +02:00
b778e35273 mondrianwifi: Enable v1.3 clearkey drm plugin
Bug: 139134043
Test: MediaDrmTest
Change-Id: Ie34e59947577988f75fae52d22e3f573f4b92420
Signed-off-by: Arian <arian.kulmer@web.de>
2021-08-25 11:00:17 +02:00
f2648c708e mondrianwifi: Clean up camera wrapper
- Clean up formatting
 - Clean up logging
 - Clean up method calls
 - Staticise all the functions

Change-Id: If14611e9fdd3ee7f83611204ea51d8b004209ad4
2021-08-25 09:47:30 +02:00
ee432f65ae mondrianwifi: Force build scudo free 32 bit variant of libc.
We have issues with camera blobs which doesn't play
well with scudo allocation/deallocation tracking.
Scudo reports corrupted header when stopping a
video recording.
Because we aren't alone with this (also upstream seems
to have trouble with camera modules) use the 32 libc
which is used only by a few components, like camera
and audio.

Because docs states, that libc with the svelte take less RSS,
but is a little bit slower.
https://android.googlesource.com/platform/bionic/+/master/docs/native_allocator.md
This is the reason to not enable this target wide.

Change-Id: Ic0d950817238a227218f59b95e5fd2ffd66e786a
2021-08-25 09:32:32 +02:00
0aef4ba07f mondrianwifi: Build Clearkey 1.2 plugin and update vintf
Also remove the widevine plugin we don't have

Reference:
LineageOS/android_hardware_interfaces@lineage-17.0/drm/1.1/README.md

Change-Id: Ie4ea8d79496ba6181ef6c45b0ce0a993a3e442c4
2021-08-25 08:42:05 +02:00
2960cf34dc mondrianwifi: Set TARGET_DISABLE_POSTRENDER_CLEANUP := true
To fix the bad UI lag we are experiencing.

Change-Id: I3edb25f93c58b87431a1802726f31123200f75d3
2021-08-25 07:57:51 +02:00
a491e98a5d mondrianwifi: disable console 2021-08-24 23:24:47 +02:00
f55c9baae9 mondrianwifi: Drop OVERRIDE_RS_DRIVER
* So, this one from bullhead can cause everything to get janky AF
  every time RenderScript is actually used, and finding one that
  actually loads (no missing symbols) AND actually works well is,
  well, challenging. The device works fine with the normal
  non-adreno driver in AOSP, so let's use that until/unless we find
  an actually working adreno driver.

Change-Id: I4ab19269eb49f5f2aed375d9055d68c1b9835f69
2021-08-24 22:42:56 +02:00
8f20026212 mondrianwifi: remove IAdaptiveBacklight, IDisplayModes, IReadingEnhancement, ISunlightEnhancement not supported 2021-08-24 21:18:10 +02:00
ad7cd522f9 mondrianwifi: remove IGloveMode not supported 2021-08-24 20:39:44 +02:00
5bb76637ab mondrianwifi: Declare IStylusMode for vendor.lineage.touch in vintf ma…
…nifest

* The cmd_list node exists, and it contains hover_mode, so
  isSupported() returns true. Not having a supported interface
  declared leads to boot-breaks starting with R.

Change-Id: If2081dc796ff1a33043d9894aa556028d4aa2d68
2021-08-24 19:59:19 +02:00
1668cce888 mondrianwifi: Drop interactive power extensions
What this do is only write to core_ctl nodes every time the
screen turns on and off, as the new Lineage power HAL decides
to just change the migration value rather than messing with
cores, we may drop this as well.

Change-Id: I318268842aa0a4680883990bb8076e224ca9234d
2021-08-24 19:03:46 +02:00
e2c6d0eb2c mondrianwifi: build sensors 2021-08-24 18:54:20 +02:00
13fae377f8 mondrianwifi: ueventd: Don't modify permissions of /dev/hw_random
This addresses an underlying problem since /dev/hw_random is used. The
issue is that EntropyMixer, which runs in system_server, needs to read
from /dev/hw_random, but thanks to our qualcomm ueventd, EntropyMixer
can never accress this node, resulting in warnings like this:

W EntropyMixer: Failed to add HW RNG output to entropy pool
W EntropyMixer: java.io.FileNotFoundException: /dev/hw_random (Permission denied)

AOSP ueventd handles this well, so just remove this line to get things
back to stage. This issue was never exposed because Google derps the
logging here, which is already fixed on Pie.

c78a463e87

Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
2021-08-24 18:47:45 +02:00
2afca3631b mondrianwifi: Set PRODUCT_ENFORCE_VINTF_MANIFEST_OVERRIDE := true
* Apparently this is now required on all non full treble devices since
  google added a sleep(1) in libhidl...

Change-Id: I6d8492dd7c56bfdb2ca00f3477634a46fa55b1c0
2021-08-24 18:39:35 +02:00
9809970dde mondrianwifi: move touch from hwbinder to passthrough as msm8974-common 2021-08-24 18:21:29 +02:00
eab5739dfa mondrianwifi: move audio from hwbinder to passthrough as msm8974-common 2021-08-24 18:15:19 +02:00
3e84849d8f mondrianwifi: move DRM from passthrough to hwbinder
Change-Id: Idefd27539d3124a40b2be98e3f50666077d05c48
2021-08-24 18:11:45 +02:00
baad742cc3 mondrianwifi: Build Samsung LiveDisplay service
Change-Id: I74d38aa0df3179bb00b942135e8ff055aa8a5658
2021-08-24 18:07:51 +02:00
5875421e88 mondrianwifi: Switch to IMapper 2.1
Test: display CTS
Bug: 62535446
Change-Id: I2d6d0d118014eb2b99a6832b4c900ae21c062517
2021-08-24 18:04:18 +02:00
4d9ff01386 mondrianwifi: Binderize them all
* Switch to binderized HAL services as possible and update
   HIDL manifest accordingly.

Change-Id: Id50291488d655187aa013c51bdd6890dca010564
2021-08-24 18:02:53 +02:00
a76acd5eb6 mondrianwifi: manifest: Remove widevine instance
In Q, this looks like it's making the system wait for a
specific widevine service, which we don't have.
Removing this appears to make L3 start working again.

Change-Id: Ib410029519e1d3cb0f0f3a5aa553976b36bca8c3
2021-08-24 17:59:54 +02:00
071d4125da mondrianwifi: 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
2021-08-24 17:58:39 +02:00
f5026de1b6 mondrianwifi: Build 2.1 health HAL
The devices fail to boot otherwise.

Change-Id: I5bc6ae361a5319224b87ef6a4d7127b6b5bc9a97
2021-08-24 17:57:56 +02:00
ea608f5149 mondrianwifi: Build new aidl qti power HAL
Change-Id: I4bdea354e54d34d0dfe9b811e228fc6f8762d2ed
2021-08-24 17:55:35 +02:00
64c6461c7d mondrianwifi: 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
2021-08-24 17:53:55 +02:00
285323c2ee mondrianwifi: wifi: move wpa_supplicant VINTF definition to wpa_sup…
…plicant module

Bug: 36505680
Test: atest FrameworksNetTests
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Test: connect EAP access point and verify PMK cache works correctly.
Change-Id: I2c382765b8e84951fc17bb9f1c3785dcd66e7b51
2021-08-24 17:53:09 +02:00
21b2500bad mondrianwifi: Remove vintf entries that are now fragments
Change-Id: I22b105b1340dff648bc5011b80f735b33d5fe370
2021-08-24 17:52:02 +02:00
821c487d48 mondrianwifi: Move graphics composer to hwbinder
The passthrough impl is dead as of Android 11 QPR1.

Change-Id: Ic10e93398363f03551afe39715cb664bbbce1683
2021-08-24 17:50:20 +02:00
9fcfe4da27 mondrianwifi: manifest: Remove Trust interface entry
This has been turned into a VINTF fragment.

Change-Id: Iaf53a2e1fbac75d53ec11d4c56c51230f4758daf
2021-08-24 17:26:52 +02:00
5c5f6614a9 mondrianwifi: Increase zram size to 50% 2021-08-24 15:44:07 +02:00
63b9769273 mondrianwifi: Remove USE_XML_AUDIO_POLICY_CONF
* Dead since Q, where XML audio policies weren't enforced yet

Change-Id: I302a0ed97964b052176dc3bb0141db1ba85e78c8
2021-08-24 08:10:06 +02:00
df7c3ee73f mondrianwifi: Define shipping FCM version in the manifest
Shipping API level less than 26 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
2021-08-24 08:09:19 +02:00
f0e76be7d8 mondrianwifi: Use XZ compressed ramdisks
Old LZMA_RAMDISK_TARGETS is deprecated.

Change-Id: I3b9205500bb1777ff0f7caa5a6a61fcacdeb6ad6
2021-08-24 08:00:49 +02:00
d884bb1def mondrianwifi: gps: Replacing copy headers with header libraries
Bug: 33241851
Test: Build target and pass CTS location tests
Change-Id: I75db5e6de3c4194a6a46e0d37fcd899ea1d1db04
2021-08-23 21:14:20 +02:00
Valera1978
470785f827 remove low memory option 2021-03-05 11:07:07 +03:00
Valera1978
038c8ea307 add camera wrapper 2021-03-05 11:06:27 +03:00
Valera1978
a3a18843ad update symlinks - thanks @notGarrison 2020-07-15 16:25:09 +03:00
Valera1978
eb9ce0ba2c update readme 2020-05-26 11:28:57 +03:00
Valera1978
9601eb6cb8 Use sdfat for exfat and vfat 2020-05-26 11:25:10 +03:00
Valera1978
0a2ae82e4c back to SM-T320 mixer, fix video recording 2020-05-26 11:25:10 +03:00
Valera1978
949d22db81 remove netmgrd service 2020-05-26 11:25:10 +03:00
Valera1978
e217cca34e Disable SF Latch Buffer Signaled property 2020-05-26 11:25:10 +03:00
Valera1978
ba47993bbc update interfaces 2020-05-26 11:25:10 +03:00
Valera1978
b0acb38d06 Use sdfat for exfat and vfat 2020-05-26 11:25:10 +03:00
Valera1978
838c760d4f Add /dev/alarm rule to device ueventd.qcom.rc
* AOSP removed this as a platform-wide rule since it is "...not
  present on Pixel devices". As it turns out, our RIL gets grumpy
  and won't latch a data connection if it cannot open the device.
* own/mode aligned to AOSP values from before the change

* E RILD    : ElapsedRealTime() Cannot open file /dev/alarm

* ref: LineageOS/android_system_core@16cdffe

Change-Id: Ib369e4b76653a412d75a3c8c37ee283f8c8e9239
2020-05-26 11:16:32 +03:00
Valera1978
f9558e890f back to old powerhal 2020-05-26 11:14:51 +03:00