I've lost my documentations so ill let ai explain from this source, probably not gonna be in full details.
This directory contains a Runtime Resource Overlay (RRO) designed to neutralize the keybox attestation check.
The Clover ROM implementation checks for "certified" keyboxes by reading a string array resource named config_certifiedKeybox from the framework resources (android package).
This overlay works by:
- Targeting the Android Framework: The
AndroidManifest.xmlspecifiestargetPackage="android". - Overriding the Resource: It defines a new
res/values/arrays.xmlthat overridesconfig_certifiedKeyboxwith an empty array.
<!-- res/values/arrays.xml -->
<resources>
<string-array name="config_certifiedKeybox" translatable="false">
<!-- Empty array effectively disables the check -->
</string-array>
</resources>When the system loads the framework resources, it prioritizes this overlay. Consequently, the attestation hook retrieves an empty list of certified keyboxes, effectively disabling the restriction logic that relies on matching against this list.
A build script is provided to compile the overlay into an APK.
cd DisableCloverKeyboxOverlay
./build.shThis will generate build/DisableCloverKeyboxOverlay.apk, which can be installed as a system overlay (e.g., via a Magisk module).