| cleanup: remove unused IsCurrentSelectionApp IPC interface IsCurrentSelectionApp was added in the initial scaffolding commit (475806c) and has never been called by any production code. It is not exposed to the JS/ETS API layer, and only unit tests reference it. The interface lacks Validate() authorization (unlike its three sibling interfaces RegisterListener/UnregisterListener/GetSelectionContent), allowing any process to enumerate the current selection app's PID by brute-forcing the pid parameter. Since the interface is dead code with a security concern, remove it entirely rather than patching with Validate(). Removed: - IDL declaration (ISelectionService.idl) - SA implementation (SelectionService::IsCurrentSelectionApp) - Client wrapper (SelectionClient::IsCurrentSelectionApp) - Inner-kit header declaration (selection_client.h) - Unit tests referencing IsCurrentSelectionApp Build verified: selectionfwk + selectionfwk_test pass clean. Co-authored-by: Agent <noreply@anthropic.com> Signed-off-by: songjiawei9 <songjiawei9@h-partners.com> AI[0%] Human Fixed[0%] Human[0%] AI Adopted[0%] Change-Id: Iae6051323df63e8fd1842a910a410ee24483ed86 | 1 个月前 |