19 Commits
bka ... vic

Author SHA1 Message Date
Apelete Seketeli
01ea91a46a sunfish: Fetch vendor from personal repo
Forking vendor tree into Evolution X org repositories requires
privileged rights, and pushing fails due to git lfs:

batch request: git@lfs.undocumented.software: Permission denied (publickey).: exit status 255
error: failed to push some refs to 'github.com:Evolution-X-Devices/vendor_google_sunfish.git'

Fetching vendor tree from personal repo as a work-around.
2025-10-06 12:32:54 +02:00
Apelete Seketeli
9c7d306015 sunfish: Select apps based on WITH_GMS flag
Selectively build with or without GAPPS and allow files to live in
specified root path depending on WITH_GMS flag.
2025-10-03 02:55:49 +02:00
Apelete Seketeli
7e1154aba4 sunfish: Remove space reserved for user gapps install 2025-10-03 02:55:47 +02:00
Apelete Seketeli
a54e429eb5 sunfish: Allow files to live in specified root path
Accoridng to
https://codeberg.org/petefoths-projects/unofficial-l4m-builds/wiki/Build-errors,-fixes-and-work-arounds,
this seems the correct way to address following errors:

FAILED:
build/make/core/artifact_path_requirements.mk:31: warning:  device/google/sunfish/lineage_sunfish.mk produces files inside build/make/target/product/generic_system.mks artifact path requirement.
Offending entries:
system/priv-app/OmniStyle/OmniStyle.apk
system/app/GoogleExtShared/GoogleExtShared.apk
system/app/GooglePrintRecommendationService/GooglePrintRecommendationService.apk
system/etc/permissions/privapp-permissions-google.xml
system/priv-app/DocumentsUIGoogle/DocumentsUIGoogle.apk
system/priv-app/TagGoogle/TagGoogle.apk
In file included from build/make/core/main.mk:1173:
build/make/core/artifact_path_requirements.mk:31: error: Build failed.
2025-10-03 02:55:43 +02:00
Apelete Seketeli
5d6729110c sunfish: Select mini gapps package instead of default gapps
This addresses the following build error:

[0620/164226.950272:ERROR:payload_generation_config.cc(270)] Sum of sizes in google_dynamic_partitions_partition_list is 5195177984, which is greater than google_dynamic_partitions_size (4873781248)
[0620/164226.950297:FATAL:generate_delta_main.cc(711)] Check failed: payload_config.target.ValidateDynamicPartitionMetadata().
out/host/linux-x86/bin/../lib64/libchrome.so(base::debug::StackTrace::StackTrace(unsigned long)+0x1b) [0x7face6bfb23b]
out/host/linux-x86/bin/../lib64/libchrome.so(logging::LogMessage::~LogMessage()+0x8c) [0x7face6b89cfc]
out/host/linux-x86/bin/delta_generator(+0x10e328) [0x555d10c12328]
/lib/x86_64-linux-gnu/libc.so.6(+0x2724a) [0x7face66a124a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7face66a1305]
out/host/linux-x86/bin/delta_generator(+0x10bce9) [0x555d10c0fce9]
2025-10-03 02:55:39 +02:00
Apelete Seketeli
7fbf81c5b6 sunfish: Remove xml permissions file from PRODUCT_COPY_FILES
This addresses the following build error:

