Loading services/core/java/com/android/server/location/contexthub/ContextHubShellCommand.java +5 −3 Original line number Diff line number Diff line Loading @@ -32,16 +32,18 @@ public class ContextHubShellCommand extends ShellCommand { // Internal service impl -- must perform security checks before touching. private final ContextHubService mInternal; private final Context mContext; public ContextHubShellCommand(Context context, ContextHubService service) { mInternal = service; context.enforceCallingOrSelfPermission( android.Manifest.permission.ACCESS_CONTEXT_HUB, "ContextHubShellCommand"); mContext = context; } @Override public int onCommand(String cmd) { mContext.enforceCallingOrSelfPermission( android.Manifest.permission.ACCESS_CONTEXT_HUB, "ContextHubShellCommand"); if ("deny".equals(cmd)) { return runDisableAuth(); } Loading Loading
services/core/java/com/android/server/location/contexthub/ContextHubShellCommand.java +5 −3 Original line number Diff line number Diff line Loading @@ -32,16 +32,18 @@ public class ContextHubShellCommand extends ShellCommand { // Internal service impl -- must perform security checks before touching. private final ContextHubService mInternal; private final Context mContext; public ContextHubShellCommand(Context context, ContextHubService service) { mInternal = service; context.enforceCallingOrSelfPermission( android.Manifest.permission.ACCESS_CONTEXT_HUB, "ContextHubShellCommand"); mContext = context; } @Override public int onCommand(String cmd) { mContext.enforceCallingOrSelfPermission( android.Manifest.permission.ACCESS_CONTEXT_HUB, "ContextHubShellCommand"); if ("deny".equals(cmd)) { return runDisableAuth(); } Loading