1# ConfirmationUI Trusted App 2 3This is an implementation of the ConfirmationUI trusted application for Trusty. 4It is meant as a reference implementation for OEMs who want to implement ConfirmationUI or 5"Android Protected Confirmation" and use Trusty as TEE OS. 6 7## Dependencies 8 9 * Android platform/system/teeui 10 * libcxx 11 * freetype 12 13## Additional integration work 14 15You will need a touch controller driver or another trusted input method for the targeted platform. 16 17Included in this package is a sample layout as used by Pixel3(+) phones. For phones that use button 18on the right side of the phone this layout can be adjusted by configuring the context parameters. 19E.g.: (see TrustyConfirmationUI.cpp) 20 conv.setParam<RightEdgeOfScreen>(1440_px); 21 conv.setParam<BottomOfScreen>(2960_px); 22 conv.setParam<PowerButtonTop>(34.146_mm); 23 conv.setParam<PowerButtonBottom>(44.146_mm); 24 conv.setParam<VolUpButtonTop>(54.146_mm); 25 conv.setParam<VolUpButtonBottom>(64.146_mm); 26 27## Layouts 28 29A default example layout is provided in examples/layouts/. To override the layout with a vendor specific 30one, define CONFIRMATIONUI_LAYOUTS to point to the layouts library you want to link against. 31