From 4ff6fba4de87c426e15ba1dbc346fe02be5d5cf7 Mon Sep 17 00:00:00 2001 From: Jonathan Klee Date: Mon, 26 May 2025 16:48:17 +0200 Subject: [PATCH] Do not ship addon.d/50-lineage.sh anymore Indeed, freeRASP SDK was considering /e/OS as rooted because of the existing /system/addon.d directory. Reverse engineering through strace hilighted this: faccessat(AT_FDCWD, "/system/addon.d/", F_OK) = 0 --- config/common.mk | 6 +---- prebuilt/common/bin/50-lineage.sh | 43 ------------------------------- 2 files changed, 1 insertion(+), 48 deletions(-) delete mode 100755 prebuilt/common/bin/50-lineage.sh diff --git a/config/common.mk b/config/common.mk index f6dcf5653..8c2bb94b0 100644 --- a/config/common.mk +++ b/config/common.mk @@ -32,11 +32,7 @@ endif # Backup Tool PRODUCT_COPY_FILES += \ vendor/lineage/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \ - vendor/lineage/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \ - vendor/lineage/prebuilt/common/bin/50-lineage.sh:$(TARGET_COPY_OUT_SYSTEM)/addon.d/50-lineage.sh - -PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \ - system/addon.d/50-lineage.sh + vendor/lineage/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions ifneq ($(strip $(AB_OTA_PARTITIONS) $(AB_OTA_POSTINSTALL_CONFIG)),) PRODUCT_COPY_FILES += \ diff --git a/prebuilt/common/bin/50-lineage.sh b/prebuilt/common/bin/50-lineage.sh deleted file mode 100755 index 7ee38454f..000000000 --- a/prebuilt/common/bin/50-lineage.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/sbin/sh -# -# ADDOND_VERSION=2 -# -# /system/addon.d/50-lineage.sh -# During a LineageOS upgrade, this script backs up /system/etc/hosts, -# /system is formatted and reinstalled, then the file is restored. -# - -. /tmp/backuptool.functions - -list_files() { -cat <