Skip to content

Commit

Permalink
[ANDROID] Nope, re-disable map with fd tracking on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Jan 29, 2025
1 parent 50fcaf0 commit b51ab08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/env.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ static kh_mapping_entry_t* mapping_entries = NULL;

void RecordEnvMappings(uintptr_t addr, size_t length, int fd)
{
#ifndef ANDROID
if (!envmap) { envmap = rbtree_init("envmap"); }
if(!mapping_entries) mapping_entries = kh_init(mapping_entry);

Expand Down Expand Up @@ -584,6 +585,7 @@ void RecordEnvMappings(uintptr_t addr, size_t length, int fd)
printf_log(LOG_DEBUG, "Applied [%s] of range %p:%p\n", filename, addr, addr + length);
PrintEnvVariables(mapping->env, LOG_DEBUG);
}
#endif
}

void RemoveMapping(uintptr_t addr, size_t length)
Expand Down

0 comments on commit b51ab08

Please sign in to comment.