Commit Graph

2183 Commits

Author SHA1 Message Date
followmsi 8bf29cb5bd flo/deb: Use threaded GLES render engine 2021-11-25 13:35:03 +01:00
shivatejapeddi 2d4b81e342 flo: Set BPF support level
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.
2021-11-25 13:35:03 +01:00
Kyle Harrison c7b31df92f flo/deb: props: Don't write binary XML files
- Android 12 now writes XML files in binary format by default. This can cause incompatibility with TWRP which can hang when attempting to read XML files e.g. /data/system/storage.xml

- This commit sets the persist.sys.binary_xml property to false so that XML files are written in text format.
2021-11-25 13:35:03 +01:00
Kyle Harrison 7f922c8936 flo/deb: Enable BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES 2021-11-25 13:35:03 +01:00
followmsi 04f00a2e59 flo/deb: New BOARD_SYSTEMIMAGE_PARTITION_SIZE = 1275M 2021-11-24 15:51:30 +01:00
Nolen Johnson 1b44da642f Revert "flo: fstab latemount cache too"
* This caused numerous issues. The biggest of which being that /cache's
  block device was labeled incorrectly as it was latemounted. Due to
  this, Lineage Updater would fail to write to /cache directories for
  updates, causing them to fail.

* Lesson learned, several optimizations Google included on the Pixel's
  won't work/aren't feasible on non-A/B devices.

This reverts commit ed5a9106b1dfcfa1f1790d68e49bfc1d17e285f6.

Change-Id: I21f277c6888e06453866b8fd99004f38dce07ebb
2021-11-24 15:51:09 +01:00
elektroschmock 11cdaa374f flo: fstab: Mount persist with noatime flag
If the noatime flag isn't set the atime information is updated on
every read access. This is bad for performance and flash lifetime.

Change-Id: I9d1a64e1a876dd239fc4593c2d7ffa75790f3a6a
2021-11-24 15:49:08 +01:00
Arne Coucheron 52bb1cf88a flo: rootdir: Start camera server in early_hal class
Starting it in early-boot unfortunately made it not load when
device was encrypted.

Change-Id: I62ab18927d5c9522bc70c4221a89f0489feb9f03
2021-11-24 14:38:03 +01:00
voron00 152e763519 flo/deb: sepolicy: label misc block device to resolve uncrypt denial
Fixes Settings->Erase options->Erase all data and LineageOS updater installation.

Change-Id: I193583783fa5d344ed44b98a00c3281742a67ee0
2021-11-24 14:37:51 +01:00
Nolen Johnson da21d0eac7 flo: Switch to CFQ
Change-Id: If2aeb088a70605268c4c83a8892b7a7d1b430e9e
2021-11-24 14:37:38 +01:00
Nolen Johnson 2cc170cb9a flo/deb: Disable 802.11d
* It doens't work on this device.

Change-Id: I71db69cb1c73afaead070ab29c4097b7a3727de9
2021-11-24 14:37:26 +01:00
Nolen Johnson a2663ffcb0 flo: Enable swap on vendor fstab
Change-Id: I4dbaa273a21889d6a60cd2b0de84c56daba9c4c6
2021-11-24 14:36:55 +01:00
Nolen Johnson 8c0bd88363 flo: Enable and uze ZRAM
Change-Id: Idd94fe045ee7b0a631dcc174bf3e4ad1f19fe62f
2021-11-24 14:35:58 +01:00
Sebastiano Barezzi 7ec665d669 flo/deb: Remove USE_XML_AUDIO_POLICY_CONF
* Dead since Q, where XML audio policies weren't enforced yet

