5 #define LOG_TAG "idmap"
8 #include <utils/Vector.h>
13 #ifndef TEMP_FAILURE_RETRY
14 // Used to retry syscalls that can return EINTR.
15 #define TEMP_FAILURE_RETRY(exp) ({ \
19 } while (_rc == -1 && errno == EINTR); \
23 int idmap_create_path(const char *target_apk_path, const char *overlay_apk_path,
24 const char *idmap_path);
26 int idmap_create_fd(const char *target_apk_path, const char *overlay_apk_path, int fd);
28 // Regarding target_package_name: the idmap_scan implementation should
29 // be able to extract this from the manifest in target_apk_path,
30 // simplifying the external API.
31 int idmap_scan(const char *target_package_name, const char *target_apk_path,
32 const char *idmap_dir, const android::Vector<const char *> *overlay_dirs);
34 int idmap_inspect(const char *idmap_path);