Find out what os type a connected phone is running.
var frida = require('frida');
var getOS = require('frida-get-os');
frida.getUsbDevice()
.then(getOS)
.then(function(type){
console.log('type: %s', type);
// Type can be
// - "ios"
// - "android"
})
MIT