yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] CrashThump:
Amazon Kindle Fire HDX 8.9" (3rd Gen)

boot.img is fine, but fwupdate/boot-oe-msm9615.img has some another structure.

[total hits/matching patterns/non-matching patterns]
warn : empty file: bin\off2.txt - skipping
0 files checked, 0 changed.
1 warnings occurred.

- pagesize - 4
Режим вывода команд на экран (ECHO) отключен.
- size of image - 5591040 byte
- ram_disk offset - 4

- split kernel...

- extract ram_disk.gz...
5591036 bytes copied.

- unpack ram_disk.gz...

- unpack ram_disk.cpio...
The system cannot find the file specified.

- copy source boot-oe-msm9615.img to unpacked folder (to keep source image)...

- done.

Press any key to continue . . .

Could you please point me how to identify the structure with some hex sequences?
[Miscellaneous Android Development] michfood:
sometimes it`s not so easy to find them... but you can you can try to - search for zip, cpio, gzip header and android kernel headers - split your img to parts and try to unpack - very interesting timewasting ))
[Miscellaneous Android Development] chleoj:
hi master [MENTION=2117836]michfood[/MENTION], when i drag my recovery to unpack there's a line saying

But after pressing any key, i can see the unpack recovery image folder...is that normal, i'm using win7 64bit by the way...

kindly see attached screenshot, thanks!
[Miscellaneous Android Development] michfood:
that`s not normal. I`ve win7 x64 too

it should write:

"- done

press any key to continue"

but if it works - let it be
[Miscellaneous Android Development] CrashThump:
[MENTION=4629277]chleoj[/MENTION], please confirm that you're using 'MTK_unpack.bat'
[MENTION=2117836]michfood[/MENTION], line 73:

copy %1 %~N1 echo.
[Miscellaneous Android Development] michfood:
if so - you should add "enter" after N1

"copy %1 %~N1

echo."
[Miscellaneous Android Development] chleoj:
yes im using MTK_unpack.bat...
[Miscellaneous Android Development] ahmyani:
thanks:thumbup:
[Miscellaneous Android Development] DjSylvester:
Need Help

Hi Shifu, can u help me to modify the build.prop on boot and recovery, to change ro.secure from 1 to 0 ,please ? here are some screens of what happened when i try to unpack the images. And after editing the build.prop and try to repack, when drag on window, it does not repack into new image.

PS: My phone is an MTK 6572,E-boda Sunny v35, not sure if is ubif or ext4, but i see in props is mounted to fat, and emmmc partitions.
[Miscellaneous Android Development] michfood:
You should NOT to use paths to files with "spaces" like "c:\Documents and settings\Vova Putin"
[Miscellaneous Android Development] cyrillem28410:
Hello

Impossible to pack my new recovery

I'm on Windows 7

My directories :

c:\CWM with all batch

c:\CWM\Carliv with directories of my new recovery :

[*]rmdisk (directory)

[*]kernel

[*]kernel_header

[*]new_ram_with_header

[*]ram_disk

[*]ram_disk.gz

[*]ram_header
​

​

I drag and drop the Carliv directory to the MTK_pack.bat. Is is said :

Access denied

- pack rmdisk to cpio...

...

...

make image

error : could not load kernel '../kernel'

File doesn't not exist

File doesn't not exist

- Done

Is anyone understand these problems and how to solve it ?

To understand, I've tried to open a new command line to execute manually all instructions of mtk_pack

The first commande does not function at all :

cd %~dp0

It is said that the specified path does not exist

Normal in fact I don't have a directory like this one !
[Miscellaneous Android Development] superuser.pm:
i try unpack/re-pack file recovery TWRP.img . i can flash it for my nexus 7?

need relock file new_image.img before i flash it ?

how to relock file new-image ?
[Miscellaneous Android Development] michfood:
Sorry, don't get you. What means lock/relock?

Отправлено с моего JY-G5 через Tapatalk
[Miscellaneous Android Development] m0han:
[MENTION=2117836]michfood[/MENTION], please see my post here. the original cygwin1.dll also produces the same error. i'd really appreciate any help. thanks.
[Miscellaneous Android Development] michfood:
looks like it needs new cygwin components

you can try to update all files in bin folder with new ones from newer cygwin installation
[Miscellaneous Android Development] m0han:
i tried the utility (v3) attached here. things turned out ok, i think. see here. thanks.
[Miscellaneous Android Development] michfood:
it concerns only win8 users, win7 works correctly
[Miscellaneous Android Development] m0han:
can we expect a workaround for win8 problems?
[Miscellaneous Android Development] michfood:
I`ve tried to repack my boot on win8 with my scripts v2 from my 1st post in this thread - and it made it successfully.

