Teclast_M30_M4P7_Android-AOSP/README.md
2026-01-09 23:26:58 +00:00

113 lines
2.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Teclast M30 (M4P7) GSI Installation (Google-frei)
Diese Anleitung beschreibt, wie auf einem **Teclast M30 (MT6797, Android 8)** ein **Generic System Image (GSI)** (z. B. LineageOS oder /e/OS) installiert wird.
Getestet unter **Arch Linux**, Bootloader entsperrt, **Fastboot + ADB*.
---
## Voraussetzungen
- Entsperrter Bootloader
- Funktionierendes Fastboot
- Stock-ROM lauffähig
- `adb` / `fastboot` installiert
- Original-ROM (für `boot.img` und `vendor`)
- GSI (`arm64_a`, **A-only**, ohne GApps empfohlen)
---
## 1. OEM-Entsperrung
Auf dem Tablet:
Einstellungen → Entwickleroptionen → OEM-Entsperrung
Danach Bootloader entsperren (falls noch nicht geschehen):
```bash
adb reboot bootloader
fastboot oem unlock
```
Alle Daten werden gelöscht
## 2. Magisk installieren
Magisk wird benötigt, um dm-verity und Force-Encryption im Bootimage zu deaktivieren.
Stock-ROM normal booten
Magisk APK installieren
https://github.com/topjohnwu/Magisk/releases
## 3. Stock boot.img patchen (dm-verity deaktivieren)
boot.img aus dem Stock-Inststallations.Verzeichnis aufs Tablet kopieren
adb push boot.img /sdcard/Download/
boot.img mit Magisk patchen
In der Magisk-App:
Install
Select and Patch a File
boot.img auswählen
KEINE Optionen aktivieren
AVB 2.0 / dm-verity beibehalten
Erzwungene Verschlüsselung beibehalten
Ergebnis:
/sdcard/Download/magisk_patched.img
Gepatchtes Image zurück auf den PC holen
adb pull /sdcard/Download/magisk_patched*.img magisk_patched.img
mv magisk_patched-*.img magisk_patched.img
Alternativ:
Select and Patch File
Sofort installieren
Hier dann ggf. Punk 4. überspringen
## 4. Gepatchtes boot.img installieren
Variante A Fastboot
adb reboot bootloader
fastboot flash boot magisk_patched.img
fastboot reboot
Nach dem Boot:
adb shell
su
Popup auf dem Tablet bestätigen.
## 5. Systemflash (GSI installieren)
ARM64 + A-only (arm64_a) verwenden
GSI entpacken (.img.xz → .img)
Flash-Reihenfolge
adb reboot bootloader
fastboot format system
fastboot flash system system.img
fastboot format userdata
fastboot reboot
## 6. Recovery
Falls das Gerät nicht bootet:
Stockrom mit SP_Flash_Tool_v5_2020 (https://spflashtools.com/category/linux) flashen