OSDN Git Service

Give watch Home app location permissions by default
authorAnthony Hugh <ahugh@google.com>
Wed, 21 Oct 2015 18:41:34 +0000 (11:41 -0700)
committerAnthony Hugh <ahugh@google.com>
Wed, 21 Oct 2015 18:41:34 +0000 (11:41 -0700)
BUG: 24973857
Change-Id: Ia2758a1822791fb89e6e1f6f20daba9e93cf1794

services/core/java/com/android/server/pm/DefaultPermissionGrantPolicy.java

index 4f61db9..8abc8fc 100644 (file)
@@ -586,6 +586,8 @@ final class DefaultPermissionGrantPolicy {
                     grantRuntimePermissionsLPw(wearHomePackage, PHONE_PERMISSIONS, true, userId);
                     grantRuntimePermissionsLPw(wearHomePackage, MICROPHONE_PERMISSIONS, false,
                             userId);
+                    grantRuntimePermissionsLPw(wearHomePackage, LOCATION_PERMISSIONS, false,
+                            userId);
                 }
             }