there were a lot of errors about cmd_forward_pointer, but it fully unpack boot, create ramdisk folder & etc... and pack it back and I got new_boot.img the same size as source image.

so I guess it works fine on win8 and do not need any updates or change
[Miscellaneous Android Development] m0han:
ok, so i got on a machine that runs

win7 ultimate sp1 x86

.

sadly for me, v2 from op still gives errors with mtk_unpack.bat. (v3 does fine.)

however, mtk_pack.bat of v2 (and v3) seem to work fine.
[Miscellaneous Android Development] bovirus:
Hi.

I found several problem regarding pack/unpack tools for boot.img/recobvvery.

I tested it under Windows7 64bit. Tested with boot.img and chinese (MTK...) batch.

** Unapck

The main problem that many comamnd are recognized as internal command and the problem seems the variable %~dp0 that is nor recognzied correctly.Ex.

%~dp0bin\cpio.exe -i <../ram_disk

is not recognized as command

to set the start folder (where you run the app) you can set variable like set CURRECNT.PATH=%CD% then use

%CURRENT.PATH%\bin\cpio.exe -i <../ram_disk

** Repack

As unapck there are several problems regarding %~dp0 variables.

In some command you use for path "/" instead "\". Ex.

%~dp0bin\sfk166.exe partcopy ../../tmp1.dat 0 4 ../new_ram_with_header 4 -yes>nul

%~dp0bin\mkbootimg.exe --kernel ../kernel --ramdisk ../new_ram_with_header -o ../new_image.img

SOLVED!!!

The problem now is fixed.

I copied the scritp into a path that contain a space.

To use batch file the path cannot contain space.

Thanks. Bye.

Thanks.
[Miscellaneous Android Development] michfood:
sure. and no domestic letters ;)
[Miscellaneous Android Development] bovirus:
On same platforms (with recent hardware) during unpack/repack I received an error about cygwin flag not supported.

I solved it using latest version (1.18.3) of Cygwin library. Please update into distribution archive.

I added some additonal batch

MTK_UNPACK_recovery (call MTK_UNPACK recovery.img)

MTK_UNPACK_boot -(call MTK_UNPACK boot.img)

MTK_PACK_recovery (call MTK_PACK recovery.img)

MTK_PACK_boot (call MTK_PACK boot.img)

To automatize the operation.

Future improvements

- Add check of presence of boot.,img/recovery.img and stop the batch if file is not available

- Cleanup boot/recovery folder before to unpack
[Miscellaneous Android Development] Rickydhillon:
can i port custom recovery on window pc

Thanks for this tool

I purchased a Micromax A092 model and use many apps for rooting this phone

But no success then I create insecure boot.img with this tool and

Got Root success thanks again

Now i want to flash a custom recovery on my phone like CWM or TWRP i search over the net for recovery but no recovery for this Phone yet

I have a old Pentium 4 PC with 512 mb of Ram and I'm not able to run LINUX

On it only Win XP is Worked on it

Is there any way to port a recovery on win xp PC

Pls help me....
[Miscellaneous Android Development] sohanjaryal:
Sir can i upload my boot. Img.... I have unpack it using ububtu using split_bootimg. Pl and then gunzip it.. After that i edited default. Prop.. Making the values of ro secure=0..after repacking it and making new bootimg... I flashed it using spflashtools. But its not working on my phone..

