I have TC21 with Android 10 (level 29 API). I am using ProfileManager to retrieve some OEMInfo. I am able to retrieve SerialBuild but for some reason WifiMac is never returned. I have same extraData for both cases, just uri modification.
var callerSignature = string.Empty;
foreach (Signature sig in PackageManager.GetPackageInfo(PackageName, PackageInfoFlags.Signatures).Signatures)
{
callerSignature = sig.ToCharsString();
}
callerSignature = Convert.ToBase64String(FormateHelpers.StringToByteArray(callerSignature));
extraData[0] =
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<characteristic type=\"Profile\">" +
"<parm name=\"ProfileName\" value=\"OEMService\"/>" +
"<parm name=\"TargetSystemVersion\" value=\"10.4\"/>" +
"<characteristic type=\"AccessMgr\" version=\"10.4\">" +
"<parm name = \"emdk_name\" value = \"\"/>" +
//"<parm name = \"OperationMode\" value = \"1\"/>" +
"<parm name = \"ServiceAccessAction\" value = \"4\"/>" +
"<parm name = \"ServiceIdentifier\" value = \"content://oem_info/oem.zebra.secure/build_serial\"/>" +
"<parm name = \"CallerPackageName\" value = \"com.custom.custom.custom\"/>" +
"<parm name = \"CallerSignature\" value = \"" + callerSignature + "\"/>" +
"</characteristic>" +
"</characteristic>";
results = profileManager.ProcessProfile("OEMService", ProfileManager.PROFILE_FLAG.Set, extraData);
if (results.StatusCode != EMDKResults.STATUS_CODE.Success)
{
if (!CheckEMDKResultsXML(results.StatusString)) throw new Exception();
}
Settings.BuildSerial = Helper.RetrieveOEMInfo(this, Helper.OEMInfo.Serial);
extraData[0] =
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<characteristic type=\"Profile\">" +
"<parm name=\"ProfileName\" value=\"OEMService\"/>" +
"<parm name=\"TargetSystemVersion\" value=\"10.4\"/>" +
"<characteristic type=\"AccessMgr\" version=\"10.4\">" +
"<parm name = \"emdk_name\" value = \"\"/>" +
//"<parm name = \"OperationMode\" value = \"1\"/>" +
"<parm name = \"ServiceAccessAction\" value = \"4\"/>" +
"<parm name = \"ServiceIdentifier\" value = \"content://oem_info/oem.zebra.secure/wifi_mac\"/>" +
"<parm name = \"CallerPackageName\" value = \"com.custom.custom.custom\"/>" +
"<parm name = \"CallerSignature\" value = \"" + callerSignature + "\"/>" +
"</characteristic>" +
"</characteristic>";
results = profileManager.ProcessProfile("OEMService", ProfileManager.PROFILE_FLAG.Set, extraData);
if (results.StatusCode != EMDKResults.STATUS_CODE.Success)
{
if (!CheckEMDKResultsXML(results.StatusString)) throw new Exception();
}
Settings.WifiMac = Helper.RetrieveOEMInfo(this, Helper.OEMInfo.WifiMac);
2 Replies
I have the same problem.
Any solution?
I have the same problem.
Any solution?