Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/src/main/java/df/root/ExploitRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import android.net.IpSecManager;
import android.net.IpSecTransform;
import android.os.Build;
import android.os.SystemProperties;

import java.io.BufferedReader;
import java.io.File;
Expand Down Expand Up @@ -39,6 +40,12 @@ public static synchronized int run(Context ctx, IReporter reporter) throws Excep
return 0;
}
reportDeviceInfo(reporter);
String logTag = SystemProperties.get("persist.log.tag", "");
if (!logTag.isEmpty() && Character.toUpperCase(logTag.charAt(0)) == 'S') {
reporter.report("ERROR: Developer Options → 'Log buffer size' is set to Off.\n" +
"Change it to any other value and retry.\n");
return 2;
}
File bin = new File(ctx.getApplicationInfo().nativeLibraryDir, NATIVE_BIN);
SharedPreferences prefs = ctx.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);
String suManagerPackage = prefs.getString(PREF_SU_MANAGER, null);
Expand Down
Loading