New Android Image Kitchen for newer devices | fossfrog
HTML-код
- Опубликовано: 4 окт 2024
- I faced some issues while unpacking and repacking boot images using old AIK.
So, I created this tool to unpack newer boot images. This will work with older boot images as well.
Also added both arm and x86 binaries, means you can use this in your android device and also in your GNU/Linux machines.
BTW, this tool is based on magisk.
So, a huge thanks to magisk as well.
link: github.com/Shu...
HOLY SHIT
this is actually very good dude, idk how you found it but im very very glad you did and uploaded it too.
big props.
Not found it. I also do a little bit of codes 😂.
Actually, I'm working on phone(1) right now, and the previous AIK throws some error while unpacking the image, so I had only one option to write a tool. And when you are testing something, you have to do same task again n again. So only one thing can help, just automate it. I did the same. But a huge thanks to magisk as well for the awesome tool.
@@fossfrog cool stuff.
i wish you could make a video on modifying the unpacked kernel as i think that there are definitely some quality if life changes that could be made to make your kernel more powerful.
no pressure of course.
You can't modify a compiled kernel, only way is to recompile it from source.
@@fossfrog oh shoot i meant not the kernel but the stuff thats in the other folder, like inits, policies etc
Yeah, this was the actual reason I made this tool. Actually I was trying to get serial out of phone(1) from past few weeks. But it's not possible as I'm not sure why serial gadget isn't working even after compiling the kernel with necessary flags. But i got another way to dump the logs.
replace kernel to split directory ? i dont understand, there is already a kernel in split directory
What you want to do?
@@fossfrog i want unpack boot.img & repack boot.img but when i flash the boot.img it goes bootloop
Yeah, this is what AIK does. When you run unpackimg boot.img it'll unpack the image into kernel, dtb and ramdisk. Make your changes (whatever you want) and then repack it. If you want to put your custom kernel then delete the kernel and dtb from split directory and place your kernel and dtb in split folder with same name and run repackimg command. It'll create a new boot image with changes. I hope I'm clear.
There maybe multiple issues with the bootloop, maybe the kernel is not compiled correctly. Try to compile the kernel with stock defconfig and flash it. Check if it boots or not. If it boots then try to patch or make other changes.
@@fossfrog earlier im just unpack boot.img, then I made changes just in default.prop, then i repack again, then i flash the boot.img & it bootloop
Can it make system rw if it is only ro?
Nope, you can't make the system rw, you have to disable encryption and dm-verity first then you can remount system as rw in userspace.
Can you make custom kernel with this?
This tool is only for unpacking and repacking boot image and modifying ramdisk.
How can meta-inf be done android kitchen programs do it automatically
Afaik meta inf is the part of installer zip not aik.
@@fossfrog How can I learn in detail?
You can read android docs for detailed guide about android boot.
@@fossfrog edify language updater script Creator flashable zip creator
is this tool can be use also for porting twrp?
If you're modifying a pre-compiled twrp then yes you can unpack/repack twrp images as well.
Where to download this
Available on my git repository. Link is in video as well.
I found the git repo but no it's not in the description.
I mentioned that the link is in video, not in desc. Btw, I'll put the link in desc as well.
i cannot flash on kernelsu.is it only for magisk?
What do you mean by "flash on kernelsu"? It's just like other android image kitchen to unpack/repack boot images. Kernelsu/Magisk is different thing.
CMDLINE [androidboot.hardware=qcom androidboot.usbcontroller=a600000.dwc3 cgroup.memory=nokmem,nosocket earlycon=msm_geni_serial,0xa90000 kpti=off loop.max_part=7 lpm_levels.sleep_disabled=1 msm_rtb.filter=0x237 reboot=panic_warm service_locator.enable=1 swiotlb=2048]
CHECKSUM [909684ab7ad8946007303ca67ea9775792a4d1eb000000000000000000000000]
KERNEL_FMT [raw]
RAMDISK_FMT [gzip]
VBMETA
bin/funcs.sh: line 39: file: command not found
7864 block
Ramdisk has empty folders
install file using package manager. eg apt install -y file