Clarified docs for ACTION_QS_TILE_PREFERENCES

SystemUI is the process launching the intent, so it can launch
activities that are not exported. This documents how to protect
activities from being launched by other uid.

Test: no test
Fixes: 80284344

Change-Id: Iaad0107a071ece50cb14571859e7b01e500d6051
This commit is contained in:
Fabian Kozynski
2019-03-25 13:30:35 -04:00
parent 6f59ef8a37
commit 98febfd3ec

View File

@@ -87,6 +87,10 @@ public class TileService extends Service {
* This intent may also define a {@link Intent#EXTRA_COMPONENT_NAME} value
* to indicate the {@link ComponentName} that caused the preferences to be
* opened.
* <p>
* To ensure that the activity can only be launched through quick settings
* UI provided by this service, apps can protect it with the
* BIND_QUICK_SETTINGS_TILE permission.
*/
@SdkConstant(SdkConstantType.INTENT_CATEGORY)
public static final String ACTION_QS_TILE_PREFERENCES