modify to work with slimroms ro.product.device

Change-Id: I3793adf278dcbcc3e86ebf515a9fee6d167558c9