void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type) { char platform[PROP_VALUE_MAX]; char baseband[PROP_VALUE_MAX]; int rc; UNUSED(msm_id); UNUSED(msm_ver); rc = property_get("ro.board.platform", platform); if (!rc || !ISMATCH(platform, ANDROID_TARGET)) return; if (ISMATCH(board_type, "Liquid")) { property_set(PROP_LCDDENSITY, "160"); /* Liquid do not have hardware navigation keys, so enable Android sw navigation bar */ property_set(PROP_QEMU_NAVKEY, "0"); } else if (ISMATCH(board_type, "Dragon")) property_set(PROP_LCDDENSITY, "240"); else { property_set(PROP_LCDDENSITY, "320"); } rc = property_get(PROP_BOOT_BASEBAND, baseband); if ((rc != NULL) && ISMATCH(baseband, "apq")) { property_set(PROP_BLUETOOTH_SOC, "ath3k"); } }
void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type) { char platform[PROP_VALUE_MAX]; char radio[PROP_VALUE_MAX]; char device[PROP_VALUE_MAX]; char carrier[PROP_VALUE_MAX]; char bootdevice[PROP_VALUE_MAX]; char devicename[PROP_VALUE_MAX]; int rc; UNUSED(msm_id); UNUSED(msm_ver); UNUSED(board_type); rc = property_get("ro.board.platform", platform); if (!rc || !ISMATCH(platform, ANDROID_TARGET)) return; property_get("ro.boot.radio", radio); property_get("ro.boot.carrier", carrier); property_get("ro.boot.device", bootdevice); if (ISMATCH(bootdevice, "obakem")) { /* xt1030 - obakem */ property_set("ro.product.device", "obakem"); property_set("ro.build.product", "obakem"); property_set("ro.product.model", "DROID Mini"); property_set("ro.audio.init", "obakem"); } else if (ISMATCH(bootdevice, "obake")) { /* xt1080 - obake */ property_set("ro.product.device", "obake"); property_set("ro.build.product", "obake"); property_set("ro.product.model", "DROID Ultra"); } else if (ISMATCH(bootdevice, "obake-maxx")) { /* xt1080m - obake-maxx */ property_set("ro.product.device", "obake-maxx"); property_set("ro.build.product", "obake-maxx"); property_set("ro.product.model", "DROID MAXX"); property_set("ro.audio.init", "obake-maxx"); } /* shared */ property_set("ro.build.description", "obake_verizon-user 4.4.4 SU5-24 24 release-keys"); property_set("ro.build.fingerprint", "motorola/obake_verizon/obake:4.4.4/SU5-24/24:user/release-keys"); /* fastboot oem config carrier switch */ if (ISMATCH(carrier, "vzw")) { verizon_properties(); /* Default - set in FXZ */ } else { gsm_properties(); /* Manually reconfigured */ } property_get("ro.product.device", device); strlcpy(devicename, device, sizeof(devicename)); INFO("Found device: %s radio id: %s carrier: %s Setting build properties for %s device\n", bootdevice, radio, carrier, devicename); }
void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type) { char platform[PROP_VALUE_MAX]; char radio[PROP_VALUE_MAX]; char device[PROP_VALUE_MAX]; char devicename[PROP_VALUE_MAX]; int rc; UNUSED(msm_id); UNUSED(msm_ver); UNUSED(board_type); rc = property_get("ro.board.platform", platform); if (!rc || !ISMATCH(platform, ANDROID_TARGET)) return; property_set("ro.product.model", "Moto E"); property_get("ro.boot.radio", radio); if (ISMATCH(radio, "0x1")) { /* xt1505 */ property_set("ro.product.device", "otus"); property_set("ro.build.product", "otus"); property_set("ro.build.description", "otus_retuglb-user 5.0.2 LXC22.99-12 11 release-keys"); property_set("ro.build.fingerprint", "motorola/otus_retuglb/otus:5.0.2/LXC22.99-12/11:user/release-keys"); property_set("ro.mot.build.customerid", "retusa_glb"); property_set("ro.telephony.default_network", "0"); property_set("persist.radio.multisim.config", ""); } else if (ISMATCH(radio, "0x5")) { /* xt1506 */ property_set("ro.product.device", "otus_ds"); property_set("ro.build.product", "otus_ds"); property_set("ro.build.description", "otus_reteu_ds-user 5.0.2 LXC22.99-13 11 release-keys"); property_set("ro.build.fingerprint", "motorola/otus_reteu_ds/otus_ds:5.0.2/LXC22.99-13/11:user/release-keys"); property_set("ro.mot.build.customerid", "reteuall"); property_set("ro.telephony.default_network", "3"); property_set("persist.radio.multisim.config", "dsds"); property_set("persist.radio.dont_use_dsd", "true"); property_set("persist.radio.plmn_name_cmp", "1"); } else if (ISMATCH(radio, "0x6")) { /* xt1511 */ property_set("ro.product.device", "otus"); property_set("ro.build.product", "otus"); property_set("ro.build.description", "otus_retuaws-user 5.0.2 LXC22.99-12 10 release-keys"); property_set("ro.build.fingerprint", "motorola/otus_retuaws/otus:5.0.2/LXC22.99-12/10:user/release-keys"); property_set("ro.mot.build.customerid", "retusa_aws"); property_set("ro.telephony.default_network", "0"); property_set("persist.radio.multisim.config", ""); } property_get("ro.product.device", device); strlcpy(devicename, device, sizeof(devicename)); ERROR("Found radio id: %s setting build properties for %s device\n", radio, devicename); }
void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type) { char platform[PROP_VALUE_MAX]; char radio[PROP_VALUE_MAX]; char device[PROP_VALUE_MAX]; char devicename[PROP_VALUE_MAX]; int rc; UNUSED(msm_id); UNUSED(msm_ver); UNUSED(board_type); rc = property_get("ro.board.platform", platform); if (!rc || !ISMATCH(platform, ANDROID_TARGET)) return; property_set("ro.product.model", "Moto E"); property_get("ro.boot.radio", radio); if (ISMATCH(radio, "0x1")) { /* xt1021 */ property_set("ro.product.device", "condor_umts"); property_set("ro.build.product", "condor_umts"); property_set("ro.build.description", "condor_retgb-user 4.4.4 KXC21.5-40 46 release-keys"); property_set("ro.build.fingerprint", "motorola/condor_retgb/condor_umts:4.4.4/KXC21.5-40/46:user/release-keys"); property_set("ro.mot.build.customerid", "retgb"); property_set("ro.telephony.default_network", "0"); property_set("persist.radio.multisim.config", ""); } else if (ISMATCH(radio, "0x5")) { /* xt1022 */ property_set("ro.product.device", "condor_umtsds"); property_set("ro.build.product", "condor_umtsds"); property_set("ro.build.description", "condor_retaildsds-user 4.4.4 KXC21.5-40 46 release-keys"); property_set("ro.build.fingerprint", "motorola/condor_retaildsds/condor_umtsds:4.4.4/KXC21.5-40/46:user/release-keys"); property_set("ro.mot.build.customerid", "retaildsdsall"); property_set("ro.telephony.default_network", "0,1"); property_set("persist.radio.multisim.config", "dsds"); property_set("persist.radio.dont_use_dsd", "true"); property_set("persist.radio.plmn_name_cmp", "1"); } else if (ISMATCH(radio, "0x6")) { /* xt1023 */ property_set("ro.product.device", "condor_umts"); property_set("ro.build.product", "condor_umts"); property_set("ro.build.description", "condor_retuaws-user 4.4.3 KXC21.5-34 26 release-keys"); property_set("ro.build.fingerprint", "motorola/condor_retuaws/condor_umts:4.4.3/KXC21.5-34/26:user/release-keys"); property_set("ro.mot.build.customerid", "retusa_aws"); property_set("ro.telephony.default_network", "0"); property_set("persist.radio.multisim.config", ""); } property_get("ro.product.device", device); strlcpy(devicename, device, sizeof(devicename)); ERROR("Found radio id: %s setting build properties for %s device\n", radio, devicename); }
void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type) { char platform[PROP_VALUE_MAX]; int rc; rc = property_get("ro.board.platform", platform); if (!rc || !ISMATCH(platform, ANDROID_TARGET)) return; /* Populate system properties */ switch (msm_id) { case 87: /* 8960 */ property_set("debug.composition.type", "dyn"); break; case 138: case 153: case 154: case 155: case 156: case 157: /* 8064 V2 PRIME | 8930AB | 8630AB | 8230AB | 8030AB | 8960AB */ property_set("debug.composition.type", "c2d"); break; default: ; /* do nothing */ } }
int main(int argc, char const *argv[]) { char buf[MAX_S]; char *ptr; int n; scanf("%d\n", &n); while(n--) { INIT(); fgets(buf, MAX_S, stdin); ptr = buf; while (*ptr != '\n' && *ptr != 0) { if (ISMATCH(*ptr)) { POP(); } else { if (*ptr == ')' || *ptr == ']' || ISFULL()) { done = 0; break; } PUSH(((int)*ptr) & MASK); } ptr++; } if (done && ISEMPTY()) { valid = 1; } if (valid) printf("Yes\n"); else printf("No\n"); } return 0; }
void init_msm_properties(unsigned long msm_id,unsigned long msm_ver, char *board_type) { char device[PROP_VALUE_MAX]; char rf_version[PROP_VALUE_MAX]; int rc; UNUSED(msm_id); UNUSED(msm_ver); UNUSED(board_type); rc = property_get("ro.cm.device", device); if (!rc || !ISMATCH(device, "onyx")) return; property_get("ro.boot.rf_version", rf_version); if (strstr(rf_version, "101")) { /* Chinese */ property_set("ro.product.model", "ONE E1001"); property_set("ro.rf_version", "TDD_FDD_Ch_All"); } else if (strstr(rf_version, "102")) { /* Asia/Europe */ property_set("ro.product.model", "ONE E1003"); property_set("ro.rf_version", "TDD_FDD_Eu"); } else if (strstr(rf_version, "103")){ /* America */ property_set("ro.product.model", "ONE E1005"); property_set("ro.rf_version", "TDD_FDD_Am"); } }
void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type) { char platform[PROP_VALUE_MAX]; char model[110]; FILE* fp; int rc; UNUSED(msm_id); UNUSED(msm_ver); UNUSED(board_type); rc = property_get("ro.board.platform", platform); if (!rc || !ISMATCH(platform, ANDROID_TARGET)) return; fp = fopen("/proc/app_info", "rb"); while (fgets(model, 100, fp)) if (strstr(model, "huawei_fac_product_name") != NULL) break; /* Huawei GX8 USA L03 */ if (strstr(model, "RIO-L03") != NULL) { common_properties(); property_set("ro.build.description", "RIO-L03-user 5.0 GRJ90 C567B141 release-keys"); property_set("ro.build.fingerprint", "HUAWEI/RIO-L03/HWRIO:5.1/HUAWEIRIO-L03/C567B141:user/release-keys"); } }
void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type) { char platform[PROP_VALUE_MAX]; char bootloader[PROP_VALUE_MAX]; char device[PROP_VALUE_MAX]; char devicename[PROP_VALUE_MAX]; int rc; UNUSED(msm_id); UNUSED(msm_ver); UNUSED(board_type); rc = property_get("ro.board.platform", platform); if (!rc || !ISMATCH(platform, ANDROID_TARGET)) return; property_get("ro.bootloader", bootloader); if (strstr(bootloader, "SC01F")) { /* hltedcm */ gsm_properties(); property_set("ro.build.fingerprint", "samsung/SC-01F/SC-01F:4.4.2/KOT49H/SC01FOMUFNF6:user/release-keys"); property_set("ro.build.description", "hltedcm-user 4.4.2 KOT49H SC01FOMUFNF6 release-keys"); property_set("ro.product.model", "SC-01F"); property_set("ro.product.device", "SC-01F"); property_set("ro.telephony.ril.v3", "newDialCode"); } property_get("ro.product.device", device); strlcpy(devicename, device, sizeof(devicename)); ERROR("Found bootloader id %s setting build properties for %s device\n", bootloader, devicename); }
void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type) { char platform[PROP_VALUE_MAX]; int rc; UNUSED(msm_id); UNUSED(msm_ver); UNUSED(board_type); rc = property_get("ro.board.platform", platform); if (!rc || !ISMATCH(platform, ANDROID_TARGET)) return; }
void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type) { char platform[PROP_VALUE_MAX]; char model[110]; FILE* fp; int rc; UNUSED(msm_id); UNUSED(msm_ver); UNUSED(board_type); rc = property_get("ro.board.platform", platform); if (!rc || !ISMATCH(platform, ANDROID_TARGET)) return; fp = fopen("/proc/app_info", "rb"); while (fgets(model, 100, fp)) if (strstr(model, "huawei_fac_product_name") != NULL) break; /* C8817D */ if (strstr(model, "C8817D") != NULL) { property_set("ro.product.model", "C8817D"); property_set("ro.product.name", "C8817D"); property_set("ro.product.device", "C8817D"); property_set("ro.build.product", "C8817D"); property_set("persist.radio.multisim.config", "dsds"); property_set("persist.dsds.enabled", "true"); property_set("ro.telephony.default_network", "22"); property_set("telephony.lteOnCdmaDevice", "1"); property_set("ro.config.is_cdma_phone", "true"); property_set("ro.cdma.home.operator.numeric", "46003"); property_set("ro.config.cdma.globalMode", "true"); property_set("ro.config.dsds_mode", "cdma_gsm"); property_set("ro.com.android.dataroaming","true"); property_set("ro.ril.multi_rat_capable","true"); property_set("ro.build.description", "C8817D-user 4.4.4 GRJ90 C92B381 release-keys"); property_set("ro.build.fingerprint", "Huawei/C8817D/hwC8817D:4.4.4/HuaweiC8817D/C92B381:user/release-keys"); } /* C8817E */ else if (strstr(model, "C8817E") != NULL) { property_set("ro.product.model", "HUAWEI C8817E"); property_set("ro.product.name", "C8817E"); property_set("ro.product.device", "C8817E"); property_set("ro.build.product", "C8817E"); property_set("ro.telephony.default_network", "22"); property_set("ro.build.description", "C8817E-user 4.4.4 GRJ90 C92B380 release-keys"); property_set("ro.build.fingerprint", "Huawei/C8817E/hwC8817E:4.4.4/HuaweiC8817E/C92B380:user/release-keys"); } /* G621-TL00 */ else if (strstr(model, "G621-TL00") != NULL) { property_set("ro.product.model", "G621-TL00"); property_set("ro.product.name", "G621-TL00"); property_set("ro.product.device", "G621-TL00"); property_set("ro.build.product", "G621-TL00"); property_set("persist.radio.multisim.config", "dsds"); property_set("persist.dsds.enabled", "true"); property_set("ro.telephony.default_network", "22"); property_set("ro.config.dsds_mode", "umts_gsm"); property_set("ro.ril.multi_rat_capable","true"); property_set("ro.build.description", "G621-TL00-user 4.4.4 GRJ90 C01B361SP01 release-keys"); property_set("ro.build.fingerprint", "Honor/G621-TL00/hwG621-TL00:4.4.4/HonorG621-TL00/C01B361SP01:user/release-keys"); } /* G620S-UL00 */ else if (strstr(model, "G620S-UL") != NULL) { property_set("ro.product.model", "G620S-UL00"); property_set("ro.product.name", "G620S-UL00"); property_set("ro.product.device", "G620S-UL00"); property_set("ro.build.product", "G620S-UL00"); property_set("persist.radio.multisim.config", "dsds"); property_set("persist.dsds.enabled", "true"); property_set("ro.telephony.default_network", "22"); property_set("ro.config.dsds_mode", "umts_gsm"); property_set("ro.ril.multi_rat_capable","true"); property_set("ro.build.description", "G620S-UL00-user 4.4.4 GRJ90 C17B246 release-keys"); property_set("ro.build.fingerprint", "Huawei/G620S-UL00/hwG620S-UL00:4.4.4/HuaweiG620S-UL00/C17B246:user/release-keys"); } /* G620S-L01 */ else if (strstr(model, "G620S-L01") != NULL) { property_set("ro.product.model", "G620S-L01"); property_set("ro.product.name", "G620S-L01"); property_set("ro.product.device", "G620S-L01"); property_set("ro.build.product", "G620S-L01"); property_set("ro.telephony.default_network", "9"); property_set("ro.build.description", "G620S-L01-user 4.4.4 GRJ90 C00B380 release-keys"); property_set("ro.build.fingerprint", "Huawei/G620S-L01/hwG620S-L01:4.4.4/HuaweiG620S-L01/C00B380:user/release-keys"); } /* Che1-CL20 */ else if (strstr(model, "Che1-CL20") != NULL) { property_set("ro.product.model", "Che1-CL20"); property_set("ro.product.name", "4x"); property_set("ro.product.device", "Che1-CL20"); property_set("ro.build.product", "Che1-CL20"); property_set("persist.radio.multisim.config", "dsds"); property_set("persist.dsds.enabled", "true"); property_set("ro.telephony.default_network", "22"); property_set("telephony.lteOnCdmaDevice", "1"); property_set("ro.cdma.home.operator.numeric", "46003"); property_set("ro.config.cdma.globalMode", "true"); property_set("ro.config.dsds_mode", "cdma_gsm"); property_set("ro.ril.multi_rat_capable","true"); property_set("ro.build.description", "Che1-CL20-user 4.4.4 GRJ90 C00B275 release-keys"); property_set("ro.build.fingerprint", "Honor/Che1-CL20/Che1:4.4.4/Che1-CL20/C00B275:user/ota-rel-keys,release-keys"); } /* Che1-CL10 */ else if (strstr(model, "Che1-CL10") != NULL) { property_set("ro.product.model", "Che1-CL10"); property_set("ro.product.name", "Che1-CL10"); property_set("ro.product.device", "Che1-CL10"); property_set("ro.build.product", "Che1-CL10"); property_set("persist.radio.multisim.config", "dsds"); property_set("persist.dsds.enabled", "true"); property_set("ro.telephony.default_network", "22"); property_set("telephony.lteOnCdmaDevice", "1"); property_set("ro.cdma.home.operator.numeric", "46003"); property_set("ro.config.cdma.globalMode", "true"); property_set("ro.config.dsds_mode", "cdma_gsm"); property_set("ro.com.android.dataroaming","true"); property_set("ro.ril.multi_rat_capable","true"); property_set("ro.build.description", "Che1-CL10-user 4.4.4 GRJ90 C92B275 release-keys"); property_set("ro.build.fingerprint", "Honor/Che1-CL10/Che1:4.4.4/Che1-CL10/C92B275:user/ota-rel-keys,release-keys"); } /* Che1-L04 */ else if (strstr(model, "Che1-L04") != NULL) { property_set("ro.product.model", "Che1-L04"); property_set("ro.product.name", "Che1-L04"); property_set("ro.product.device", "Che1-L04"); property_set("ro.build.product", "Che1-L04"); property_set("persist.radio.multisim.config", "dsds"); property_set("persist.dsds.enabled", "true"); property_set("ro.telephony.default_network", "22"); property_set("telephony.lteOnCdmaDevice", "1"); property_set("ro.config.dsds_mode", "umts_gsm"); property_set("ro.com.android.dataroaming","true"); property_set("ro.ril.multi_rat_capable","true"); property_set("ro.build.description", "Che1-L04-user 4.4.4 GRJ90 C900B130 release-keys"); property_set("ro.build.fingerprint", "Honor/Che1-L04/Che1:4.4.4/Che1-L04/C900B130:user/ota-rel-keys,release-keys"); } /* G760-L01 */ else if (strstr(model, "G760-L01") != NULL) { property_set("ro.product.model", "HUAWEI G760-L01"); property_set("ro.product.name", "G760-L01"); property_set("ro.product.device", "hwG760-L01"); property_set("ro.build.product", "G760-L01"); property_set("ro.telephony.default_network", "20"); property_set("ro.build.description", "G760-L01-user 5.1.1 GRJ90 C464B340 release-keys"); property_set("ro.build.fingerprint", "Huawei/G760-L01/hwG760-L01:5.1.1/HuaweiG760-L01/C464B340:user/release-keys"); } }
void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type) { char platform[PROP_VALUE_MAX]; char bootloader[PROP_VALUE_MAX]; char device[PROP_VALUE_MAX]; char devicename[PROP_VALUE_MAX]; int rc; UNUSED(msm_id); UNUSED(msm_ver); UNUSED(board_type); rc = property_get("ro.board.platform", platform); if (!rc || !ISMATCH(platform, ANDROID_TARGET)) return; property_get("ro.bootloader", bootloader); if (strstr(bootloader, "N900W8")) { /* hltecan */ property_set("ro.build.fingerprint", "samsung/hltevl/hltecan:4.3/JSS15J/N900W8VLUBMJ4:user/release-keys"); property_set("ro.build.description", "hltevl-user 4.3 JSS15J N900W8VLUBMJ4 release-keys"); property_set("ro.product.model", "SM-N900W8"); property_set("ro.product.device", "hltecan"); property_set("ro.telephony.ril.v3", "newDialCode"); } else if (strstr(bootloader, "N900P")) { /* hltespr */ property_set("ro.build.fingerprint", "samsung/hltespr/hltespr:4.3/JSS15J/N900PVPUBMJ4:user/release-keys"); property_set("ro.build.description", "hltespr-user 4.3 JSS15J N900PVPUBMJ4 release-keys"); property_set("ro.product.model", "SM-N900P"); property_set("ro.product.device", "hltespr"); property_set("ro.telephony.ril.v3", "newDriverCallU,newDialCode"); } else if (strstr(bootloader, "N900T")) { /* hltetmo */ property_set("ro.build.fingerprint", "samsung/hltetmo/hltetmo:4.3/JSS15J/N900TUVUBMI7:user/release-keys"); property_set("ro.build.description", "hltetmo-user 4.3 JSS15J N900TUVUBMI7 release-keys"); property_set("ro.product.model", "SM-N900T"); property_set("ro.product.device", "hltetmo"); property_set("ro.telephony.ril.v3", "newDialCode"); } else if (strstr(bootloader, "N900V")) { /* hltevzw */ property_set("ro.build.fingerprint", "Verizon/hltevzw/hltevzw:4.3/JSS15J/N900VOYUBMJ3:user/release-keys"); property_set("ro.build.description", "hltevzw-user 4.3 JSS15J N900VOYUBMJ3 release-keys"); property_set("ro.product.model", "SM-N900V"); property_set("ro.product.device", "hltevzw"); property_set("ro.telephony.ril.v3", "newDriverCallU,newDialCode"); property_set("ro.telephony.default_cdma_sub", "0"); property_set("ro.cdma.home.operator.alpha", "Verizon"); property_set("ro.cdma.home.operator.numeric", "311480"); } else { /* hltexx */ property_set("ro.build.fingerprint", "samsung/hltexx/hlte:4.3/JSS15J/N9005XXUBMH1:user/release-keys"); property_set("ro.build.description", "hltexx-user 4.3 JSS15J N9005XXUBMH1 release-keys"); property_set("ro.product.model", "SM-N9005"); property_set("ro.product.device", "hltexx"); property_set("ro.telephony.ril.v3", "newDialCode"); } property_get("ro.product.device", device); strlcpy(devicename, device, sizeof(devicename)); ERROR("Found bootloader id %s setting build properties for %s device\n", bootloader, devicename); }
void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type) { char platform[PROP_VALUE_MAX]; char bootloader[PROP_VALUE_MAX]; char device[PROP_VALUE_MAX]; char devicename[PROP_VALUE_MAX]; int rc; UNUSED(msm_id); UNUSED(msm_ver); UNUSED(board_type); rc = property_get("ro.board.platform", platform); if (!rc || !ISMATCH(platform, ANDROID_TARGET)) return; property_get("ro.bootloader", bootloader); if (strstr(bootloader, "P605M")) { /* lt03ltecmo */ gsm_properties(); property_set("ro.build.fingerprint", "samsung/lt03ltecmo/lt03lte:4.4.2/KOT49H/P605MUBUCNH1:user/release-keys"); property_set("ro.build.description", "lt03lteusc-user 4.4.2 KOT49H P605MUBUCNH1 release-keys"); property_set("ro.product.model", "SM-P605M"); property_set("ro.product.device", "lt03ltecmo"); } else if (strstr(bootloader, "P605S")) { /* lt03ltesks */ gsm_properties(); property_set("ro.build.fingerprint", "samsung/lt03ltesks/lt03lte:4.4.2/KOT49H/P605SKSUCNK3:user/release-keys"); property_set("ro.build.description", "lt03lteusc-user 4.4.2 KOT49H P605SKSUCNK3 release-keys"); property_set("ro.product.model", "SM-P605S"); property_set("ro.product.device", "lt03ltesks"); } else if (strstr(bootloader, "P605V")) { /* lt03ltevzw */ cdma_properties("0"); property_set("ro.build.fingerprint", "samsung/lt03ltevzw/lt03lte:4.4.2/KOT49H/P605VVRUCNK1:user/release-keys"); property_set("ro.build.description", "lt03ltevzw-user 4.4.2 KOT49H P605VVRUCNK1 release-keys"); property_set("ro.product.model", "SM-P605V"); property_set("ro.product.device", "lt03ltevzw"); property_set("ro.cdma.home.operator.alpha", "Verizon"); property_set("ro.cdma.home.operator.numeric", "311480"); } else if (strstr(bootloader, "P607T")) { /* lt03ltetmo */ gsm_properties(); property_set("ro.build.fingerprint", "samsung/lt03ltetmo/lt03ltetmo:4.4.4/KTU84P/P607TUVUANK2:user/release-keys"); property_set("ro.build.description", "lt03ltetmo-user 4.4.4 KTU84P P607TUVUANK2 release-keys"); property_set("ro.product.model", "SM-P607T"); property_set("ro.product.device", "lt03ltetmo"); } else { /* lt03ltexx */ gsm_properties(); property_set("ro.build.fingerprint", "samsung/lt03ltexx/lt03lte:4.4.2/KOT49H/P605XXUDOB1:user/release-keys"); property_set("ro.build.description", "lt03ltexx-user 4.4.2 KOT49H P605XXUDOB1 release-keys"); property_set("ro.product.model", "SM-P605"); property_set("ro.product.device", "lt03ltexx"); } property_get("ro.product.device", device); strlcpy(devicename, device, sizeof(devicename)); ERROR("Found bootloader id %s setting build properties for %s device\n", bootloader, devicename); }
void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type) { char platform[PROP_VALUE_MAX]; char model[110]; FILE* fp; int rc; UNUSED(msm_id); UNUSED(msm_ver); UNUSED(board_type); rc = property_get("ro.board.platform", platform); if (!rc || !ISMATCH(platform, ANDROID_TARGET)) return; fp = fopen("/proc/app_info", "rb"); while (fgets(model, 100, fp)) if (strstr(model, "huawei_fac_product_name") != NULL) break; /* G620S-L01 */ if (strstr(model, "G620S-L01") != NULL) { property_set("ro.product.model", "G620S-L01"); property_set("ro.product.name", "G620S-L01"); property_set("ro.product.device", "G620S-L01"); property_set("ro.build.product", "G620S-L01"); property_set("ro.telephony.default_network", "9"); property_set("ro.sf.lcd_density","320"); property_set("ro.build.description", "G620S-L01-user 4.4.4 GRJ90 C00B380 release-keys"); property_set("ro.build.fingerprint", "Huawei/G620S-L01/hwG620S-L01:4.4.4/HuaweiG620S-L01/C00B380:user/release-keys"); } /* G621-TL00 */ else if (strstr(model, "G621-TL00") != NULL) { property_set("ro.product.model", "G621-TL00"); property_set("ro.product.name", "G621-TL00"); property_set("ro.product.device", "G621-TL00"); property_set("ro.build.product", "G621-TL00"); property_set("persist.radio.multisim.config", "dsds"); property_set("persist.dsds.enabled", "true"); property_set("ro.telephony.default_network", "22"); property_set("ro.config.dsds_mode", "umts_gsm"); property_set("ro.ril.multi_rat_capable","true"); property_set("ro.sf.lcd_density","320"); property_set("ro.build.description", "G621-TL00-user 4.4.4 GRJ90 C01B361SP01 release-keys"); property_set("ro.build.fingerprint", "Honor/G621-TL00/hwG621-TL00:4.4.4/HonorG621-TL00/C01B361SP01:user/release-keys"); } /* G622-CL */ else if (strstr(model, "G622-CL") != NULL) { property_set("ro.product.model", "G622-CL"); property_set("ro.product.name", "G622-CL"); property_set("ro.product.device", "G622-CL"); property_set("ro.build.product", "G622-CL"); property_set("persist.radio.multisim.config", "dsds"); property_set("persist.dsds.enabled", "true"); property_set("ro.telephony.default_network", "22"); property_set("ro.config.dsds_mode", "umts_gsm"); property_set("ro.ril.multi_rat_capable","true"); property_set("ro.sf.lcd_density","320"); } /* G660S */ else if (strstr(model, "G660S") != NULL) { property_set("ro.product.model", "G660S"); property_set("ro.product.name", "G660S"); property_set("ro.product.device", "G660S"); property_set("ro.build.product", "G660S"); property_set("persist.radio.multisim.config", "dsds"); property_set("persist.dsds.enabled", "true"); property_set("ro.telephony.default_network", "22"); property_set("ro.config.dsds_mode", "umts_gsm"); property_set("ro.ril.multi_rat_capable","true"); property_set("ro.sf.lcd_density","320"); } /* G760-L01 */ else if (strstr(model, "G760-L01") != NULL) { property_set("ro.product.model", "G760-L01"); property_set("ro.product.name", "G760-L01"); property_set("ro.product.device", "G760-L01"); property_set("ro.build.product", "G760-L01"); property_set("ro.telephony.default_network", "9"); property_set("ro.sf.lcd_density","320"); property_set("ro.build.description", "G7-L01-user 5.1.1 GRJ90 C432B331 release-keys"); property_set("ro.build.fingerprint", "Huawei/G7-L01/hwG7-L01:5.1.1/HuaweiG7-L01/C432B331:user/release-keys"); } /* Y550-L01 */ else if (strstr(model, "Y550-L01") != NULL) { property_set("ro.product.model", "Y550-L01"); property_set("ro.product.name", "Y550-L01"); property_set("ro.product.device", "Y550-L01"); property_set("ro.build.product", "Y550-L01"); property_set("ro.telephony.default_network", "9"); property_set("ro.sf.lcd_density","240"); } /* Y630-CL */ else if (strstr(model, "Y630-CL") != NULL) { property_set("ro.product.model", "Y630-CL"); property_set("ro.product.name", "Y630-CL"); property_set("ro.product.device", "Y630-CL"); property_set("ro.build.product", "Y630-CL"); property_set("persist.radio.multisim.config", "dsds"); property_set("persist.dsds.enabled", "true"); property_set("ro.telephony.default_network", "22"); property_set("telephony.lteOnCdmaDevice", "1"); property_set("ro.config.dsds_mode", "umts_gsm"); property_set("ro.com.android.dataroaming","true"); property_set("ro.ril.multi_rat_capable","true"); property_set("ro.sf.lcd_density","240"); } /* Y635-L01 */ else if (strstr(model, "Y635-L01") != NULL) { property_set("ro.product.model", "Y635-L01"); property_set("ro.product.name", "Y635-L01"); property_set("ro.product.device", "Y635-L01"); property_set("ro.build.product", "Y635-L01"); property_set("ro.telephony.default_network", "9"); property_set("ro.sf.lcd_density","240"); } /* G760-L01 */ else if (strstr(model, "G760-L01") != NULL) { property_set("ro.product.model", "HUAWEI G760-L01"); property_set("ro.product.name", "G760-L01"); property_set("ro.product.device", "hwG760-L01"); property_set("ro.build.product", "G760-L01"); property_set("ro.telephony.default_network", "20"); property_set("ro.build.description", "G760-L01-user 5.1.1 GRJ90 C464B340 release-keys"); property_set("ro.build.fingerprint", "Huawei/G760-L01/hwG760-L01:5.1.1/HuaweiG760-L01/C464B340:user/release-keys"); } }