Skip to content

Commit

Permalink
Make sure bootstrap hooks working
Browse files Browse the repository at this point in the history
  • Loading branch information
solohsu committed Feb 11, 2019
1 parent 8c4682e commit af885e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Core/jni/main/native_hook/native_hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ bool onIsInSamePackageCalled(void *thiz, void *that) {
std::string storage1, storage2;
const char *thisDesc = (*getDesc)(thiz, &storage1);
const char *thatDesc = (*getDesc)(that, &storage2);
// LOGE("onIsInSamePackageCalled, %s -> %s", thisDesc, thatDesc);
if (strstr(thisDesc, "EdHooker") != nullptr || strstr(thatDesc, "EdHooker") != nullptr) {
if (strstr(thisDesc, "EdHooker") != nullptr
|| strstr(thatDesc, "EdHooker") != nullptr
|| strstr(thisDesc, "com/elderdrivers/riru/") != nullptr
|| strstr(thatDesc, "com/elderdrivers/riru/") != nullptr) {
// LOGE("onIsInSamePackageCalled, %s -> %s", thisDesc, thatDesc);
return true;
}
return (*isInSamePackageBackup)(thiz, that);
Expand Down

0 comments on commit af885e7

Please sign in to comment.