PackageManager.GetPackageGids Method

Definition

Overloads

GetPackageGids(String)

Return an array of all of the POSIX secondary group IDs that have been assigned to the given package.

GetPackageGids(String, PackageInfoFlags)

Return an array of all of the POSIX secondary group IDs that have been assigned to the given package.

GetPackageGids(String, PackageManager+PackageInfoFlags)

GetPackageGids(String)

Return an array of all of the POSIX secondary group IDs that have been assigned to the given package.

[Android.Runtime.Register("getPackageGids", "(Ljava/lang/String;)[I", "GetGetPackageGids_Ljava_lang_String_Handler")]
public abstract int[]? GetPackageGids (string packageName);
[<Android.Runtime.Register("getPackageGids", "(Ljava/lang/String;)[I", "GetGetPackageGids_Ljava_lang_String_Handler")>]
abstract member GetPackageGids : string -> int[]

Parameters

packageName
String

The full name (i.e. com.google.apps.contacts) of the desired package.

Returns

Int32[]

Returns an int array of the assigned GIDs, or null if there are none.

Attributes

Exceptions

Remarks

Return an array of all of the POSIX secondary group IDs that have been assigned to the given package.

Note that the same package may have different GIDs under different UserHandle on the same device.

Java documentation for android.content.pm.PackageManager.getPackageGids(java.lang.String).

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

GetPackageGids(String, PackageInfoFlags)

Return an array of all of the POSIX secondary group IDs that have been assigned to the given package.

[Android.Runtime.Register("getPackageGids", "(Ljava/lang/String;I)[I", "GetGetPackageGids_Ljava_lang_String_IHandler", ApiSince=24)]
public abstract int[]? GetPackageGids (string packageName, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getPackageGids", "(Ljava/lang/String;I)[I", "GetGetPackageGids_Ljava_lang_String_IHandler", ApiSince=24)>]
abstract member GetPackageGids : string * Android.Content.PM.PackageInfoFlags -> int[]

Parameters

packageName
String

The full name (i.e. com.google.apps.contacts) of the desired package.

Returns

Int32[]

Returns an int array of the assigned gids, or null if there are none.

Attributes

Remarks

Return an array of all of the POSIX secondary group IDs that have been assigned to the given package.

Note that the same package may have different GIDs under different UserHandle on the same device.

Use #getPackageGids(String, PackageInfoFlags) when long flags are needed.

Java documentation for android.content.pm.PackageManager.getPackageGids(java.lang.String, 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

GetPackageGids(String, PackageManager+PackageInfoFlags)

[Android.Runtime.Register("getPackageGids", "(Ljava/lang/String;Landroid/content/pm/PackageManager$PackageInfoFlags;)[I", "GetGetPackageGids_Ljava_lang_String_Landroid_content_pm_PackageManager_PackageInfoFlags_Handler", ApiSince=33)]
public virtual int[]? GetPackageGids (string packageName, Android.Content.PM.PackageManager.PackageInfoFlags flags);
[<Android.Runtime.Register("getPackageGids", "(Ljava/lang/String;Landroid/content/pm/PackageManager$PackageInfoFlags;)[I", "GetGetPackageGids_Ljava_lang_String_Landroid_content_pm_PackageManager_PackageInfoFlags_Handler", ApiSince=33)>]
abstract member GetPackageGids : string * Android.Content.PM.PackageManager.PackageInfoFlags -> int[]
override this.GetPackageGids : string * Android.Content.PM.PackageManager.PackageInfoFlags -> int[]

Parameters

packageName
String

Returns

Int32[]
Attributes

Applies to