mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-28 04:40:02 -04:00
修改PCID以及RPCID大写为小写
Signed-off-by: liutuantuan <liutuantuan1@huawei.com>
This commit is contained in:
@@ -57,7 +57,7 @@ typedef struct ProductCompatibilityID {
|
||||
uint8_t osSyscap[OS_SYSCAP_BYTES];
|
||||
} PCIDMain;
|
||||
|
||||
static const char *g_pcidPath = "/system/etc/PCID.sc";
|
||||
static const char *g_pcidPath = "/system/etc/pcid.sc";
|
||||
|
||||
struct FreeAfterDecodeRpcidInfo {
|
||||
char *priSyscap;
|
||||
@@ -91,7 +91,7 @@ bool EncodeOsSyscap(char *output, int len)
|
||||
|
||||
ret = GetFileContext(g_pcidPath, &contextBuffer, &bufferLen);
|
||||
if (ret != 0) {
|
||||
PRINT_ERR("GetFileContext failed, input file : /system/etc/PCID.sc\n");
|
||||
PRINT_ERR("GetFileContext failed, input file : /system/etc/pcid.sc\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ bool EncodePrivateSyscap(char **output, int *outputLen)
|
||||
|
||||
ret = GetFileContext(g_pcidPath, &contextBuffer, &bufferLen);
|
||||
if (ret != 0) {
|
||||
PRINT_ERR("GetFileContext failed, input file : /system/etc/PCID.sc\n");
|
||||
PRINT_ERR("GetFileContext failed, input file : /system/etc/pcid.sc\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user