diff options
| author | 2018-02-27 15:23:38 -0800 | |
|---|---|---|
| committer | 2018-03-06 04:02:05 +0000 | |
| commit | 296f80a539c99e1d8c9346fd6bf35d118c17d644 (patch) | |
| tree | fe73da7eb3722acfad915c76d5c5a720ed685613 | |
| parent | 97d579d1ee3347231f9742bfeecaf5a609c28a81 (diff) | |
Add new Intent start a package's Open By Default page directly.
Bug: 74010481
Test: None
Change-Id: I63ad4c834e38a718cf444ebc544ee3cb5f38c09d
(cherry picked from commit 1c0e3451cdfee9acacb675c33db7c4dbb227b880)
| -rw-r--r-- | core/java/android/provider/Settings.java | 15 | ||||
| -rw-r--r-- | core/res/AndroidManifest.xml | 6 |
2 files changed, 21 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 3c3c76296187..81e9ac365f8e 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -770,6 +770,21 @@ public final class Settings { "android.settings.APPLICATION_DETAILS_SETTINGS"; /** + * Activity Action: Show the "Open by Default" page in a particular application's details page. + * <p> + * In some cases, a matching Activity may not exist, so ensure you safeguard against this. + * <p> + * Input: The Intent's data URI specifies the application package name + * to be shown, with the "package" scheme. That is "package:com.my.app". + * <p> + * Output: Nothing. + * @hide + */ + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + public static final String ACTION_APPLICATION_DETAILS_SETTINGS_OPEN_BY_DEFAULT_PAGE = + "android.settings.APPLICATION_DETAILS_SETTINGS_OPEN_BY_DEFAULT_PAGE"; + + /** * Activity Action: Show list of applications that have been running * foreground services (to the user "running in the background"). * <p> diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 5e12e7e10884..107b86d95032 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -3867,6 +3867,12 @@ <permission android:name="android.permission.WATCH_APPOPS" android:protectionLevel="signature" /> + <!-- Allows an application to directly open the "Open by default" page inside a package's + Details screen. + @hide <p>Not for use by third-party applications. --> + <permission android:name="android.permission.OPEN_APPLICATION_DETAILS_OPEN_BY_DEFAULT_PAGE" + android:protectionLevel="signature" /> + <application android:process="system" android:persistent="true" android:hasCode="false" |