From 89660704318525f17f9e8bab14726e027deec14b Mon Sep 17 00:00:00 2001 From: Bowgo Tsai Date: Sat, 20 Apr 2019 15:01:19 +0800 Subject: [PATCH] Revert "Adding adb_debug.prop" This reverts commit a280a66b5ab2a3e738230d994a91778afa95befb. /init now switched to read adb_debug.prop from debug ramdisk instead of GSI or other system.img. No need to keep the file in GSI. See the following for more details: https://android-review.googlesource.com/c/platform/system/core/+/946517 Bug: 126493225 Test: tree hugger Change-Id: I981db8e13216fbe0f066f4d3684ee149b1177d22 --- CleanSpec.mk | 3 +++ target/product/gsi/adb_debug.prop | 12 ------------ target/product/gsi_common.mk | 6 +----- 3 files changed, 4 insertions(+), 17 deletions(-) delete mode 100644 target/product/gsi/adb_debug.prop diff --git a/CleanSpec.mk b/CleanSpec.mk index ac2599605..3f1721f8f 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -622,6 +622,9 @@ $(call add-clean-step, find $(PRODUCT_OUT) -type f -name "generated_*_image_info $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib*/libicu*) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/target/common/obj/framework.aidl) + +# Clean up adb_debug.propr +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/etc/adb_debug.prop) # ************************************************ # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST # ************************************************ diff --git a/target/product/gsi/adb_debug.prop b/target/product/gsi/adb_debug.prop deleted file mode 100644 index 37e2f2d71..000000000 --- a/target/product/gsi/adb_debug.prop +++ /dev/null @@ -1,12 +0,0 @@ -# Note: This file will be loaded with highest priority to override -# other system properties, if a special ramdisk with "/force_debuggable" -# is used and the device is unlocked. - -# Disable adb authentication to allow test automation on user build GSI -ro.adb.secure=0 - -# Allow 'adb root' on user build GSI -ro.debuggable=1 - -# Introduce this property to indicate that init has loaded adb_debug.prop -ro.force.debuggable=1 diff --git a/target/product/gsi_common.mk b/target/product/gsi_common.mk index 2c978ab25..c38dd804a 100644 --- a/target/product/gsi_common.mk +++ b/target/product/gsi_common.mk @@ -50,13 +50,13 @@ PRODUCT_ARTIFACT_PATH_REQUIREMENT_WHITELIST += %.odex %.vdex %.art PRODUCT_ARTIFACT_PATH_REQUIREMENT_WHITELIST += \ system/etc/init/config/skip_mount.cfg \ system/etc/init/init.gsi.rc \ - system/etc/adb_debug.prop \ # Exclude all files under system/product and system/product_services PRODUCT_ARTIFACT_PATH_REQUIREMENT_WHITELIST += \ system/product/% \ system/product_services/% + # Split selinux policy PRODUCT_FULL_TREBLE_OVERRIDE := true @@ -92,7 +92,3 @@ PRODUCT_COPY_FILES += \ # Provide a libnfc-nci.conf to GSI product PRODUCT_COPY_FILES += \ device/generic/common/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf - -# Allow 'adb root' on user build GSI -PRODUCT_COPY_FILES += \ - build/make/target/product/gsi/adb_debug.prop:$(TARGET_COPY_OUT_SYSTEM)/etc/adb_debug.prop