Add docs clarifying permissions of setSystemAppState

Fixes: 184568177
Test: NA, docs only
Change-Id: Ie5c9b8b4ba5ff4b5d206b7c64b3d29c0fc5bbffa
This commit is contained in:
Hall Liu
2021-04-19 13:47:10 -07:00
parent 61ce1506ca
commit db950993f2

View File

@@ -7775,6 +7775,9 @@ public abstract class PackageManager {
* {@link #SYSTEM_APP_STATE_HIDDEN_UNTIL_INSTALLED_VISIBLE} or its installation state (via
* {@link #SYSTEM_APP_STATE_INSTALLED} and {@link #SYSTEM_APP_STATE_UNINSTALLED}.
*
* This API may only be called from {@link android.os.Process#SYSTEM_UID} or
* {@link android.os.Process#PHONE_UID}.
*
* @param packageName Package name of the app.
* @param state State of the app.
* @hide