Change-Id: I302a0ed97964b052176dc3bb0141db1ba85e78c8
2021-11-24 14:10:22 +01:00
Kevin F. Haggerty 20a3c27916 flo/deb: 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-11-24 14:09:48 +01:00
Kevin F. Haggerty c267d1b3e2 flo/deb: 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-11-24 14:06:47 +01:00
followmsi 7e1b4171aa flo/deb: Drop vmalloc=340M from kernel cmdline 2021-04-07 11:51:32 +02:00
followmsi dcb2c03997 flo/deb: set fdsan to warn once 2021-04-07 11:50:53 +02:00
Nolen Johnson 304415d695 flo: Allow zygote to read bluetooth_prop
* It wants to read ro.boot.btmacaddr, so lets allow it to do so.

Change-Id: If0df1d84de41db537790bf0d6504aeca20e0df50
2021-01-06 13:18:32 +01:00
Kevin F. Haggerty 5ffafc00da flo: sepolicy: Really quiet zygote reading cmdline
Change-Id: I180f434225a966a25cf4f9577e81588c7b2df9d9
2021-01-06 13:18:12 +01:00
Vladimir Oltean c70aae9da9 flo: allow uevent to control sysfs_mmc_host via vold
Change-Id: Iafea09efae38fb82f4019c6d3b3b4bb756cdca0b
2021-01-06 13:14:51 +01:00
Joey d05d27932f flo/deb: Build Trust HAL
manifest: This has been turned into a VINTF fragment.

Change-Id: I92706987f8d3094cdfb82e71e5331b7efe69e5df
Signed-off-by: Joey <joey@lineageos.org>
2021-01-06 13:09:30 +01:00
LuK1337 fca4c22681 flo/deb: 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
2020-12-21 17:31:51 +01:00
Arne Coucheron 04fd8acfbc flo: Enable TARGET_VNDK_USE_CORE_VARIANT
Change-Id: If7662231018011f5fd1780e534e6be9863394bf9
2020-12-21 17:10:03 +01:00
Bruno Martins a39217a8ea flo: Set shipping API level in the common product makefile
It's not meant to be set as a board config flag. Simply do it by
inheriting the makefile that now also exists for devices launched
with Jelly Bean.

Change-Id: I2ca1f9d207be90c58495b3e20c5e2275e09b18bc
2020-12-21 17:07:22 +01:00
Bruno Martins 7842305c90 flo: 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
2020-12-21 17:05:09 +01:00
Arian fa28dd49e5 flo: Build new aidl qti power HAL
Change-Id: I4bdea354e54d34d0dfe9b811e228fc6f8762d2ed
2020-12-21 17:03:57 +01:00
dianlujitao 0a8424ef1d flo: Switch to binderized QTI power HAL
Change-Id: I82e8386c2f3f02f408f5ac374e6f1c486b94bb29
2020-12-21 17:03:19 +01:00
Kyle Harrison 02057d8087 flo: sepolicy: Allow access to vendor_security_patch_level_prop
Change-Id: I0d94c97866248b07a30b1ce4dd0d506939dae78c
2020-12-21 16:59:56 +01:00
Daniel Jarai 9c25436315 flo: sepolicy: fix HWC related denials
Change-Id: I55d04db97bcdbbb2f5e05377c2a7dc617d136225
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-12-21 16:59:18 +01:00
surblazer 08ee8a582a flo: sepolicy: resolve denials for advanced reboot
Change-Id: I3aade1604efb2f2b2939c1831c2b448843bb66d1
2020-12-21 16:58:46 +01:00
Arne Coucheron 65bdcd8c23 flo: sepolicy: Resolve last_kmsg denials
Change-Id: Ib6a00d0c14eb03f1e16b24471736a0b84371152c
2020-12-21 16:58:26 +01:00
Francescodario Cuzzocrea d939b1911d flo: sepolicy: address servicemanager denials
Change-Id: I9014990b02998afc3ce4256c84995b8571bfde7c
2020-12-21 16:57:55 +01:00
Bruno Martins 8a4b0735be Revert "flo: sepolicy: Address hal_graphics_composer_default denials"
This reverts commit bac27239a4.

Reason for revert: 480fed5c24

Change-Id: I48ba8a6b189b00916a42a7488f0a81a1829036ff
2020-12-21 16:50:46 +01:00
Arne Coucheron 4218a1eb9e flo: media: Use media_codecs_google_video_le
It's better suited for low-end devices.

