manager: change minimal CAP to DAC_READ_SEARCH
This commit is contained in:
@@ -157,7 +157,7 @@ Java_me_weishu_kernelsu_Natives_getAppProfile(JNIEnv *env, jobject, jstring pkg,
|
|||||||
env->SetBooleanField(obj, nonRootUseDefaultField, true);
|
env->SetBooleanField(obj, nonRootUseDefaultField, true);
|
||||||
|
|
||||||
jobject capList = env->GetObjectField(obj, capabilitiesField);
|
jobject capList = env->GetObjectField(obj, capabilitiesField);
|
||||||
int DEFAULT_CAPS[] = {CAP_DAC_OVERRIDE };
|
int DEFAULT_CAPS[] = {CAP_DAC_READ_SEARCH };
|
||||||
|
|
||||||
for (auto i: DEFAULT_CAPS) {
|
for (auto i: DEFAULT_CAPS) {
|
||||||
addIntToList(env, capList, i);
|
addIntToList(env, capList, i);
|
||||||
|
|||||||
Reference in New Issue
Block a user