From 44dbb10aff5de766cd9a25d8e8eb3d6ebf10e4f5 Mon Sep 17 00:00:00 2001 From: wanghongenpin <178070584@qq.com> Date: Fri, 22 Sep 2023 13:31:58 +0800 Subject: [PATCH] =?UTF-8?q?ProxyPinCA=E8=AF=81=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 17 +++++++++++ META-INF/com/google/android/update-binary | 33 ++++++++++++++++++++++ META-INF/com/google/android/updater-script | 1 + README.md | 5 ++++ customize.sh | 4 +++ module.prop | 6 ++++ system/etc/security/cacerts/243f0bfb.0 | 23 +++++++++++++++ 7 files changed, 89 insertions(+) create mode 100644 .gitignore create mode 100644 META-INF/com/google/android/update-binary create mode 100644 META-INF/com/google/android/updater-script create mode 100644 README.md create mode 100644 customize.sh create mode 100644 module.prop create mode 100644 system/etc/security/cacerts/243f0bfb.0 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ef155b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ +migrate_working_dir/ +Podfile.lock +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary new file mode 100644 index 0000000..ea4889e --- /dev/null +++ b/META-INF/com/google/android/update-binary @@ -0,0 +1,33 @@ +#!/sbin/sh + +################# +# Initialization +################# + +umask 022 + +# echo before loading util_functions +ui_print() { echo "$1"; } + +require_new_magisk() { + ui_print "*******************************" + ui_print " Please install Magisk v20.4+! " + ui_print "*******************************" + exit 1 +} + +######################### +# Load util_functions.sh +######################### + +OUTFD=$2 +ZIPFILE=$3 + +mount /data 2>/dev/null + +[ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk +. /data/adb/magisk/util_functions.sh +[ $MAGISK_VER_CODE -lt 20400 ] && require_new_magisk + +install_module +exit 0 \ No newline at end of file diff --git a/META-INF/com/google/android/updater-script b/META-INF/com/google/android/updater-script new file mode 100644 index 0000000..11d5c96 --- /dev/null +++ b/META-INF/com/google/android/updater-script @@ -0,0 +1 @@ +#MAGISK diff --git a/README.md b/README.md new file mode 100644 index 0000000..28cf293 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# ProxyPin Certificate +这是一个Magisk 模块 用于安装ProxyPin系统证书, 安装完后需要重启手机. + +抓包下载地址 +https://github.com/wanghongenpin/network_proxy_flutter \ No newline at end of file diff --git a/customize.sh b/customize.sh new file mode 100644 index 0000000..cbc18b6 --- /dev/null +++ b/customize.sh @@ -0,0 +1,4 @@ +#!/system/bin/sh + +ui_print $MODPATH +ui_print "安装成功,重启手机后去系统证书查看ProxyPinCA是否生效." \ No newline at end of file diff --git a/module.prop b/module.prop new file mode 100644 index 0000000..44b89de --- /dev/null +++ b/module.prop @@ -0,0 +1,6 @@ +id=ProxyPinCa +name=ProxyPinCa +version=1.0.0 +versionCode=1 +author=ProxyPin +description=ProxyPin certificate. \ No newline at end of file diff --git a/system/etc/security/cacerts/243f0bfb.0 b/system/etc/security/cacerts/243f0bfb.0 new file mode 100644 index 0000000..20165a1 --- /dev/null +++ b/system/etc/security/cacerts/243f0bfb.0 @@ -0,0 +1,23 @@ +-----BEGIN CERTIFICATE----- +MIID4jCCAsqgAwIBAgIJAKcH8Dna4mnZMA0GCSqGSIb3DQEBCwUAMGgxCzAJBgNV +BAYTAkNOMQswCQYDVQQIDAJCSjEQMA4GA1UEBwwHQmVpSmluZzERMA8GA1UECgwI +UHJveHlQaW4xETAPBgNVBAsMCFByb3h5UGluMRQwEgYDVQQDDAtQcm94eVBpbiBD +QTAeFw0yMzA2MjQxNjA2MDlaFw0zMzA2MjExNjA2MTBaMGgxCzAJBgNVBAYTAkNO +MQswCQYDVQQIDAJCSjEQMA4GA1UEBwwHQmVpSmluZzERMA8GA1UECgwIUHJveHlQ +aW4xETAPBgNVBAsMCFByb3h5UGluMRQwEgYDV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