Commit graph

802 commits

Author SHA1 Message Date
LuK1337
a27417bb81
Revert "config: BoardConfigReservedSize: Prevent overlayfs on remount"
Reserving 8MB does not guarantee that free blocks will be >= 1%, so not
only this doesn't work properly, but also breaks builds for some
devices.

This reverts commit 3940fb4240.

Test: breakfast kebab && WITH_GMS=true m
Change-Id: I330570dc6fc9efca5629358a0b149f131d36ba18
2024-04-27 13:36:30 +02:00
Yumi Yukimura
675e3637ed config: device_framework_matrix: Add lineage.hardware.radio.config
Change-Id: I013f75d64b5d909c45e3f876f8e46f9958a728b9
2024-04-26 14:52:21 +00:00
Bruno Martins
4ffd90db94 Revert "Hookup SDMCORE_HAS_IS_DISPLAY_HW_AVAILABLE_FUNC"
This reverts commit bc8d7739ac.

Reason for revert: no longer needed when using blobs that match tag
DISPLAY.LA.3.0.r1-10700-KAILUA.0.

Change-Id: Ia89ce566a4cade6091a2dc6bc4e8b56ef7d1f73b
2024-04-22 21:19:09 +00:00
Nolen Johnson
3940fb4240 config: BoardConfigReservedSize: Prevent overlayfs on remount
* When we remount partitions via `adb remount`, a scratch partition
  is made for overlayfs to use - this takes up space and breaks OTA.
  The end user /could/ run this to fix it:
  `adb reboot fastboot && fastboot delete-logical-partition scratch && fastboot reboot`
  But that's bad UX, remount should work. This ensures that with or without GMS,
  we reserve some space on all dynamic partitions.
* Set amount to `8 * 1024 * 1024` + 1 for good measure.
* Don't reserve this amount of `-user` builds as we don't remount
  there.

Change-Id: I969aea92747a17ceca299e109c6e0ab563951374
2024-04-21 16:46:02 +00:00
LuK1337
5fff206e72
config: Enable settings large screen optimization for tablets
This was set to true by default prior to U QPR2.

Test: Open settings and notice that dual pane layout is back
Change-Id: Ide44ecbe7e30d6bf26d9c9358e46c71b35c66250
2024-04-21 10:04:31 +02:00
Michael Bestas
5d26fdd797
config: Include AudioTv.mk on atv
Change-Id: Id6cf181c35032b44ab705b62bc9600f5b4f171bb
2024-03-23 01:55:58 +02:00
Michael Bestas
91592bd204
config: Remove deprecated vendor.lineage.trust from FCM
Change-Id: Ie5c05b460015c38895df56292a5670ca6dad17e6
2024-03-21 10:33:08 +02:00
Aaron Kling
8e49671f1f config: Build simple Settings provisioning service
Similar to SimpleDeviceConfig, this allows devices to initialize options
in the normal settings storage.

Change-Id: I58ae47dc21b0d85ac1ec01afda187820919fef7f
2024-03-07 11:58:59 -06:00
Michael Bestas
fccfeff785
config: Fix build when WITH_SU is set
Change-Id: I95ac8ae2725279a95c11ae898ebfd44a6fa0f10e
2024-02-29 22:48:31 +02:00
Tom Pratt
fc39d90588
Disable mobiledata by default with sys prop
Replaces old SUW logic with AOSP's built in mechanism.

Change-Id: Ia210842f97b2da9bc7ed49044837df836a7a884e
2024-02-28 17:07:37 +02:00
Michael Bestas
77226cac60 config: Define SetupWizard theme properties
Change-Id: Ib35578aebc19d8cf2ef4cf3bc0b4acb3f04a89a1
2024-02-25 23:14:07 +00:00
Michael Bestas
3e40451715 config: Include AudioPackage14.mk
Change-Id: I3c02322ec5d4cb2242193dbd3b120a8a1842a63a
2024-02-21 18:22:37 +00:00
LuK1337
eaa2614343
config: Ship EmergencyInfo on WiFi only tablets
Change-Id: I89e16f716076d5351949c0bb13f55fc4eaeee4f5
2024-02-17 18:31:40 +01:00
Timi Rautamäki
7dd2be50b1 Revert "overlay: Decommonize long press power action"
This reverts commit 5c5c497acd.

Change-Id: Iaaa9d1c2aa0704d2f09f7b979e08057f25b74e5c
2024-02-16 17:41:20 +00:00
Luofan Chen
bc8d7739ac Hookup SDMCORE_HAS_IS_DISPLAY_HW_AVAILABLE_FUNC
Change-Id: Icb4b8aebd8042e9f83bacddee1e7949cf373226d
2024-02-16 00:26:40 +00:00
LuK1337
8a7f230bda config: Build Glimpse
Change-Id: Id44fd41c05b5202c88c8ae4ca4958074268784af
2024-02-13 16:33:20 +00:00
Nolen Johnson
afb819d70c config: Move audio includes back to mobile
Emulator (cuttlefish) is inherited and sets default sound properties,
which conflict at build time with Lineage defaults, breaking `car_gsi`
targets.

