diff options
| author | Winson <chiuwinson@google.com> | 2021-03-24 12:15:58 -0700 |
|---|---|---|
| committer | Winson <chiuwinson@google.com> | 2021-03-24 12:43:06 -0700 |
| commit | b5ba585b39bff7c5c2977f950b4a63159dcfdfd8 (patch) | |
| tree | c5c766f67659c8f2ed335f8984eadd44424481b0 /core/java/android/provider/Settings.java | |
| parent | 5785c5c68f52f85f06f5d4ecb39a2498b254362c (diff) | |
Expose the open by default settings screen to apps
With the changes for app links v2, apps need a way to link users into
the domain selection screen if the app relies on opening web links
for some functionality.
To achieve that, this exposes the existing action,
ACTION_APP_OPEN_BY_DEFAULT_SETTINGS, from android.provider.Settings
and removes the permission needed to launch the relevant Activity,
since it's no longer required.
Note that this will also require a change to remove the enforcement
from the Activity declaration, which will be a follow up.
Bug: 178648367
Test: none, unhide API
Change-Id: I73231b9b4686ee67490ffe1526542b2f59c8089b
Diffstat (limited to 'core/java/android/provider/Settings.java')
| -rw-r--r-- | core/java/android/provider/Settings.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 71ffa92a81bb..a067f6d3f87a 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -470,8 +470,8 @@ public final class Settings { * to be shown, with the "package" scheme. That is "package:com.my.app". * <p> * Output: Nothing. - * @hide */ + @SuppressLint("ActionValue") @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) public static final String ACTION_APP_OPEN_BY_DEFAULT_SETTINGS = "com.android.settings.APP_OPEN_BY_DEFAULT_SETTINGS"; |
