Skip to content

Commit

Permalink
fix: mangled setHiddenApiExemptions on OneUI
Browse files Browse the repository at this point in the history
  • Loading branch information
rushiiMachine committed Sep 15, 2023
1 parent b9ff4de commit 6cc5993
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 61 deletions.
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/compiler.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/discord.xml

This file was deleted.

20 changes: 0 additions & 20 deletions .idea/gradle.xml

This file was deleted.

18 changes: 0 additions & 18 deletions .idea/misc.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

5 changes: 4 additions & 1 deletion core/src/main/cpp/hidden_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ bool disable_hidden_api(JNIEnv *env) {
}

void *addr = AliuHook::elf_img.GetSymbolAddress(
"_ZN3artL32VMRuntime_setHiddenApiExemptionsEP7_JNIEnvP7_jclassP13_jobjectArray");
"_ZN3artL32VMRuntime_setHiddenApiExemptionsEP7_JNIEnvP7_jclassP13_jobjectArray",
true,
/* match_prefix: OneUI appends a random set of numbers at the end */
true);
if (!addr) {
LOGE("HiddenAPI: Didn't find setHiddenApiExemptions");
return false;
Expand Down

0 comments on commit 6cc5993

Please sign in to comment.