Hello. Anyone knowns how to unpack our tablet boot.img and recovery.img? I tryed many methods, but get errors, I think because its for android phones, not for tegra2 devices. Sorry for bad English.
ive been doing it for a while now, this guide is great
http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images
some of the tool links are broken, you can find them or similar tools by googling around. ive used both tools and the hex editor.
EDIT: just uploaded the tools im using. on linux just drop your boot imgae in the same folder as the tools and do
Code:
./extract-kernel.pl boot.img
./extract-ramdisk.pl boot.img
does it works for native ubuntu bootloader.img? It seems that netham's recovery.img hasn't ramdisk, when i type ./extract-ramdisk.pl recovery.img then i get:
The boot image does not appear to be a valid gzip file at ./extract-ramdisk.pl line 33.
And when i do like this: # ./unpack-bootimg.pl recovery.img
Then i get: Could not find any embedded ramdisk images. Are you sure this is a full boot image?
But it works as well in boot.img's
Tautvaldas said:
does it works for native ubuntu bootloader.img? It seems that netham's recovery.img hasn't ramdisk, when i type ./extract-ramdisk.pl recovery.img then i get:
The boot image does not appear to be a valid gzip file at ./extract-ramdisk.pl line 33.
And when i do like this: # ./unpack-bootimg.pl recovery.img
Then i get: Could not find any embedded ramdisk images. Are you sure this is a full boot image?
But it works as well in boot.img's
Click to expand...
Click to collapse
hm.. not sure where this bootloader.img is coming form, this method should work on both a standard boot image, and recovery image, i have only personally tested on a boot image, maybe try the hex method? see what happens?
that bootloader.img is netham's recovery.img who boots Linux natively from sdcard/roots.img. I ask because I wand edit where bootimage boots Linux that it can boots from internal memory like Asus tf101 Ubuntu. Sorry for bad English.
Really????
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If it possible unpack recovery and boot images then shoud be possible mount them like filesystem "mount -o loop ubuntu.img /mnt" (but other methot because mount -o loop doesn't works with boot images) that we can see what is inside them before unpacking it. it is possible or I'm wrong?
Related
Hi ,
i want to compile kernel with compat-wireless 3.6 compatibility (drivers for monitoring mode / packet injection) , so for start
i compiled kernel from asus source
changed kernel config
then i have make kernel image then blob
and this is where i need to help
after flashing blob to TAB i have bricked it , 2 times already, i have it now from service.
first time i tried to flash blob from .zip
second time i tried dd to /dev/block/mmcblk0p4
i need help with this.
thank you
...........................................................
slider SL101 with revolver 4.2.1
external USB adapter Edimax-EW-7811Un (rlt8188cus chipset)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
with working monitoring mode / packet injection
Fluffinko said:
Hi ,
i want to compile kernel with compat-wireless 3.6 compatibility (drivers for monitoring mode / packet injection) , so for start
i compiled kernel from asus source
changed kernel config
then i have make kernel image then blob
and this is where i need to help
after flashing blob to TAB i have bricked it , 2 times already, i have it now from service.
first time i tried to flash blob from .zip
second time i tried dd to /dev/block/mmcblk0p4
i need help with this.
thank you
...........................................................
slider SL101 with revolver 4.2.1
external USB adapter Edimax-EW-7811Un (rlt8188cus chipset)
with working monitoring mode / packet injection
Click to expand...
Click to collapse
Did you include an appropriate init ramdisk? A flashable kernel package usually includes the blob, a META-INF folder and a system folder. The blob, when unpacked, includes at least a blob.LNX (which is the same as a boot.img) which when unpacked further contains the init ramdisk file system and the kernel zImage. The META-INF folder has the updater-script and maybe a few other files and the system folder may have an lib/modules folder for the modules built with the kernel and possibly an init.d folder for startup scripts and such. The init ramdisk has the system initialization files for the underlying Linux system that Android runs on top of.
For those who want to install it CWMR or TWRP (Only for this), can use fastboot commander, I used in the Razr i though supposedly is for HTC (I have 2 wildfire), or for s-off, but I can only assure you that I have served my trouble, so I do not take responsibility for what may happen to their terminals if used, remember "only unlocked bootloader."
It is a tar file extensión, and run from the PC with the Razr I fastboot mode and connected Through USB cable, has tabs to choose and in our case the first has 3 types of files to flash, HBOOT, radio and recovery, the latter is what interests us, you click the appropriate button, choose the file xxxxx.img (recovery for razr I), is given flash and go.
Download Fastboot Commander
http://db.tt/A1jrCD4B
Download Recovery and Install via Fastboot Commander
Find where you downloaded the file and place them in a folder next to Fastboot Commander
CWMR GRAY version by @turl1
CWMR Black version by @rickwyatt
TWRP 2.6.0.0 version and TWRP 2.6.1.1 versión by @Hazou
TWRP 2.8.0.1 repack for @KREAT0R search and download here http://forum.xda-developers.com/showpost.php?p=55417096&postcount=2, and extract *.img file
EXAMPLE
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Watch my video , flv file extension
http://db.tt/wf67rE6Q
Luck and greetings
Sorry for my bad english
Fastboot commander
Original Thread
http://forum.xda-developers.com/sho... Fastboot Commander [v.1.51][UPD 15 AUG 2011]
Thanks @mumilover
Enviado desde mi XT890
Are you sure that this tool is able to split the system.img file in 100MB parts ?
Igl0 said:
Are you sure that this tool is able to split the system.img file in 100MB parts ?
Click to expand...
Click to collapse
It wouldn't be unless it was built specifically for Motorola's fastboot...
An apology
An apology, do not speak English, and I use the google translator to communicate
I indicated generically using the ".Img" file and has not been my intention, these are not the format of the backups to the "system" or "data" with the Razr I CWMR, I edited the party causing this confusion.
greetings and good luck
I made a video where I install the recovery (black and gray background) but will investigate, and upload it.
Re: CWMR install easy
http://forum.xda-developers.com/showthread.php?t=2157162
Here is my noon friendly guide
Like my work visit my channel once on YouTube
YouTube.com/user/Therazrguy
Update thanks @Hazou
Enviado desde mi GT-I8190L
works flawlessly.thnx man
Invalid image size
I've been trying to fix this, and I just cant. I load the image and do the flash recovery, and it wont work, it shows:
invalid image size for partiton recovery
Fastboot command falied.
Any suggestions?
thegerardh said:
I've been trying to fix this, and I just cant. I load the image and do the flash recovery, and it wont work, it shows:
invalid image size for partiton recovery
Fastboot command falied.
Any suggestions?
Click to expand...
Click to collapse
Which version of recovery, is it?
You have the bootloader unlocked? it's neccesary
Thanks man, this is really helpful
QURepack is a new tool for boot.img unpack/repack. You do not need to run cmd and write anything to this. Just run the QURepack.exe and click unpack and repack button for this. This tool is very easy to use and will help you to do this in short time.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Mod Edit: links removed.
Step 1. Download and Unzip
Unzip QURepack.zip. You will get two exe files bootimg.exe and QURepack.exe. Place your boot.img file there.
Step 2. Unpack
Run QURepack.exe and click unpack. It will start work and you will get unpacked files.
Step 3: Repack
Click repack button and it will create two boot.img file.
Step 4: New Boot File
Now click New Boot File and you will get a new boot file.
I made this tool for personal use and make easy to unpack/repack boot image. Anyone can use this tool for personal use. If anyone want to publish this tool to their blog or website then they need to take permission.
N.B. Do it at your won risk. I will not responsible for any kind of misuse and brick or damage of your phone.
Mod Edit: links removed.
Dev of QURepack
Mod Edit: links removed.
Special Thanks to:
Dev of bootimg
I don't have FB accaunt
Dreamer... said:
I don't have FB accaunt
Click to expand...
Click to collapse
It's a scam anyway
Jubbard said:
It's a scam anyway
Click to expand...
Click to collapse
Are you sure? I find this app without passcode on archive, but not try yet..
Some mans say what its works.
Dreamer... said:
Are you sure? I find this app without passcode on archive, but not try yet..
Some mans say what its works.
Click to expand...
Click to collapse
I'm sure it works. Because it's a GUI to the bootimg.exe tool (available for free from Github), which is a modification of the bootimg.py tool (available for free from another Github). The internet is full of "content gateways" where someone wastes their talent on building a do-nothing program instead of something useful, like a tool that allows easy repartitioning/editing of a mmcblk0.raw image.
bootimg.exe --unpack-bootimg boot.img
Click to expand...
Click to collapse
Sadly for some reason it requires the image being unpacked to be named "boot.img", when it's fully capable of unpacking any "ANDROID!" boot image for both Mediatek and Qualcomm.
I've used it to unpack boot and recovery for a Huawei Y536A1, boot factory laf recovery for a LGL16C, boot dfs dkernel recovery for an Amazon Kindle Fire HDX 7". I've never seen it fail to unpack a boot image yet.
Thread closed until non income earning links are submitted, and no password is required .
This tool I called it opsplash.This tool does not support mtk device, qualcomm only!cause it can unpack/repack oppo splash format image.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
pic from my cygwin terminalIf you like my tool, you can buy me a cofface.Donate : https://paypal.me/affggh
First get your splash image
How can I get my splash image.
adb shell
# give root access
su
dd if=/dev/block/by-name/splash of=/sdcard/splash.img
# or
dd if=/dev/block/by-name/splash_a of=/sdcard/splash_a.img
exit
adb pull /sdcard/splash.img splash.img
# or
adb pull /sdcard/splash_a.img splash_a.img
Click to expand...
Click to collapse
Now we have splash image, unpack pics from splash image.
# powershell
.\opsplash.exe unpack -i splash.img -o pic
Click to expand...
Click to collapse
# linux bash
./opsplash unpack -i splash.img -o pic
Click to expand...
Click to collapse
They are basicly same...
Notice : The pic which you replace must have same format and same width and height pixel
After replace your bitmap image, repack and flash it back
./opsplash repack -i splash.img -o new-splash.img
Click to expand...
Click to collapse
Here we success generated a new-splash.img, flash it back to your phone and test wether it work.
Source code : https://github.com/affggh/opsplash
reserved
affggh said:
This tool I called it opsplash.This tool does not support mtk device, qualcomm only!cause it can unpack/repack oppo splash format image.
View attachment 5721337
pic from my cygwin terminalIf you like my tool, you can buy me a cofface.Donate : https://paypal.me/affggh
First get your splash image
How can I get my splash image.
Now we have splash image, unpack pics from splash image.
# powershell
# linux bash
They are basicly same...
Notice : The pic which you replace must have same format and same width and height pixelView attachment 5721339
View attachment 5721341
After replace your bitmap image, repack and flash it back
View attachment 5721343
Here we success generated a new-splash.img, flash it back to your phone and test wether it work.
View attachment 5721345
Source code : https://github.com/affggh/opsplash
Click to expand...
Click to collapse
Will work on realme 5 sir?
Adamant12 said:
Will work on realme 5 sir?
Click to expand...
Click to collapse
You can just try it, I've test it on oneplus 8t ,realme gt2, realme gt neo2,oppo r11s
Some question about this tool to modify bootlogo on my OnePlus 8T with Android 13:
when launching command dd if=/dev/block/by-name/splash of=/sdcard/splash.img or dd if=/dev/block/by-name/splash_a of=/sdcard/splash_a.img I have as a result No such file or directory on my OnePlus 8T
which tool to download and use on Windows 64 to unpack and repack?
can you share adb commands to push the modded image file?
Thank you
EDIT: dd if=/dev/block/by-name/logo_a of=/sdcard/logo_a.img did the job
I need the command to flash modded logo_a, should be dd if=/sdcard/logo_a.img of=/dev/block/by-name/logo_a
Tool is unable to read splash for oneplus 8 (instantnoodle). which is logo partition
(i opened an issue on github)
I managed to change boot.bmp on a oneplus9 when it repacks the splash_a image the size difference was worrying.
But I chanced it and flashed it back
Code:
DD if=/sdcard/new-image.img of=/dev/block/by-name/splash_a
And rebooted, stupidly I was booting from slot b so I just repeated the step above but used b
Code:
DD if=/sdcard/new-image.img of=/dev/block/by-name/splash_b
Works fine, unsure if it would affect updating or reflashing so I will probably swap the old one back in before doing anything else.
I currently have this tvbox, looking for the factory firmware for it:
Q96+ Android 9.0 HiSilicon Hi3798M 1GB/8GB Dual Wifi 4K Smart TV Box
I googled and contacted the seller who sold me this box, to get the factory firmware for it, but no luck.
I really need the factory firmware, any help is greatly appreciated.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I managed to get the firmware, however this firmware seems to be Android 11 not 9. it's still ok for me.
now I need help unpack/customize/repack this firmware, all the customization I need:
1- unpack the system img
2- replace the default launcher from the priv-app system folder with a custom one
3- add 2 other custom apps to the priv-app system folder
4- modify the build.prop default timezone
5- repack everything back to the update.zip signed firmware, ready to flash
What I tried and failed:
1- unzipped the update.zip file
2- used brotli extractor to unpack system.new.dat.br into system.new.dat
3- used "Auto Tool v3.0 x64" BY MTK THAI Developers to unpack the system.new.dat into system.img
4- mounted system.img in ubuntu linux, modified what I needed
5- unmounted system.img
6- used the "Auto Tool" again to repack system.img into system.new.dat
7- used brotli extractor to repack system.new.dat into system.new.dat.br
8- since I couldn't sign the zip file again, what I ended up doing, is using winrar, i had deleted the system.new.dat.br from inside the zip file without extracting, then injected the new system.new.dat.br
9- tried to update, failed
any help is greatly appreciated, I'm not scared to brick the tvbox (I doubt that would happen since we're not modifying anything besides some apps), however I prefer not to lol