I execute /proc/cpuinfo to get the details of CPU in android device using the below code.
try {
Process proc = Runtime.getRuntime().exec("cat /proc/cpuinfo");
InputStream is = proc.getInputStream();
TextView tv = (TextView)rootView.findViewById(R.id.textView1);
tv.setText(getStringFromInputStream(is));
}
catch (IOException e) {
Log.e("TAG", "------ getCpuInfo " + e.getMessage());
}
Within this it also returns Hardware Name. The Hardware name which I get is not in proper readable Format. I have tested this in various devices like Samsung Note 3, Micromax Canvas Doodle A111, Micromax Turbo A250.
This is what I get in these devices respectively:
- Samsung EXYNOS5420 : (but I need this name Samsung Exynos Octa 5420 )
- QRD MSM8625Q EVBD : (need name Qualcomm Snapdragon 200 )
- MT6589 : ( MediaTek MT6589 )
How can I overcome this, Please Help !!!