Change-Id: I3fb099a77394f8eb4613445c2410d7f568b8a3f5
2024-02-12 17:14:39 +00:00
Aaron Kling
5c5c497acd overlay: Decommonize long press power action
The global actions overlay cannot be controlled by a controller, so
should not be available on atv.

Change-Id: I1849d8f07abd1794ab613368354dadebd88331c8
(cherry picked from commit 00311ddb04cef25418ba03bc561bee65d4158704)
2024-02-11 20:39:28 +00:00
Nolen Johnson
68642ca994 lineage: partner_gms: Allow GMS that isn't partner
* Other inline packages rely on WITH_GMS for space reservations.

Change-Id: Iacc4b01a49f7d44f800faff7bb7072f239e38495
2024-02-08 07:25:59 +00:00
Bruno Martins
abe8aa5563 common: Dexpreopt CarSystemUI with the speed compiler filter
Change-Id: I191e718a4279d915a5c786c2f2067d6f73c223b3
2024-01-21 21:47:14 +00:00
Bruno Martins
24d1e5acb9 config: Commonize stuff based on PRODUCT_IS_* flag
Change-Id: Idfb6a08697bf232fdec47e9caa27754a27335d3d
2024-01-20 14:03:05 +00:00
Bruno Martins
0b72bc3e24 car: Include ExactCalculator and Jelly on Automotive builds
Change-Id: I659a2cd0afda1d7653eedb54016e16f831ff175a
2024-01-20 14:03:05 +00:00
Bruno Martins
603d17277b config: Do not ship Parts and SuW on Automotive builds
Customizations from LineageParts do not apply here and SetupWizard
is forcibly skipped anyway as device first boots in already provisioned
status.

Change-Id: Ic85fa59f58729d67f28d1dbe9191868bc1eb70a5
2024-01-20 14:02:57 +00:00
Bruno Martins
7cb63b9651 config/common_car: Remove car_product inheritance
Should be done in the device trees, like Google does and all devices
that we support with different build types (mobile and ATV).

The only requirement is to call the makefile before vendor/lineage one
so that PRODUCT_IS_AUTOMOTIVE is set before inheriting from Lineage
common stuff. That allows to skip some undesired package if needed
without having to move those out from common makefile and duplicate
into common_car and common_tv makefiles.

Change-Id: Id663f48f3d484f415ff04869c52073fbc6b87148
2024-01-20 01:27:31 +00:00
Bruno Martins
1f1e4dbf6a partner_gms: PRODUCT_IS_AUTO -> PRODUCT_IS_AUTOMOTIVE
This is already defined by Google, so use it.

Change-Id: I049e88ee8eb3469c65f4fed09c844c7f3a240e4b
2024-01-20 01:27:31 +00:00
LuK1337
ebf86e1abe partner_gms: Skip makefile inclusion if vendor/partner_* doesn't exist
This skips partner_* for some unfortunate devices where someone set
GMS_MAKEFILE/MAINLINE_MODULES_MAKEFILE.

Change-Id: Idadd7a5df315a3792237181b5c277d40d1bd1431
2024-01-08 13:29:58 +01:00
Aaron Kling
d2d4e46340 kernel: Default to no gcc on kernel 6.x
Current logic defaults to no gcc if kernel major version is greater than
or equal to 5 and kernel minor version is greater than or equal to 10.
Meaning kernel version 6.1 does not qualify because 1 is less than 10.
So additionally check if kernel major version is greater than or equal
to 6 and ignore minor version for that case.

Change-Id: Id72cb9e100c6fed014d696f4a3a88f6cafcd3932
2024-01-03 16:09:59 +00:00
Michael Bestas
2cd52ca80a
config: Allow forcing minimal/full reserved size
Change-Id: I7b3c258ad1597bb37bfc02aa8af80d12c0da198b
2023-12-13 03:16:22 +02:00
Michael Bestas
a9b655cc1c config: Introduce common dynamic partition reserved sizes
Change-Id: I29c7e8b439672f7ac13ac3264bd1ced5165a42ee
2023-12-03 22:06:37 +00:00
Arian
e7dac6855d
soong: Add qti vibrator effect stream config
Change-Id: I87b08a02f91a941d22dab5d1acb9bfbbce06f03b
2023-11-21 20:48:36 +02:00
Michael W
390362c844 config: CUSTOM_LOCALES: Add Friulian
Change-Id: I5dbcf5dff81fd7816b062662fdb94e21ddaea54a
2023-10-31 19:25:26 +00:00
Nolen Johnson
711cf14675 config: telephony: Advertise telephony support for GMS
Change-Id: Ic5063b0d5e60f8bc3846cc8a25c24e1abfa9df84
2023-10-29 19:27:54 +00:00
Bruno Martins
4fb9a76f06 lineage: Move all QCOM board configs to hardware/qcom-caf/common
Change-Id: I6ead35cf884255a8897a3e3e27fc7936d11be616
2023-10-27 14:25:29 +01:00
Michael Bestas
c290ff3f38 Hookup GRALLOC_HANDLE_HAS_UBWCP_FORMAT
The gralloc struct has been conditionally adjusted not to
break blobs that use the old struct.

