android app获取手机soc频率
2014-12-09 09:24
866 查看
public static String getvalidCpuFreq() {
String result = "";
ProcessBuilder cmd;
try {
String[] args = { "/system/bin/cat",
"/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies" };
cmd = new ProcessBuilder(args);
Process process = cmd.start();
InputStream in = process.getInputStream();
byte[] re = new byte[24];
while (in.read(re) != -1) {
result = result + new String(re);
}
in.close();
} catch (IOException ex) {
ex.printStackTrace();
result = "N/A";
}
return result;
}
mattcpu=getvalidCpuFreq();//matt
cpulist= mattcpu.split(" "); //matt
String result = "";
ProcessBuilder cmd;
try {
String[] args = { "/system/bin/cat",
"/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies" };
cmd = new ProcessBuilder(args);
Process process = cmd.start();
InputStream in = process.getInputStream();
byte[] re = new byte[24];
while (in.read(re) != -1) {
result = result + new String(re);
}
in.close();
} catch (IOException ex) {
ex.printStackTrace();
result = "N/A";
}
return result;
}
mattcpu=getvalidCpuFreq();//matt
cpulist= mattcpu.split(" "); //matt
相关文章推荐
- Android获取手机型号,系统版本,App版本号等信息
- android 安卓APP获取手机设备信息和手机号码的代码示例 .
- Android获取手机型号,系统版本,App版本号等信息
- Android 手机获取加速度传感器加速度数据并自定义采样频率
- 获取Android手机里所有已安装的APP
- Android获取手机型号,系统版本,App版本号等信息
- Android获取手机型号,系统版本,App版本号等信息
- 获取Android手机系统当前界面Activity;(第三方app跳转华为,小米,oppo,vivo的自启动管理)
- Android获取手机信息和APP信息大全
- Android--获取手机所有APP信息
- 【代码】android 开发获取当前手机中安装的全部App列表
- Android如何获取手机上面已经安装的app
- Android 手机获取加速度传感器加速度数据并自定义采样频率
- 实时获取Android手机CPU频率
- android 安卓APP获取手机设备信息和手机号码的代码示例
- 获取Android手机型号,系统版本,App版本号等信息
- android 安卓APP获取手机设备信息和手机号码的代码示例
- Android获取手机型号/系统版本号/App版本号等信息实例讲解
- android 获取手机屏幕的刷新频率
- Android获取手机上安装的APP和正在显示的APP