This repository has been archived by the owner on Sep 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
173 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,5 @@ | |
/captures | ||
/out | ||
.externalNativeBuild | ||
elf-cleaner.sh | ||
settings.gradle | ||
.cxx | ||
.cxx | ||
module.gradle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
ext { | ||
moduleId = "module_xfingerprint_pay_wechat" | ||
riruApiVersion = 4 | ||
|
||
moduleProp = [ | ||
name : "指纹支付 - 微信", | ||
version : "v3.9.10", | ||
versionCode: "1", | ||
author : "Jason Eric", | ||
description: "让微信支持指纹支付 Fingerprint pay for WeChat.", | ||
api : riruApiVersion | ||
] | ||
|
||
magiskModuleProp = [ | ||
id : "riru-${moduleId.replace('_', '-')}", | ||
name : "Riru - ${moduleProp['name']}", | ||
version : moduleProp['version'], | ||
versionCode: moduleProp['versionCode'], | ||
author : moduleProp['author'], | ||
description: moduleProp['description'] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
#!/system/bin/sh | ||
MODDIR=${0%/*} | ||
MODULE_ID="module_xfingerprint_pay_wechat" | ||
[ ! -f "$MODDIR/riru.sh" ] && exit 1 | ||
. $MODDIR/riru.sh | ||
|
||
# Reset context jsut in case | ||
chcon -R u:object_r:system_file:s0 "$MODDIR" | ||
|
||
# Rename module.prop.new | ||
if [ -f "/data/misc/riru/modules/$MODULE_ID/module.prop.new" ]; then | ||
rm "/data/misc/riru/modules/$MODULE_ID/module.prop" | ||
mv "/data/misc/riru/modules/$MODULE_ID/module.prop.new" "/data/misc/riru/modules/$MODULE_ID/module.prop" | ||
if [ -f "$RIRU_MODULE_PATH/module.prop.new" ]; then | ||
rm "$RIRU_MODULE_PATH/module.prop" | ||
mv "$RIRU_MODULE_PATH/module.prop.new" "$RIRU_MODULE_PATH/module.prop" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/sbin/sh | ||
RIRU_PATH="/data/misc/riru" | ||
RIRU_MODULE_ID="%%%RIRU_MODULE_ID%%%" | ||
RIRU_MODULE_PATH="$RIRU_PATH/modules/$RIRU_MODULE_ID" | ||
RIRU_MIN_API_VERSION=%%%RIRU_MIN_API_VERSION%%% | ||
|
||
abort_clean() { | ||
rm -rf "$MODPATH" | ||
abort "$1" | ||
} | ||
|
||
check_riru_version() { | ||
if [ ! -f "$RIRU_PATH/api_version" ] && [ ! -f "$RIRU_PATH/api_version.new" ]; then | ||
ui_print "*********************************************************" | ||
ui_print "! Riru is not installed" | ||
ui_print "! Please install Riru (Riru - Core) from Magisk Manager or https://github.com/RikkaApps/Riru/releases" | ||
abort_clean "*********************************************************" | ||
fi | ||
RIRU_API_VERSION=$(cat "$RIRU_PATH/api_version.new") || RIRU_API_VERSION=$(cat "$RIRU_PATH/api_version") || RIRU_API_VERSION=0 | ||
[ "$RIRU_API_VERSION" -eq "$RIRU_API_VERSION" ] || RIRU_API_VERSION=0 | ||
ui_print "- Riru API version: $RIRU_API_VERSION" | ||
if [ "$RIRU_API_VERSION" -lt $RIRU_MIN_API_VERSION ]; then | ||
ui_print "*********************************************************" | ||
ui_print "! The latest version of Riru is required" | ||
ui_print "! Please install Riru (Riru - Core) from Magisk Manager or https://github.com/RikkaApps/Riru/releases" | ||
abort_clean "*********************************************************" | ||
fi | ||
} | ||
|
||
check_architecture() { | ||
if [ "$ARCH" != "arm" ] && [ "$ARCH" != "arm64" ] && [ "$ARCH" != "x86" ] && [ "$ARCH" != "x64" ]; then | ||
abort_clean "! Unsupported platform: $ARCH" | ||
else | ||
ui_print "- Device platform: $ARCH" | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/sbin/sh | ||
RIRU_MODULE_PATH="/data/misc/riru/modules" | ||
MODULE_ID="module_xfingerprint_pay_wechat" | ||
MODDIR=${0%/*} | ||
[ ! -f "$MODDIR/riru.sh" ] && exit 1 | ||
. $MODDIR/riru.sh | ||
|
||
rm -rf "$RIRU_MODULE_PATH/$MODULE_ID" | ||
rm -rf "$RIRU_MODULE_PATH" |
Oops, something went wrong.