Change-Id: I4dd1d1890ad08364d5315386ab830ce9e0edd041
2023-10-20 12:57:46 +00:00
maxwen
00d34dd3bb soong: Follow the correct JSON syntax
wrong: CROSS_COMPILE=\\"/data4...
correct: CROSS_COMPILE=\"/data4...

Change-Id: I5080aef7feb2ec7429cb9ba1f4baccefa61a3cd3
2023-10-20 09:55:48 +01:00
basamaryan
110a25a2c8 config: Update clang version to clang-r487747c
* This is the default clang version for Android U release

Change-Id: I6a44012250470eeeb2e0f6993eb4e98308eec390
2023-10-20 09:55:48 +01:00
Michael Bestas
1f5ecee1c8 RIP Android Beam
Change-Id: Ia977097d40b7f0538f2b15d231e69f2fa22adc4c
2023-10-20 09:55:48 +01:00
Michael Bestas
b7f28608e5 LineageOS 21.0
Change-Id: Ibb75018049d2a0461a2b2fdccb509347c0d9834b
2023-10-20 09:55:48 +01:00
Bruno Martins
52d05dfff1 Revert "config: Opt-in for Go-variant of SystemUI on Go-enabled targets"
This reverts commit 303692b96e.

Turns out that ThemePicker force closes while using SystemUIGo.
Issue already reported: https://issuetracker.google.com/issues/303280734

Change-Id: I630328df7144c04159f746d3efe44ccaa64106bf
2023-10-17 20:32:24 +00:00
Rohit Sekhar
fea85da7e0 vendor/lineage: Hookup TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED
Change-Id: I67b87e98b65300df9a63ddd6d316ae4dd33ab427
2023-10-09 17:29:04 +00:00
LuK1337
589f0cad77 kernel: Use lz4 from Google prebuilts
Fixes: "lz4" is not allowed to be used.

Test: breakfast tangorpro && m bootimage
Change-Id: I62cfe131f457117cb3745b91f5e43c085e87b611
2023-10-06 09:37:51 +00:00
Bruno Martins
303692b96e config: Opt-in for Go-variant of SystemUI on Go-enabled targets
SystemUIGo is basically a wrapper to standard SystemUI.

Change-Id: Id8416d6b0ad98694074ef96b9506283aad0836c4
2023-10-03 23:19:29 +01:00
Bruno Martins
a4c44269e7 config: Move TrebuchetOverlay to common_mobile
Trebuchet is added to PRODUCT_PACKAGES in common_mobile makefile,
so place it there because it's useless to include it on ATV targets.

Change-Id: Ia6235f6ac0eede86e2fd8979c50bda3fa2e06615
2023-10-03 23:19:29 +01:00
Bruno Martins
b7a552dafd config: Add LineageOS specific languages via CUSTOM_LOCALES
Change-Id: If9a8caad7a07ae1c133e0d05c71a8cacc64de92e
2023-10-03 11:42:59 +01:00
Bruno Martins
ef55e61809 config: Exclude window_extensions addon on mini_tablet
Change-Id: If55a17561f62208ea78e1b561aa8d27c91967e87
2023-09-30 11:09:30 +01:00
HeroBuxx
147545ac48 qcom: Add parrot platform
Change-Id: I86a34553c71688c1bb8b8583b161e59cffbfd623
Signed-off-by: HeroBuxx <me@herobuxx.me>
2023-09-26 20:33:22 +00:00
Bruno Martins
231338af58 kernel: Use pahole from Google prebuilts
This fixes the following warnings:

  13:04:54 Disallowed PATH tool "pahole" used: []string{"pahole", "--version"}
  13:04:54 See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information.
  "pahole" is not allowed to be used. See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information.
  /home/bgcngm/android/lineage/kernel/oneplus/sm8550/scripts/pahole-flags.sh: 12: [: Illegal number:
  /home/bgcngm/android/lineage/kernel/oneplus/sm8550/scripts/pahole-flags.sh: 16: [: Illegal number:
  /home/bgcngm/android/lineage/kernel/oneplus/sm8550/scripts/pahole-flags.sh: 20: [: Illegal number:

Change-Id: Ice2a3753301a7b7782037fd35544e2831b258650
2023-09-19 16:17:27 +01:00
LuK1337
eb934e66c4 kernel: Don't try to do math on empty kernel version
Fixes the following error message when compiling target w/o kernel src:
expr: syntax error: unexpected argument ‘5’

Test: lunch lineage_sdk_phone_x86_64-eng
Change-Id: Ib3ec41d9dc2b59ddc9ee3c0c8e3813c4defcfc3e
2023-08-01 20:04:09 +02:00
Nolen Johnson
9d0a2f2271 lineage: config: Allow devices without Cameras to opt-out of Aperture
Change-Id: I6feb538153b13cd1825f37ee7a45ebb046b12ec0
2023-07-30 08:52:38 +02:00
Bruno Martins
5c77946246 qcom: Prepare for non-legacy dataservices
All platforms prior to kalama must use the old rmnet_data driver.

Change-Id: I1dd5e25cdac35bf0e95da004763f58e5590c94ad
2023-07-27 22:54:25 +02:00