Stop RemoteDPC from crashing. Long-term fix will come in b/233736423 Test: atest CtsDevicePolicyTestCases Fixes: 229079401 Bug: 233736423 Change-Id: Iae2d40dda57683ea1dddb2e7f8fdaf2f08f6e5b0
diff --git a/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/DispatcherGenerator.java b/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/DispatcherGenerator.java index a4f8ef6..f8733d1 100644 --- a/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/DispatcherGenerator.java +++ b/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/DispatcherGenerator.java
@@ -184,7 +184,7 @@ ArrayTypeName.of(byte.class)); methodCode.addStatement("throwableParcel.recycle()"); - methodCode.addStatement("$T.throwInBackground(e)", BACKGROUND_EXCEPTION_THROWER_CLASSNAME); + // methodCode.addStatement("$T.throwInBackground(e)", BACKGROUND_EXCEPTION_THROWER_CLASSNAME); methodCode.addStatement("return throwableBytes"); methodCode.nextControlFlow("catch ($T e)", Error.class); @@ -199,7 +199,7 @@ ArrayTypeName.of(byte.class)); methodCode.addStatement("throwableParcel.recycle()"); - methodCode.addStatement("$T.throwInBackground(e)", BACKGROUND_EXCEPTION_THROWER_CLASSNAME); + // methodCode.addStatement("$T.throwInBackground(e)", BACKGROUND_EXCEPTION_THROWER_CLASSNAME); methodCode.addStatement("return throwableBytes"); methodCode.endControlFlow();