Actually, you can get the architecture without the need for reflexion at all:
String arch = System.getProperty("os.arch");
From my tests it returned armv71
and i686
.
EDIT:
On MIPS architecture, it either returns 'mips' or 'mips64'
On 64 bit ARM/Intel, it returns 'aarch64' or 'x86_64' respectively.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…