public void writeTestCaseResultIntoSN2(String writeStr, int position, int len)
{
String sn = null;
String sn2 = null;
int SN2Size = 23;
if (len != writeStr.length()) {
// write string's length is not identical
return;
}
// Get the whole sn2 string first
com.spreadst.validationtools.engtools.engfetch mEf = new com.spreadst.validationtools.engtools.engfetch();
int dataSize = 2048;
byte[] inputBytes = new byte[dataSize];
int showlen = mEf.enggetphasecheck(inputBytes, dataSize);
Log.d("writeTestCaseResultIntoSN2", "showlen = " + showlen);
sn = new String(inputBytes, 0, showlen);
Log.d("writeTestCaseResultIntoSN2", "sn = " + sn);
sn = sn.replaceAll("(?s)DOWNLOAD.*", "").trim();
Log.d("writeTestCaseResultIntoSN2", "sn = " + s
展讯平台读写SN号
最新推荐文章于 2024-09-20 20:17:42 发布