Skip to content

Commit

Permalink
fix: Update Rework securize tweak patch to prevent adbd issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ponces committed May 3, 2023
1 parent 3a75a30 commit f0b3b3c
Showing 1 changed file with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ Subject: [PATCH 1/3] Rework securize tweak

---
base.mk | 1 -
rw-system.sh | 54 ++++++++++++++++++++++++++++++----------------------
2 files changed, 32 insertions(+), 23 deletions(-)
rw-system.sh | 52 ++++++++++++++++++++++++++++++----------------------
2 files changed, 30 insertions(+), 23 deletions(-)

diff --git a/base.mk b/base.mk
index d9c3ca6..b809100 100644
index 348799e..4a4016b 100644
--- a/base.mk
+++ b/base.mk
@@ -158,7 +158,6 @@ PRODUCT_PACKAGES += \
@@ -177,7 +177,6 @@ PRODUCT_PACKAGES += \
resetprop_phh

PRODUCT_COPY_FILES += \
Expand All @@ -21,7 +21,7 @@ index d9c3ca6..b809100 100644

PRODUCT_COPY_FILES += \
diff --git a/rw-system.sh b/rw-system.sh
index e1ad994..76ceba2 100644
index 6600774..9d707a5 100644
--- a/rw-system.sh
+++ b/rw-system.sh
@@ -735,32 +735,59 @@ copyprop() {
Expand Down Expand Up @@ -87,10 +87,13 @@ index e1ad994..76ceba2 100644
(getprop ro.vendor.build.security_patch; getprop ro.keymaster.xxx.security_patch) |sort |tail -n 1 |while read v;do
[ -n "$v" ] && resetprop_phh ro.build.version.security_patch "$v"
done
@@ -780,22 +807,6 @@ if [ -f /system/phh/secure ] || [ -f /metadata/phh/secure ];then
resetprop_phh ro.adb.secure 1
setprop ctl.restart adbd
@@ -777,25 +804,6 @@ if [ -f /system/phh/secure ] || [ -f /metadata/phh/secure ];then
resetprop_phh ro.build.type user
resetprop_phh ro.build.selinux 0

- resetprop_phh ro.adb.secure 1
- setprop ctl.restart adbd
-
- # Hide system/xbin/su
- mount /mnt/phh/empty_dir /system/xbin
- mount /mnt/phh/empty_dir /system/app/me.phh.superuser
Expand Down

0 comments on commit f0b3b3c

Please sign in to comment.