diff --git a/app/src/main/java/df/root/ExploitRunner.java b/app/src/main/java/df/root/ExploitRunner.java index ebbee1f0..d5e6aaa6 100644 --- a/app/src/main/java/df/root/ExploitRunner.java +++ b/app/src/main/java/df/root/ExploitRunner.java @@ -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; @@ -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);