Fix sandhook build

This commit is contained in:
kotori0 2020-11-28 01:06:55 +08:00
parent 2c709e4c65
commit 760c013b1d
5 changed files with 4 additions and 8 deletions

View File

@ -150,10 +150,6 @@ afterEvaluate {
}
def libPathRelease = "${buildDir}/intermediates/cmake/${variantLowered}/obj"
def exclude_list = ["riru.sh"]
if(backendLowered == "yahfa") {
exclude_list.add("system/lib/libsandhook-native.so")
exclude_list.add("system/lib64/libsandhook-native.so")
}
doLast {
copy {
from "${projectDir}/template_override"

View File

@ -232,11 +232,11 @@ namespace edxp {
skip_ = false;
if (!ConfigManager::GetInstance()->IsAppNeedHook(0, "android")) {
skip_ = true;
LOGW("skip injecting xposed into android because it's whitelisted/blacklisted");
LOGD("skip injecting xposed into android because it's whitelisted/blacklisted");
}
if (!skip_ && !ConfigManager::GetInstance()->UpdateAppModuleList(0, "android")) {
skip_ = true;
LOGW("skip injecting into android because no module hooks it");
LOGD("skip injecting into android because no module hooks it");
}
PreLoadDex(env, kInjectDexPath);
}
@ -312,7 +312,7 @@ namespace edxp {
if (!skip && !ConfigManager::GetInstance()->UpdateAppModuleList(user, package_name)) {
skip = true;
LOGW("skip injecting xposed into %s because no module hooks it",
LOGD("skip injecting xposed into %s because no module hooks it",
package_name.c_str());
}
return skip;

View File

@ -264,7 +264,7 @@ else
ui_print "- Extracting arm64 libraries"
extract "$ZIPFILE" 'system/lib64/libriru_edxp.so' "$MODPATH"
if [[ "${VARIANTS}" == "SandHook" ]]; then
extract "$ZIPFILE" 'system/lib/libsandhook-native.so' "$MODPATH"
extract "$ZIPFILE" 'system/lib64/libsandhook-native.so' "$MODPATH"
fi
fi
fi