Docker 컨테이너/DevContainer에서 Android 전화 해킹, 컴파일 및 플래시 커널 등을 용이하게하는 프로젝트.
지원 : Kernel 다운로드/빌드, boot.img rom + repack, kernel/boot.img boot/flash, android, system.img unpack, kexec와 같은 Android 용 바이너리 구축 등의 Magisk 루트에서 rom + repack, kernel/boot.img boot/flash, magisk 루트!
그러나이 레포를 사용할 수는 있지만 저장소를 엉망으로 만들고 Commit/PR을 만들 수 없으므로 권장되지 않습니다. 템플릿을 사용하고 휴대 전화를 수정하고 GitHub 워크 플로우 등을 즐기십시오.
이 repo는 직접 사용되지 않습니다. 다른 repo의 서브 모듈로 사용되며 휴대 전화에 대한 파일도 넣을 것입니다. Poco M3 전화를 기반으로 한 템플릿은 여기를 참조하십시오. https://github.com/lattice0/poco_m3_hacking을 참조하고 "이 템플릿 사용"을 클릭하십시오.
ROM 내부의 커널, ROM, Patch Boot.img를 다운로드하고 전화로 플래시를 다운로드하겠습니다. 템플릿 내부에서 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
ffb이 repo를 사용하면 명령 콤보를 사용하여 직렬로 작업을 수행 할 수 있습니다. 콤보의 예 :
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
VScode의 DevContainer에서 템플릿 또는이 리포지션을 열 수 있으며, 여기서 모든 명령을 수행 할 수 있습니다. .devcontainer.json을 편집하여 휴대 전화를 설정하십시오.