Java tutorial
//package com.java2s; //License from project: Apache License import android.os.Build; import java.util.Arrays; import java.util.List; public class Main { static List<String> CELLPHONEBLACKLIST = Arrays.asList(new String[] { "d2spr" }); private static boolean withinInBlackList() { if (CELLPHONEBLACKLIST.contains(Build.DEVICE)) { return true; } return false; } }