LRX21M.vC1W-0
[GitHub/mt8127/ttab-system.git] / system / etc / preferred-apps / google.xml
diff --git a/system/etc/preferred-apps/google.xml b/system/etc/preferred-apps/google.xml
new file mode 100644 (file)
index 0000000..e140fc3
--- /dev/null
@@ -0,0 +1,403 @@
+<?xml version='1.0' encoding='utf-8' standalone='yes'?>
+<!-- Copyright (C) 2012 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<!--
+    These are the default set of preferred applications for various standard
+    web URIs of Google properties to built-in Google Android applications.
+
+    To generate new entries, set whatever app you want to be the default as
+    normal through the UI, and then use "adb shell dumpsys package preferred-xml"
+    to get the XML structure for the current preferred apps.  You will probably
+    want to clean up the output some, such as adding the BROWSABLE category.  See
+    the other entries here for guides.
+ -->
+<preferred-activities>
+    <item name="com.google.android.apps.plus/.phone.UrlGatewayActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.DEFAULT" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <scheme name="https" />
+            <auth host="plus.google.com" />
+            <path prefix="/u/" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.plus/.phone.UrlGatewayActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.DEFAULT" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <scheme name="http" />
+            <auth host="plus.google.com" />
+            <path literal="/" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.plus/.phone.UrlGatewayActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.DEFAULT" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <scheme name="http" />
+            <auth host="plus.google.com" />
+            <path prefix="/u/" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.plus/.phone.UrlGatewayActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.DEFAULT" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <scheme name="https" />
+            <auth host="plus.google.com" />
+            <path literal="/" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.maps/com.google.android.maps.MapsActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <cat name="android.intent.category.DEFAULT" />
+            <scheme name="http" />
+            <auth host="maps.google.com" />
+            <path literal="/" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.maps/com.google.android.maps.MapsActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <cat name="android.intent.category.DEFAULT" />
+            <scheme name="https" />
+            <auth host="maps.google.com" />
+            <path literal="/" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.maps/com.google.android.maps.MapsActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <cat name="android.intent.category.DEFAULT" />
+            <scheme name="http" />
+            <auth host="maps.google.com" />
+            <path prefix="/maps" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.maps/com.google.android.maps.MapsActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <cat name="android.intent.category.DEFAULT" />
+            <scheme name="https" />
+            <auth host="maps.google.com" />
+            <path prefix="/maps" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.maps/com.google.android.maps.MapsActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <cat name="android.intent.category.DEFAULT" />
+            <scheme name="geo" />
+        </filter>
+    </item>
+    <item name="com.android.vending/com.google.android.finsky.activities.MainActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <cat name="android.intent.category.DEFAULT" />
+            <scheme name="https" />
+            <auth host="play.google.com" />
+            <path prefix="/store" />
+        </filter>
+    </item>
+    <item name="com.android.vending/com.google.android.finsky.activities.MainActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <cat name="android.intent.category.DEFAULT" />
+            <scheme name="http" />
+            <auth host="play.google.com" />
+            <path prefix="/store" />
+        </filter>
+    </item>
+    <item name="com.google.android.youtube/.UrlActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.DEFAULT" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <scheme name="https" />
+            <auth host="youtu.be" />
+            <path prefix="" />
+        </filter>
+    </item>
+    <item name="com.google.android.youtube/.UrlActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.DEFAULT" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <scheme name="http" />
+            <auth host="youtu.be" />
+            <path prefix="" />
+        </filter>
+    </item>
+    <item name="com.google.android.youtube/.UrlActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.DEFAULT" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <scheme name="http" />
+            <auth host="m.youtube.com" />
+            <path prefix="" />
+        </filter>
+    </item>
+    <item name="com.google.android.youtube/.UrlActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.DEFAULT" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <scheme name="https" />
+            <auth host="youtube.com" />
+            <path prefix="" />
+        </filter>
+    </item>
+    <item name="com.google.android.youtube/.UrlActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.DEFAULT" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <scheme name="https" />
+            <auth host="www.youtube.com" />
+            <path prefix="" />
+        </filter>
+    </item>
+    <item name="com.google.android.youtube/.UrlActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.DEFAULT" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <scheme name="http" />
+            <auth host="www.youtube.com" />
+            <path prefix="" />
+        </filter>
+    </item>
+    <item name="com.google.android.youtube/.UrlActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.DEFAULT" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <scheme name="https" />
+            <auth host="m.youtube.com" />
+            <path prefix="" />
+        </filter>
+    </item>
+    <item name="com.google.android.youtube/.UrlActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.DEFAULT" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <scheme name="http" />
+            <auth host="youtube.com" />
+            <path literal="/watch" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.plus/.phone.HostPhotoViewIntentActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.DEFAULT" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <scheme name="http" />
+            <scheme name="https" />
+            <scheme name="content" />
+            <scheme name="file" />
+            <type name="image/bmp" />
+            <type name="image/jpeg" />
+            <type name="image/gif" />
+            <type name="image/png" />
+            <type name="image/webp" />
+            <type name="image/x-ms-bmp" />
+            <type name="image/vnd.wap.wbmp" />
+            <type name="application/vnd.google.panorama360+jpg" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.plus/.editor.PlusEditorActivity">
+        <filter>
+            <action name="android.intent.action.EDIT" />
+            <cat name="android.intent.category.DEFAULT" />
+            <type name="image/bmp" />
+            <type name="image/jpeg" />
+            <type name="image/gif" />
+            <type name="image/png" />
+            <type name="image/webp" />
+            <type name="image/x-ms-bmp" />
+            <type name="image/vnd.wap.wbmp" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.plus/.editor.PlusCropActivity">
+        <filter>
+            <action name="com.android.camera.action.CROP" />
+            <cat name="android.intent.category.DEFAULT" />
+            <type name="image/bmp" />
+            <type name="image/jpeg" />
+            <type name="image/gif" />
+            <type name="image/png" />
+            <type name="image/webp" />
+            <type name="image/x-ms-bmp" />
+            <type name="image/vnd.wap.wbmp" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.plus/.phone.ConversationListActivity">
+        <filter>
+            <action name="android.intent.action.MAIN" />
+            <cat name="android.intent.category.APP_GALLERY" />
+            <cat name="android.intent.category.DEFAULT" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.plus/.phone.VideoViewActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.DEFAULT" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <scheme name="http" />
+            <scheme name="https" />
+            <scheme name="content" />
+            <scheme name="file" />
+            <type name="video/mpeg4" />
+            <type name="video/mp4" />
+            <type name="video/3gp" />
+            <type name="video/3gpp" />
+            <type name="video/3gpp2" />
+            <type name="video/webm" />
+            <type name="video/avi" />
+            <type name="audio/x-mpegurl" />
+            <type name="audio/mpegurl" />
+            <type name="application/sdp" />
+            <type name="application/vnd.apple.mpegurl" />
+            <type name="application/x-mpegurl" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.plus/.phone.VideoViewActivity">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <cat name="android.intent.category.DEFAULT" />
+            <scheme name="rtsp" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.docs.editors.sheets/com.google.android.apps.docs.openurl.TrixOpenUrlActivityAlias">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <cat name="android.intent.category.DEFAULT" />
+            <scheme name="http" />
+            <scheme name="https" />
+            <auth host="spreadsheets.google.com" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.docs.editors.sheets/com.google.android.apps.docs.openurl.TrixOpenUrlActivityAlias">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <cat name="android.intent.category.DEFAULT" />
+            <scheme name="http" />
+            <scheme name="https" />
+            <auth host="docs.google.com" />
+            <path sglob="/spreadsheet/.*" />
+            <path sglob="/a/.*/spreadsheet/.*" />
+            <path sglob="/spreadsheets/d/.*" />
+            <path sglob="/a/.*/spreadsheets/d/.*" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.docs.editors.slides/com.google.android.apps.docs.openurl.PunchOpenUrlActivityAlias">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <cat name="android.intent.category.DEFAULT" />
+            <scheme name="http" />
+            <scheme name="https" />
+            <auth host="slides.google.com" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.docs.editors.slides/com.google.android.apps.docs.openurl.PunchOpenUrlActivityAlias">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <cat name="android.intent.category.DEFAULT" />
+            <scheme name="http" />
+            <scheme name="https" />
+            <auth host="docs.google.com" />
+            <path sglob="/present/.*" />
+            <path sglob="/a/.*/present/.*" />
+            <path sglob="/presentation/.*" />
+            <path sglob="/a/.*/presentation/.*" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.docs.editors.docs/com.google.android.apps.docs.openurl.KixOpenUrlActivityAlias">
+        <filter>
+            <action name="android.intent.action.VIEW" />
+            <cat name="android.intent.category.BROWSABLE" />
+            <cat name="android.intent.category.DEFAULT" />
+            <scheme name="http" />
+            <scheme name="https" />
+            <auth host="docs.google.com" />
+            <path sglob="/document/.*" />
+            <path sglob="/a/.*/document/.*" />
+            <path sglob="/Doc" />
+            <path sglob="/a/.*/Doc" />
+            <path sglob="/View" />
+            <path sglob="/a/.*/View" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.docs.editors.sheets/com.google.android.apps.docs.editors.trix.quicksheet.QuickSheetDocumentOpenerActivityAlias">
+        <filter>
+            <action name="android.intent.action.EDIT" />
+            <cat name="android.intent.category.DEFAULT" />
+            <type name="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" />
+            <type name="application/vnd.ms-excel.sheet.macroenabled.12" />
+            <type name="application/vnd.ms-excel" />
+            <type name="application/vnd.ms-excel.addin.macroenabled.12" />
+            <type name="application/vnd.ms-excel.template.macroenabled.12" />
+            <type name="application/vnd.openxmlformats-officedocument.spreadsheetml.template" />
+            <type name="application/x-msexcel" />
+        </filter>
+    </item>
+    <item name="com.google.android.apps.docs.editors.docs/com.google.android.apps.docs.editors.kix.quickword.QuickWordDocumentOpenerActivityAlias">
+      <filter>
+            <action name="android.intent.action.EDIT" />
+            <cat name="android.intent.category.DEFAULT" />
+            <type name="application/vnd.ms-word" />
+            <type name="application/vnd.openxmlformats-officedocument.wordprocessingml.document" />
+            <type name="application/vnd.ms-word.document.macroenabled.12" />
+            <type name="application/msword" />
+            <type name="application/vnd.ms-word.template.macroenabled.12" />
+            <type name="application/vnd.openxmlformats-officedocument.wordprocessingml.template" />
+            <type name="application/x-msword" />
+      </filter>
+    </item>
+    <item name="com.google.android.apps.docs.editors.slides/com.google.android.apps.docs.editors.kix.quickword.QuickWordDocumentOpenerActivityAlias">
+      <filter>
+            <action name="android.intent.action.EDIT" />
+            <cat name="android.intent.category.DEFAULT" />
+            <type name="application/vnd.openxmlformats-officedocument.presentationml.presentation" />
+            <type name="application/vnd.ms-powerpoint" />
+            <type name="application/vnd.openxmlformats-officedocument.presentationml.template" />
+            <type name="application/vnd.ms-powerpoint.presentation.macroenabled.12" />
+            <type name="application/vnd.openxmlformats-officedocument.presentationml.slideshow" />
+            <type name="application/vnd.ms-powerpoint.slideshow.macroenabled.12" />
+            <type name="application/x-mspowerpoint" />
+
+      </filter>
+    </item>
+</preferred-activities>