code: public boolean checkRootingDevice() {
  		boolean isRootingFlag = false;
  		BufferedReader reader = null;
  		try {
  			Process process = Runtime.getRuntime().exec("find / -name su");
  
  			reader = new BufferedReader(new InputStreamReader(
  					process.getInputStream()));
  			
  			String result = reader.readLine();
  			if (result == null) {
  				Log.d(TAG, "Failed to execute find command to check if a file which is evidence of root exists");
  				throw new RuntimeException("Unable to check if device is rooted");
  			}
  				
  			if (result.contains("/su") == true) {
  				isRootingFlag = true;
  			}
  
  		} catch (Exception e) {
  			isRootingFlag = false;
  		} finally {
  			if (reader != null) {
  				try {
  					reader.close();
  				} catch (IOException e) {
  					Log.d(TAG, "Error occured while closing input stream");
  				}
  			}
  		}
  
  		if (!isRootingFlag) {
  			isRootingFlag = checkRootingFiles(PLACES);
  		}
  
  		return isRootingFlag;
  	}
docs: Refer : http://lsit81.tistory.com/entry/Android-%EB%A3%A8%ED%8C%85-%EC%97%AC%EB%B6%80-%ED%99%95%EC%9D%B8%ED%95%98%EA%B8%B0