This repository was archived by the owner on May 12, 2026. It is now read-only.
Commit c6351fd
committed
feat(avb): generate care_map.pb for hashtree partitions and fix DLKM build.prop handling
This commit adds automatic care_map.pb generation for AVB hashtree-enabled
partitions and fixes build.prop handling for DLKM partitions.
Changes:
- Add _generate_care_map() method to generate care_map.pb during AVB rebuild
- Identifies hashtree-enabled partitions from stock AVB profile
- Creates care_map.txt with partition extents (4KB block granularity)
- Converts to care_map.pb using care_map_generator tool
- Includes proper error handling and cleanup
- Fix build.prop copy for DLKM partitions (system_dlkm, vendor_dlkm, odm_dlkm, product_dlkm)
- Add missing partition mappings
- Create parent directories before copying to prevent FileNotFoundError
- Integrate care_map generation into AVB rebuild workflow
- Called after vbmeta image rebuild to ensure partition images exist
fix(type): add null check for handler.stream in BufferedLogHandler
Add None check before accessing handler.stream.write() to satisfy mypy
union-attr check. Both StreamHandler and FileHandler can have None stream.1 parent 3efaad4 commit c6351fd
2 files changed
Lines changed: 98 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
196 | | - | |
197 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1016 | 1016 | | |
1017 | 1017 | | |
1018 | 1018 | | |
| 1019 | + | |
1019 | 1020 | | |
1020 | 1021 | | |
1021 | 1022 | | |
| |||
1530 | 1531 | | |
1531 | 1532 | | |
1532 | 1533 | | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
1533 | 1618 | | |
1534 | 1619 | | |
1535 | 1620 | | |
| |||
1737 | 1822 | | |
1738 | 1823 | | |
1739 | 1824 | | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
1740 | 1829 | | |
1741 | 1830 | | |
1742 | 1831 | | |
1743 | 1832 | | |
1744 | | - | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
1745 | 1836 | | |
1746 | 1837 | | |
1747 | 1838 | | |
| |||
0 commit comments