| commit | eb044c2f93c1a731d6099732082039b21e18a676 | [log] [tgz] |
|---|---|---|
| author | Vikram Gaur <[email protected]> | Thu Nov 14 10:18:33 2024 +0000 |
| committer | Vikram Gaur <[email protected]> | Thu Nov 14 10:18:33 2024 +0000 |
| tree | e6f3f276cc6511f754c4d6b3affd5c3f6b72510d | |
| parent | 583f5a523bc7df9fd8d3bab986b349d46ef10af7 [diff] |
Unbind service connection in case RKPD times out. Bug: 371115066 Test: TH Change-Id: Ic7f2d5c5ffa69476eb42f6020a4cec2036a4ddba
diff --git a/system-server/src/android/security/rkp/service/RegistrationProxy.java b/system-server/src/android/security/rkp/service/RegistrationProxy.java index 7663741..7385baf 100644 --- a/system-server/src/android/security/rkp/service/RegistrationProxy.java +++ b/system-server/src/android/security/rkp/service/RegistrationProxy.java
@@ -100,6 +100,7 @@ new ComponentName(serviceInfo.applicationInfo.packageName, serviceInfo.name)); if (!context.bindServiceAsUser(intent, this, Context.BIND_AUTO_CREATE, UserHandle.SYSTEM)) { + context.unbindService(this); throw new RemoteException("Failed to bind to IRemoteProvisioning service"); } }