Language

Os.Setuid(Int32) Method

Definition

See setuid(2).

[Android.Runtime.Register("setuid", "(I)V", "")]
public static void Setuid(int uid);
[<Android.Runtime.Register("setuid", "(I)V", "")>]
static member Setuid : int -> unit

Parameters

uid
Int32

The user ID to apply to the calling process.

Attributes

Exceptions

Remarks

See setuid(2).

This member is deprecated on Android 10 (API level 29) and later. Android applications generally lack the privileges to change their user ID. The app seccomp filter can terminate the process for this call.

Java documentation for android.system.Os.setuid(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to