المشروع الذي يسهل اختراق هواتف Android ، وتجميع النواة وتوضيحها ، وما إلى ذلك ، على حاوية Docker/DevContainer.
الدعم: kernel تنزيل/بناء ، boot.img unpack من rom + repack ، kernel/boot.img boot/flash ، جذر magisk على الكمبيوتر بدلاً من Android ، system.img unpack ، بناء الثنائيات لنظام Android مثل Kexec ، والمزيد!
ومع ذلك ، يمكنك استخدام هذا الريبو ، ولكن لا ينصح به لأنك ستعمل مع الريبو ولن تتمكن من صنع الالتزامات/PRS. استخدم القالب ، وتعديل لهاتفك ، واستمتع بسير عمل GitHub ، إلخ.
لا يُقصد باستخدام هذا الريبو مباشرة. من المفترض أن يتم استخدامها كوحدة فرعية على ريبو آخر ، حيث ستضع أيضًا ملفات محددة لهاتفك. للحصول على قالب قائم على هاتف Poco M3 ، انظر هنا: https://github.com/lattice0/poco_m3_hacking وانقر فوق "استخدم هذا القالب".
دعنا نقوم بتنزيل kernel و rom و patch boot.img داخل rom و flash على الهاتف. داخل القالب ، بعد الحصول على مصادر 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يتيح لك هذا الريبو استخدام مجموعات من الأوامر للقيام بالأشياء في السلسلة. أمثلة على المجموعات:
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
يمكنك فتح القالب أو حتى هذا الريبو على DevContainer من VSCODE ، حيث ستتمكن من القيام بجميع الأوامر. تحرير .devcontainer.json لتعيين هاتفك.