Commit graph

4325 commits

Author SHA1 Message Date
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
SGCMarkus
2a0d417971 kernel: Allow to limit the used .dtb files for the final DTB image
On some devices too many .dtb files are generated. Instead of taking
all of them, allow to only take selected .dtb files for the final
DTB image.

Example: Motorola Edge 40 Pro (rtwo, sm8550) generates the following:
obj/DTB_OBJ/out/kaka-rumi.dtb
obj/DTB_OBJ/out/kalama-rtwo-base-kalama-rtwo-evb1-overlay.dtb
obj/DTB_OBJ/out/kalama-rtwo-base-kalama-rtwo-evt1-overlay.dtb
obj/DTB_OBJ/out/kalama-rtwo-base-kalama-rtwo-na-vzw-evt2-overlay.dtb
obj/DTB_OBJ/out/kalama-rtwo-base-kalama-rtwo-prc-dvt1b-overlay.dtb
obj/DTB_OBJ/out/kalama-rtwo-base-kalama-rtwo-prc-pvt-overlay.dtb
obj/DTB_OBJ/out/kalama-rtwo-base-kalama-rtwo-row-dvt1b-overlay.dtb
obj/DTB_OBJ/out/kalama-rtwo-base.dtb
obj/DTB_OBJ/out/kalama-v2-rtwo-base-kalama-rtwo-evb1-overlay.dtb
obj/DTB_OBJ/out/kalama-v2-rtwo-base-kalama-rtwo-evt1-overlay.dtb
obj/DTB_OBJ/out/kalama-v2-rtwo-base-kalama-rtwo-na-vzw-evt2-overlay.dtb
obj/DTB_OBJ/out/kalama-v2-rtwo-base-kalama-rtwo-prc-dvt1b-overlay.dtb
obj/DTB_OBJ/out/kalama-v2-rtwo-base-kalama-rtwo-prc-pvt-overlay.dtb
obj/DTB_OBJ/out/kalama-v2-rtwo-base-kalama-rtwo-row-dvt1b-overlay.dtb
obj/DTB_OBJ/out/kalama-v2-rtwo-base.dtb

with only kalama-rtwo-base.dtb and kalama-v2-rtwo-base.dtb needed.
Disabling compilation of the other kalama.dtb isn't possible, as this
would also disable the compilation of the needed .dtbo files.
Because they are earlier in alphabetical order, and the matching
board ids, the bootloader ends up selecting those, instead of the
correct ones. This results in USB (and possible other things) to
not work.

Change-Id: I486b6ec538a3e4906b5b8aa5ecb355b480b60de7
2023-09-17 17:53:24 +00:00
Bruno Martins
3056928d1c kernel: Include DTBOs from OEM/ODM folder in base DTB
It can be the case where OEM/ODM decided to put the main DTBOs
outside vendor/qcom (e.g. vendor/oplus). Support such usecase
by generically allowing all .dtbo files found in all first-level
subdirs to be moved to base DTB folder.

Change-Id: I154d401b560535d1fa8cd7ed4965dd34a4cf75f2
2023-09-17 17:53:24 +00:00
Bruno Martins
47931c121e kernel: Handle GKI modules
All devices lauching with Android 13 (and above) must include
a system_dlkm partition, where GKI modules should reside.

Android 13 build system only supports providing prebuilt modules,
by pointing BOARD_SYSTEM_DLKM_SRC to the modules source folder.
Google will introduce BOARD_SYSTEM_KERNEL_MODULES for Android 14,
so take a step forward and use that macro to exclude the listed
modules from the usual vendor DLKM partition and place them into
the GKI module partition.

Note that the GKI modules are placed into lib/modules/androidX-Y.Z,
as defined by Google and observed in system_dlkm_modprobe script.

Change-Id: I2b1644479788cb5c9568cac738202b1d55fc28d7
2023-09-17 17:53:24 +00:00
Tommaso Fonda
53760b516c overlay: Move config_hspa_data_distinguishable to proper location
It was moved to SettingsLib in Android 12.

Change-Id: Ia2dd5fd0af5edeb872abfc870c003e6ecaf43b1f
2023-09-16 13:24:56 +02:00
Bruno Martins
5a95d43239 overlay: Do not overwrite default config_pluginAllowlist
Make sure to keep the default entry.

