Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.logicvoid.rosiesettingsz;
- import android.content.Context;
- import android.util.Log;
- import com.logicvoid.rosiesettingsz.ShellCommand.CommandResult;
- public class KangDetection {
- private static final String TAG = "KangDetection";
- public static Boolean isKanged()
- {
- Boolean returnValue = false;
- ShellCommand cmd = new ShellCommand();
- CommandResult r = cmd.sh.runWaitFor("getprop ro.build.description");
- if (!r.success()) {
- Log.v(TAG, "Error " + r.stderr);
- } else {
- String stdout = r.stdout;
- if(stdout.contains("Synergy"))
- {
- returnValue = false;
- }
- else
- {
- returnValue = true;
- }
- Log.v(TAG, "Success! " + r.stdout);
- }
- return returnValue;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement