Personally, I use it as a hack, but perhaps you may find it useful. The idea is to use a cat to analyze / proc / cpuinfo and look for GenuineIntel. I use it in one application.
As I said, it seems like a hack, maybe a more experienced Android developer can offer a better solution.
private boolean isAnIntel() { String[] args = {"/system/bin/cat", "/proc/cpuinfo"}; cmd = new ProcessBuilder(args); Process process = cmd.start(); InputStream in = process.getInputStream(); byte[] re = new byte[1024]; while(in.read(re) != -1){ result = result + new String(re); } in.close(); return result.indexOf("GenuineIntel") > 0; }
source share