Proyek yang memfasilitasi peretasan ponsel Android, menyusun dan berkedip kernel, dll, pada wadah Docker/devcontainer.
Dukungan: Kernel Download/Build, Boot.img Unpack dari ROM + RECACK, kernel/boot.img boot/flash, root magisk di komputer alih -alih android, system.img unpack, membangun binari untuk android seperti kexec, dan banyak lagi!
Namun Anda dapat menggunakan repo ini, tetapi tidak disarankan karena Anda akan mengacaukan repo dan tidak dapat membuat komit/PR. Gunakan template, modifikasi untuk ponsel Anda, nikmati alur kerja GitHub, dll.
Repo ini tidak dimaksudkan untuk digunakan secara langsung. Seharusnya digunakan sebagai submodule di repo lain, di mana Anda juga akan menempatkan file spesifik untuk ponsel Anda. Untuk templat berdasarkan ponsel Poco M3, lihat di sini: https://github.com/lattice0/poco_m3_hacking dan klik "Gunakan templat ini".
Mari kita unduh kernel, rom, patch boot.img di dalam rom dan flash ke telepon. Di dalam template, setelah sumber 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
ffbRepo ini memungkinkan Anda menggunakan kombo perintah untuk melakukan hal -hal secara seri. Contoh kombo:
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
Anda dapat membuka templat atau bahkan repo ini di VScode's DevContainer, di mana Anda akan dapat melakukan semua perintah. Edit .devcontainer.json untuk mengatur ponsel Anda.