List of usage examples for android.os Build SUPPORTED_32_BIT_ABIS
String[] SUPPORTED_32_BIT_ABIS
To view the source code for android.os Build SUPPORTED_32_BIT_ABIS.
Click Source Link
From source file:com.theaetetuslabs.android_apkmaker.AndroidApkMaker.java
private static File unpackAapt(Context context, File aapt) throws IOException { if (!aapt.exists()) { String aaptToUse = null;//w w w.jav a2 s. c o m boolean usePie = VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN; String abi; if (VERSION.SDK_INT > VERSION_CODES.LOLLIPOP) { String[] abis = Build.SUPPORTED_32_BIT_ABIS; for (String mAbi : abis) { aaptToUse = getAaptFlavor(mAbi, usePie); if (aaptToUse != null) { break; } } } else { aaptToUse = getAaptFlavor(Build.CPU_ABI, usePie); } if (aaptToUse == null) { aaptToUse = "aapt-arm"; } if (usePie) { aaptToUse += "-pie"; } unpackAsset(context, aaptToUse, aapt); } if (!aapt.canExecute()) { aapt.setExecutable(true, true); } if (!aapt.canExecute()) { Runtime.getRuntime().exec("chmod 777 " + aapt.getAbsolutePath()); } return aapt; }