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 |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 10 | scope: Public |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 11 | access: ReadWrite |
Jeff Pu | 0b8ea04 | 2024-12-19 21:11:16 +0000 | [diff] [blame] | 12 | enum_values: "default|rear|udfps|udfps-us|side" |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 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 |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 20 | scope: Public |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 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 |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 30 | scope: Public |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 31 | access: ReadWrite |
| 32 | api_name: "enrollment_hit" |
| 33 | } |
| 34 | |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 35 | # the next enrollment in the format of: |
| 36 | # "<id>:<delay>,<delay>,...:<result>" |
| 37 | # <delay> = <duration-[acquiredInfos]> |
| 38 | # [acquiredInfos] = [acquiredInfo1, acquiredInfo2, ...] |
| 39 | # (refer to README.md file for acquiredInfo values) |
| 40 | # e.g. "2:100,20:true", "2:100-[5,1],20:true" |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 41 | # this property is reset after enroll completes |
| 42 | prop { |
| 43 | prop_name: "vendor.fingerprint.virtual.next_enrollment" |
| 44 | type: String |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 45 | scope: Public |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 46 | access: ReadWrite |
| 47 | api_name: "next_enrollment" |
| 48 | } |
| 49 | |
| 50 | # value for getAuthenticatorId or 0 |
| 51 | prop { |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 52 | prop_name: "persist.vendor.fingerprint.virtual.authenticator_id" |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 53 | type: Long |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 54 | scope: Public |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 55 | access: ReadWrite |
| 56 | api_name: "authenticator_id" |
| 57 | } |
| 58 | |
| 59 | # value for generateChallenge |
| 60 | prop { |
| 61 | prop_name: "vendor.fingerprint.virtual.challenge" |
| 62 | type: Long |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 63 | scope: Public |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 64 | access: ReadWrite |
| 65 | api_name: "challenge" |
| 66 | } |
| 67 | |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 68 | # force all authenticate operations to fail |
| 69 | prop { |
| 70 | prop_name: "vendor.fingerprint.virtual.operation_authenticate_fails" |
| 71 | type: Boolean |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 72 | scope: Public |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 73 | access: ReadWrite |
| 74 | api_name: "operation_authenticate_fails" |
| 75 | } |
| 76 | |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 77 | # force all detectInteraction operations to error out |
| 78 | # error consists of errorCode and vendorErrorCode |
| 79 | # valid errorCodes are listed in README.md file |
| 80 | # vendorErrorCode = (error>1000) ? error-1000 : 0 |
| 81 | # e.g. error(1002) --> errorCode(7) and vendorErrorCode(2) |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 82 | prop { |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 83 | prop_name: "vendor.fingerprint.virtual.operation_detect_interaction_error" |
| 84 | type: Integer |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 85 | scope: Public |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 86 | access: ReadWrite |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 87 | api_name: "operation_detect_interaction_error" |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 88 | } |
| 89 | |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 90 | # force all enroll operations to result in error |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 91 | prop { |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 92 | prop_name: "vendor.fingerprint.virtual.operation_enroll_error" |
| 93 | type: Integer |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 94 | scope: Public |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 95 | access: ReadWrite |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 96 | api_name: "operation_enroll_error" |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 97 | } |
| 98 | |
| 99 | # add a latency to authentication operations |
Jeff Pu | 5265318 | 2022-10-12 16:27:23 -0400 | [diff] [blame] | 100 | # default to 400ms |
| 101 | # [x] = x ms |
| 102 | # [x,y] = randomly between x and y ms |
| 103 | # others = invalid |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 104 | prop { |
| 105 | prop_name: "vendor.fingerprint.virtual.operation_authenticate_latency" |
Jeff Pu | 5265318 | 2022-10-12 16:27:23 -0400 | [diff] [blame] | 106 | type: IntegerList |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 107 | scope: Public |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 108 | access: ReadWrite |
| 109 | api_name: "operation_authenticate_latency" |
| 110 | } |
| 111 | |
| 112 | # add a latency to detectInteraction operations |
Jeff Pu | 5265318 | 2022-10-12 16:27:23 -0400 | [diff] [blame] | 113 | # refer to `operation_authenticate_latency` above for usage |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 114 | prop { |
| 115 | prop_name: "vendor.fingerprint.virtual.operation_detect_interaction_latency" |
Jeff Pu | 5265318 | 2022-10-12 16:27:23 -0400 | [diff] [blame] | 116 | type: IntegerList |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 117 | scope: Public |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 118 | access: ReadWrite |
| 119 | api_name: "operation_detect_interaction_latency" |
| 120 | } |
| 121 | |
| 122 | # add a latency to enroll operations |
Jeff Pu | 5265318 | 2022-10-12 16:27:23 -0400 | [diff] [blame] | 123 | # refer to `operation_authenticate_latency` above for usage |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 124 | prop { |
| 125 | prop_name: "vendor.fingerprint.virtual.operation_enroll_latency" |
Jeff Pu | 5265318 | 2022-10-12 16:27:23 -0400 | [diff] [blame] | 126 | type: IntegerList |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 127 | scope: Public |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 128 | access: ReadWrite |
| 129 | api_name: "operation_enroll_latency" |
| 130 | } |
| 131 | |
| 132 | # millisecond duration for authenticate operations |
| 133 | # (waits for changes to enrollment_hit) |
| 134 | prop { |
| 135 | prop_name: "vendor.fingerprint.virtual.operation_authenticate_duration" |
| 136 | type: Integer |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 137 | scope: Public |
Joe Bolinger | de94aa0 | 2021-12-09 17:00:32 -0800 | [diff] [blame] | 138 | access: ReadWrite |
| 139 | api_name: "operation_authenticate_duration" |
| 140 | } |
Jeff Pu | 63f33c7 | 2022-07-28 16:06:23 -0400 | [diff] [blame] | 141 | |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 142 | # insert error for authenticate operations |
| 143 | prop { |
| 144 | prop_name: "vendor.fingerprint.virtual.operation_authenticate_error" |
| 145 | type: Integer |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 146 | scope: Public |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 147 | access: ReadWrite |
| 148 | api_name: "operation_authenticate_error" |
| 149 | } |
| 150 | |
Jeff Pu | 63f33c7 | 2022-07-28 16:06:23 -0400 | [diff] [blame] | 151 | # sensor location |
Jeff Pu | 4facadf | 2025-01-02 21:24:35 +0000 | [diff] [blame] | 152 | # <display1>[,display2] ... |
| 153 | # display format: <x>:<y>:<radius>[:displayString] |
Jeff Pu | 63f33c7 | 2022-07-28 16:06:23 -0400 | [diff] [blame] | 154 | prop { |
| 155 | prop_name: "persist.vendor.fingerprint.virtual.sensor_location" |
| 156 | type: String |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 157 | scope: Public |
Jeff Pu | 63f33c7 | 2022-07-28 16:06:23 -0400 | [diff] [blame] | 158 | access: ReadWrite |
| 159 | api_name: "sensor_location" |
| 160 | } |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 161 | |
| 162 | # acquired info during authentication in format of sequence |
| 163 | prop { |
| 164 | prop_name: "vendor.fingerprint.virtual.operation_authenticate_acquired" |
| 165 | type: String |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 166 | scope: Public |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 167 | access: ReadWrite |
| 168 | api_name: "operation_authenticate_acquired" |
| 169 | } |
| 170 | |
| 171 | # millisecond duration for detect interaction operations |
| 172 | # (waits for changes to enrollment_hit) |
| 173 | prop { |
| 174 | prop_name: "vendor.fingerprint.virtual.operation_detect_interaction_duration" |
| 175 | type: Integer |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 176 | scope: Public |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 177 | access: ReadWrite |
| 178 | api_name: "operation_detect_interaction_duration" |
| 179 | } |
| 180 | |
| 181 | # acquired info during detect interaction operation in format of sequence |
| 182 | # e.g. 5,6,1 (TOO_SLOW, TOO_FAST, GOOD) |
| 183 | # onAcquired() callback will be invoked in sequence |
| 184 | # vendorAcquiredCode = (acquired>1000) ? acquired-1000 : 0 |
| 185 | prop { |
| 186 | prop_name: "vendor.fingerprint.virtual.operation_detect_interaction_acquired" |
| 187 | type: String |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 188 | scope: Public |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 189 | access: ReadWrite |
| 190 | api_name: "operation_detect_interaction_acquired" |
| 191 | } |
| 192 | |
| 193 | # sensor id (default: 5) |
| 194 | prop { |
| 195 | prop_name: "persist.vendor.fingerprint.virtual.sensor_id" |
| 196 | type: Integer |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 197 | scope: Public |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 198 | access: ReadWrite |
| 199 | api_name: "sensor_id" |
| 200 | } |
| 201 | |
| 202 | # sensor strength (default: 2) |
| 203 | # [0=CONVENECE, 1=WEAK, 2=STRONG] |
| 204 | prop { |
| 205 | prop_name: "persist.vendor.fingerprint.virtual.sensor_strength" |
| 206 | type: Integer |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 207 | scope: Public |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 208 | access: ReadWrite |
| 209 | api_name: "sensor_strength" |
| 210 | } |
| 211 | |
| 212 | # max enrollments per user (default: 5) |
| 213 | # |
| 214 | prop { |
| 215 | prop_name: "persist.vendor.fingerprint.virtual.max_enrollments" |
| 216 | type: Integer |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 217 | scope: Public |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 218 | access: ReadWrite |
| 219 | api_name: "max_enrollments" |
| 220 | } |
| 221 | |
Jeff Pu | 4facadf | 2025-01-02 21:24:35 +0000 | [diff] [blame] | 222 | # whether support navigation gestures (default: false) |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 223 | prop { |
Jeff Pu | 4facadf | 2025-01-02 21:24:35 +0000 | [diff] [blame] | 224 | prop_name: "persist.vendor.fingerprint.virtual.navigation_gesture" |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 225 | type: Boolean |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 226 | scope: Public |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 227 | access: ReadWrite |
Jeff Pu | 4facadf | 2025-01-02 21:24:35 +0000 | [diff] [blame] | 228 | api_name: "navigation_gesture" |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 229 | } |
| 230 | |
| 231 | # whether support detect interaction (default: false) |
| 232 | prop { |
| 233 | prop_name: "persist.vendor.fingerprint.virtual.detect_interaction" |
| 234 | type: Boolean |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 235 | scope: Public |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 236 | access: ReadWrite |
| 237 | api_name: "detect_interaction" |
| 238 | } |
| 239 | |
| 240 | # whether support display touch by hal (default: true) |
| 241 | prop { |
| 242 | prop_name: "persist.vendor.fingerprint.virtual.udfps.display_touch" |
| 243 | type: Boolean |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 244 | scope: Public |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 245 | access: ReadWrite |
| 246 | api_name: "display_touch" |
| 247 | } |
| 248 | |
| 249 | # whether support illumination control by hal (default: false) |
| 250 | prop { |
| 251 | prop_name: "persist.vendor.fingerprint.virtual.udfps.control_illumination" |
| 252 | type: Boolean |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 253 | scope: Public |
Jeff Pu | 343ca94 | 2022-09-14 15:56:30 -0400 | [diff] [blame] | 254 | access: ReadWrite |
| 255 | api_name: "control_illumination" |
| 256 | } |
Jeff Pu | 5265318 | 2022-10-12 16:27:23 -0400 | [diff] [blame] | 257 | |
| 258 | # force to be locked out (default: false) |
| 259 | prop { |
| 260 | prop_name: "persist.vendor.fingerprint.virtual.lockout" |
| 261 | type: Boolean |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 262 | scope: Public |
Jeff Pu | 5265318 | 2022-10-12 16:27:23 -0400 | [diff] [blame] | 263 | access: ReadWrite |
| 264 | api_name: "lockout" |
| 265 | } |
| 266 | |
| 267 | # whether support lockout based on the failed auth attempts (default: false) |
| 268 | prop { |
| 269 | prop_name: "persist.vendor.fingerprint.virtual.lockout_enable" |
| 270 | type: Boolean |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 271 | scope: Public |
Jeff Pu | 5265318 | 2022-10-12 16:27:23 -0400 | [diff] [blame] | 272 | access: ReadWrite |
| 273 | api_name: "lockout_enable" |
| 274 | } |
| 275 | |
| 276 | # temporarily lockout threshold in number of consecutive failed auth attempts (default: 5) |
| 277 | prop { |
| 278 | prop_name: "persist.vendor.fingerprint.virtual.lockout_timed_threshold" |
| 279 | type: Integer |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 280 | scope: Public |
Jeff Pu | 5265318 | 2022-10-12 16:27:23 -0400 | [diff] [blame] | 281 | access: ReadWrite |
| 282 | api_name: "lockout_timed_threshold" |
| 283 | } |
| 284 | |
| 285 | # temporary lockout duration in ms (default: 10000ms) |
| 286 | prop { |
| 287 | prop_name: "persist.vendor.fingerprint.virtual.lockout_timed_duration" |
| 288 | type: Integer |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 289 | scope: Public |
Jeff Pu | 5265318 | 2022-10-12 16:27:23 -0400 | [diff] [blame] | 290 | access: ReadWrite |
| 291 | api_name: "lockout_timed_duration" |
| 292 | } |
| 293 | |
| 294 | # permanently lockout threshold in number of consecutive failed auth attempts (default: 20) |
| 295 | prop { |
| 296 | prop_name: "persist.vendor.fingerprint.virtual.lockout_permanent_threshold" |
| 297 | type: Integer |
Jeff Pu | e0263c4 | 2024-07-17 12:33:29 -0400 | [diff] [blame] | 298 | scope: Public |
Jeff Pu | 5265318 | 2022-10-12 16:27:23 -0400 | [diff] [blame] | 299 | access: ReadWrite |
| 300 | api_name: "lockout_permanent_threshold" |
| 301 | } |