Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update supported device identifiers #30

Merged
merged 1 commit into from
Mar 31, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update supported device identifiers
This list was generated from the latest installer code.
  • Loading branch information
deprogram committed Mar 25, 2014
commit cc2bb257ff2cc11a8f96a7e304da6b7d0002f61c
124 changes: 68 additions & 56 deletions src/org/cyanogenmod/oneclick/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,86 +8,98 @@ public class Utils {
private static final ArrayList<String> SUPPORTED_DEVICES = new ArrayList<String>();

static {
SUPPORTED_DEVICES.add("blaze4g"); // Alternative for 't769'
SUPPORTED_DEVICES.add("crespo");
SUPPORTED_DEVICES.add("crespo4g");
SUPPORTED_DEVICES.add("maguro");
SUPPORTED_DEVICES.add("tuna"); // Alternative for 'maguro'
SUPPORTED_DEVICES.add("toro");
SUPPORTED_DEVICES.add("toroplus");
SUPPORTED_DEVICES.add("grouper");
SUPPORTED_DEVICES.add("tilapia");
SUPPORTED_DEVICES.add("flo");
SUPPORTED_DEVICES.add("deb");
SUPPORTED_DEVICES.add("mako");
SUPPORTED_DEVICES.add("hammerhead");
SUPPORTED_DEVICES.add("manta");
SUPPORTED_DEVICES.add("skyrocket");
SUPPORTED_DEVICES.add("SGH-I727"); // Alternative for 'skyrocket'
SUPPORTED_DEVICES.add("hercules");
SUPPORTED_DEVICES.add("SGH-T989"); // Alternative for 'hercules'
SUPPORTED_DEVICES.add("i9100");
SUPPORTED_DEVICES.add("GT-I9100"); // Alternative for 'i9100'
SUPPORTED_DEVICES.add("i9300");
SUPPORTED_DEVICES.add("GT-I9300"); // Alternative for 'i9300'
SUPPORTED_DEVICES.add("m0"); // Alternative for 'i9300'
SUPPORTED_DEVICES.add("d2att");
SUPPORTED_DEVICES.add("SGH-I747"); // Alternative for 'd2att'
SUPPORTED_DEVICES.add("d2can");
SUPPORTED_DEVICES.add("d2cri");
SUPPORTED_DEVICES.add("d2spr");
SUPPORTED_DEVICES.add("SPH-L710"); // Alternative for 'd2spr'
SUPPORTED_DEVICES.add("d2tmo");
SUPPORTED_DEVICES.add("SGH-T999"); // Alternative for 'd2tmo'
SUPPORTED_DEVICES.add("SGH-T999V"); // Alternative for 'd2tmo'
SUPPORTED_DEVICES.add("d2usc");
SUPPORTED_DEVICES.add("d2cri");
SUPPORTED_DEVICES.add("t769");
SUPPORTED_DEVICES.add("SGH-T769"); // Alternative for 't769'
SUPPORTED_DEVICES.add("sgh-t769"); // Alternative for 't769'
SUPPORTED_DEVICES.add("Blaze4G"); // Alternative for 't769'
SUPPORTED_DEVICES.add("Blaze4g"); // Alternative for 't769'
SUPPORTED_DEVICES.add("blaze4G"); // Alternative for 't769'
SUPPORTED_DEVICES.add("blaze4g"); // Alternative for 't769'
SUPPORTED_DEVICES.add("jfltexx");
SUPPORTED_DEVICES.add("deb");
SUPPORTED_DEVICES.add("find5");
SUPPORTED_DEVICES.add("flo");
SUPPORTED_DEVICES.add("galaxynote");
SUPPORTED_DEVICES.add("galaxys2");
SUPPORTED_DEVICES.add("grouper");
SUPPORTED_DEVICES.add("gt-i9100"); // Alternative for 'i9100'
SUPPORTED_DEVICES.add("gt-i9100m"); // Alternative for 'i9100'
SUPPORTED_DEVICES.add("gt-i9100p"); // Alternative for 'i9100'
SUPPORTED_DEVICES.add("gt-i9100t"); // Alternative for 'i9100'
SUPPORTED_DEVICES.add("gt-i9300"); // Alternative for 'i9300'
SUPPORTED_DEVICES.add("gt-i9505");
SUPPORTED_DEVICES.add("gt-i9505g");
SUPPORTED_DEVICES.add("gt-n7000"); // Alternative for 'n7000'
SUPPORTED_DEVICES.add("gt-n7105");
SUPPORTED_DEVICES.add("gt-n7105t");
SUPPORTED_DEVICES.add("hammerhead");
SUPPORTED_DEVICES.add("hercules");
SUPPORTED_DEVICES.add("i9100");
SUPPORTED_DEVICES.add("i9300");
SUPPORTED_DEVICES.add("i9505");
SUPPORTED_DEVICES.add("i9505g");
SUPPORTED_DEVICES.add("jflte"); // Alternative for 'jfltexx'
SUPPORTED_DEVICES.add("jgedlte"); // Alternative for 'jfltexx'
SUPPORTED_DEVICES.add("jfltespr");
SUPPORTED_DEVICES.add("jfltecan");
SUPPORTED_DEVICES.add("jfltecri");
SUPPORTED_DEVICES.add("jfltecsp");
SUPPORTED_DEVICES.add("jfltespr");
SUPPORTED_DEVICES.add("jfltetmo");
SUPPORTED_DEVICES.add("jflteusc");
SUPPORTED_DEVICES.add("n7000");
SUPPORTED_DEVICES.add("GT-N7000"); // Alternative for 'n7000'
SUPPORTED_DEVICES.add("quincyatt");
SUPPORTED_DEVICES.add("SGH-I717"); // Alternative for 'quincyatt'
SUPPORTED_DEVICES.add("quincytmo");
SUPPORTED_DEVICES.add("SGH-T879"); // Alternative for 'quincytmo'
SUPPORTED_DEVICES.add("t0lte");
SUPPORTED_DEVICES.add("n7100");
SUPPORTED_DEVICES.add("t03g"); // Alternative for 'n7100'
SUPPORTED_DEVICES.add("t0lteatt");
SUPPORTED_DEVICES.add("SGH-I317"); // Alternative for 't0lteatt'
SUPPORTED_DEVICES.add("t0ltetmo");
SUPPORTED_DEVICES.add("jfltexx");
SUPPORTED_DEVICES.add("jgedlte"); // Alternative for 'jfltexx'
SUPPORTED_DEVICES.add("l900");
SUPPORTED_DEVICES.add("SPH-L900"); // Alternative for 'l900'
SUPPORTED_DEVICES.add("t0ltespr"); // Alternative for 'l900'
SUPPORTED_DEVICES.add("m7ul");
SUPPORTED_DEVICES.add("m0"); // Alternative for 'i9300'
SUPPORTED_DEVICES.add("m7"); // Alternative for 'm7ul' and other variants.
SUPPORTED_DEVICES.add("m7_spr"); // Alternative for 'm7spr'
SUPPORTED_DEVICES.add("m7_ul"); // Alternative for 'm7ul'
SUPPORTED_DEVICES.add("m7tmo");
SUPPORTED_DEVICES.add("m7_tmo"); // Alternative for 'm7tmo'
SUPPORTED_DEVICES.add("m7_wls"); // Alternative for 'm7spr'
SUPPORTED_DEVICES.add("m7att");
SUPPORTED_DEVICES.add("m7_att"); // Alternative for 'm7att'
SUPPORTED_DEVICES.add("m7spr");
SUPPORTED_DEVICES.add("m7_spr"); // Alternative for 'm7spr'
SUPPORTED_DEVICES.add("m7_wls"); // Alternative for 'm7spr'
SUPPORTED_DEVICES.add("m7tmo");
SUPPORTED_DEVICES.add("m7ul");
SUPPORTED_DEVICES.add("m7wls"); // Alternative for 'm7spr'
SUPPORTED_DEVICES.add("maguro");
SUPPORTED_DEVICES.add("mako");
SUPPORTED_DEVICES.add("manta");
SUPPORTED_DEVICES.add("n1");
SUPPORTED_DEVICES.add("n7000");
SUPPORTED_DEVICES.add("n7100");
SUPPORTED_DEVICES.add("quincyatt");
SUPPORTED_DEVICES.add("quincytmo");
SUPPORTED_DEVICES.add("sgh-i317"); // Alternative for 't0lteatt'
SUPPORTED_DEVICES.add("sgh-i317m"); // Alternative for 't0lteatt'
SUPPORTED_DEVICES.add("sgh-i717"); // Alternative for 'quincyatt'
SUPPORTED_DEVICES.add("sgh-i727"); // Alternative for 'skyrocket'
SUPPORTED_DEVICES.add("sgh-i747"); // Alternative for 'd2att'
SUPPORTED_DEVICES.add("sgh-t769"); // Alternative for 't769'
SUPPORTED_DEVICES.add("sgh-t769"); // Alternative for 't769'
SUPPORTED_DEVICES.add("sgh-t879"); // Alternative for 'quincytmo'
SUPPORTED_DEVICES.add("sgh-t989"); // Alternative for 'hercules'
SUPPORTED_DEVICES.add("sgh-t999"); // Alternative for 'd2tmo'
SUPPORTED_DEVICES.add("sgh-t999v"); // Alternative for 'd2tmo'
SUPPORTED_DEVICES.add("skyrocket");
SUPPORTED_DEVICES.add("sph-l710"); // Alternative for 'd2spr'
SUPPORTED_DEVICES.add("sph-l900"); // Alternative for 'l900'
SUPPORTED_DEVICES.add("t03g"); // Alternative for 'n7100'
SUPPORTED_DEVICES.add("t0lte");
SUPPORTED_DEVICES.add("t0lteatt");
SUPPORTED_DEVICES.add("t0ltecan");
SUPPORTED_DEVICES.add("t0ltespr"); // Alternative for 'l900'
SUPPORTED_DEVICES.add("t0ltetmo");
SUPPORTED_DEVICES.add("t0ltexx");
SUPPORTED_DEVICES.add("t769");
SUPPORTED_DEVICES.add("tilapia");
SUPPORTED_DEVICES.add("toro");
SUPPORTED_DEVICES.add("toroplus");
SUPPORTED_DEVICES.add("tuna"); // Alternative for 'maguro'
SUPPORTED_DEVICES.add("x909"); // Alternative for 'find5'
}

public static boolean isDeviceSupported() {
String device = SystemProperties.get("ro.product.device");
if (device != null) {
if (SUPPORTED_DEVICES.contains(device)) {
if (SUPPORTED_DEVICES.contains(device.toLowerCase())) {
return true;
}
}
Expand Down