| #include <utils/Vector.h> |
| #ifndef TEMP_FAILURE_RETRY |
| // Used to retry syscalls that can return EINTR. |
| #define TEMP_FAILURE_RETRY(exp) ({ \ |
| } while (_rc == -1 && errno == EINTR); \ |
| int idmap_create_path(const char *target_apk_path, const char *overlay_apk_path, |
| int idmap_create_fd(const char *target_apk_path, const char *overlay_apk_path, int fd); |
| int idmap_verify_fd(const char *target_apk_path, const char *overlay_apk_path, int fd); |
| // Regarding target_package_name: the idmap_scan implementation should |
| // be able to extract this from the manifest in target_apk_path, |
| // simplifying the external API. |
| int idmap_scan(const char *target_package_name, const char *target_apk_path, |
| const char *idmap_dir, const android::Vector<const char *> *overlay_dirs); |
| int idmap_inspect(const char *idmap_path); |