public static ProcessBuilder rtlSdrSnif(String dir,String frequency,String gain,String samplerate){
  ProcessBuilder pb=new ProcessBuilder("rtl_sdr","-f",frequency,"-g",gain,frequency + "_AIRPROBE_OUTPUT_BIN","-s",samplerate);
  pb.directory(new File(dir));
  return pb;
}

public static ProcessBuilder rtlSdrSnif ( String dir , String frequency , String gain , String samplerate ) { ProcessBuilder pb = new ProcessBuilder ( "rtl_sdr" , "-f" , frequency , "-g" , gain , frequency + "_AIRPROBE_OUTPUT_BIN" , "-s" , samplerate ) ; pb . directory ( new File ( dir ) ) ; return pb ; }
use rtl_sdr command to sniff a gsm tower
