Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3690a26 authored by Hani Kazmi's avatar Hani Kazmi Committed by Android (Google) Code Review
Browse files

Merge "[AAPM] Return null service for unsupported form factors." into main

parents c27380d1 7bb61176
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1750,10 +1750,13 @@ public final class SystemServiceRegistry {
                        @Override
                        public AdvancedProtectionManager createService(ContextImpl ctx)
                                throws ServiceNotFoundException {
                            IBinder iBinder = ServiceManager.getServiceOrThrow(
                            IBinder iBinder = ServiceManager.getService(
                                    Context.ADVANCED_PROTECTION_SERVICE);
                            IAdvancedProtectionService service =
                                    IAdvancedProtectionService.Stub.asInterface(iBinder);
                            if (service == null) {
                                return null;
                            }
                            return new AdvancedProtectionManager(service);
                        }
                    });