Skip to content

Commit

Permalink
fix client id hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Juby210 committed Oct 28, 2023
1 parent 876f7ce commit 2af98db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {
applicationId = "io.github.juby210.swiftbackupprem"
minSdk = 27
targetSdk = 34
versionCode = 201
versionName = "2.0.1"
versionCode = 202
versionName = "2.0.2"
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void beforeHookedMethod(MethodHookParam param) throws Throwable {
if (classClientId != null) {
XposedBridge.hookMethod(classClientId.getDeclaredMethod("f", boolean.class), new XC_MethodHook() {
public void beforeHookedMethod(MethodHookParam param) throws Throwable {
var clientId = c.getDeclaredField("c");
var clientId = classClientId.getDeclaredField("c");
clientId.setAccessible(true);
clientId.set(null, prefs.getClientId());
}
Expand Down

0 comments on commit 2af98db

Please sign in to comment.