manager: remove default CAP_DAC_READ_SEARCH cap because we've processed it in kernel.

This commit is contained in:
weishu
2023-10-21 20:39:12 +08:00
parent 75b5fdfb9d
commit 8f4e7f8a79

View File

@@ -156,13 +156,6 @@ Java_me_weishu_kernelsu_Natives_getAppProfile(JNIEnv *env, jobject, jstring pkg,
env->SetBooleanField(obj, allowSuField, false);
env->SetBooleanField(obj, nonRootUseDefaultField, true);
jobject capList = env->GetObjectField(obj, capabilitiesField);
int DEFAULT_CAPS[] = {CAP_DAC_READ_SEARCH};
for (auto i: DEFAULT_CAPS) {
addIntToList(env, capList, i);
}
return obj;
}