From 6227172310663e1267b1fabd68be890a1cb7e145 Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Fri, 10 Apr 2015 17:24:02 -0700 Subject: Add Default Browser App support and relax Hosts validation for AppLinks - add private PackageManager APIs for setting/getting the default Browser App package name - serialize / deserialize the default Browser App package name per User Also relax the Hosts name validation for the AppLinls feature. Now we just care if the IntentFilter is having an HTTP or HTTPS scheme. Change-Id: I4436f66ac6beff57e14f7f3a2a00b0b582c03be9 --- test-runner/src/android/test/mock/MockPackageManager.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test-runner/src') diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java index 79510d0..e78750c 100644 --- a/test-runner/src/android/test/mock/MockPackageManager.java +++ b/test-runner/src/android/test/mock/MockPackageManager.java @@ -764,6 +764,16 @@ public class MockPackageManager extends PackageManager { throw new UnsupportedOperationException(); } + @Override + public String getDefaultBrowserPackageName(int userId) { + throw new UnsupportedOperationException(); + } + + @Override + public boolean setDefaultBrowserPackageName(String packageName, int userId) { + throw new UnsupportedOperationException(); + } + /** * @hide */ -- cgit v1.1