Skip to content

Commit

Permalink
Fix with Magisk Canary
Browse files Browse the repository at this point in the history
Signed-off-by: WindSpiritSR <simon343riley@gmail.com>
  • Loading branch information
WindSpiritSR committed Feb 2, 2024
1 parent 71a671f commit 569b10f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=customcacert
name=Custom CA Cert
version=v1.0
versionCode=1
version=v1.1
versionCode=2
author=Simon Riley
description=Adds custom CA certificates to the system trust store. Please Backup your custom cert before update.
updateJson=https://github.com/WindSpiritSR/CustomCACert/blob/main/update.json
4 changes: 4 additions & 0 deletions post-fs-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ if [ -d /apex/com.android.conscrypt/cacerts ]; then
CERTS_NUM="$(ls -1 /data/local/tmp/sys-ca-copy | wc -l)"
if [ "$CERTS_NUM" -gt 10 ]; then
mount --bind /data/local/tmp/sys-ca-copy /apex/com.android.conscrypt/cacerts
for pid in 1 $(pgrep zygote) $(pgrep zygote64); do
nsenter --mount=/proc/${pid}/ns/mnt -- \
mount --bind /data/local/tmp/sys-ca-copy /apex/com.android.conscrypt/cacerts
done
else
echo "Cancelling replacing CA storage due to safety"
fi
Expand Down
8 changes: 4 additions & 4 deletions update.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "v1.0",
"versionCode": 1,
"zipUrl": "https://github.com/WindSpiritSR/CustomCACert/releases/download/v1.0/CustomCACert-v1.0.zip",
"changelog": "https://github.com/WindSpiritSR/CustomCACert/releases/tag/v1.0"
"version": "v1.1",
"versionCode": 2,
"zipUrl": "https://github.com/WindSpiritSR/CustomCACert/releases/download/v1.1/CustomCACert-v1.1.zip",
"changelog": "https://github.com/WindSpiritSR/CustomCACert/releases/tag/v1.1"
}

0 comments on commit 569b10f

Please sign in to comment.