From 81f673e8e3c27166997107fea2fd37c2831eaf19 Mon Sep 17 00:00:00 2001 From: Mark Gillespie Date: Fri, 8 May 2020 18:48:14 +0100 Subject: [PATCH] Remove Telephony https://github.com/phhusson/treble_experimentations/issues/1141 --- base.mk | 3 +++ remove-telephony.sh | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 remove-telephony.sh diff --git a/base.mk b/base.mk index 38c8d1b..09c4a4a 100644 --- a/base.mk +++ b/base.mk @@ -149,6 +149,9 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ device/phh/treble/phh-securize.sh:system/bin/phh-securize.sh \ +PRODUCT_COPY_FILES += \ + device/phh/treble/remove-telephony.sh:system/bin/remove-telephony.sh \ + PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.software.secure_lock_screen.xml:system/etc/permissions/android.software.secure_lock_screen.xml \ diff --git a/remove-telephony.sh b/remove-telephony.sh new file mode 100644 index 0000000..7c675af --- /dev/null +++ b/remove-telephony.sh @@ -0,0 +1,11 @@ +#!/system/bin/sh + +mount -o remount,rw / +mount -o remount,rw /system +remount + +rm -Rf /system/priv-app/TeleService +mount -o remount,ro / +mount -o remount,ro /system +sync +reboot