-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
17 changed files
with
182 additions
and
55 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 |
---|---|---|
|
@@ -36,13 +36,6 @@ jobs: | |
run: | | ||
./gradlew assembleRelease | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
id: upload | ||
with: | ||
name: app-release | ||
path: app/build/outputs/apk/release/app-release.apk | ||
|
||
- name: Setup NodeJs | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -65,3 +58,10 @@ jobs: | |
|
||
- name: Run Node.js script | ||
run: node index.js | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
id: upload | ||
with: | ||
name: app-release | ||
path: app/build/outputs/apk/release/app-release.apk |
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
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
33 changes: 33 additions & 0 deletions
33
app/src/main/java/its/madruga/warevamp/module/hooks/privacy/FreezeLastSeenHook.java
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,33 @@ | ||
package its.madruga.warevamp.module.hooks.privacy; | ||
|
||
import static its.madruga.warevamp.module.references.References.freezeLastSeenMethod; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
import de.robv.android.xposed.XC_MethodHook; | ||
import de.robv.android.xposed.XSharedPreferences; | ||
import de.robv.android.xposed.XposedBridge; | ||
import its.madruga.warevamp.module.hooks.core.HooksBase; | ||
|
||
public class FreezeLastSeenHook extends HooksBase { | ||
public FreezeLastSeenHook(@NonNull ClassLoader loader, @NonNull XSharedPreferences preferences) { | ||
super(loader, preferences); | ||
} | ||
|
||
@Override | ||
public void doHook() throws Exception { | ||
super.doHook(); | ||
|
||
boolean freeze = prefs.getBoolean("freeze_last_seen", false); | ||
|
||
if (!freeze) return; | ||
|
||
XposedBridge.hookMethod(freezeLastSeenMethod(loader), new XC_MethodHook() { | ||
@Override | ||
protected void beforeHookedMethod(MethodHookParam param) throws Throwable { | ||
if (freeze) param.setResult(null); | ||
else super.beforeHookedMethod(param); | ||
} | ||
}); | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
app/src/main/java/its/madruga/warevamp/module/hooks/privacy/HideTypingRecordingHook.java
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,42 @@ | ||
package its.madruga.warevamp.module.hooks.privacy; | ||
|
||
import static its.madruga.warevamp.module.references.References.typingAndRecordingMethod; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
import de.robv.android.xposed.XC_MethodHook; | ||
import de.robv.android.xposed.XSharedPreferences; | ||
import de.robv.android.xposed.XposedBridge; | ||
import its.madruga.warevamp.module.hooks.core.HooksBase; | ||
|
||
public class HideTypingRecordingHook extends HooksBase { | ||
public HideTypingRecordingHook(@NonNull ClassLoader loader, @NonNull XSharedPreferences preferences) { | ||
super(loader, preferences); | ||
} | ||
|
||
@Override | ||
public void doHook() throws Exception { | ||
super.doHook(); | ||
|
||
boolean hide_typing = prefs.getBoolean("hide_typing", false); | ||
boolean hide_recording = prefs.getBoolean("hide_recording", false); | ||
|
||
if (!hide_typing && !hide_recording) return; | ||
|
||
XposedBridge.hookMethod(typingAndRecordingMethod(loader), new XC_MethodHook() { | ||
@Override | ||
protected void beforeHookedMethod(MethodHookParam param) throws Throwable { | ||
var p1 = (int) param.args[2]; | ||
if (p1 == 1 && hide_recording) { | ||
param.setResult(null); | ||
return; | ||
} | ||
if (p1 == 0 && hide_typing) { | ||
param.setResult(null); | ||
return; | ||
} | ||
super.beforeHookedMethod(param); | ||
} | ||
}); | ||
} | ||
} |
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
Oops, something went wrong.