Will u patch it for me... If i upload it
[Miscellaneous Android Development] franzyroy:
One question please, Android Image Kitchen (another tool to unpack/ pack) the img can also do it? I ask because, I've no issue with it!
[Miscellaneous Android Development] dechronic:
To support spaces in the folders for MTK_unpack.bat, you will need to change:

%~dp0bin\cpio.exe -i <../ram_disk

To this:

"%~dp0bin\cpio.exe" -i <../ram_disk
[Miscellaneous Android Development] bgos10:
Hi Michfood,

Thanks for this amazing tool, it works great on Windows 7 x86 to Windows (10) Technical Preview x64

Thanks again

Regards
[Miscellaneous Android Development] esarve:
Any Fix??
[Miscellaneous Android Development] Tech N You:
[MENTION=2117836]michfood[/MENTION] first of all thank you so much for this wonderful tool of yours!

I am working on a project as in my signature you can see the tool I am making it a multi tool now and would love to use your tool in it. I already succeeded placing your tool in my project it works without any lag! Before uploading I am asking for your permission. May I use it in my tool? Thanks for your time
[Miscellaneous Android Development] michfood:
2 all:

1. my scripts are free of charge and can be distributed without my prompt (only my scripts - there are another free utilities which I used)

2.. it will not be supported - they are "as is" - i`ve no time to improve it or to make changes for your needs

3. you are free to make all necessary changes for your own

goodluck ))
[Miscellaneous Android Development] Tech N You:
Thanks a lot michfood
[Miscellaneous Android Development] exodius48:
[MENTION=2117836]michfood[/MENTION] can you help me, I get this error message while unpacking

MTK6592 phone.
[Miscellaneous Android Development] michfood:
try v4 from 1st post - it new one - win8 x64 support added
[Miscellaneous Android Development] bovirus:
Can I propose an update about the file included in v4 of your utils?

Cygwin 1.7.34-6 DLL: http://www75.zippyshare.com/v/sc6RpabP/file.html

Swiss File Knife 2.7.4: http://sourceforge.net/projects/swissfileknife/files/1-swissfileknife/1.7.4/sfk174.exe/download

Cygwin can fix some strange eeror in recent PC with high speed processor.

Swiss File Knife include in the batch (1.6.6) is quite old.

If you can please rename in your batch sfkxxx.exe (xxx=version) to sfk.exe.

In this way is possible to update Swiss File Knife without touching the batch.
[Miscellaneous Android Development] michfood:
What kind of error?

Swiss file knife does its work good so i don't think it needs updates.
[Miscellaneous Android Development] bovirus:
I had some error running previous version of your kit (v2) on same recent processor (ex. i7).

For that I updated the cygwin library. I believe that if the author of

Cygwin

Swiss File Knife

Mkbootimg

released an update I think that can be some problems that we didn't test in some conditions, but it can be present in some other conditions. For this reason I believe that if there are some updates (because the author think that was necessary) should be right to use it.

I checked also that mkbootimg included in the package was of 15.01.2015 and on Bruno Martins GitHub repository is available 15.02.2015 version (and I believe that if we released it it mean that was necessary).
[Miscellaneous Android Development] michfood:
may be You are right :)

but sometimes updates do not fix bugs - only bring us new functionality...

anyway - I do not trace this software for updates, so everybody can upgrade scripts if needed on their own - it`s very simple to do
[Miscellaneous Android Development] bovirus:
Just an info for you.

cpio works fien with Cygwin 1.7.33 (provided with your kit).

cpio didn't work wityh cygwin 1.7.34-6 (newest).

I replaced mkboot.img with new version and it worked.

I replaced sfk with new version (1.7.4) and it worked.

I have question about use of ">>NUL" in some batches. Why that's it (and not >NUL)?
[Miscellaneous Android Development] michfood:
ok if You want.... :D

cpio and few other *.exe are just a part of cygwin - so if You replace *.dll to upgrade cygwin version - You also need to replace these files with newer.

mkbootimg.exe in v4 is compiled by Bruno, in previous versions - I do not remember where I got it. all of them - work fine - I don`t see any reasons why they don`t

