some trivial changes

pull/140/head
cfig 3 years ago
parent 1f925cd742
commit 66ca430622
No known key found for this signature in database
GPG Key ID: B104C307F0FDABB7

@ -230,7 +230,8 @@ Then flash vbmeta.img.signed to your device.
</details> </details>
## boot.img layout ## boot.img layout
Read [layout](doc/layout.md) of Android boot.img and vendor\_boot.img. Read [boot layout](doc/layout.md) of Android boot.img and vendor\_boot.img.
Read [miac layout](doc/misc_image_layout.md) of misc\.img
## References and Acknowledgement ## References and Acknowledgement
<details> <details>

@ -70,6 +70,7 @@ class Signer {
DefaultExecutor().execute(this) DefaultExecutor().execute(this)
} }
Helper.assertFileEquals("$output.signed", "$output.signed2") Helper.assertFileEquals("$output.signed", "$output.signed2")
File("$output.signed2").delete()
//TODO: decide what to verify //TODO: decide what to verify
//Parser.verifyAVBIntegrity(cfg.info.output + ".signed", avbtool) //Parser.verifyAVBIntegrity(cfg.info.output + ".signed", avbtool)
//Parser.verifyAVBIntegrity(cfg.info.output + ".signed2", avbtool) //Parser.verifyAVBIntegrity(cfg.info.output + ".signed2", avbtool)

@ -189,6 +189,7 @@ data class BootV3(
} }
Helper.assertFileEquals(this.info.output + ".clear", this.info.output + ".google") Helper.assertFileEquals(this.info.output + ".clear", this.info.output + ".google")
File(this.info.output + ".google").delete()
return this return this
} }

@ -99,6 +99,8 @@ Value at 0x28 is one of {0x00,0x01,0x02,0x03,0x04}, this filed should be read fi
## 2. boot.img v3-v4 ## 2. boot.img v3-v4
For partitions: `/boot` and `/init_boot`.
### header ### header
item size in bytes position item size in bytes position
@ -139,6 +141,8 @@ Value at 0x28 is one of {0x00,0x01,0x02,0x03,0x04}, this filed should be read fi
## 3. vendor\_boot.img v3-v4 ## 3. vendor\_boot.img v3-v4
For partitions: `/vendor_boot`.
### header ### header
item size in bytes position item size in bytes position
@ -298,7 +302,7 @@ Value at 0x28 is one of {0x00,0x01,0x02,0x03,0x04}, this filed should be read fi
│ ├─────────────────────┤ │ ├─────────────────────┤
│ │ vendor ramdisk n │ │ │ vendor ramdisk n │
├──────────────────┴─────────────────────┤ ├──────────────────┴─────────────────────┤
│ generic ramdisk │ generic ramdisk (from init_boot/boot)
├──────────────────┬─────────────────────┤ ├──────────────────┬─────────────────────┤
│ │parameters │ │ │parameters │
│ ├─────────────────────┤ │ ├─────────────────────┤

@ -15,7 +15,7 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins { plugins {
kotlin("jvm") version "1.7.0" kotlin("jvm") version "1.7.10"
`java-library` `java-library`
application application
} }

@ -1 +1 @@
Subproject commit bca8ccc62a849a1b9831b5a5ff476f8c86d84361 Subproject commit 0f9f57cb3b25ab299acfeb3d2e80b2ad488ff17a
Loading…
Cancel
Save