fix(platina): resolve touchscreen, dual panel, charging reboot, battery guard, camera auth, and internal SIM cellular data

- Add patch 0040: cut panel VSP/VSN always-on rails, attach panel follower to Synaptics TCM touch, add Novatek NT36672A touch node, add BOE panel DTS, and extend DVFS up to 1.84/2.2 GHz.
- Prevent Qualcomm ABL infinite reboot loop on poweroff while charger connected via standby detection in phone-poweroff.py.
- Implement HTTP Basic Auth in camera web preview server with secure digest verification.
- Add battery guard daemon and unit tests to maintain SoC between 50% and 65%.
- Implement Option 2 for cellular data: disable ZRAM swap to prevent Hexagon DMA fragmentation crash, add modem modules to initfs, enable ModemManager/NetworkManager WWAN packages and services, and add phone-cellular-setup.py CLI utility with unit tests.
- Update recipe checksums and verify 109 unit tests and public index boundaries.
This commit is contained in:
shen
2026-11-07 23:27:43 -08:00
parent 655d0f5b49
commit 810a467ad3
15 changed files with 775 additions and 11 deletions
+10 -2
View File
@@ -50,8 +50,16 @@ def build(output, release=None):
logo.thumbnail((960, 960), Image.Resampling.LANCZOS)
screen.paste(logo, ((width - logo.width) // 2, 410))
draw = ImageDraw.Draw(screen)
font_path = Path('/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf')
font = ImageFont.truetype(str(font_path), 44)
font_candidates = [
Path('/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf'),
Path('/System/Library/Fonts/Supplemental/Arial.ttf'),
Path('/Library/Fonts/Arial.ttf'),
]
font_path = next((p for p in font_candidates if p.exists()), None)
if font_path:
font = ImageFont.truetype(str(font_path), 44)
else:
font = ImageFont.load_default()
label = 'v' + release['version']
box = draw.textbbox((0, 0), label, font=font)
text_width, text_height = box[2] - box[0], box[3] - box[1]