as well as SFK - I guess all it`s versions would work - so there is no reason to update it. mkbootimg and sfk do not depend on cygwin.

>> or > - whatever :)

ps - sorry - need to add - "null" NOT equal "nul" (!) - if NULL is written - where would be created file named "null". and "nul" - will redirect output to null device (wil not show text result of command execution)
[Miscellaneous Android Development] muckelmaus:
Different sizes!?!

I unpacked my boot.img of my lenovo a936 note8 mtk6572 device,

edited default.prop (ro-secure=0...) and packed it again.

Everything was fine, no error or so.

But the sizes of the original and the new image have tremendous different sizes!?!

I don't dare to flash them. The boot.image of the attached screenshot was taken from a backup.

I tried the same with a copy of the kernel made via flashyfy.

The size changed from 8.305kb to exact the same size as you can see in the screenshot.
[Miscellaneous Android Development] bovirus:
Please try the new tools (Carliv Kitchen).

http://xdaforums.com/android/development/tool-cika-carliv-image-kitchen-android-t3013658

It's an updated version of michfood utils.

Post the result in teh Carliv Kitchen thread.
[Miscellaneous Android Development] :
As I already said in my thread, my tool is not a reworked version of michfood's tool. Everything is different from binaries involved to the scripts used. I said I was inspired by michfood's tool in terms of functionality under windows, but I didn't copied anything from this.
[Miscellaneous Android Development] bovirus:
Sorry but was a simple misunderstanding an error than my explanation

Carliv Kitchen It's an updated kit of tools than michfood utils.

Now is more clear. Sorry for misunderstanding/error in my explanation.
[Miscellaneous Android Development] Jeb1008:
help with packing boot.img

Hi

I am trying to unpack a boot.img for a Galax tab 4, but I seem to be having a few problems. The unpacking seems to be working but there is nothing in the ram disk folder as it shows on you tube. When ever I make the changes to default.prop ro.secure in notebook. I take the unpacked file, put on top of pack.bat & nothing happens. I have tried on windows 8 & vista.

Thanks, and please help
[Miscellaneous Android Development] split52:
can you help me, I get this error message while unpacking
[Miscellaneous Android Development] bovirus:
cpio.exe is not compatioble with your OS version.

Please try with Carliv Image Kitchen (more recent).

http://xdaforums.com/android/development/tool-cika-carliv-image-kitchen-android-t3013658
[Miscellaneous Android Development] Ab20000:
hao

---------- Post added at 02:32 AM ---------- Previous post was at 02:30 AM ----------

good
[Miscellaneous Android Development] stang5litre:
I can't get this tool to even open on my computer win7. Using the commands in the OP am I missing something here? Thanks for the help in advance, I have been looking for a tool like this. Hope I can get it up and running. Trying to do a boot.img for s4
[Miscellaneous Android Development] Jonas Cardoso:
Message after pack recovery.img?!?!?![IMG=".."]http://dl-1.va.us.xda-developers.com/3/5/4/6/0/8/6/Sem_t_tulo.png?key=mH-Zc_56unc1Qt-ZZ0pZ8w&ts=1447797938[/IMG]
[Miscellaneous Android Development] LoScienzo:
Modding question

Tools works fine, I think.. extraction throws no errors and all the files and folders are there as well.

The problem is that I can't find init-logo.rle anywhere in rmdisk folder (where ramdsik.gz is supposed to be extracted, am I right?) or anywhere else.

What am I doing wrong? I just wanna change my splash screen :D

Edit: found out that the problem is not tool-related, so... Does anyone know where init-logo can be when it is not found in boot.img?
[Miscellaneous Android Development] Naveenjotron:
[total hits/matching patterns/non-matching patterns]

warn : empty file: bin\off2.txt - skipping

0 files checked, 0 changed.

1 warnings occurred.

- size of C:\Users\naveen.jotron\Downloads\ALL_phones_Boot_Recovery_repack_util_for_WINDOWS_v2\bootstock.img 9839616 byte

- kernel offset -

- ram_header offset -

- ram_disk offset -

- extracting kernel_header...

- extracting kernel...

- extracting ram_header...

- extracting ram_disk...

error: end offset is lower than start offset

1 errors occurred.

- unpack ram_disk.gz...

- unpack ram_disk.cpio...

The system cannot find the file specified.

The syntax of the command is incorrect.

Showing this problem on unpacking boot image of zenfone a450cg (t00q)
[Miscellaneous Android Development] bovirus:
[MENTION=7199213]Naveenjotron[/MENTION]

Try Carliv Image Kitchen. Find it on XDA.
[Miscellaneous Android Development] Naveenjotron:
same error shows...

error: end offset is lower than start offset

1 errors occurred.
[Miscellaneous Android Development] techster69:
Yoooo, is this thread TOTALLY dead or can i get some help perhaps.

Facing problems during packing recovery.img , i thought maybe i was doing something wrong , but then i unpacked the recovery.img and repacked it without touching it , but it still gave me an error and 2 files ( new_ram_header and another) appeared in the folder, i tried with all the versions of the tool, but still no success........ :crying::crying::crying:
[Miscellaneous Android Development] bovirus:
[MENTION=7157374]TechSTER™[/MENTION]

Try Carliv Image Kitchen

http://xdaforums.com/android/development/tool-cika-carliv-image-kitchen-android-t3013658

If you find problem post your reovery.img and the details.
[Miscellaneous Android Development] bovirus:
Double post....
[Miscellaneous Android Development] techster69:
How do i pack an unpacked recovery folder into IMG via CIK..???

And in CIK when unpacking a recovery, it shows many other files outside the ramdisk folder which confuses me, those files dont show up when unpacked by this tool.

BTW im trying to port a recovery for MT6592 , i just started these things, i have knowledge though but facing problems, could u help me out by telling what i should do to get a custom recovery for my MT6592.

---------------------------------------------------------------------------------------

EDIT: i should tell u my phone specs, and the things i did to get so far

QMobile Noir S9

MT6592 SoC

720x1280 Display

Android 5.1

---------------------------------------------------------------------------------------

PC: Running windows 7 32bit

drivers installed, and tools ready

---------------------------------------------------------------------------------------

HOW I GOT THE RECOVERIES FOR PORTING

For Stock recovery, first i tried extracting it via tools like MTK Droid Tool, but they do not support Lollipop, so i download a full Flash File Software and got the recovery.img, i hope that didnt screw things up, is it important to get recovery.img via a ReadBack or backup, or that works too????

For Port recovery i am using a similar recovery (TWRP) from MicroMax Canvas Nitro

Tools like CTR auto porting, TWRP/CWM/Philz magic installer either dont work or dont support Lollipops, so im sort of out of options....

I uploaded them to Google Drive for u check HERE, if u could perhaps take a look....

Maybe if u have time , kindly see if u can port the recovery, bcz i am really damned right now, i've been downloading so many things and my laptop is starting to lag....

And tell me if i've done anything wrong.....

huh thats too much i guess......sorry for all this but i really need a Recovery

Thanks
[Miscellaneous Android Development] rajendranmj:
someone please create recovery for nubia n1 indian version marshmallow
[Miscellaneous Android Development] bovirus:
[MENTION=6287641]rajendranmj[/MENTION]

I believe that the request is OT in this thread.
[Miscellaneous Android Development] rajendranmj:
OT means?
[Miscellaneous Android Development] bovirus:
OT = Off Topic - You cannot ask it here.
[Miscellaneous Android Development] AMLOGIC:
Unable to get the content out boot and recovery

So my friends I'm still unable to get the content out of the recovery and boot files which I got by the dd command:

dd if=/dev/mtd/mtd3 of=/storage/usbdisk0/recovery.img

And for the boot image I did:

dd if=/dev/mtd/mtd4 of=/storage/usbdisk0/boot.img

I realised that my images could be corrupted/bad images so I checked the md5sums while I recived 20 times each img, and they never changed so I was sure that they aren't broken. So to prove it further I flashed them also back with the following commands:

dd if=/dev/zero of=/dev/block/mtdblock3
flash_image recovery /storage/usbdisk0/recovery.img
dd if=/dev/zero of=/dev/block/mtdblock4
flash_image boot /storage/usbdisk0/boot.img

And the content (recovery and the boot splsh where the same again as before nothing changed the md5sums are also completely the same.

The files are avaiable here:

I found out that attachments can be added so I added the boot and recovery image from my tablet which is chipset amlogic 8726. Look at the end of my post. My tablet can't get bricked btw, it's possible to boot a bootloader image everytime from the sd card but this is another story, then.

Now you are able to acess my shared dropbox folder on the offical dropbox website.

Please help me out you are my last hope.

Help is more than appreciated, sorry for my english I'm German. :D btw you are using the same smiley set like my pidgin IRC client does. Pretty awesome.

•Boot md5sum: 7eeedbcb5bca6bcf83f1370c57266ad2

•Recovery md5sum: 6e43bac7d095d7bf5fb5357c39df79dd

Here are the boot and recovery images attached:
[Miscellaneous Android Development] AMLOGIC:
Do anyone have an idea howto get this kerneland initramfs unpacked, ?

Please
[Miscellaneous Android Development] KP@2016:
Your kitchen looks awesome... found to be good.. Can u plzz translate that into english.. I hope that it will be much successful than mtk tools...
[Miscellaneous Android Development] AMLOGIC:
Nobody have an idea?
[Miscellaneous Android Development] AMLOGIC:
I got the mtd images opened!

Hello,

I got opened my fetched mtd partitions recovery and boot!! :highfive:

How to open recovery and boot image for Intenso Tab 814 or Prestigio PMP5580C:

1. Open the recived recovery or boot.img with a hex editor *.uImage

2. Cut out the 64 bytes header

3. Now unlzma the compressed resulting image *.lzma

4. Now you got a < 10 MB file, which is of type *.data

5. Now look with a hex editor for the first 0707 and after that for the first TRAILER!!!

6. Cut this part out of the big < 10 MB *.data file, now you have a *.cpio where the ramdisk of your device is.

7. Now do cpio --extrakt rootfs.cpio

Now you got the rootfs from your device!! :D:D

It took me alot of time to find it out, how to open them up, but know it's done :cool:

Take care! :eek:
[Miscellaneous Android Development] LoganPanucat:
I got Error

i got this error how to fix

https://imgur.com/a/mi8IqHz

IMAGE

[IMG="ERROR PLEASE HELP"]https://imgur.com/a/mi8IqHz[/IMG]

---------- Post added at 07:05 AM ---------- Previous post was at 07:04 AM ----------

i got this error how to fix

https://imgur.com/a/mi8IqHz

[IMG="ERROR PLEASE HELP"]https://imgur.com/a/mi8IqHz[/IMG]
[Nexus 4 Accessories] Dr. Bocephus:
The site says it is for the nexus 4, but i wanted to get others thoughts on whether or not this is ok to use with the nexus 4.

Price is real cheap @ $6.99

http://www.cellphoneshop.net/recarchfortc1.html

Reviews of the seller

http://www.google.com/products/sell...a=X&ei=YzjDUNeICbO_2QWb6YGICA&ved=0CF0QqQwwAg

Thoughts?

edit

There is a free shipping coupon freeship2 but it doesnt apply unless the order is over 20. Cant seem to get a shipping estimate without checking out so not sure on it now.
[Nexus 4 Accessories] HCdroid:
Great charger

http://www.amazon.com/Motorola-Vehi...974570&sr=1-1&keywords=motorola+quick+charger
[Nexus 4 Accessories] Dr. Bocephus:
thanks, will probably go with the one you listed above
[Samsung Galaxy SL i9003] wong950323:
i need the rom of 2.3

need change downgrade to original rom

i need the link to download ROM2.3GB

thanks~~ :) :) :o
[Samsung Galaxy SL i9003] malungkot:
Here dude ->>> http://xdaforums.com/showthread.php?t=1004647