Proyecto que facilite la piratería de los teléfonos Android, compilando y parpadeando kernels, etc., en un contenedor Docker/DevContainer.
Soporte: Kernel Descargar/Build, Boot.img Desempaquete de ROM + Repack, Kernel/Boot.img Boot/Flash, Root Magisk en la computadora en lugar de Android, System.Img Desempaquete, construyendo binarios para Android como KEXEC, ¡y más!
Sin embargo, puede usar este repositorio, pero no se recomienda, ya que se meterá con el repositorio y no podrá hacer comodidades/PRS. Use la plantilla, modifique para su teléfono, disfrute de los flujos de trabajo de GitHub, etc.
Este repositorio no está destinado a usarse directamente. Se supone que se utiliza como un submódulo en otro repositorio, donde también colocará archivos específicos para su teléfono. Para obtener una plantilla basada en el teléfono Poco M3, consulte aquí: https://github.com/lattice0/poco_m3_hacking y haga clic en "Use esta plantilla".
Vamos a descargar el núcleo, ROM, Patch Boot.img dentro de la ROM y flashear al teléfono. Dentro de la plantilla, después de obtener el source_me.sh
DEVICE=poco_m3
# Show all commands:
h
# Downloads/Installs toolchain for device
dt
# Downloads the kernel
kd
# Builds the kernel
kb
# Downloads the ROM:
rd
# Extracts the ROM:
re
# Extracts the boot.img from inside the ROM
be
# Repacks the boot.img with the newest compiled kernel
br
# Reboots into fastboot mode using adb (phone must be on, connected and you should have accepted adb connection from this container)
f
# Fastboot Flashes boot.img to the boot partition on the Android device
ffb
# Fastboot Boot boot.img, but some phones don´t support this option (Poco M3 does not)
# fbb
# Reboots the phone using fastboot so it boots with the new kernel (must be in fastboot mode)
r
# If the kernel goes wrong and you return to fastboot mode, then you can do re to Rom Extract again and thus overwriting everything you changed
re
# Then do ffb to reflash the original unmodified boot.img from the unzipped ROM
ffbEste repositorio le permite usar combos de comandos para hacer cosas en serie. Ejemplos de combos:
f && kb && re && be && br && ffb && r # fastboot, kernel build, rom extract, boot.img extract, boot.img repack (w/ built kernel), fastboot flash boot.img, reboot
im && be && pm && ffb && r # install magisk, boot.img extract, patch (boot.img) with magisk, fastboot flash boot, reboot
f && kb && re && mbe && br && ffb && r # fastboot, kernel build, rom extract, boot.img extract, magisk boot.img repack (w/ built kernel), fastboot flash boot.img, reboot
Puede abrir la plantilla o incluso este repositorio en el DevContainer de VScode, donde podrá hacer todos los comandos. Edite .DevContainer.json para configurar su teléfono.