diff --git a/README.md b/README.md index 2178658..feaf088 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Magisk Module for ColorOS -feature +## feature -fix fingerprint when magiskhide enabled - -remove developer options warning notification +- fix fingerprint when magiskhide enabled +- remove developer options warning notification +- fix fingerprint on ColorOS Non-A/B devices diff --git a/customize.sh b/customize.sh deleted file mode 100644 index 53de4cf..0000000 --- a/customize.sh +++ /dev/null @@ -1 +0,0 @@ -# This is customize the module installation process if you need diff --git a/module.prop b/module.prop index f398f84..7ccf83e 100644 --- a/module.prop +++ b/module.prop @@ -1,6 +1,6 @@ id=coloros-magisk name=Magisk ColorOS -version=1.0 -versionCode=1 -author=wuxianlin +version=1.1 +versionCode=2 +author=wuxianlin & MlgmXyysd description=Magisk Module for ColorOS diff --git a/post-fs-data.sh b/post-fs-data.sh index a347e4c..7224e5d 100644 --- a/post-fs-data.sh +++ b/post-fs-data.sh @@ -1,9 +1,6 @@ #!/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 post-fs-data mode +resetprop ro.boot.flash.locked 0 +resetprop ro.boot.vbmeta.device_state unlocked +resetprop ro.boot.verifiedbootstate orange diff --git a/service.sh b/service.sh index e891a9b..f6dfb9d 100644 --- a/service.sh +++ b/service.sh @@ -1,9 +1,12 @@ #!/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 +# Make SafetyNet pass + +while [ "$(getprop sys.boot_completed)" != "1" ]; do + sleep 1 +done + +resetprop ro.boot.flash.locked 1 +resetprop ro.boot.vbmeta.device_state locked +resetprop ro.boot.verifiedbootstate green diff --git a/system.prop b/system.prop deleted file mode 100644 index 6b53aa9..0000000 --- a/system.prop +++ /dev/null @@ -1,6 +0,0 @@ -# This file will be read by resetprop -# Example: Change dpi -# ro.sf.lcd_density=320 - -#fix fingerprint when magiskhide enabled -ro.boot.flash.locked=0 diff --git a/system/etc/permissions/com.magisk.features.xml b/system/etc/permissions/developer_features.xml similarity index 79% rename from system/etc/permissions/com.magisk.features.xml rename to system/etc/permissions/developer_features.xml index 8a3aa58..ecfaeca 100644 --- a/system/etc/permissions/com.magisk.features.xml +++ b/system/etc/permissions/developer_features.xml @@ -1,4 +1,3 @@ -