Janis Danisevskis | 2840342 | 2019-12-06 12:53:34 -0800 | [diff] [blame] | 1 | # ConfirmationUI Trusted App |
| 2 | |
| 3 | This is an implementation of the ConfirmationUI trusted application for Trusty. |
| 4 | It 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 | |
| 15 | You will need a touch controller driver or another trusted input method for the targeted platform. |
| 16 | |
| 17 | Included in this package is a sample layout as used by Pixel3(+) phones. For phones that use button |
| 18 | on the right side of the phone this layout can be adjusted by configuring the context parameters. |
| 19 | E.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 | |
| 29 | A default example layout is provided in examples/layouts/. To override the layout with a vendor specific |
| 30 | one, define CONFIRMATIONUI_LAYOUTS to point to the layouts library you want to link against. |