命令行设置获取 setprop key value getprop key 反射获取 获取 private static String getSystemPropertyByStream(final String key) throws Exception{ Class<?> c =Class.forName("android.os.SystemProperties"); Method get =c.getMethod("get", String.class); return (String)get.invoke(c, key); }