Skip to content

Commit

Permalink
Remove delete map items code
Browse files Browse the repository at this point in the history
  • Loading branch information
luoyesiqiu committed Jun 19, 2024
1 parent 4f5ac59 commit 679430c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions shell/src/main/cpp/dpt_hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ void patchMethod(uint8_t *begin,__unused const char *location,uint32_t dexSize,i

NLOG("[*] patchMethod codeItem patch, methodIndex = %d,insnsSize = %d >>> %p(0x%lx)",codeItem->getMethodIdx(), codeItem->getInsnsSize(), realCodeItemPtr,(realCodeItemPtr - begin));
memcpy(realCodeItemPtr,codeItem->getInsns(),codeItem->getInsnsSize());
codeItemMap->erase(codeItemIt);
delete codeItem;
}
else{
NLOG("[*] patchMethod cannot find methodId: %d in codeitem map, dex index: %d(%s)",methodIdx,dexIndex,location);
Expand Down

0 comments on commit 679430c

Please sign in to comment.