Change-Id: I41a084a79ba4c1501c2b607e51c3f63eb745f58b
2023-09-05 12:12:11 +00:00
Bruno Martins
161e397ed5 overlay: Treat org.lineageos.settings.device as privileged
This marks our very generic package as allowed to provide privileged
SystemUI plugins.

Change-Id: Icb68d9a535d275cb2c808174eb123b69308c1fed
2023-09-05 12:12:11 +00:00
Chirayu Desai
002d21468b sensitive_pn: Add website for AASRA, India
Source: https://en.wikipedia.org/wiki/AASRA

Change-Id: Id81f9e648a06907c677713fea89c49eeb077c8e1
2023-09-01 17:28:19 +00:00
Aaron Kling
3ade73b639 kernel: Support copying modules to recovery
Change-Id: Iac275cfbea368d47f9cc8e756649ab094d9c57c5
2023-08-28 16:23:03 +00:00
Aaron Kling
0d1608e30f
kernel: Support Qualcomm merge_dtbs script
Script from clo kernel/build at kernel.lnx.5.10.r1-rel

Change-Id: Ia90975c895644b86d9f861ddd5a18b7cf6ce1470
2023-08-28 19:15:02 +03:00
Adithya R
eb134f0651
overlay: config_plugin{Whitelist -> Allowlist}
* Changed in cbf072c205

Signed-off-by: basamaryan <basam.aryan@gmail.com>
Change-Id: I63f31f532ae994342ad5a540cea250f3b95759be
2023-08-22 14:37:00 -04:00
Chirayu Desai
9d239d1b9a
August 2023 Security update
Change-Id: I092d281604c7622c97c690867c0ea2cc88f58278
2023-08-09 04:09:37 +03:00
LuK1337
da9c5060ad device_config: Enable separate notification volume control
Change-Id: If28bf063526429e0d02c117a1f78bc787b2b65fb
2023-08-05 13:46:56 +02:00
Bruno Martins
f7c2546fa1 vars: Add kailua tags
Change-Id: I1a9196c05bc7d9eae432d4cf45192d60de08455c
2023-08-02 23:03:58 +02: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
Bruno Martins
fa1664c6dc qcom: Use full QTI gralloc struct for GKI 2.0 targets
Let it still be overridable, just in case.

Change-Id: I2901c84c2c616672ca94cc88264ae3667791e846
2023-07-27 16:00:50 +01:00
Bruno Martins
c3dda454e3 Hookup GRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE
The gralloc struct has been conditionally adjusted not to
break blobs that use the old struct.

So far only GRALLOC_HANDLE_HAS_RESERVED_SIZE was hooked up
for Google Pixels, but it's now time to hook up the remaining flag.

Change-Id: I175bd328bd9733b9487e349f7a8486f15ef0a450
2023-07-25 18:14:17 +02:00
Bruno Martins
8bbb7d90b6 qcom: Add support for kalama platform
Change-Id: I393c3c1ca398b5b34d7b9d8a76ccdf8af329957c
2023-07-25 18:14:17 +02:00
Michael Bestas
99041d0e90 apns: Format xml spacing
No functional changes

Change-Id: Id4b9dd8bf407d0ca84065325d3aa1a4ea0c2be23
2023-07-25 18:09:14 +02:00
nift4
da5e531ac3 Revert "Revert "config: Build NavigationBarMode2ButtonOverlay""
* Fixed regression in Trebuchet

This reverts commit 5ae7551a20.

Change-Id: I46a0d1d9bd25f20b333c51a76d96e5c695895983
2023-07-25 11:58:08 +02:00
techyminati
7a6a0c2c17 overlay: Exempt MediaTek ImsService from location indicators
* Mtk ImsService checks for location data to register ims,
  which constantly triggers the location indicator.

Change-Id: I1b78ffd788129902a23eba844044f3afbdfe46ff
Signed-off-by: techyminati <sinha.aryan03@gmail.com>
2023-07-21 10:44:59 +05:30
Michael Bestas
17ef54741f vars: Use gs201 kernel for gs101 pixels
It's exactly the same

