Skip to content
This repository was archived by the owner on Sep 1, 2021. It is now read-only.

Commit dd9170d

Browse files
committed
+ 3.9.5 适配微信深色模式
+ 支持debug调试
1 parent b38aeef commit dd9170d

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

riru-module-xfingerprint-pay-wechat/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ android {
2222

2323
task zip(type: Exec) {
2424
workingDir '..'
25-
commandLine 'sh', 'build.sh', project.name, 'v3.9.4'
25+
commandLine 'sh', 'build.sh', project.name, 'v3.9.5'
2626
}

riru-module-xfingerprint-pay-wechat/jni/main/main.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,12 @@ int nativeForkAndSpecializePost(JNIEnv *env, jclass clazz, jint res) {
125125
char appCacheDir[PATH_MAX] = {0};
126126
snprintf(appCacheDir, PATH_MAX - 1, "%s/cache", sAppDataDir);
127127

128-
loadDex(env,
129-
env->NewStringUTF("/system/framework/libxfingerprint_pay_wechat.dex"),
128+
const char *dexPath = "/data/local/tmp/libxfingerprint_pay_wechat.dex";
129+
if (access(dexPath, 0) != 0) {
130+
dexPath = "/system/framework/libxfingerprint_pay_wechat.dex";
131+
}
132+
loadDex(env,
133+
env->NewStringUTF(dexPath),
130134
env->NewStringUTF(appCacheDir),
131135
env->NewStringUTF("com.yyxx.wechatfp.xposed.plugin.XposedWeChatPlugin"),
132136
"main",
Binary file not shown.

riru-module-xfingerprint-pay-wechat/template_override/module.prop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id=riru-module-xfingerprint-pay-wechat
22
name=Riru - 指纹支付 - 微信
3-
version=v3.9.4
3+
version=v3.9.5
44
versionCode=1
55
author=Jason Eric
66
description=让微信支持指纹支付 Fingerprint pay for wechat

riru-module-xfingerprint-pay-wechat/template_override/riru_module.prop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Riru - 指纹支付 - 微信
2-
version=v3.9.4
2+
version=v3.9.5
33
versionCode=1
44
author=Jason Eric
55
description=让微信支持指纹支付\nFingerprint pay for wechat

run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ set -e
33
cd ${0%/*}
44
./gradlew clean
55
./gradlew :riru-module-xfingerprint-pay-wechat:zip
6+
adb shell rm -fv "/data/local/tmp/libxfingerprint_pay_wechat.dex"
67
adb push ./release/* /sdcard/Download/

0 commit comments

Comments
 (0)