Skip to content

Commit

Permalink
decrease logging
Browse files Browse the repository at this point in the history
  • Loading branch information
programminghoch10 committed Dec 12, 2023
1 parent 8ac60ca commit d5667f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions magiskmodule/system/bin/revancedcli
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/system/bin/sh

[ -z "$MODPATH" ] && MODPATH=/data/adb/modules/revancedrepackaged
echo "modpath = $MODPATH" >&2
#echo "modpath = $MODPATH" >&2

HEAPLIMIT="$(getprop dalvik.vm.heapgrowthlimit)"
setHeapLimit() {
Expand All @@ -15,7 +15,7 @@ trap setHeapLimit EXIT
invoke() {
app_process \
-cp "$MODPATH"/revancedandroidcli.apk \
$(pwd) \
"$(pwd)" \
com.programminghoch10.revancedandroidcli.MainCommand \
"$@"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
package com.programminghoch10.revancedandroidcli;

import java.lang.reflect.Method;
import app.revanced.cli.command.MainCommandKt;

public class MainCommand{
public static void main(String[] args) {
System.out.println("sysout");
System.err.println("syserr");
//System.out.println("sysout");
//System.err.println("syserr");
Runtime runtime = Runtime.getRuntime();
long maxMemory = runtime.maxMemory();
System.err.println("Memory limit: " + maxMemory);
//System.err.println("Memory limit: " + maxMemory);
try {
System.err.println("property");
//System.err.println("property");
System.setProperty("java.io.tmpdir", "/data/local/tmp");
System.err.println("invoke");
//System.err.println("invoke");
MainCommandKt.main(args);
System.err.println("end");
//System.err.println("end");
System.exit(0);
} catch (Exception e) {
System.err.println("error");
Expand Down

0 comments on commit d5667f5

Please sign in to comment.