Java tutorial
//package com.java2s; import android.os.Build; import android.util.Log; public class Main { public static boolean isSupportHeif() { Log.e("ljn", "Build.MANUFACTURER:" + Build.MANUFACTURER + ", Build.VERSION.SDK_INT:" + Build.VERSION.SDK_INT); return "HUAWEI".equals(Build.MANUFACTURER) && Build.VERSION.SDK_INT > 27; } }