1
0
mirror of https://github.com/ChonDoit/treble_superior_patches.git synced 2024-11-22 07:36:22 +00:00
treble_superiorOS/patches/pre/platform_build_make/01-Nuke-apns-and-adb-from-everywhere.patch
2024-10-02 21:56:49 -03:00

64 lines
2.2 KiB
Diff
Executable File

From 60fd12135b6c957d6265b8ac76981ca5cb8e15f5 Mon Sep 17 00:00:00 2001
From: ChonDoit <thphantomblog@gmail.com>
Date: Sat, 12 Aug 2023 18:52:10 +0000
Subject: [PATCH] Nuke adb and APN from everywhere
---
core/main.mk | 8 --------
target/board/gsi_system_ext.prop | 3 ---
target/product/aosp_product.mk | 7 -------
target/product/full_base_telephony.mk | 5 -----
4 files changed, 23 deletions(-)
diff --git a/core/main.mk b/core/main.mk
index 89fcf75..2a1cae6 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -387,14 +387,6 @@ user_variant := $(filter user userdebug,$(TARGET_BUILD_VARIANT))
enable_target_debugging := true
tags_to_install :=
ifneq (,$(user_variant))
- # Target is secure in user builds.
- ADDITIONAL_SYSTEM_PROPERTIES += ro.secure=1
- ADDITIONAL_SYSTEM_PROPERTIES += security.perf_harden=1
-
- ifeq ($(user_variant),user)
- ADDITIONAL_SYSTEM_PROPERTIES += ro.adb.secure=1
- endif
-
ifeq ($(user_variant),userdebug)
# Pick up some extra useful tools
tags_to_install += debug
diff --git a/target/product/aosp_product.mk b/target/product/aosp_product.mk
index 0d42562..e03d074 100644
--- a/target/product/aosp_product.mk
+++ b/target/product/aosp_product.mk
@@ -39,9 +39,3 @@ PRODUCT_PACKAGES += \
preinstalled-packages-platform-aosp-product.xml \
ThemePicker
-# Telephony:
-# Provide a APN configuration to GSI product
-ifeq ($(SUPERIOR_BUILD),)
-PRODUCT_COPY_FILES += \
- device/sample/etc/apns-full-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
-endif
diff --git a/target/product/full_base_telephony.mk b/target/product/full_base_telephony.mk
index 94be54b..5470ad2 100644
--- a/target/product/full_base_telephony.mk
+++ b/target/product/full_base_telephony.mk
@@ -26,10 +26,5 @@ PRODUCT_VENDOR_PROPERTIES := \
PRODUCT_COPY_FILES := \
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
-ifeq ($(SUPERIOR_BUILD),)
-PRODUCT_COPY_FILES += \
- device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
-endif
-
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony.mk)
--
2.34.1