mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-28 04:40:02 -04:00
Merge branch 'master' of https://gitee.com/openharmony/developtools_syscap_codec into syscap-extern
Change-Id: I4958028e552cd85fa31ae44f86c6b8129f291914
This commit is contained in:
@@ -62,7 +62,7 @@ typedef struct ProductCompatibilityID {
|
||||
uint8_t osSyscap[OS_SYSCAP_BYTES];
|
||||
} PCIDMain;
|
||||
|
||||
static const char *pcidPath = "/system/etc/PCID.sc";
|
||||
static const char *g_pcidPath = "/system/etc/PCID.sc";
|
||||
|
||||
static void FreeContextBuffer(char *contextBuffer)
|
||||
{
|
||||
@@ -136,7 +136,7 @@ bool EncodeOsSyscap(char *output, int len)
|
||||
return false;
|
||||
}
|
||||
|
||||
ret = GetFileContext(pcidPath, &contextBuffer, &bufferLen);
|
||||
ret = GetFileContext(g_pcidPath, &contextBuffer, &bufferLen);
|
||||
if (ret != 0) {
|
||||
PRINT_ERR("GetFileContext failed, input file : /system/etc/PCID.sc\n");
|
||||
return false;
|
||||
@@ -160,7 +160,7 @@ bool EncodePrivateSyscap(char **output, int *outputLen)
|
||||
char *outputStr = NULL;
|
||||
uint32_t bufferLen;
|
||||
|
||||
ret = GetFileContext(pcidPath, &contextBuffer, &bufferLen);
|
||||
ret = GetFileContext(g_pcidPath, &contextBuffer, &bufferLen);
|
||||
if (ret != 0) {
|
||||
PRINT_ERR("GetFileContext failed, input file : /system/etc/PCID.sc\n");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user