Searched refs:idmap (Results 1 - 11 of 11) sorted by relevance

/frameworks/base/cmds/idmap/
H A DAndroid.mk18 LOCAL_SRC_FILES := idmap.cpp create.cpp scan.cpp inspect.cpp
22 LOCAL_MODULE := idmap
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp86 const char* AssetManager::IDMAP_BIN = "/system/bin/idmap";
115 path.append("@idmap");
248 if (mAssetPaths[i].idmap == idmapPath) {
254 Asset* idmap = NULL; local
255 if ((idmap = openAssetFromFileLocked(idmapPath, Asset::ACCESS_BUFFER)) == NULL) {
256 ALOGW("failed to open idmap file %s\n", idmapPath.string());
262 if (!ResTable::getIdmapInfo(idmap->getBuffer(false), idmap->getLength(),
264 ALOGW("failed to read idmap file %s\n", idmapPath.string());
265 delete idmap;
609 Asset* idmap = openIdmapLocked(ap); local
[all...]
H A DResourceTypes.cpp225 static bool assertIdmapHeader(const void* idmap, size_t size) { argument
226 if (reinterpret_cast<uintptr_t>(idmap) & 0x03) {
227 ALOGE("idmap: header is not word aligned");
232 ALOGW("idmap: header too small (%d bytes)", (uint32_t) size);
236 const uint32_t magic = htodl(*reinterpret_cast<const uint32_t*>(idmap));
238 ALOGW("idmap: no magic found in header (is 0x%08x, expected 0x%08x)",
243 const uint32_t version = htodl(*(reinterpret_cast<const uint32_t*>(idmap) + 1));
247 ALOGW("idmap: version mismatch in header (is 0x%08x, expected 0x%08x)",
290 ALOGE("idmap: entry header is not word aligned");
295 ALOGE("idmap
349 parseIdmap(const void* idmap, size_t size, uint8_t* outPackageId, KeyedVector<uint8_t, IdmapEntries>* outMap) argument
6187 getIdmapInfo(const void* idmap, size_t sizeBytes, uint32_t* pVersion, uint32_t* pTargetCrc, uint32_t* pOverlayCrc, String8* pTargetPath, String8* pOverlayPath) argument
[all...]
/frameworks/base/include/androidfw/
H A DAssetManager.h230 * Generate idmap data to translate resources IDs between a package and a
241 String8 idmap; member in struct:android::AssetManager::asset_path
H A DResourceTypes.h1786 // Generate an idmap.
1800 // Retrieve idmap meta-data.
1802 // This function only requires the idmap header (the first
1803 // IDMAP_HEADER_SIZE_BYTES) bytes of an idmap file.
1804 static bool getIdmapInfo(const void* idmap, size_t size,
/frameworks/native/cmds/installd/
H A Dinstalld.h81 #define IDMAP_SUFFIX "@idmap"
227 int idmap(const char *target_path, const char *overlay_path, uid_t uid);
H A Dinstalld.c144 return idmap(arg[0], arg[1], atoi(arg[2]));
184 { "idmap", 3, do_idmap },
H A Dcommands.c1444 static const char *IDMAP_BIN = "/system/bin/idmap";
1455 // eg /a/b/c.apk to /data/resource-cache/a@b@c.apk@idmap
1489 int idmap(const char *target_apk, const char *overlay_apk, uid_t uid) function
1491 ALOGV("idmap target_apk=%s overlay_apk=%s uid=%d\n", target_apk, overlay_apk, uid);
1498 ALOGE("idmap cannot generate idmap path for overlay %s\n", overlay_apk);
1505 ALOGE("idmap cannot open '%s' for output: %s\n", idmap_path, strerror(errno));
1509 ALOGE("idmap cannot chown '%s'\n", idmap_path);
1513 ALOGE("idmap cannot chmod '%s'\n", idmap_path);
1522 ALOGE("setgid(%d) failed during idmap\
[all...]
/frameworks/base/core/tests/overlaytests/
H A Dtestrunner.py17 TASK_GREP_IDMAP_TEST = 'test (grep idmap)'
19 TASK_IDMAP_PATH = 'idmap --path'
20 TASK_IDMAP_SCAN = 'idmap --scan'
28 TASK_SETUP_IDMAP_PATH = 'setup idmap --path'
29 TASK_SETUP_IDMAP_SCAN = 'setup idmap --scan'
239 return _adb_shell('su system idmap --path "%s" "%s" "%s"' % (self.path_target_apk, self.path_overlay_apk, self.path_idmap))
256 return _adb_shell('su system idmap --scan "%s" "%s" "%s" "%s"' % (self.overlay_dir, self.target_pkg_name, self.target_pkg, self.idmap_dir))
284 returncode, stdout, stderr = _adb_shell('idmap --inspect %s' % self.path_idmap)
289 return 1, 'pattern=%s idmap=%s expected=%d found=%d\n' % (self.pattern, self.path_idmap, self.expected_n, len(all_matches)), ''
410 RmTask("/data/resource-cache/vendor@overlay@framework_a.apk@idmap"),
603 idmap = idmaps + '/vendor@overlay@framework_b.apk@idmap' variable
[all...]
/frameworks/base/services/core/java/com/android/server/pm/
H A DInstaller.java95 public int idmap(String targetApkPath, String overlayApkPath, int uid) { method in class:Installer
96 StringBuilder builder = new StringBuilder("idmap");
H A DPackageManagerService.java331 private static final String IDMAP_SUFFIX = "@idmap";
4087 Slog.w(TAG, "Unable to create idmap for " + pkg.packageName + ": no overlay packages");
4091 // Not much to do if idmap fails: we already logged the error
4108 Slog.e(TAG, "was about to create idmap for " + pkg.baseCodePath + " and " +
4113 // TODO: generate idmap for split APKs
4114 if (mInstaller.idmap(pkg.baseCodePath, opkg.baseCodePath, sharedGid) != 0) {
4115 Slog.e(TAG, "Failed to generate idmap for " + pkg.baseCodePath + " and "
6371 // Create idmap files for pairs of (packages, overlay packages).

Completed in 2677 milliseconds