Draft: Add checking signature process for "XR_EXTX_OVERLAY_EXTENSION_NAME"
Add checking signature process for "XR_EXTX_OVERLAY_EXTENSION_NAME".
Changes
- Check android signature for "XR_EXTX_OVERLAY_EXTENSION_NAME" when overlay service app calls "xrCreateInstance()".
- Add system property "debug.openxr.runtime.checkOverlaySignature" to control this feature.
- Using "XRT_ANDROID_PACKAGE" which is set in cmake file to get runtime/spaces package name.
Verification
Test cases:
- spaces(signed) + overlay app(unsigned): overlay cannot be started.
- spaces(signed) + overlay app(signed): overlay can be started.
Other Impact
Once enable this feature, all apps using "XR_EXTX_OVERLAY_EXTENSION_NAME" will have to be signed with the same signature of "XRT_ANDROID_PACKAGE".