We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cf11f4 commit f89cc0eCopy full SHA for f89cc0e
user/android/apjni.cpp
@@ -70,6 +70,7 @@ extern "C" JNIEXPORT jlong JNICALL Java_me_bmax_apatch_Natives_nativeSu(JNIEnv *
70
if (scontext) sctx = env->GetStringUTFChars(scontext, NULL);
71
struct su_profile profile = { 0 };
72
profile.uid = getuid();
73
+ profile.to_uid = (pid_t)to_uid;
74
if (sctx) {
75
strncpy(profile.scontext, sctx, sizeof(profile.scontext) - 1);
76
}
@@ -86,6 +87,8 @@ extern "C" JNIEXPORT jlong JNICALL Java_me_bmax_apatch_Natives_nativeThreadSu(JN
86
87
const char *sctx = 0;
88
89
90
+ profile.uid = getuid();
91
92
93
94
0 commit comments