Question 1
Topic: Lesson 1: Permissions
Skill tested: Applies Android component permissions to protect an exported service from unauthorized applications.
A company's Android app exposes an exported service that accepts requests to approve expense reports. Only the company's companion app should be able to invoke the service. The companion app is separately installed, and neither application can rely on a shared Linux user ID. The service must remain callable across the application boundary, while other installed applications must be denied access. Which implementation best meets this requirement?
A signature-level custom permission allows access only to applications signed with the same certificate as the application defining the permission. Requiring it on the exported service enforces that policy at the component boundary, and the companion app must request the permission. Making the service non-exported prevents the separately installed companion app from reaching it. INTERNET is unrelated and does not establish caller identity. A separate process does not by itself grant or restrict inter-application access.