Commit graph

4156 commits

Author SHA1 Message Date
pppig236
c08bb53da2 fixup! lineage: prebuilt: Add Carrier ID and MVNO ID for T-Mobile Ting
* My carrier's (T-Mobile MVNO) is also somehow picking up Ting instead of the legit TMO ones.

Test:
    Before: Ting Data is set to be the default APN
    After: T-Mobile US is set to be the default

From:
72419e394c/assets/latest_carrier_id/carrier_list.textpb (L11096)

Change-Id: I5c630b6501af2db37538ad9cfc538dca4bf7b5e2
2023-10-29 14:27:42 +00:00
pppig236
f46d0a7a08 kernel: Halt build process if an external module fails to compile
Before:
    mka bootimage
    qcacld failed to compile, but boot.img is generated

After:
    mka bootimage
    qcacld failed to compile and no boot.img is generated

Commit fadfdbf introduced the idea of building external modules,
but it didn't account for the scenario where compilation could fail
while the boot.img is still being built.

Fix this by properly stopping the build process as soon as the external
module fails to compile.

Change-Id: Ifed28825f8e4b78d304fe62a47908e208edfb886
2023-10-29 14:27:00 +00:00
Bruno Martins
e655a1e696 kernel: Replace BOARD_SYSTEM_KERNEL_MODULES with SYSTEM_KERNEL_MODULES
Commit 47931c1 introduced GKI modules handling with the assumption
that using BOARD_SYSTEM_KERNEL_MODULES would still work in Android 14,
but turns out that it conflicts with build/make/core rules.

Change-Id: I9167940c08b8420be254c52698f1faa2e3e7f793
2023-10-28 12:37:43 +01: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
8f478a25a8 vars: Update qcom tags
Change-Id: I23c04892a6d5c219705bc115fa55e0c49f67b4f5
2023-10-25 19:04:36 +00: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
basamaryan
625b9a34c0 Revert "device_config: Enable separate notification volume control"
The feature is now enabled by default.

This reverts commit da9c5060ad.

Change-Id: I0977e3eb1cf0b62b258f13e63b3952d5b329ded6
2023-10-20 09:55:48 +01:00
Chirayu Desai
91545926df vars/${pixels[@]}: 14
Change-Id: I282583589b548c53dabe6192fc0a576f02b81512
2023-10-20 09:55:48 +01: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
db93a8d621 kernel: Rename mkdtboimg.py
* Changed in https://android-review.googlesource.com/q/topic:%22colefaust_rename_mkdtboimg%22

Change-Id: Idd2ade7035c79207321ecbc70d6a4ddf9f4ed600
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
Paul Keith
6b8c2baf9f lineage: s/master/main/
Change-Id: Ia922dd6b396627fea2c8e69f8a7d6bf025b80f7e
2023-10-18 11:57:14 -05: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
Tim Zimmermann
84b975ca23
kernel: Use correct variable name for vendor_kernel_boot modules
* This was missed in bdfc913935
* Aligns the variable name for vendor_kernel_boot modules with AOSP

Change-Id: I8d59f7b5d62e29a0484ca36fadcb74acab4f1859
2023-10-16 16:17:09 +03: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
Chippa-a
62dd5baa00 lineage: Use 'intermediates-dir-for' for bootanimation src
Place bootanimation source files in a dedicated intermediate
dir to prevent the presence of a zero-byte archive in the
target zip file.

Change-Id: Iefd54bbcadd17985eb15e253aa4c74fbb7940b0d
Signed-off-by: Chippa-a <bagirovvusal99@gmail.com>
2023-10-04 22:37:50 +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
f4b51c1f60 overlay: Remove obsolete overlays
$ adb shell cmd overlay dump

IDMAP OF com.android.settings.auto_generated_rro_product__
Paths:
    target path  : /system_ext/priv-app/Settings/Settings.apk
    overlay path : /product/overlay/Settings__auto_generated_rro_product.apk
Debug info:
    W failed to find resource 'color/lock_pattern_view_regular_color'
    W failed to find resource 'color/setup_lock_pattern_view_success_color_light'

[...]

IDMAP OF com.android.launcher3.overlay
Paths:
    target path  : /system_ext/priv-app/TrebuchetQuickStepGo/TrebuchetQuickStepGo.apk
    overlay path : /product/overlay/TrebuchetOverlay.apk
Debug info:
    W failed to find resource 'bool/config_header_protection_supported'

[...]

Change-Id: I4eadd90675986d92dfae4b91b5870637d9b9d9bd
2023-10-03 15:04:04 +00:00
Bruno Martins
b7a552dafd config: Add LineageOS specific languages via CUSTOM_LOCALES
Change-Id: If9a8caad7a07ae1c133e0d05c71a8cacc64de92e
2023-10-03 11:42:59 +01:00
Michael Bestas
ea49deb959 vars: Update qcom tags
Change-Id: I859fda8f6349edd980216548e847acd61c530803
2023-10-02 12:06:07 +00:00
Chippa-a
0a056c7742 charger: Improve lineage charger
* Display charging level in percent and update
  graphics for it

* Use lineage teal as the main color and red
  for low charging level

* Update battery fail to match new style

* Define battery fail file to actually use
  our custom image

Change-Id: I6907da5116f6bbd1788902b177ed999c1568815c
Signed-off-by: Chippa-a <bagirovvusal99@gmail.com>
2023-09-30 12:54:08 +00: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
Tommy Webb
d8e9159e97 vars: September 2023 Security update 2
Change-Id: I03e1c74bfc84c9ae642ab4189953e0f5255b249a
2023-09-25 15:30:28 +00:00
Arvind Mukund
181e5a2ed5 apn: Add Mint Mobile
* https://www.mintmobile.com/help/how-to-configure-android-settings/

Change-Id: I25933b164f85020a726a09774c4b06788fa765f8
2023-09-21 17:13:13 +00:00
Michael Bestas
ac06d5e1df
vars: RIP sunfish
Change-Id: I211315958e22bd7d60de79e37b5197fe5899fe80
2023-09-21 17:21:12 +03:00
LuK1337
0ddf65dc8d repopick: Fix regex related SyntaxWarning on Python 3.12
Change-Id: I23f80997f34a158d564a2e41043242a5af9f2ac3
2023-09-20 20:29:28 +02: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
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