Unbind ConnectionService if connection creation timed out.
Currently we won't check if the connection creation can complete in a
reasonable time after we bind to that ConnectionService. This may allow
malicious app keep its declared permission forever even if it is in
background. Solve this by manually unbind the ConnectionService if the
connection/conference creation can't complete in 15 seconds.
Bug: b/293458004
Test: Manually test using BugFinder app provided in the bug
Change-Id: I0d17564d1977b61770cf7e4a46a8ee353b8b42e8
diff --git a/flags/telecom_api_flags.aconfig b/flags/telecom_api_flags.aconfig
index 4dbc03b..cbad597 100644
--- a/flags/telecom_api_flags.aconfig
+++ b/flags/telecom_api_flags.aconfig
@@ -12,4 +12,11 @@
namespace: "telecom"
description: "When set, call details/extras id updates to Telecom APIs for Android V are active."
bug: "301713560"
-}
\ No newline at end of file
+}
+
+flag {
+ name: "unbind_timeout_connections"
+ namespace: "telecom"
+ description: "When set, Telecom will auto-unbind if a ConnectionService returns no connections after some time."
+ bug: "293458004"
+}