@@ -0,0 +1,1904 @@
+package net.wequick.small.util;%0A%0Aimport android.os.Build;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0A/**%0A * This class%0A */%0Apublic final class JNIUtils %7B%0A%0A    private static int%5B%5D sSupportedABIFlags;%0A    private static String%5B%5D sSupportedABINames;%0A%0A    /**%0A     * Get the ABI (Application Binary Interface) name from a specify flag%0A     *%0A     * @param flag the flag refer to an ABI, this is automatically set by %60gradle-small'%0A     */%0A    public static String getExtractABI(int flag) %7B%0A        if (flag == 0) return null;%0A%0A        if (sSupportedABIFlags == null) %7B%0A            // ABIs on http://developer.android.com/intl/zh-cn/ndk/guides/abis.html%0A            // FIXME: the flags here should keep updating while any new ABIs born.%0A            Map%3CString, Integer%3E flags = new HashMap%3CString, Integer%3E();%0A            flags.put(%22armeabi%22,     1);%0A            flags.put(%22armeabi-v7a%22, 1 %3C%3C 1);%0A            flags.put(%22arm64-v8a%22,   1 %3C%3C 2);%0A            flags.put(%22x86%22,         1 %3C%3C 3);%0A            flags.put(%22x86_64%22,      1 %3C%3C 4);%0A            flags.put(%22mips%22,        1 %3C%3C 5);%0A            flags.put(%22mips64%22,      1 %3C%3C 6);%0A%0A            String%5B%5D abis;%0A            if (Build.VERSION.SDK_INT %3E= 21) %7B%0A                abis = Build.SUPPORTED_ABIS;%0A            %7D else %7B%0A                abis = new String%5B%5D %7B Build.CPU_ABI, Build.CPU_ABI2 %7D;%0A            %7D%0A%0A            final int N = abis.length;%0A            sSupportedABINames = abis;%0A            sSupportedABIFlags = new int%5BN%5D;%0A            for (int i = 0; i %3C N; i++) %7B%0A                String abi = abis%5Bi%5D;%0A                sSupportedABIFlags%5Bi%5D = flags.get(abi);%0A            %7D%0A        %7D%0A%0A        final int N = sSupportedABIFlags.length;%0A        for (int i = 0; i %3C N; i++) %7B%0A            int f = sSupportedABIFlags%5Bi%5D;%0A            if ((flag & f) != 0) %7B%0A                return sSupportedABINames%5Bi%5D;%0A            %7D%0A        %7D%0A        return null;%0A    %7D%0A%7D%0A

amend to 71e10d