Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame^] | 1 | # fingerprint.sysprop |
| 2 | # module becomes static class (Java) / namespace (C++) for serving API |
| 3 | module: "android.fingerprint.virt.FingerprintHalProperties" |
| 4 | owner: Vendor |
| 5 | |
| 6 | # type of fingerprint sensor |
| 7 | prop { |
| 8 | prop_name: "persist.vendor.fingerprint.virtual.type" |
| 9 | type: String |
| 10 | scope: Public |
| 11 | access: ReadWrite |
| 12 | enum_values: "default|rear|udfps|side" |
| 13 | api_name: "type" |
| 14 | } |
| 15 | |
| 16 | # ids of call current enrollments |
| 17 | prop { |
| 18 | prop_name: "persist.vendor.fingerprint.virtual.enrollments" |
| 19 | type: IntegerList |
| 20 | scope: Public |
| 21 | access: ReadWrite |
| 22 | api_name: "enrollments" |
| 23 | } |
| 24 | |
| 25 | # authenticate and detectInteraction will succeed with this |
| 26 | # enrollment id, when present, otherwise they will error |
| 27 | prop { |
| 28 | prop_name: "vendor.fingerprint.virtual.enrollment_hit" |
| 29 | type: Integer |
| 30 | scope: Public |
| 31 | access: ReadWrite |
| 32 | api_name: "enrollment_hit" |
| 33 | } |
| 34 | |
| 35 | # the next enrollment in the format: "<id>:<delay>,<delay>,...:<result>" |
| 36 | # for example: "2:0:true" |
| 37 | # this property is reset after enroll completes |
| 38 | prop { |
| 39 | prop_name: "vendor.fingerprint.virtual.next_enrollment" |
| 40 | type: String |
| 41 | scope: Public |
| 42 | access: ReadWrite |
| 43 | api_name: "next_enrollment" |
| 44 | } |
| 45 | |
| 46 | # value for getAuthenticatorId or 0 |
| 47 | prop { |
| 48 | prop_name: "vendor.fingerprint.virtual.authenticator_id" |
| 49 | type: Long |
| 50 | scope: Public |
| 51 | access: ReadWrite |
| 52 | api_name: "authenticator_id" |
| 53 | } |
| 54 | |
| 55 | # value for generateChallenge |
| 56 | prop { |
| 57 | prop_name: "vendor.fingerprint.virtual.challenge" |
| 58 | type: Long |
| 59 | scope: Public |
| 60 | access: ReadWrite |
| 61 | api_name: "challenge" |
| 62 | } |
| 63 | |
| 64 | # if locked out |
| 65 | prop { |
| 66 | prop_name: "vendor.fingerprint.virtual.lockout" |
| 67 | type: Boolean |
| 68 | scope: Public |
| 69 | access: ReadWrite |
| 70 | api_name: "lockout" |
| 71 | } |
| 72 | |
| 73 | # force all authenticate operations to fail |
| 74 | prop { |
| 75 | prop_name: "vendor.fingerprint.virtual.operation_authenticate_fails" |
| 76 | type: Boolean |
| 77 | scope: Public |
| 78 | access: ReadWrite |
| 79 | api_name: "operation_authenticate_fails" |
| 80 | } |
| 81 | |
| 82 | # force all detectInteraction operations to fail |
| 83 | prop { |
| 84 | prop_name: "vendor.fingerprint.virtual.operation_detect_interaction_fails" |
| 85 | type: Boolean |
| 86 | scope: Public |
| 87 | access: ReadWrite |
| 88 | api_name: "operation_detect_interaction_fails" |
| 89 | } |
| 90 | |
| 91 | # force all enroll operations to fail |
| 92 | prop { |
| 93 | prop_name: "vendor.fingerprint.virtual.operation_enroll_fails" |
| 94 | type: Boolean |
| 95 | scope: Public |
| 96 | access: ReadWrite |
| 97 | api_name: "operation_enroll_fails" |
| 98 | } |
| 99 | |
| 100 | # add a latency to authentication operations |
| 101 | prop { |
| 102 | prop_name: "vendor.fingerprint.virtual.operation_authenticate_latency" |
| 103 | type: Integer |
| 104 | scope: Public |
| 105 | access: ReadWrite |
| 106 | api_name: "operation_authenticate_latency" |
| 107 | } |
| 108 | |
| 109 | # add a latency to detectInteraction operations |
| 110 | prop { |
| 111 | prop_name: "vendor.fingerprint.virtual.operation_detect_interaction_latency" |
| 112 | type: Integer |
| 113 | scope: Public |
| 114 | access: ReadWrite |
| 115 | api_name: "operation_detect_interaction_latency" |
| 116 | } |
| 117 | |
| 118 | # add a latency to enroll operations |
| 119 | prop { |
| 120 | prop_name: "vendor.fingerprint.virtual.operation_enroll_latency" |
| 121 | type: Integer |
| 122 | scope: Public |
| 123 | access: ReadWrite |
| 124 | api_name: "operation_enroll_latency" |
| 125 | } |
| 126 | |
| 127 | # millisecond duration for authenticate operations |
| 128 | # (waits for changes to enrollment_hit) |
| 129 | prop { |
| 130 | prop_name: "vendor.fingerprint.virtual.operation_authenticate_duration" |
| 131 | type: Integer |
| 132 | scope: Public |
| 133 | access: ReadWrite |
| 134 | api_name: "operation_authenticate_duration" |
| 135 | } |