summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-10-16 12:33:00 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-10-16 12:33:00 +0000
commit6b4520f3ac949cf460f469c756bc9781ae6f99e1 (patch)
tree1617ed8141005f71a5e4b43a90173892c0963600
parentc1edf208d51ef59b5dcd66cfaed1369918f6cea7 (diff)
parent5f84d036db86126c11c8ed8f87a81c7a3d8f611f (diff)
Merge "Nit clean up" into main
-rw-r--r--services/appfunctions/java/com/android/server/appfunctions/AppFunctionManagerServiceImpl.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/services/appfunctions/java/com/android/server/appfunctions/AppFunctionManagerServiceImpl.java b/services/appfunctions/java/com/android/server/appfunctions/AppFunctionManagerServiceImpl.java
index 5d574083b326..28e57775523b 100644
--- a/services/appfunctions/java/com/android/server/appfunctions/AppFunctionManagerServiceImpl.java
+++ b/services/appfunctions/java/com/android/server/appfunctions/AppFunctionManagerServiceImpl.java
@@ -225,12 +225,6 @@ public class AppFunctionManagerServiceImpl extends IAppFunctionManager.Stub {
.thenAccept(
canExecute -> {
if (!canExecute) {
- safeExecuteAppFunctionCallback.onResult(
- ExecuteAppFunctionResponse.newFailure(
- ExecuteAppFunctionResponse.RESULT_DENIED,
- "Caller does not have permission to execute the"
- + " appfunction",
- /* extras= */ null));
throw new SecurityException(
"Caller does not have permission to execute the"
+ " appfunction");