代码拉取完成,页面将自动刷新
The resource management module, namely, resmgr, provides the function of loading multi-language GUI resources for applications, for example, displaying the application names or icons specific to a certain language.
The directory structure for the resource management module is as follows:
/base/global/
├── resource_management_lite # Code repository for the resource management module
│ ├── frameworks # Core code of the resource management module
│ │ ├── resource_management_lite # Core code for resource parsing
│ │ │ ├── include # Header files of the resource management module
│ │ │ ├── src # Implementation code of the resource management module
│ │ │ └── test # Test code
│ ├── interfaces # APIs of the resource management module
│ │ └── inner_api # APIs of the resource management module for internal subsystems
Call the GLOBAL_GetValueById API to obtain the resource information of the application.
#include <stdint.h>
#include <stdio.h>
#include "global.h"
uint32_t id = 0x16777216;
char *values = NULL;
int32_t re = GLOBAL_GetValueById(id, "/system/data/resources.index", &values); // Obtain the resource of a specified application and write the resource to values.
std::count << values << std::endl;
if (values != NULL) {
free(values);
}
Programming language: C/C++
global_resmgr_lite
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。