Change-Id: I5e4fc58f1ca82fae03144e156a38b07673e5c128
2023-07-14 21:20:51 +02:00
Michael Bestas
35ef879579 vars: Update qcom tags
Change-Id: I1103324bdc7d50780a11949ac6845d4299e8e184
2023-07-14 21:16:00 +02:00
Michael Bestas
3a48abf173
vars: Pixel Fold
Change-Id: Ib4a20e0f71d4e3d05120aca9bddb35b5fa3ea24c
2023-07-13 22:39:45 +03:00
Michael Bestas
4768246a43
config: Allow overriding ro.support_one_handed_mode
Pixel Fold disables this

Change-Id: Ia5a369d75a356800ea8792fe290094ec99b4ad64
2023-07-10 20:27:29 +03:00
Chirayu Desai
4a2439acbb vars: July 2023 Security update
* https://groups.google.com/g/android-building/c/OcBZdzrP_Ps/m/5K3UgYWVAAAJ

Change-Id: Ie39627cfba177302313488afd918ca7a2534214d
2023-07-10 18:59:11 +02:00
Bruno Martins
0415cfd127 config: Let mini be really minimal
Move some apps from common_mobile to common_full,
so that devices inheriting from common_mini don't
ship with all the apps.

Example usecase: "tablet-like" device that inherits from
common_mini_tablet_wifionly and has no camera support.

Change-Id: I723e413b0e5b43fee9011c6b55dcbc303e811c44
2023-07-09 13:13:08 +01:00
Michael Bestas
6e3be5168b vars: Pixel Tablet
Based on lynx

Change-Id: Ib95c040032b2601726e6d9a941123ed7f11789a6
2023-07-05 23:22:17 +02:00
Nolen Johnson
322d62e1f5 fixup! config: Move IAntiFlicker to fqname
Change-Id: I7198a27cbf4a46b9ea009df4b02830fa1c94d278
2023-06-23 19:10:02 +02:00
LuK1337
d9b0c49358 overlay: Set screenshot work profile files app to DocumentsUI
Fixes NPE when taking a screenshot in work profile.

Change-Id: I73349b168543072be009b41bc2f3711876a10df2
2023-06-22 22:01:00 +02:00
LuK1337
0b81f4020e soong: Add aapt_version_code default
This appends `--version_code=$(date -u +%Y%m%d)` to aapt flags, which is
useful for flushing some caches upon system updates.

Change-Id: I6575b878f09c1c3138e12abc34d39405f51245e7
2023-06-22 20:06:00 +02:00
Michael Bestas
fd6859f6c7
config: Move IAntiFlicker to fqname
Fixes:
ERROR: HIDL interface vendor.lineage.livedisplay@2.0::IAntiFlicker is
referenced in /system/etc/vintf/compatibility_matrix.device.xml,
but there is no corresponding .hal definition associated with a
hidl_interface module in this build. Typo?

Change-Id: If7708540351db6f465504ed433638653e2c52503
2023-06-21 15:35:00 +03:00
Dhina17
8781c974a4 apn: Add Uno Mobile Italy
* https://unomobileonline.it/apn-unomobile/

Change-Id: I2836211b2c1c0f9bf9855123dcaae745aaf8d709
2023-06-20 22:20:29 +02:00
Michael Bestas
d7f56a98cf
vars: Use fbpacktool for unpacking bootloader.img on Tensor pixels
All Pixels modem.img: fbpack version 1
QCOM Pixels bootloader.img: fbpack version 1
Tensor Pixels bootloader.img: fbpack version 2

Test:
export WORK_DIR=/some/dir/with/factory/images
source vendor/lineage/vars/pixels
for d in ${devices[@]}; do lineage/scripts/pixel/firmware.sh $d; done
for d in ${devices[@]}; do git -C vendor/google/$d status; done

Co-authored-by: Chirayu Desai <chirayudesai1@gmail.com>
Change-Id: Ic1990f75a6be515e5d91d65e3ddf88b8e0c90001
2023-06-16 21:28:11 +03:00
Chirayu Desai
385062993e
June 2023 Quarterly Platform Release and Security update
Ref:
* https://groups.google.com/g/android-building/c/OcBZdzrP_Ps/m/t-_z7XQPAAAJ
* https://support.google.com/pixelphone/thread/220747201/google-pixel-update-june-2023?hl=en

