OSDN Git Service

Renaming intent action for unknown sources
authorSuprabh Shukla <suprabh@google.com>
Fri, 7 Apr 2017 00:52:57 +0000 (17:52 -0700)
committerSuprabh Shukla <suprabh@google.com>
Fri, 7 Apr 2017 01:05:32 +0000 (18:05 -0700)
Renaming action MANAGE_EXTERNAL_SOURCES to MANAGE_UNKNOWN_APP_SOURCES to
be clearer about its purpose

Test: adb shell am instrument -w -e class \
com.android.settings.applications.ExternalSourcesSettingsTest \
com.android.settings.tests/android.support.test.runner.AndroidJUnitRunner

cts-tradefed run singleCommand cts -m ExternalSources

Bug: 35812498
Change-Id: Ic6db5b3446c1890a358f5b5225d38409d1bd2c7c

AndroidManifest.xml
tests/app/src/com/android/settings/applications/ExternalSourcesSettingsTest.java

index da88f76..2ae6ce1 100644 (file)
                 android:label="@string/install_other_apps"
                 android:taskAffinity="">
             <intent-filter android:priority="1">
-                <action android:name="android.settings.action.MANAGE_EXTERNAL_SOURCES" />
+                <action android:name="android.settings.action.MANAGE_UNKNOWN_APP_SOURCES" />
                 <category android:name="android.intent.category.DEFAULT" />
             </intent-filter>
             <meta-data android:name="com.android.settings.FRAGMENT_CLASS"
                   android:label="@string/install_other_apps"
                   android:taskAffinity="">
             <intent-filter android:priority="1">
-                <action android:name="android.settings.action.MANAGE_EXTERNAL_SOURCES" />
+                <action android:name="android.settings.action.MANAGE_UNKNOWN_APP_SOURCES" />
                 <category android:name="android.intent.category.DEFAULT" />
                 <data android:scheme="package" />
             </intent-filter>
index 9114c6f..82f0e0a 100644 (file)
@@ -93,7 +93,7 @@ public class ExternalSourcesSettingsTest {
 
     private Intent createManageExternalSourcesListIntent() {
         final Intent manageExternalSourcesIntent = new Intent();
-        manageExternalSourcesIntent.setAction(Settings.ACTION_MANAGE_EXTERNAL_SOURCES);
+        manageExternalSourcesIntent.setAction(Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES);
         return manageExternalSourcesIntent;
     }