FAILED:
build/make/core/Makefile:161: error: overriding commands for target `out/target/product/sunfish/product/etc/default-permissions/default-permissions.xml', previously defined at out/soong/installs-lineage_sunfish.mk:127365
2025-10-03 02:55:32 +02:00
Apelete Seketeli
d11f67ec7f sunfish: Initialise Evolution X 10.x 2025-10-03 02:55:29 +02:00
Chi Zhang
20c9226644 sunfish: sepolicy: Don't audit PowerStats access on legacy devices.
Bug: 317734530
Test: build
Change-Id: Id8c908c56ee2aea99ab0786d387a1105658b67e0
2025-09-19 01:16:43 +03:00
Nolen Johnson
01f5783943 sunfish: sepolicy: Add Google Camera sepolicy
Change-Id: I6aed9e65852875df380d781e4704232f4bcadb21
2025-09-19 01:16:43 +03:00
Nolen Johnson
8fe87ba469 sunfish: sepolicy: Allow cameraserver to read more properties
Change-Id: I557b54790de6d1adec3847095c8045794870c0a6
2025-09-19 01:16:43 +03:00
Nolen Johnson
45926e200e sunfish: sepolicy: Allow sensors to create fifo_file as well
Change-Id: If071ba896db12cc7071737a7bd52b9ecc484ca9b
2025-09-19 01:16:43 +03:00
Nolen Johnson
a7a9ea645e sunfish: sepolicy: Label gralloc.qcom as same_process_hal_file
Change-Id: Icaf41166fbed739233bcaad6402a69e389eb8977
2025-09-18 21:53:36 +03:00
Michael Bestas
4ed2544fd4 sunfish: Drop pixelstats policy
Change-Id: I81ce5905dd87106237400a68e12a0cfb8d5075bd
2025-09-18 21:53:36 +03:00
Michael Bestas
16f0e10a0e sunfish: Remove pixelstats-vendor
This does not build with the current hardware/google/pixel dependencies
so drop it.

Change-Id: Ifcbf49fb482164bd72ad0e1f05fa2d48ca2fbc98
2025-09-18 21:53:36 +03:00
Michael Bestas
3b0b55ad9e sunfish: Remove userdebug/eng configuration
Change-Id: I8a37c788060a4aae5a7585ea8142a6fbfec8cba4
2025-09-14 19:09:11 +00:00
Michael Bestas
7d0fd84ab1 sunfish: Drop unused AndroidBoard.mk
Change-Id: I6149ebbec9ebb3687819d8c72c31ebf124056644
2025-09-14 19:09:11 +00:00
Michael Bestas
722436009a sunfish: Migrate mount point creation out of AndroidBoard.mk
Change-Id: Id5986b8a740e45f864eecdd2bd82d9455f128d6b
2025-09-14 19:09:11 +00:00
Alexander Koskovich
85f1daee61 sunfish: Drop PRODUCT_BUILD_SUPER_PARTITION
* Super image is not generated by a default 'm' build,
   but we at least want it for dist builds.

Change-Id: Ia12a5314632509fcd309d51ddf757efdc37499c3
2025-09-12 21:38:36 +00:00
Michael Bestas
4e1eab53e1 sunfish: Update display flags & packages
Required after display HAL blueprint conversion

Change-Id: Ifc4e10703d3424607b9dc8bcc8e417d1c88cc2f3
2025-09-10 18:23:20 +03:00
11 changed files with 30 additions and 32 deletions

View File

@@ -11,6 +11,9 @@ TARGET_KERNEL_CONFIG := sunfish_defconfig
TARGET_KERNEL_SOURCE := kernel/google/msm-4.14
TARGET_NEEDS_DTBOIMAGE := true
# Manifests
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += vendor/lineage/config/device_framework_matrix.xml
# Partitions
AB_OTA_PARTITIONS += \
vendor

View File

@@ -1,4 +1,12 @@
<compatibility-matrix version="1.0" type="device">
<hal format="hidl" optional="false">
<name>android.frameworks.schedulerservice</name>
<version>1.0</version>
<interface>
<name>ISchedulingPolicyService</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="false">
<name>android.frameworks.sensorservice</name>
<version>1.0</version>

View File

@@ -124,9 +124,3 @@ PRODUCT_PROPERTY_OVERRIDES += \
# Enable zygote critical window.
PRODUCT_PROPERTY_OVERRIDES += \
zygote.critical_window.minute=10
# ART
PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile
WITH_DEXPREOPT := true
DEX_PREOPT_DEFAULT := generate-vdex-and-image
WITH_DEXPREOPT_DEBUG_INFO := false

View File

@@ -41,9 +41,6 @@ PRODUCT_PRODUCT_PROPERTIES += ro.opa.eligible_device=true
PRODUCT_PACKAGES += \
HbmSVManagerOverlay
# Kernel
PRODUCT_ENABLE_UFFD_GC := true
# Lineage Health
include hardware/google/pixel/lineage_health/device.mk

View File

@@ -26,7 +26,6 @@ PRODUCT_SOONG_NAMESPACES += \
hardware/google/pixel \
hardware/qcom/sm8150/display \
hardware/qcom/sm8150/gps \
hardware/qcom/wlan \
hardware/qcom/wlan/legacy \
hardware/qcom-caf/bootctrl \
system/chre/host/hal_generic \
@@ -356,7 +355,7 @@ PRODUCT_PACKAGES += \
# Storage health HAL
PRODUCT_PACKAGES += \
android.hardware.health.storage-service.default
android.hardware.health.storage@1.0-service
# Create input surface on the framework side
PRODUCT_PROPERTY_OVERRIDES += \
@@ -570,9 +569,9 @@ PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.early.app.duration=16500000
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.earlyGl.sf.duration=13500000
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.earlyGl.app.duration=21000000
# Disable backpressure for GL comp to fix lag when blur is enabled
# Enable backpressure for GL comp
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.enable_gl_backpressure=0
debug.sf.enable_gl_backpressure=1
# Do not skip init trigger by default
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
@@ -612,6 +611,10 @@ PRODUCT_PRODUCT_PROPERTIES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/fstab.postinstall:$(TARGET_COPY_OUT_PRODUCT)/etc/fstab.postinstall
# powerstats HAL
PRODUCT_PACKAGES += \
android.hardware.power.stats@1.0-service.pixel
# Recovery
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.recovery.device.rc:recovery/root/init.recovery.sunfish.rc

View File

@@ -7,7 +7,7 @@
"repository": "apelete/proprietary_vendor_google_sunfish",
"target_path": "vendor/google/sunfish",
"remote" : "github-non-los",
"branch": "lineage-23.0"
"branch": "lineage-22.2"
},
{
"repository": "kernel_google_msm-4.14",

View File

@@ -25,7 +25,7 @@ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<manifest version="1.0" type="device" target-level="6">
<manifest version="1.0" type="device" target-level="5">
<hal format="hidl">
<name>android.hardware.audio</name>
<transport>hwbinder</transport>
@@ -397,6 +397,15 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<transport>hwbinder</transport>
<fqname>@4.0::IKeymasterDevice/default</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.power.stats</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IPowerStats</name>
<instance>default</instance>
</interface>
</hal>
<!-- light HAL -->
<hal format="hidl">
<name>android.hardware.light</name>

View File

@@ -119,6 +119,3 @@ bluetooth.profile.pan.nap.enabled?=true
bluetooth.profile.pan.panu.enabled?=true
bluetooth.profile.pbap.server.enabled?=true
bluetooth.profile.sap.server.enabled?=true
# eBPF
ro.bpf.kver_override=5.4.299

View File

@@ -51,8 +51,6 @@ blob_fixups: blob_fixups_user_type = {
.patch_file('osaifu-keitai.patch'),
'product/etc/sysconfig/nexus.xml': blob_fixup()
.regex_replace('qulacomm', 'qualcomm'),
'system_ext/lib64/libsecureuisvc_jni.so': blob_fixup()
.add_needed('libgui_shim.so'),
'system_ext/priv-app/HbmSVManager/HbmSVManager.apk': blob_fixup()
.apktool_patch('HbmSVManager.patch'),
(

View File

@@ -145,7 +145,7 @@ system_ext/priv-app/EuiccSupportPixelPermissions/EuiccSupportPixelPermissions.ap
system_ext/priv-app/RilConfigService/RilConfigService.apk
# SecureUI - from barbet AP2A.240805.005
system_ext/lib64/libsecureuisvc_jni.so;SYMLINK=system_ext/app/com.qualcomm.qti.services.secureui/lib/arm64/libsecureuisvc_jni.so|f90a20ddbf58c75d811f2637bd43662aab653653|27f5d0a332ab03b07fea46bc613289d913510e69
system_ext/lib64/libsecureuisvc_jni.so;SYMLINK=system_ext/app/com.qualcomm.qti.services.secureui/lib/arm64/libsecureuisvc_jni.so|f90a20ddbf58c75d811f2637bd43662aab653653
# SecureUI
system_ext/app/com.qualcomm.qti.services.secureui/com.qualcomm.qti.services.secureui.apk

View File

@@ -5,14 +5,3 @@ media.mediadrmservice.enable=true
# Graphics
ro.hardware.egl=adreno
ro.hardware.vulkan=adreno
ro.surface_flinger.supports_background_blur=1
debug.sf.enable_adpf_cpu_hint=true
# HWUI
ro.hwui.render_ahead=5
debug.hwui.use_hint_manager=true
debug.hwui.target_cpu_time_percent=30
# ScrollOptimizer
persist.sys.perf.scroll_opt=true
persist.sys.perf.scroll_opt.heavy_app=1