Change-Id: Ida6818173f17a25e4ae72750b5fd016c3858d2ea
2020-12-21 16:46:33 +01:00
Elektroschmock 7502ebc58a flo: Drop USE_DEVICE_SPECIFIC_CAMERA
Change-Id: I254a85b85380f53b105f01b33ff49a35d56214aa
2020-12-21 16:45:07 +01:00
Elektroschmock 2b5d8caee4 Revert "flo: Use mke2fs to create ext4 images"
* Not needed as of: https://review.lineageos.org/c/LineageOS/android_build/+/242400

This reverts commit 562129c58e.

Change-Id: I0127ed8fd9a97d2289dfd3c8dbb6571d64bb6eb3
2020-12-21 16:44:42 +01:00
Daniel Jarai 38d606e5d8 flo: conn_init: Remove unused file
Change-Id: I3271b250c084881997d7672845fa6d1494621e8b
(cherry picked from commit 6981cd1d0bef8272727dbf008dff0d6663331c7a)
2020-12-21 16:44:05 +01:00
surblazer 8a4ab089bc flo: Binderize Lights HAL
Change-Id: I35f9a4711cb96f03314f621b8675b1da0ba99f5c
2020-12-21 16:43:45 +01:00
Daniel Jarai d8c6d1aad3 flo: Move QCamera sockets from /data to /dev/socket/qcamera
Change-Id: I0241f6e0a3f56f0bbe34bb44997596d074efcec9
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-12-21 16:41:33 +01:00
Daniel Jarai 698082de71 flo: sensors: Move sensor sockets from /data to /dev/socket/sensors
Change-Id: I0e238d10cbaf7f9560f1993f03a8c9cc6c7e1195
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-12-21 16:39:12 +01:00
Daniel Jarai b496e07b28 flo: sensors: Run the sensor daemon as 'system' user/group instead of 'root'
This allows us to get rid of the dac_override SELinux rules, by applying
proper permissions to the files managed by the daemon. While at it, also
Treble-ized the location of said files.

Change-Id: I344b4c80412af0b22dc35da234ef3c9f88983761
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2020-12-21 16:38:00 +01:00
followmsi 787d022196 flo/deb: Allow adb root 2020-12-15 14:19:05 +01:00
Quallenauge 04ca9c855e flo: wifi: Disable WPA2 -> WPA3 upgrade.
Our device doesn't simply support sae.

Change-Id: Ibf8b9e363b4677cf2ab9590cc2ea1ba2341e29ca
2020-12-15 11:57:52 +01:00
followmsi bc9e2b536c Revert "flo/deb: disable wlan PMF"
This reverts commit 32da607fe2.
2020-12-15 11:56:48 +01:00
followmsi bb8d21d0e9 flo: overlays: Drop GPS config
Moved to CarrierConfig
2020-12-14 15:44:11 +01:00
followmsi 517291bfbf flo: overlays: Add Pinner Service 2020-12-14 10:38:52 +01:00
followmsi 012c9abc15 flo: overlays: Add missing strings 2020-12-14 10:36:07 +01:00
Artem Borisov 5f5b5b4993 flo/deb: Enable some UX optimizations
* These were removed in 0570b23 and 3d4186f as I blamed them
  for UI performance degradation.
* Further testing shows that they actually reduce jank in some cases.

Change-Id: I6f3ae240366cc49e1a25d2f76ddd847ced0fb8f4
2020-12-13 16:18:19 +01:00
Bruno Martins 3555d2833a flo/deb: Kill legacy keystore
Legacy credential hash support was obsolete and got removed completely.
From now on all the devices need to rely on gatekeeper, which
in case of legacy devices should be the software implementation.

This fixes setting a lockscreen PIN/password/pattern.

Ref: a758727c96

Change-Id: I020d1807db13b73f9990ac3704eadba49b65ee5c
2020-12-13 16:14:28 +01:00