This library is designed for rooted qualcomm android devices.
This library is experimental and is missing all safety checks. Use this at your own risk.
Java docs are available here: http://shelnutt2.github.io/BandDetection/
This library requires root and uses RootTools for access.
Include this in your gradle dependencies
compile 'nu.shel.banddetection:banddetection:0.9.0'
To get the band call the static function BandDetection.DetectBand. This will find the modem serial device, get earfcn and translate it to a band object.
LTEBand currentBand = BandDetection.DetectBand();
This library also provides a way to run raw commands on the modem.
// Create new modem object
Modem mModem = new Modem();
// Run "AT" serial command and get output in ArrayList of each line.
ArrayList<String> output = mModem.RunModemCommand("AT");