Change-Id: Ie2cc0b8057daa6907eca5fe4a6920b544dd4beb6
2023-06-14 21:14:01 +03:00
Luofan Chen
2decc6661e soong: Add TARGET_HEALTH_CHARGING_CONTROL related configs
To specify the charging control allowed modes:
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_{BYPASS,DEADLINE,TOGGLE},

To specify the charging control paths:
TARGET_HEALTH_CHARGING_CONTROL_{CHARGING_PATH,DEADLINE_PATH},

To specify data written to TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH:
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_{ENABLE,DISABLE}

Change-Id: I88831c84966f82648c8ca60de5abb34416140f6c
2023-06-09 18:06:47 +02:00
Michael Bestas
97f0f8e3f4 config: device_framework_matrix: Add vendor.lineage.health
Change-Id: I91ee2a15ee2f68947f220ab6e885b9049936acb2
2023-06-09 18:06:47 +02:00
Luofan Chen
5bd9ed9840 config: Copy Lineage health permissions
Change-Id: I12dcb124293cac0ba6f7275ee30498b711c723dd
2023-06-09 18:06:47 +02:00
Chirayu Desai
135cb649de Disable AGPS by default, it'll be enabled in SetupWizard
* This way the user can choose to turn it off, and it'll
  never have been enabled
* If they just keep it as the default (toggle will be on in SuW),
  then it'll be enabled, which is the default we want

Change-Id: I878200a0351d0b0018a975e432602de2badc4eef
2023-06-07 01:53:41 +02:00
Chirayu Desai
11eaeaf039 repopick: Don't ignore change status for query mode (-Q)
* Why not just use force with it if you really want to
  pick abandoned changes?
* Avoids surprises

Change-Id: I7420e1c37cc127d1f74539d5685bd9bf77be44c3
2023-05-27 05:15:30 +05:30
Michael Bestas
57a063cff7
kernel: Restore TARGET_KERNEL_VERSION
This is used in a bunch of QCOM HALs

Change-Id: I5bb76c47ad33e9fb1b81d1d23f78b2dbf390473a
2023-05-26 21:33:48 +03:00
Bruno Martins
2a7b321d51 kernel: Go full LLVM build on 5.10+ kernels
Make the conditions accurately reflect the comment:
"5.10+ can fully compile without GCC by default".

Change-Id: Ia9070871c23a710ba5b461ad522db241183e34d1
2023-05-24 11:31:08 +01:00
Aaron Kling
e6678e8cfd Include build manifest on target
Private repos can be excluded by setting the env var
MANIFEST_EXCLUDES | delimited. proprietary is always
excluded.

Change-Id: I9a085a7102d9905853636e0ad60ac6f80a930ae0
2023-05-18 20:49:27 +02:00
Nicholas Lim
9fd8e21bf6 apn: Update mcc525
With reference to which looked accurate:
https://android-review.googlesource.com/c/device/sample/+/2096350

Change-Id: I2ebc1ee299d0caff0bdbd99f5a4cc07e19dc6214
2023-05-17 07:26:48 +02:00
Chirayu Desai
b9d44c562f vars: Pixel 7a
* Based on panther

Change-Id: I54c646252a5fcc9fbaad4eb8279d401a2d83045c
2023-05-16 21:25:40 +02:00
DroidFreak32
055bec9f60 config: common-full: unrar undead
Change-Id: Ic860845748024c113278489aeea2523b2770ca4a
2023-05-12 00:28:58 +05:30
DroidFreak32
dcf0e8899a config: common-full: Build zstd cmdline tools
* Installs the following:
unzstd -> zstd
zstd
zstdcat -> zstd
zstdgrep
zstdless
zstdmt -> zstd

Change-Id: I3e1efae8028a3ac5f6b9d153c9e39eef1d51a34b
2023-05-12 00:24:57 +05:30
Michael Bestas
4d850217ba vars: Update kernels for May security update
Change-Id: Ie0963241d76158f50b41be1cd2b9544e27308443
2023-05-04 18:13:13 +02:00