LauncherApps.GetPreInstalledSystemPackages(UserHandle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the list of the system packages that are installed at user creation.
[Android.Runtime.Register("getPreInstalledSystemPackages", "(Landroid/os/UserHandle;)Ljava/util/List;", "GetGetPreInstalledSystemPackages_Landroid_os_UserHandle_Handler", ApiSince=35)]
public virtual System.Collections.Generic.IList<string> GetPreInstalledSystemPackages (Android.OS.UserHandle userHandle);
[<Android.Runtime.Register("getPreInstalledSystemPackages", "(Landroid/os/UserHandle;)Ljava/util/List;", "GetGetPreInstalledSystemPackages_Landroid_os_UserHandle_Handler", ApiSince=35)>]
abstract member GetPreInstalledSystemPackages : Android.OS.UserHandle -> System.Collections.Generic.IList<string>
override this.GetPreInstalledSystemPackages : Android.OS.UserHandle -> System.Collections.Generic.IList<string>
Parameters
- userHandle
- UserHandle
the user for which installed system packages are required.
Returns
List
of String
, representing the package name of the installed
package. Can be empty but not null.
- Attributes
Remarks
Returns the list of the system packages that are installed at user creation.
An empty list denotes that all system packages should be treated as pre-installed for that user at creation.
If the user in question is a hidden profile UserManager.USER_TYPE_PROFILE_PRIVATE
, caller should have either:
<ul> <li>the privileged android.Manifest.permission.ACCESS_HIDDEN_PROFILES_FULL
permission</li> <li>the normal android.Manifest.permission.ACCESS_HIDDEN_PROFILES
permission and the android.app.role.RoleManager.ROLE_HOME
role. </li> </ul>
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.