PackageInstaller.SessionParams.SetOriginatingUid(Int32) Method

Definition

Sets the UID that initiated the package installation.

[Android.Runtime.Register("setOriginatingUid", "(I)V", "GetSetOriginatingUid_IHandler", ApiSince=24)]
public virtual void SetOriginatingUid (int originatingUid);
[<Android.Runtime.Register("setOriginatingUid", "(I)V", "GetSetOriginatingUid_IHandler", ApiSince=24)>]
abstract member SetOriginatingUid : int -> unit
override this.SetOriginatingUid : int -> unit

Parameters

originatingUid
Int32
Attributes

Remarks

Sets the UID that initiated the package installation. This is informational and may be used as a signal for anti-malware purposes.

Java documentation for android.content.pm.PackageInstaller.SessionParams.setOriginatingUid(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