Loading services/core/java/com/android/server/appop/AppOpsService.java +3 −0 Original line number Diff line number Diff line Loading @@ -1840,11 +1840,14 @@ public class AppOpsService extends IAppOpsService.Stub { } private boolean isPackageSuspendedForUser(String pkg, int uid) { final long identity = Binder.clearCallingIdentity(); try { return AppGlobals.getPackageManager().isPackageSuspendedForUser( pkg, UserHandle.getUserId(uid)); } catch (RemoteException re) { throw new SecurityException("Could not talk to package manager service"); } finally { Binder.restoreCallingIdentity(identity); } } Loading Loading
services/core/java/com/android/server/appop/AppOpsService.java +3 −0 Original line number Diff line number Diff line Loading @@ -1840,11 +1840,14 @@ public class AppOpsService extends IAppOpsService.Stub { } private boolean isPackageSuspendedForUser(String pkg, int uid) { final long identity = Binder.clearCallingIdentity(); try { return AppGlobals.getPackageManager().isPackageSuspendedForUser( pkg, UserHandle.getUserId(uid)); } catch (RemoteException re) { throw new SecurityException("Could not talk to package manager service"); } finally { Binder.restoreCallingIdentity(identity); } } Loading