Commit Graph

206 Commits

Author SHA1 Message Date
65f66db483 mondrianwifi: Remove obsolete dex settings
This block is completely redundant because..
- WITH_DEXPREOPT := true is the default
- WITH_DEXPREOPT_PIC is never read
- DEX_PREOPT_DEFAULT := nostripping has no effect when the
  BOARD_USES_SYSTEM_OTHER_ODEX flag is set to true

Test: make
Change-Id: I618a1e395ca1a14555cd50eef1a4f1aa079b553d
2021-08-26 17:00:25 +02:00
d58bd5cef3 mondrianwifi: enable support for freeform windows and picture-in-pic…
…ture

Change-Id: If0a63fc7e8455100128fa25955bb4da485fff873
2021-08-25 20:27:02 +02:00
86d54e4c12 mondrianwifi: Update loader config for media swcodec to 11
* Head at bb8f985d773f63f9e943103cb1faae5bfba8e1e1.

Change-Id: I4fb2bc8e40406b2fd8d6d002330f666b7fe5823e
2021-08-25 20:13:22 +02:00
1d09ecf73e mondrianwifi: wifi: Disable WPA2 -> WPA3 upgrade.
Our device doesn't simply support sae.

Change-Id: Ibf8b9e363b4677cf2ab9590cc2ea1ba2341e29ca
2021-08-25 20:13:22 +02:00
952d2c0fcd mondrianwifi: wifi: Move wifi related overlays to new location
Change-Id: I747d0242422b753f4e3007ce6c4bf7f124c52c5e
2021-08-25 20:13:13 +02:00
965ac43b4d mondrianwifi: Build common legacy gnss hal
Change-Id: I56095b9c3bba065779c90b6aeb61ebfed6af7e77
2021-08-25 19:29:51 +02:00
e18afdf7dd mondrianwifi: enable TARGET_HAS_MEMFD_BACKPORT
Change-Id: I3f729908f822567ff874cf909341c319e2955470
2021-08-25 18:14:03 +02:00
c8c5f50804 mondrianwifi: Drop external camera config
Change-Id: If6e611bbb7897bfbcdba5e381c62348d8d91373c
2021-08-25 16:04:05 +02:00
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