Gets system properties set by adb shell setprop key value
try {
final Class<?> systemProperties = Class.forName("android.os.SystemProperties");
final Method get = systemProperties.getMethod("get", String.class, String.class);
return (String) get.invoke(null, key, defaultValue);
} catch (Exception e) {
// This should never happen
Log.e(TAG, "Exception while getting system property: ", e);
return defaultValue;
}