Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
ys1231 committed Oct 9, 2022
1 parent 6bf5bbc commit b3385e5
Show file tree
Hide file tree
Showing 9 changed files with 110 additions and 2 deletions.
33 changes: 33 additions & 0 deletions META-INF/com/google/android/update-binary
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions META-INF/com/google/android/updater-script
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#MAGISK
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# MoveCertificate
support android7+ Move certificate.
# move Certificate
Refer to : http://www.zhuoyue360.com/crack/60.html
Refer to : https://topjohnwu.github.io/Magisk/guides.html#boot-scripts
Refer to : https://github.com/Magisk-Modules-Repo/movecert

31 changes: 31 additions & 0 deletions customize.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# This file is part of iyue.
#
# iyue is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# iyue is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with iyue. If not, see <https://www.gnu.org/licenses/>.
#
# Copyright (C) 2021 iyue Contributors
#


init_install(){
# ui_print "*******************************"
# ui_print " Move Certificates "
# ui_print " by iyue "
# ui_print "*******************************"
ui_print "delete Placeholder file"
rm $MODPATH/system/etc/security/cacerts/placeholder
}

# Output installation information
init_install
6 changes: 6 additions & 0 deletions module.prop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
id=MoveCertificate
name=movecert
version=v1.0
versionCode=1
author=iyue
description=support android7+ Move certificate.
22 changes: 22 additions & 0 deletions post-fs-data.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# This file is part of iyue.
#
# iyue is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# iyue is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with iyue. If not, see <https://www.gnu.org/licenses/>.
#
# Copyright (C) 2021 iyue Contributors
#

MODDIR=${0%/*}
mv -f /data/misc/user/0/cacerts-added/* $MODDIR/system/etc/security/cacerts/

9 changes: 9 additions & 0 deletions service.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/system/bin/sh
# Do NOT assume where your module will be located.
# ALWAYS use $MODDIR if you need to know where this script
# and module is placed.
# This will make sure your module will still work
# if Magisk change its mount point in the future
MODDIR=${0%/*}

# This script will be executed in late_start service mode
2 changes: 2 additions & 0 deletions system.prop
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This file will be read by resetprop
ro.iyue.MoveCertificate=true
1 change: 1 addition & 0 deletions system/etc/security/cacerts/placeholder
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file will be deleted in Magisk Manager, it is only a placeholder for git

0 comments on commit b3385e5

Please sign in to comment.