Add device utils from Slim

Thanks to SlimRom