Skip to content

Commit

Permalink
整合控制菜单进入微信设置页
Browse files Browse the repository at this point in the history
修复密钥安全问题
修复第一次会无故不能使用指纹支付
  • Loading branch information
eritpchy committed Sep 10, 2017
1 parent 14503c0 commit c5b047e
Show file tree
Hide file tree
Showing 44 changed files with 1,931 additions and 289 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

感谢原作者 dss16694/WechatFp , 这么给力的项目

#注意: 这是Xposed插件
## 注意: 这是Xposed插件

使用步骤:
1. 下载并安装插件: https://github.com/eritpchy/WechatFp/releases/download/1.3/WechatFp-1.3-release.apk
Expand Down
9 changes: 6 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ android {
minSdkVersion 14
targetSdkVersion 26
versionCode 6
versionName "1.3.0"
versionName "1.4.0"
buildConfigField "String", "APP_SETTINGS_NAME", "\"指紋設置\""
buildConfigField "String", "APP_PRODUCT_NAME", "\"WeChatFp\""
}
buildTypes {
release {
Expand All @@ -35,7 +37,7 @@ android.applicationVariants.all { variant ->
println "Running app..."
exec {
executable = ADB_PATH
args = ['shell', "am start -n ${variant.applicationId}/.SettingsActivity"]
args = ['shell', "am start -n ${variant.applicationId}/.activity.HomeActivity"]
}
}
}
Expand All @@ -62,6 +64,7 @@ task debugWechat(dependsOn: "installDebug") {
dependencies {
implementation 'com.android.support:support-v4:26.0.2'
implementation 'com.wei.android.lib:fingerprintidentify:1.2.1'
implementation 'com.crossbowffs.remotepreferences:remotepreferences:0.5'
implementation 'com.google.code.gson:gson:2.8.1'
implementation 'com.squareup.okhttp3:okhttp:3.8.1'
provided 'de.robv.android.xposed:api:53'
}
27 changes: 13 additions & 14 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.yyxx.wechatfp">

<uses-permission android:name="android.permission.USE_FINGERPRINT"/>
<uses-permission android:name="com.fingerprints.service.ACCESS_FINGERPRINT_MANAGER"/>
<uses-permission android:name="com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY"/>
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
<uses-permission android:name="com.fingerprints.service.ACCESS_FINGERPRINT_MANAGER" />
<uses-permission android:name="com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY" />
<uses-permission android:name="android.permission.INTERNET" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">

<meta-data
android:name="xposedmodule"
android:value="true" />
Expand All @@ -20,22 +22,19 @@
<meta-data
android:name="xposedminversion"
android:value="54" />

<activity
android:name=".SettingsActivity"
android:name=".activity.HomeActivity"
android:label="微信指纹支付">
<intent-filter>
<action
android:name="android.intent.action.MAIN" />
<category
android:name="de.robv.android.xposed.category.MODULE_SETTINGS" />
<action android:name="android.intent.action.MAIN" />

<category android:name="de.robv.android.xposed.category.MODULE_SETTINGS" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<provider
android:name=".XPreferenceProvider"
android:authorities="com.yyxx.wechatfp.XPreferenceProvider"
android:exported="true"/>
<activity android:name=".activity.WebActivity"
android:parentActivityName=".activity.HomeActivity"/>

</application>

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/assets/xposed_init
Original file line number Diff line number Diff line change
@@ -1 +1 @@
com.yyxx.wechatfp.WalletBaseUI
com.yyxx.wechatfp.xposed.WalletBaseUI
16 changes: 16 additions & 0 deletions app/src/main/java/com/yyxx/wechatfp/Constant.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.yyxx.wechatfp;

/**
* Created by Jason on 2017/9/10.
*/

public class Constant {

public static final String PACKAGE_BANE_WECHAT = "com.tencent.mm";
public static final String HELP_URL_WECHAT = "https://github.com/eritpchy/WechatFp/blob/master/doc/WeChat/README.md";
public static final String PROJECT_URL = "https://github.com/eritpchy/WechatFp";
public static final String UPDATE_URL_GITHUB = "https://api.github.com/repos/eritpchy/WechatFp/releases/latest";
public static final String DONATE_ID_ALIPAY = "https://qr.alipay.com/FKX012222QIU52C6LATAB7";
public static final String DONATE_ID_WECHAT = "wxp://f2f0-1_Hm7XAY7SXA3B_0R0v-VJD71jYCWog";

}
81 changes: 0 additions & 81 deletions app/src/main/java/com/yyxx/wechatfp/ObfuscationHelper.java

This file was deleted.

102 changes: 0 additions & 102 deletions app/src/main/java/com/yyxx/wechatfp/SettingsActivity.java

This file was deleted.

31 changes: 0 additions & 31 deletions app/src/main/java/com/yyxx/wechatfp/XPreferenceProvider.java

This file was deleted.

Loading

0 comments on commit c5b047e

Please sign in to comment.