bool LGE_FacWriteImei(unsigned int imeiNum, unsigned char *imei) { if (imeiNum == 1) { // return _LGE_GENERIC_WRITE_FUN(imei, LGE_FAC_IMEI_IDX, LGE_FAC_IMEI_SIZE); } else if(imeiNum == 2) { // return _LGE_GENERIC_WRITE_FUN(imei, LGE_FAC_IMEI2_IDX, LGE_FAC_IMEI_SIZE); } else if(imeiNum == 3) { // return _LGE_GENERIC_WRITE_FUN(imei, LGE_FAC_IMEI3_IDX, LGE_FAC_IMEI_SIZE); } else if(imeiNum == 4) { // return _LGE_GENERIC_WRITE_FUN(imei, LGE_FAC_IMEI4_IDX, LGE_FAC_IMEI_SIZE); } }
bool LGE_FacWriteOneBinaryHWInfo(unsigned char *data, bool needFlashProgram) { bool result = 0; result = _LGE_GENERIC_WRITE_FUN(data, LGE_ONE_BINARY_HWINFO_IDX, LGE_ONE_BINARY_HWINFO_SIZE); if( result == 1 ) { printk("jjm_debug : LGE_FacWriteOneBinaryHWInfo Success! : OneBinaryHWInfo=%s\n", data); } else { printk("jjm_debug : LGE_FacWriteOneBinaryHWInfo Fail!"); } return result; }
bool LGE_FacWriteBtAddr(unsigned char *btAddr, bool needFlashProgram) { return _LGE_GENERIC_WRITE_FUN(btAddr, LGE_FAC_BT_IDX, LGE_FAC_BT_SIZE); }
bool LGE_FacWriteFactoryResetStatusFlag(unsigned char factoryResetFlag) { // return _LGE_GENERIC_WRITE_FUN(&factoryResetFlag, LGE_FAC_FACTORY_RESET_IDX, LGE_FAC_FACTORY_RESET_SIZE); }
bool LGE_FacWritePid(unsigned char *pid) { // return _LGE_GENERIC_WRITE_FUN(pid, LGE_FAC_PID_IDX, LGE_FAC_PID_SIZE); }
bool LGE_FacWriteFusgFlag(unsigned char fusgFlag) { // return _LGE_GENERIC_WRITE_FUN(&fusgFlag, LGE_FAC_FUSG_FLAG_IDX, LGE_FAC_FUSG_FLAG_SIZE); }
bool LGE_FacWriteUnlockFailCount(unsigned char simLockType, unsigned char failCount) { // return _LGE_GENERIC_WRITE_FUN(&failCount, LGE_FAC_UNLOCKCODE_FAIL_COUNT_IDX, LGE_FAC_UNLOCKCODE_FAIL_COUNT_SIZE); }
bool LGE_FacWriteNetworkCodeListNum(unsigned short networkCodeListNum) { // return _LGE_GENERIC_WRITE_FUN(&networkCodeListNum, LGE_FAC_NETWORK_CODE_LIST_IDX, LGE_FAC_NETWORK_CODE_LIST_SIZE); }
bool LGE_FacWriteUnlockCodeVerifyFailCount(unsigned char failCount, bool needFlashProgram) { return _LGE_GENERIC_WRITE_FUN(&failCount, LGE_FAC_UNLOCK_CODE_VERIFY_FAIL_COUNT_OFFSET, LGE_FAC_UNLOCK_CODE_VERIFY_FAIL_COUNT_LEN); }
bool LGE_FacWriteNetworkCodeListNum(unsigned short *networkCodeListNum, bool needFlashProgram) { return _LGE_GENERIC_WRITE_FUN((unsigned char *)&networkCodeListNum, LGE_FAC_NETWORK_CODE_LIST_NUM_OFFSET, LGE_FAC_NETWORK_CODE_LIST_NUM_LEN); }
bool LGE_FacWriteSimLockType(unsigned char simLockType, bool needFlashProgram) { return _LGE_GENERIC_WRITE_FUN(&simLockType, LGE_FAC_SIM_LOCK_TYPE_OFFSET, LGE_FAC_SIM_LOCK_TYPE_LEN); }
bool LGE_FacWriteImei(unsigned char imei_type, unsigned char *imei, bool needFlashProgram) { if(imei_mapping_table[imei_type]==LGE_FAC_IMEI_ENDMARK) return false; return _LGE_GENERIC_WRITE_FUN(imei, imei_mapping_table[imei_type], LGE_FAC_IMEI_LEN); }
bool LGE_FacWriteBtAddr(unsigned char *btAddr, bool needFlashProgram) { return _LGE_GENERIC_WRITE_FUN(btAddr, LGE_FAC_BT_ADDR_OFFSET, LGE_FAC_BT_ADDR_LEN); }
bool LGE_FacWriteWifiMacAddr(unsigned char *wifiMacAddr, bool needFlashProgram) { return _LGE_GENERIC_WRITE_FUN(wifiMacAddr, LGE_FAC_WIFI_MAC_ADDR_OFFSET, LGE_FAC_WIFI_MAC_ADDR_LEN); }
bool LGE_FacWriteAccelerometerCalibration(unsigned char *accel_cal_val) { return _LGE_GENERIC_WRITE_FUN(accel_cal_val, LGE_FAC_ACCELEROMETER_CALIBRATION_IDX, LGE_FAC_ACCELEROMETER_CALIBRATION_SIZE); }
bool LGE_FacWriteWifiMacAddr(unsigned char *wifiMacAddr) { // return _LGE_GENERIC_WRITE_FUN(wifiMacAddr, LGE_FAC_WIFI_IDX, LGE_FAC_WIFI_SIZE); }
bool LGE_FacWriteBtAddr(unsigned char *btAddr) { // return _LGE_GENERIC_WRITE_FUN(btAddr, LGE_FAC_BT_IDX, LGE_FAC_BT_SIZE); }
bool LGE_FacWriteUnlockFailCount(unsigned char simLockType, unsigned char failCount, bool needFlashProgram) { return _LGE_GENERIC_WRITE_FUN(&failCount, LGE_FAC_UNLOCK_FAIL_COUNT_OFFSET, LGE_FAC_UNLOCK_FAIL_COUNT_LEN); }
bool LGE_FacWriteSimLockType(unsigned char simLockType) { // return _LGE_GENERIC_WRITE_FUN(&simLockType, LGE_FAC_SIMLOCK_TYPE_IDX, LGE_FAC_SIMLOCK_TYPE_SIZE); }
bool LGE_FacWriteUnlockCode(FactoryUnlockCode * unlockCode, bool needFlashProgram) { return _LGE_GENERIC_WRITE_FUN((unsigned char *)unlockCode, LGE_FAC_UNLOCK_CODE_OFFSET, LGE_FAC_UNLOCK_CODE_LEN); }
bool LGE_FacWriteUnlockCodeVerifyFailCount(unsigned char failCount) { // return _LGE_GENERIC_WRITE_FUN(&failCount, LGE_FAC_UNLOCKCODE_VERIFY_FAIL_IDX, LGE_FAC_UNLOCKCODE_VERIFY_FAIL_SIZE); }
bool LGE_FacWriteNetworkCode(FactoryNetworkCode * networkCode, unsigned short networkCodeListNum, bool needFlashProgram) { return _LGE_GENERIC_WRITE_FUN((unsigned char *)networkCode, LGE_FAC_NETWORK_CODE_OFFSET, LGE_FAC_NETWORK_CODE_LEN); }
bool LGE_FacWriteNetworkCode(FactoryNetworkCode * networkCode, unsigned short networkCodeListNum) { // return _LGE_GENERIC_WRITE_FUN(networkCode, LGE_FAC_NETWORK_CODE_IDX, LGE_FAC_NETWORK_CODE_SIZE); }
bool LGE_FacWriteFusgFlag(unsigned char fusgFlag, bool needFlashProgram) { return _LGE_GENERIC_WRITE_FUN(&fusgFlag, LGE_FAC_FUSG_FLAG_OFFSET, LGE_FAC_FUSG_FLAG_LEN); }
bool LGE_FacWriteDataVersion(unsigned char *dataVersion) { // return _LGE_GENERIC_WRITE_FUN(dataVersion, LGE_FAC_DATA_VER_IDX, LGE_FAC_DATA_VER_SIZE); }
bool LGE_FacWriteDataVersion(unsigned char *dataVersion, bool needFlashProgram) { return _LGE_GENERIC_WRITE_FUN(dataVersion, LGE_FAC_DATA_VERSION_OFFSET, LGE_FAC_DATA_VERSION_LEN); }
bool LGE_FacWriteQEMFlag(unsigned char qemFlag) { // return _LGE_GENERIC_WRITE_FUN(&qemFlag, LGE_FAC_QEM_IDX, LGE_FAC_QEM_SIZE); }
bool LGE_FacWritePid(unsigned char *pid, bool needFlashProgram) { return _LGE_GENERIC_WRITE_FUN(pid, LGE_FAC_PID_OFFSET, LGE_FAC_PID_LEN); }
bool LGE_FacWriteLCDCalibration(unsigned char *lcd_kcal) { return _LGE_GENERIC_WRITE_FUN(lcd_kcal, LGE_FAC_LCD_CALIBRATION_IDX, LGE_FAC_LCD_CALIBRATION_SIZE); }
bool LGE_FacWriteWifiMacAddr(unsigned char *wifiMacAddr, bool needFlashProgram) { return _LGE_GENERIC_WRITE_FUN(wifiMacAddr, LGE_FAC_WIFI_IDX, LGE_FAC_WIFI_SIZE); }