Loading core/java/android/app/SystemServiceRegistry.java +5 −0 Original line number Diff line number Diff line Loading @@ -468,6 +468,11 @@ public final class SystemServiceRegistry { public VpnManager createService(ContextImpl ctx) throws ServiceNotFoundException { IBinder b = ServiceManager.getService(Context.VPN_MANAGEMENT_SERVICE); IVpnManager service = IVpnManager.Stub.asInterface(b); if (service == null && ctx.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH) && android.server.Flags.allowRemovingVpnService()) { throw new ServiceNotFoundException(Context.VPN_MANAGEMENT_SERVICE); } return new VpnManager(ctx, service); }}); Loading Loading
core/java/android/app/SystemServiceRegistry.java +5 −0 Original line number Diff line number Diff line Loading @@ -468,6 +468,11 @@ public final class SystemServiceRegistry { public VpnManager createService(ContextImpl ctx) throws ServiceNotFoundException { IBinder b = ServiceManager.getService(Context.VPN_MANAGEMENT_SERVICE); IVpnManager service = IVpnManager.Stub.asInterface(b); if (service == null && ctx.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH) && android.server.Flags.allowRemovingVpnService()) { throw new ServiceNotFoundException(Context.VPN_MANAGEMENT_SERVICE); } return new VpnManager(ctx, service); }}); Loading