OSDN Git Service

Use pathPrefix filter instead of path for /btopp content
authorMatthew Xie <mattx@google.com>
Fri, 6 Dec 2013 20:19:36 +0000 (12:19 -0800)
committerdcashman <dcashman@google.com>
Fri, 3 Jan 2014 23:10:10 +0000 (15:10 -0800)
path is doing a full path match. It did not guard /btopp/
also fix a minor problem in tests/AndroidManifest.xml
bug 11148516

(cherry picked from commit 2819c1dbef39a712ab8adfcd36d2cb01f2379259)

Change-Id: I00b23e5c3a98422c2dd1cc220f2c121578ff5c8f

AndroidManifest.xml
tests/AndroidManifest.xml

index eab9005..55c40a7 100644 (file)
@@ -72,7 +72,7 @@
             android:exported="true"
             android:process="@string/process">
             <path-permission
-                    android:path="/btopp"
+                    android:pathPrefix="/btopp"
                     android:permission="android.permission.ACCESS_BLUETOOTH_SHARE" />
         </provider>
         <service
index a9fc19c..c022b22 100755 (executable)
@@ -49,7 +49,7 @@
     <application>
         <uses-library android:name="android.test.runner" />
         <uses-permission android:name="android.permission.ACCESS_BLUETOOTH_SHARE" />
-        <uses-permission android:permission="com.android.permission.WHITELIST_BLUETOOTH_DEVICE" />
+        <uses-permission android:name="com.android.permission.WHITELIST_BLUETOOTH_DEVICE" />
         <path-permission
                 android:path="/btopp"
                 android:permission="android.permission.ACCESS_BLUETOOTH_SHARE" />