Commit ca26337
fastbootd: Allow using kernel commits to pass SafetyNet
When using kernel commits to pass SafetyNet and CTS like:
proc: Remove verifiedbootstate flag from /proc/cmdline
proc: Set androidboot.verifiedbootstate=green
fastbootd returns the device as locked when flashing images
or resizing partitions when flashing because it can't find
androidboot.verifiedbootstate=orange in the kernel command
line letting it know it's safe to flash.
So if androidboot.verifiedbootstate is missing from the kernel
command line or if is returning verifiedbootstate=green report
the device as unlocked.
PS2: Add support for androidboot.verifiedbootstate=green
Change-Id: I56712f374ea26397ea5a183cfe100cf92e21d531
Signed-off-by: Jason Edson <jaysonedson@gmail.com>1 parent 4ba6769 commit ca26337
1 file changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
213 | 230 | | |
214 | 231 | | |
215 | 232 | | |
| |||
0 commit comments