代码路径: frameworks/base/cmds/idmap/
编译方法: make idmap
程序入口: main方法位于idmap.cpp
Binary在手机的路径: system/bin/idmap
查看帮助信息: adb shell idmap –help
帮助信息解读:
- 名字:
idmap - 创建或者显示idmap文件. - 概要:
idmap –help 查看帮助信息.
idmap –fd target overlay fd
idmap –path target overlay idmap
idmap –inspect idmap 描述:
Idmap files play an integral part in the runtime resource overlay framework. An idmap
file contains a mapping of resource identifiers between overlay package and its target
package; this mapping is used during resource lookup. Idmap files also act as control
files by their existence: if not present, the corresponding overlay package is ignored
when the resource context is created.Idmap files are stored in /data/resource-cache. For each pair (target package, overlay
package), there exists exactly one idmap file, or none if the overlay should not be used