manager: show profile info in superuser list

This commit is contained in:
weishu
2023-06-03 17:17:19 +08:00
parent 59164f68e8
commit c70c93feeb
3 changed files with 64 additions and 11 deletions
+4
View File
@@ -111,6 +111,10 @@ Java_me_weishu_kernelsu_Natives_getAppProfile(JNIEnv *env, jobject, jstring pkg,
strcpy(profile.key, key);
profile.current_uid = uid;
// set default value, don't allow root and use default profile!
profile.allow_su = false;
profile.non_root_profile.use_default = true;
if (!get_app_profile(key, &profile)) {
return nullptr;
}