Unpack-Repack Recovery LG Optimus for Android Kitchen 0.195 - by dsixda LINUX - Android Q&A, Help & Troubleshooting

LINUX ONLY
For LG Optimus
This is an implementation for the Android Kitchen 0.195 - by dsixda, a new option is added to the menu 0 - ADVANCED OPTIONS
The option is 25 - Tools for recovery image (unpack() re-pack etc)
This tool made it to modify the TWRP Recovery and give that look 3D, hope you find it useful.
INSTALLATION:
Before that nothing we need to have installed the Android Kitchen 0.195 - by dsixda
UnRAR the attached file and copy the 2 folders inside the kitchen.
Ready.
Source: www.todomovillg.es

Version 197 of dsixda's kitchen already does this.

Yes, does it, but should rename boot.img, and use the option 20
With this implementation already recognized the recovery.img, you can only work on without having to work with the full ROM.
It is more convenient to work with the option 25

Homero2 said:
Yes, does it, but should rename boot.img, and use the option 20
With this implementation already recognized the recovery.img, you can only work on without having to work with the full ROM.
It is more convenient to work with the option 25
Click to expand...
Click to collapse
Actually the latest version doesn't require you to rename the boot.img to recovery.img

OK, thanks for the info on the Linux version do not see this option, it could even change the compression ratio or size of the memory, I had to modify the code in order to have those options, which the version batch if they were.
I am reluctant to use Wine
EDIT:
" it could even change the compression ratio or size of the memory, I had to modify the code in order to have those options, which the version batch if they were."
Sorry for, I confused program

Can I explain how to unpack the recovery.img file? can not find such option.
Thank you

can you post direct download link here?
i can't link in that forum/site
thanks

ron gokhle said:
can you post direct download link here?
i can't link in that forum/site
thanks
Click to expand...
Click to collapse
OK, I have already posted the link on xda

Related

[APP] Xperia ROM Manager

Features:
- Extract custom IMG.
- Create IMG files.
- Convert SIN To IMG.
New features will be added, as you request.
Please report all bugs, so i can fix them!
Update 26.feb!
Little cleanup.
Update 13.mar!
Changed name.
Changed small things.
Added option to convert SIN to IMG.
Update 21.mar!
Changed name.
Code rewrite and cleanup.
Changed menu.
Added option to create IMG file.(need some testing, SOMEONE HELP ME WITH THIS.)
Say thanks to:
velnens123 - for this little tool
aZuZu - for making SIN2IMG
unyaffs, mkyaffs and cygwin creator
For Windows 32-bit Only!
This does'nt modify sin files!
Please help me with creating IMG file!
download now, will see how it works. thanx
velnens123 said:
Here is a tool for extracting xRecovery and other recovery img files.
Features:
- Extract system.img
- Extract data.img
- Extract cache.img
- Extract recovery.img
- Extract boot.img
- Extract userdata.img
- Extract misc.img
- Extract custom img.
New features will be added, as you request.
Please report all bugs, so i can fix them!
Click to expand...
Click to collapse
please add feature to convert yaffs img to ext2 img.... and keep file permission,owner....
Hope i will make it!
brixzen said:
please add feature to convert yaffs img to ext2 img.... and keep file permission,owner....
Click to expand...
Click to collapse
I will see what i can do!
does this 'extract out of the phone' or does it 'extract files out of the images'?
Sorry for a silly question, but what would I use it for? Is it like for messing around with roms' content?
how can i extract it ??? when i write path to the img and press enter it says : open image file failed
thetrisatria said:
download now, will see how it works. thanx
Click to expand...
Click to collapse
working ndak om??
I love a feature that can backup stock firmware (in format *.sin), so that I can use flash tool to rescue the phone whenever it die
Answers for questions.
i_hate_sonyericsson said:
does this 'extract out of the phone' or does it 'extract files out of the images'?
Click to expand...
Click to collapse
Graveir said:
Sorry for a silly question, but what would I use it for? Is it like for messing around with roms' content?
Click to expand...
Click to collapse
fifo171 said:
how can i extract it ??? when i write path to the img and press enter it says : open image file failed
Click to expand...
Click to collapse
Benjoy Ericsson said:
I love a feature that can backup stock firmware (in format *.sin), so that I can use flash tool to rescue the phone whenever it die
Click to expand...
Click to collapse
1. It extract files out of the images.
2. Yes, make backup in xRecovery, then extract system.img.
3. Make sure you dont write .img at end, put your img files in same folder as unyaffs.
4. I dont think its possible.
you might want to note in the original post that modified sin files can't be flashed w/ the flash tool, if thats what your reply means.
i'd assume that, but not everyone would.. and maybe note the download is for win32 only.
thanks!
Exception: STATUS_ACCESS_VIOLATION at eip=004010B0
eax=5D9BD014 ebx=00000068 ecx=00001500 edx=00BE0DAA esi=0028CD34 edi=61179FC3
ebp=0028CCD8 esp=0028CCA0 program=C:\Xperia_ROM_Manager\unyaffs.exe, pid 2100, thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame Function Args
0028CCD8 004010B0 (00BC8398, 00000000, 612058E8, 00401333)
0028CD08 004013AF (00000002, 00BC8358, 00BC8250, 00000001)
0028CD68 61006CD3 (00000000, 0028CDA4, 61006570, 7EFDE000)
End of stack trace
Is this app to extract kernel.sin ??
I need a script to extract kernel.sin
THIS IS REALLY OLD! I dont think it can extract kernel.sin. Download kernel sources instead!
Sent from my XPERIA X8 using xda premium
velnens123 said:
THIS IS REALLY OLD! I dont think it can extract kernel.sin. Download kernel sources instead!
Sent from my XPERIA X8 using xda premium
Click to expand...
Click to collapse
Not all kernels has source code to compile.

[SCRIPT/TOOL] Convert2Dualboot-SD Tool v1.4[Linux/OSX/Android/DOS][6/8]

Hello all you Triple-Booters out there! I would like to introduce to you:
Convert2Dualboot-SD Tool​
What is this you ask?
This is a little tool that I've put together that will convert any standard flashable roms for our Nook Color to be DualbootSD compatible. No more waiting on my lazy arse to update you guys!!! I used APK manager as a base for my script. I've written 3 different versions that will run on Linux, OSX and Android. All neccesary binaries are included with each version.
Click to expand...
Click to collapse
Can I use any kind of flashable zips?
Yes and no. You could use any standard flashable "rom" or "gapps" zips only.
Click to expand...
Click to collapse
How do I use it?
You drop a standard rom .zip into a "rom-to-modify" folder. Then execute a shell script that will give you an option to convert it for flashing to Primary or Alternate boot on the DualbootSD.
Click to expand...
Click to collapse
Can I use any CWM Recovery for flashing?
Absolutely not! Only use the CWM Recovery that was included with the DualbootSD.
Click to expand...
Click to collapse
Will you be updating this to add new features and stuff?
Not sure what features I can add, but you can always check the CHANGE LOG in post 3.
Click to expand...
Click to collapse
Can you give us step by step directions on how to use this?
Of course! See second post for more details.
Click to expand...
Click to collapse
***Disclaimer: Usual disclaimer applies here as well... you use this at your own risk, I am not responsible for anything that happens to any of your devices. You assume all responsibility when using this tool.***​
Credits:
Daneshm90 for the APK Manager Script I used as a base
Pinako/Inportb/Jyio/Boss! - for his Android binaries
DizzyDen - for porting this over to DOS and his many ideas to get the script to where it's at
HacDan - for some bash guidance
If I forgot someone else, please notify me.
Convert2Dualboot-SD Tool-README​
Convert2Dualboot-SD-Linux v1.4
DOWNLOAD
*C2DSD=Convert2Dualboot-SD*
1-Extract the zip file you just downloaded anywhere on your system
2-In the C2DSD folder, there are 2 folders called "modify-for-pri" and "modify-for-alt". Copy your rom.zip and/or gapps.zip file into its respective folder. No need to rename the file as long as it has a .zip extension.
3-Open up terminal and cd into Convert2Dualboot-SD-Linux
4-At the termninal prompt execute the C2DSD script
Code:
$ sh convert*
5-This will give you a menu where you can choose to modify the "rom" and/or "gapps" for either Primary or Alternate boot. It will also give you an option to clear out recently modded zips. Now with option to mod both ROM & GAPPS on the fly. Just place both files inside either "modify-for-pri" or "modify-for-alt" and choose the option to modify both from the menu.
6-Choose your option and wait while it does its thing.
7-Once it's finished you can exit the program by choosing "0"
8-Now browse to the C2DSD folder and you can find your DualbootSD modded rom file either in "Primary-Mod" or "Alternate-Mod" depending on your earlier selection.
9-Copy that file to the /sdcard partition of your DualbootSD
10-Boot to CWM Recovery that is included with the DualbootSD
11-Flash and enjoy!
Click to expand...
Click to collapse
------------------------------------------------------------------------------------------
Convert2Dualboot-SD-OSX v1.4
DOWNLOAD
*C2DSD=Convert2Dualboot-SD*
1-Extract the zip file you just downloaded anywhere on your system
2-In the C2DSD folder, there are 2 folders called "modify-for-pri" and "modify-for-alt". Copy your rom.zip and/or gapps.zip file into its respective folder. No need to rename the file as long as it has a .zip extension.
3-Open up terminal and cd into Convert2Dualboot-SD-OSX
4-At the termninal prompt execute the C2DSD script
Code:
$ ./convert*
5-This will give you a menu where you can choose to modify the "rom" and/or "gapps" for either Primary or Alternate boot. It will also give you an option to clear out recently modded zips. Now with option to mod both ROM & GAPPS on the fly. Just place both files inside either "modify-for-pri" or "modify-for-alt" and choose the option to modify both from the menu.
6-Choose your option and wait while it does its thing.
7-Once it's finished you can exit the program by choosing "0"
8-Copy that file to the /sdcard partition of your DualbootSD
9-Boot to CWM Recovery that is included with the DualbootSD
10-Flash and enjoy!
Click to expand...
Click to collapse
------------------------------------------------------------------------------------------
Convert2Dualboot-SD-Android v1.4
DOWNLOAD
*C2DSD=Convert2Dualboot-SD*
1-This will allow you to modify the zip files directly on your Nook
2-Extract the zip file you just downloaded to the root of your DualbootSD /sdcard partition.
3-The folder should be named c2dsd
4-In the c2dsd folder, there are 2 folders called "modify-for-pri" and "modify-for-alt". Copy your rom.zip or gapps.zip file into its respective folder. No need to rename the file as long as it has a .zip extension.
5-Open up any Terminal Emulator and cd into the c2dsd folder which should be "/sdcard/c2dsd"
6-At the termninal prompt execute the C2DSD script
Code:
$ su
# sh convert*
7-This will give you a menu where you can choose to modify the "rom" and/or "gapps" for either Primary or Alternate boot. It will also give you an option to clear out recently modded zips. Now with option to mod both ROM & GAPPS on the fly. Just place both files inside either "modify-for-pri" or "modify-for-alt" and choose the option to modify both from the menu.
8-Choose your option and wait while it does its thing.
9-Once it's finished you can exit the program by choosing "0"
10-Now you can choose to boot to CWM Recovery that is included with the DualbootSD
11-Choose "install zip from sdcard" and browse to either "Primary-Mod" or "Alternate-Mod" depending on your earlier selection.
12-Flash and enjoy!
Click to expand...
Click to collapse
------------------------------------------------------------------------------------------
Convert2Dualboot-SD-DOS v1.3
DOWNLOAD
*C2DSD=Convert2Dualboot-SD*
1-Extract the zip file you just downloaded anywhere on your system
2-In the C2DSD folder, there are 2 folders called "modify-for-pri" and "modify-for-alt". Copy your rom.zip and/or gapps.zip file into its respective folder. No need to rename the file as long as it has a .zip extension.
3-Open up command window and cd into Convert2Dualboot-SD-DOS or create a shortcut on your desktop
4-At the command prompt execute the C2DSD script
Code:
convert2dualboot-sd-dos
5-This will give you a menu where you can choose to modify the "rom" and/or "gapps" for either Primary or Alternate boot. It will also give you an option to clear out recently modded zips. Now with option to mod both ROM & GAPPS on the fly. Just place both files inside either "modify-for-pri" or "modify-for-alt" and choose the option to modify both from the menu.
6-Choose your option and wait while it does its thing.
7-Once it's finished you can exit the program by choosing "0"
8-Copy that file to the /sdcard partition of your DualbootSD
9-Boot to CWM Recovery that is included with the DualbootSD
10-Flash and enjoy!
Click to expand...
Click to collapse
And that's all she wrote... well he, being me.
If I've helped in anyway. Don't hesitate to hit the thanks button.
Change log:
v1.4 (6/8/2012)
-Fixed gapps being zipped with rom when converting rom & gapps together
-Added SDCacheMount to converted roms (see the SDCacheMount thread for more info)
-Fixed mkimage binary executing error for Linux version
-No DOS update yet.... DizzyDen?????
-Thanks goes to xda user "shumash" for the SDCacheMount addition into the script
v1.3a
-Mkimage error on Android Script fixed.
-Mkimage is dependent on 'libmusl.so' which I did not include and linked in the tools folder. I overlooked this tidbit because I had "BOTBREW" installed on my system so it never complained about linking to it.
v1.3
-I effed up on the script!
-RASTAVIPER kept asking me about issues with his gapps. Apparently the mod for Gapps Alt Boot had the wrong mount points inserted into the updater script. NOW I SEE IT!
-Also in the DOS version. Prep of ROM Alt Boot had the wrong mount points as well. Sorry guys.
-It's been fixed and uploaded. Please don't use v1.2 anymore. Thanks.
v1.2
-Changed up UI layout of script: Please re-read README from post 2 above for edited instructions.
-Edited script to speed up mod process (Thanks DizzyDen!)
-Added option to mod both "ROM & GAPPS" on the fly
-Android version now has a tool.img file. This makes modding quicker and safer.
-Added DOS version ported by DizzyDen! (Thank you sir!)
-Modding for EMMC dualboot version in the works???? (That's if you guys want it)
v1.1
-Added gapps option
-Cleaned up some scripting behaviors
v1.0
-Initial release
Well.. after some thought, it really didn't make sense to release this without an option to mod gapps for the DualbootSD. I mean what good is a rom without gapps?!
Convert2Dualboot-SD v1.1 is up if anyone wants to try.
Check post 3 for all changlogs.
Thanks,
Racks
Taking advantage of the opportunity to try something new, I made a dual-boot card for my sister-in-law.
This is cool. I actually haven't tested the card yet as I have my device flashed to internal and have modded the recovery some. I haven't backed up any of the changes I made (I know, I know) and don't want to have to do it again.
I may try updating the card now that you've included gapps, though. I hadn't made a bootable card since I first rooted this thing, and to be honest it was by accident even that time. So I was wondering how to get gapps, was thinking about setting an alt-recovery just for that.
But anyway, I hadn't looked at how to do the gapps yet, maybe it was easier than that. But this seems even easier.
Cool, man! I bet the dual/triple booters will love being able to make their own updates. The experience I had last night couldn't have been easier. My wife got me and her sister the Nooks at the same time, I am excited for her to see what I have been talking about the last six months.
I will be sure to try this once my NC gets here. Thanks!
Racks,
Works great but there's an odd 0 byte file in the DB zip called ^[email protected] Is that an artifact and can I just delete it?
shumash said:
Racks,
Works great but there's an odd 0 byte file in the DB zip called ^[email protected] Is that an artifact and can I just delete it?
Click to expand...
Click to collapse
DB zip? Sorry, but what are you referring to with that?
And could you also let me know which one you used? OSX, Linux, Android?
Edit: That might just be the stupid __MACOSX hidden folder that osx likes to include Forgot to exclude that and the .gitignore file when zipping. Although they aren't detrimental to running the C2DSD Tool, you can choose to delete them if you wish.
Thanks,
Racks
Thanks a lot Racks... great work... we'll get together and sort out the windows based version... can include it in your work here... or as another feature of the IMEI generator.
DizzyDen said:
Thanks a lot Racks... great work... we'll get together and sort out the windows based version... can include it in your work here... or as another feature of the IMEI generator.
Click to expand...
Click to collapse
Awesome to hear! Was hoping you would jump in.
We'll hook up and get the Windows based version here as well as incorporate it into your IMEI generator.
Thanks!
Racks
racks11479 said:
Awesome to hear! Was hoping you would jump in.
We'll hook up and get the Windows based version here as well as incorporate it into your IMEI generator.
Thanks!
Racks
Click to expand...
Click to collapse
Sounds like a plan... I just got in from work... and am off tomorrow.
DizzyDen said:
Thanks a lot Racks... great work... we'll get together and sort out the windows based version... can include it in your work here... or as another feature of the IMEI generator.
Click to expand...
Click to collapse
racks11479 said:
Awesome to hear! Was hoping you would jump in.
We'll hook up and get the Windows based version here as well as incorporate it into your IMEI generator.
Thanks!
Racks
Click to expand...
Click to collapse
+1 from a meathead windows user here.
Sent from my NookColor racks tripple boot using Tapatalk 2
racks11479 said:
DB zip? Sorry, but what are you referring to with that?
And could you also let me know which one you used? OSX, Linux, Android?
--SNIP--
Thanks,
Racks
Click to expand...
Click to collapse
Sorry for being vague. I meant the modded dualboot sd zip build. But I tried it again and it was fine, so let's say no more about it, eh?
On a related note, since you're so motivated now, how about creating those separate cache1 and cache2 partitions so that we don't have to wait so long to boot between the two?
Anyone who tried the new modding option and that would like to share with us which CM9 rom (nightly) did he convert and is working fine after conversion?
spdsl said:
+1 from a meathead windows user here.
Sent from my NookColor racks tripple boot using Tapatalk 2
Click to expand...
Click to collapse
Was hoping to have something before I had to go to work this morning... didn't get it completed...
to keep as close as Racks' I will have a DOS batch file available sometime tonight...
True Windows GUI version will be available early in the week.
Keeping with Racks' desires... both will be open source and stored on his github... I use AutoIT for windows programming these things.
shumash said:
On a related note, since you're so motivated now, how about creating those separate cache1 and cache2 partitions so that we don't have to wait so long to boot between the two?
Click to expand...
Click to collapse
Racks, I just sent you a PM that might help with this issue.
shumash said:
Racks,
Works great but there's an odd 0 byte file in the DB zip called ^[email protected] Is that an artifact and can I just delete it?
Click to expand...
Click to collapse
UPDATE: I converted the latest Mirage build, and when I tried to flash it, Recovery complained that it wasn't a valid zip file. Checked it and the same weird file was in the converted flashable zip. When I ran the conversion a second time, all was good and it flashed as expected. I had deleted all the extraneous _MACOSX and .gitignore file stuff prior to running it the first time. BTW, the problem in the quoted post was when I converted an ICS build the first time, too. Racks, do you think that there is something that occurs the first time the script is run that is different on subsequent runs that might account for this?
Just installed nightly 28.4 without Opengl and then gapps which appeared in the folder Primary Mod after conversion.
After that I cant get inside shop.I click to open it and it gets me back to main menu.
Any ideas?Reflashing of gapps didnt work.
RASTAVIPER said:
Just installed nightly 28.4 without Opengl and then gapps which appeared in the folder Primary Mod after conversion.
After that I cant get inside shop.I click to open it and it gets me back to main menu.
Any ideas?Reflashing of gapps didnt work.
Click to expand...
Click to collapse
Primary mod is for Primary boot. Default primary boot was CM7, so I'm assuming you formatted /system1 & /data1 before flashing?
Could you also unzip the contents of the converted gapps zip. And check the updater script. All /system variables should be /system1.
-Racks
I didn't format anything before flashing. I thought this as an upgrade, so after conversion I just proceed to flashing.
Finally, I flashed your own gapps that you have at your dualboot topic and now everything is back to normal.
Unfortunately, even after this upgrade, I still continue to deal with FC issues of mail, Facebook and of other random apps.I think there is some problem with my card and CM9, since CM7 runs perfect from emmc or from same mem card.
Unleashed from my Revolutionized Desire HD

[KITCHEN]Android Kernel Kitchen 0.3.1 (Linux / Windows)

INTRODUCTION
So we all know dsixda's XDA ROM Kitchen
Then how about a kitchen for Kernels ??
What started out just as my personal directory where I kept all my kernel and ramdisk tinkering scripts, has now turned into a project (which is far from finished right now )
This does NOT enable you to compile the kernel binary (aka zImage).
This enables you to edit ramdisk and change bootsplash images and helps kernel developers to deploy their compiled kernel in a usable form.
FEATURES
As of now what we can do with the Kernel Kitchen is
Fully menu driven interface (like dsixda kitchen)
Extract zImage and ramdisk from boot.img file
Create boot.img from zImage and ramdisk
Extract zImage and ramdisk from any ftf file that contains kernel.sin (Xperia 2010, 2011, 2012)
Create flashable ftf from zImage and ramdisk (Xperia 2010 only)
Create kernel.sin from zImage and Ramdisk and also split kernel.sin into zimage and ramdisk
Extract zImage, ramdisk and its contents from kernel.elf (Xperia 2012)
Create kernel.elf from ramdisk, zImage (and RPM) - for Xperia 2012
Create compressed ramdisk binary from ramdisk folder
Extract ramdisk files from ramdisk binary
Convert png image to rle format (used in android boot splash images)
Convert rle boot splash to png file (so that you can edit it)
Proposed upcoming features
Automatic script to change boot splash in a kernel with your favourite png file
STYLE CODE :
bold are supported only in linux
italics are supported in linux and windows+cygwin
underline are supported in windows native (without cygwin)
(if more than one style is used, it supports all respective platforms)
WARNING !!!!
[SIZE=+1]Please be well informed that whenever you distribute/redistribute a kernel zImage or the whole boot.img that contains the zImage or the kernel in any form in which it contains the compiled zImage, you MUST provide the option to view it's sources or else it'll be a major violation of GPL (General Public License) which governs the Linux kernel.
If you are using a compiled kernel made available by some other dev, then you are SUPPOSED TO mention it clearly and provide a link back to the original location from where you got the kernel (original thread) and also the sources of that kernel
If anyone uses this tool to unpack/repack a kernel and redistribute it publicly on xda (or any other website) then it's his responsibility to maintain proper credits and acknowledgement of works of original developers and also it's his/her responsibility to comply with the GPL[/SIZE]
A NOTE OF ADVICE
[SIZE=+1]I would like to mention here that this kitchen was made with two purposes in mind.
1. For someone who already knows how to do all this complicated ****, but wants a tool of convenience to do it automatically
2. For people who do not know much about custom kernels but want to make minor changes to ramdisk (making it insecure, or changing the bootlogo) for their PERSONAL use.
This tool is NOT meant to be used to repackage works of other developers and pass them on as your work.
In any case, if you want to redistribute a kernel created using my tool, then I suggest you to read the WARNING above once again all over, and also properly read the GPL v2 (link here) and specifically section 3 of GPL
[/SIZE]
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
REQUIREMENTS
This tool is primarily meant for linux users (preferably Uubuntu).
But it works perfectly well on windows+cygwin too
Some portions of the kitchen have support for native windows (without even cygwin)
Rest all requirements are mentioned in the readme
WHAT ARE ITS USES ?
1.The primary purpose (for which this project started out in the first place) is to provide a easy kernel deployment tool for wannabe kernel devs.
A lot of us can compile a kernel from source but that is just the zImage and cannot be used as such on the phone. We need to package it with a ramdisk ad deploy it thorough a proper method (flashtool for Xperia, ODIN for samsund, and fastboot for other phones)
​2.You canedit ramdisk properties (by editing default.prop)
Changing ro.secure=1 to ro.secure=0 makes your ramdisk insecure and enables easy root access ​3.The most immediate and popular use that i can see right now is changing the boot logo to your liking
the boot logo is called logo.rle or initlogo.rle and is placed in the root of ramdisk folder.
When you split kernel, you can find the rle file which you can convert into png, do necessary editing and convert back into rle and pack up the ramdisk and create a new kernel
​4.Other than that, you can change the recovery system
for eg. you can include Doom's Touch recovery system inside your favourite kernel
or you can include the xRecovery inside CM7 kernel so that you can flash amend zips.
Changing the recovery is ofcourse a little more complicated for average users, and i'll write a short tuto for that soon enough ​DOWNLOAD AND USAGE
The sources can be found on www.github.com/championswimmer/kernel-tools
For linux (and cygwin) users I recommend the install git and run this command to get a copy of my repository
Code:
git clone https://github.com/championswimmer/kernel-tools.git
Or in general, all linux and windows users can just get a zipball of my repo here
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All usage information can be found on this elaborate readme
In short all you have to do is cd to the appropriate folder and run this
Code:
./menu
or you can just double-click menu and click "run in terminal"
CREDITS
None of this was possible without the helps and works of DoomLord, Azuzu, bin4ry, FXP, defer, blagus, nobodyAtall, the_laser, Androxyde
These works are directly included in my project
DoomLord's kernel.sin and ftf creator (windows version)
These works are used in their modified/repackaged form
DoomLord's png and rle interconversion tool (windows version)
DoomLord's perl script to split kerel.sin
And big thanks to nobodyAtall for pointing me the appropriate linux binaries (or i would have kept pouring wine over windows exe files)
Huge thanks to Atarii and this thread of his for all info needed to manipulate kernel.elf files on Xperia 2012 line
Thanks to ImageMagick developers for the awesome tool
SOURCES USED
1. to565 and from565 source code (part of Android Open Source Project)
2. mkbootimg and mkbootfs standalone sources (part of AOSP)
3. abootimg sources (by Gilles Grandou)
Great work !!! Will try it asap ... Seems to be very very useful !
how about locked bootloaders conversion tool ?)
^^
that is in the works
(it will come when i finish my work on boot.img portion of the kitchen)
nice work going on here champ. downloading kCernel-thgo from github now. i cant wait to try your kernel tools. thanks for your work. :-D
ToledoJab said:
nice work going on here champ. downloading kCernel-thgo from github now. i cant wait to try your kernel tools. thanks for your work. :-D
Click to expand...
Click to collapse
doesnt work on windows cant unpack lol
iv read through readme's and it keeps saying the same thing,
i have also tried extracting FTF, i got a Kernel.sin and a loader.sin bit still no idea how to extract out of those.. any ideas lol
for windows needs cygwin buddy
and you need perl, python, cpio, gzip (or gunzip) installed inside cygwin
cyg win is installing now its BIG! i selected to install everything
Dual boot Linux for 'Kernel Kitchen'
wo88les said:
doesnt work on windows cant unpack lol
iv read through readme's and it keeps saying the same thing,
i have also tried extracting FTF, i got a Kernel.sin and a loader.sin bit still no idea how to extract out of those.. any ideas lol
Click to expand...
Click to collapse
REQUIREMENTS
This tool is primarily meant for linux users (preferably Uubuntu).
But it works perfectly well on windows+cygwin too
Click to expand...
Click to collapse
I have installed UBUNTU on a separate linux partition from windows xp ntfs partition. after ubuntu install i have dual boot UBUNTU/XP.
If anyone would like help SETTING-UP a dual boot machine to use Champ's 'kernel kitchen' please PM (private message) me and i will help. Please use PM to help Champ keep his thread SPAM free :-D
for dual boot tuto
see this
http://forum.xda-developers.com/showthread.php?p=24887566
and the following 10-15 posts
Sent from my X10S using xda premium
Today I had a little look at ubuntu and your guide and was able to view the various settings. I didn't change anything as I'm totally stumped where to start hehe but I'll continue through your guide again when I'm home.
Again. Great work champ and thank you
Sent from my X10S v8.2 using XDA Premium
added boot.img support in kernel
thus for us, it means we can tinker with locked bootloader kernels too now
championswimmer said:
added boot.img support in kernel
thus for us, it means we can tinker with locked bootloader kernels too now
Click to expand...
Click to collapse
That sounds really neat. Thats really impressive. So, is it possible to tinker with the kernel.sin file in an update package and get a working ftf file from it, kernel cooker? Hmm? And if so, how?
TAL333 said:
That sounds really neat. Thats really impressive. So, is it possible to tinker with the kernel.sin file in an update package and get a working ftf file from it, kernel cooker? Hmm? And if so, how?
Click to expand...
Click to collapse
thats easy
take a kernel.ftf file which was meant for unlocked bootloader.
open it wit zip/rar/7zip/bzip software (yes ftf = zip )
replace the kernel.sin inside it with the one you have.
while flashing, the version might not show correct but once flashed, you'll find your kernel running fine
Sent from my X10S using xda premium
championswimmer said:
thats easy
take a kernel.ftf file which was meant for unlocked bootloader.
open it wit zip/rar/7zip/bzip software (yes ftf = zip )
replace the kernel.sin inside it with the one you have.
while flashing, the version might not show correct but once flashed, you'll find your kernel running fine
Sent from my X10S using xda premium
Click to expand...
Click to collapse
I got impatient waiting so I tried a bundle creation through Flashtool. Since my phone isn't bricked I figure that works too. And quicker too. Not to stray off topic but since I will probably be using CM9 soon I think its time you posted an easy way to enable on screen buttons in CM9 for newbs like me on your ultimate repository of Champy goodness. Please. And make it dumbproof. Please......
tal333
updated to 0.1.1
waiting for some bug reports
(i know there must be something or other wrong here or there, i can't be PERFECT afterall )
want to get all bugs fixed before adding more features
I just remembered about your kitchen sorry champ, do you think this will fix my WiFi compiling? Cheers so far I have 25hrs of battery with my kernel but it's not really an honest result considering there is no WiFi at all
Sent from my X10S v8.2 using XDA Premium
nice tool
I have this problem S
Press [Enter] key to create ftf...
Please mention for which device you are packing kernel
For X10, enter 1
For X8, Mini or MiniPro enter 2
Type either 1 or 2 and press enter
2
read 00489B43 bytes
...................................... cp: can not stat `on 'loader_unlocked_7x27 . no ': No such file or directory
----------------ENTER KERNEL BRANDING DETAILS------------
Thanks ................
Wow Friend Very nice work......................
its really need for all android DEV
finally i build my own kernel using ezy/great tools
test this tool soon .........
BTW : its ezy for new user or not ??????

[DEV][TOOL] Kernel Kitchen {X10 Mini/MiniPro}

[size=+2]PLEASE USE THIS THREAD (LINK) FROM NOW ON. I WILL NOT MONITOR THIS THREAD ANYMORE [/size]
INTRODUCTION
So we all know dsixda's XDA ROM Kitchen
Then how about a kitchen for Kernels ??
What started out just as my personal directory where I kept all my kernel and ramdisk tinkering scripts, has now turned into a project (which is far from finished right now )
This does NOT enable you to compile the kernel binary (aka zImage).
This enables you to edit ramdisk and change bootsplash images and helps kernel developers to deploy their compiled kernel in a usable form.
FEATURES
As of now what we can do with the Kernel Kitchen is
Fully menu driven interface (like dsixda kitchen)
Extract zImage and ramdisk from boot.img file
Create boot.img from zImage and ramdisk
Extract zImage and ramdisk from any ftf file that contains kernel.sin (Xperia 2010, 2011, 2012)
Create flashable ftf from zImage and ramdisk (Xperia 2010 only)
Create compressed ramdisk binary from ramdisk folder
Extract ramdisk files from ramdisk binary
Convert png image to rle format (used in android boot splash images)
Convert rle boot splash to png file (so that you can edit it)
Proposed upcoming features
Automatic script to change boot splash in a kernel with your favourite png file
STYLE CODE :
bold are supported only in linux
italics are supported in linux and windows+cygwin
underline are supported in windows native (without cygwin)
(if more than one style is used, it supports all respective platforms)
REQUIREMENTS
This tool is primarily meant for linux users (preferably Uubuntu).
But it works perfectly well on windows+cygwin too
Some portions of the kitchen have support for native windows (without even cygwin)
Rest all requirements are mentioned in the readme
WHAT ARE ITS USES ?
1.The primary purpose (for which this project started out in the first place) is to provide a easy kernel deployment tool for wannabe kernel devs.
A lot of us can compile a kernel from source but that is just the zImage and cannot be used as such on the phone. We need to package it with a ramdisk ad deploy it thorough a proper method (flashtool for Xperia, ODIN for samsund, and fastboot for other phones)
​2.You canedit ramdisk properties (by editing default.prop)
Changing ro.secure=1 to ro.secure=0 makes your ramdisk insecure and enables easy root access ​3.The most immediate and popular use that i can see right now is changing the boot logo to your liking
the boot logo is called logo.rle or initlogo.rle and is placed in the root of ramdisk folder.
When you split kernel, you can find the rle file which you can convert into png, do necessary editing and convert back into rle and pack up the ramdisk and create a new kernel
​4.Other than that, you can change the recovery system
for eg. you can include Doom's Touch recovery system inside your favourite kernel
or you can include the xRecovery inside CM7 kernel so that you can flash amend zips.
Changing the recovery is ofcourse a little more complicated for average users, and i'll write a short tuto for that soon enough ​DOWNLOAD AND USAGE
The sources can be found on www.github.com/championswimmer/kernel-tools
For linux (and cygwin) users I recommend the install git and run this command to get a copy of my repository
Code:
git clone https://github.com/championswimmer/kernel-tools.git
Or in general, all linux and windows users can just get a zipball of my repo here
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All usage information can be found on this elaborate readme
In short all you have to do is cd to the appropriate folder and run this
Code:
./menu
CREDITS
None of this was possible without the helps and works of DoomLord, Azuzu, bin4ry, FXP, defer, blagus, nobodyAtall, the_laser, Androxyde
These works are directly included in my project
DoomLord's kernel.sin and ftf creator (windows version)
These works are used in their modified/repackaged form
DoomLord's png and rle interconversion tool (windows version)
DoomLord's perl script to split kerel.sin
And big thanks to nobodyAtall for pointing me the appropriate linux binaries (or i would have kept pouring wine over windows exe files)
Thanks to ImageMagick developers for the awesome tool
SOURCES USED
1. to565 and from565 source code (part of Android Open Source Project)
2. mkbootimg and mkbootfs standalone sources (part of AOSP)
3. abootimg sources (by Gilles Grandou)
Hello!
Thanks for your great work.
I've done all stage and when i try to flash kernel i modify, it stucks on flashing loader 14%.
What's the problem? thanks.
fxdRoiD said:
Hello!
Thanks for your great work.
I've done all stage and when i try to flash kernel i modify, it stucks on flashing loader 14%.
What's the problem? thanks.
Click to expand...
Click to collapse
Read the first part of this post and ask your question in the link provided
fxdRoiD said:
Hello!
Thanks for your great work.
I've done all stage and when i try to flash kernel i modify, it stucks on flashing loader 14%.
What's the problem? thanks.
Click to expand...
Click to collapse
do you have "jar" installed??
(jar comes with java or you can install 'fastjar' )
and when making kernel did you chose option 2??
option 1 is for X10, option 2 is for your phone
championswimmer said:
do you have "jar" installed??
(jar comes with java or you can install 'fastjar' )
and when making kernel did you chose option 2??
option 1 is for X10, option 2 is for your phone
Click to expand...
Click to collapse
Hello!
I'm on ubuntu 12.04 and i have jar installed. I can run x10flasher well.
Yes i have chosen option 2.
I've just modified boot logo in res -> image -> logo into Ramdisk. I've repacked ramdisk and copy zImage into kernel-files and paste both into input folder after renamed them properly. Is it the good process?
You can see my log attached.
After flashing loader, i must wait 5 min before starting "flashing kernel.sin". After that, 3 min waiting, flashing aborted...
fxdRoiD said:
You can see my log attached.
After flashing loader, i must wait 5 min before starting "flashing kernel.sin". After that, 3 min waiting, flashing aborted...
Click to expand...
Click to collapse
could you send me the ftf file you created?
Sent from my X10S using xda premium
btw the process is simple
extract from ftf
copy the ramdisk-contents as ramdisk-folder into input folder.
make changes as necessary
repack the ramdisk
put the zimage as "image" and compressed ramdisk as "ramdisk" into input folder
create ftf
flash it
Sent from my X10S using xda premium
championswimmer said:
btw the process is simple
extract from ftf
copy the ramdisk-contents as ramdisk-folder into input folder.
make changes as necessary
repack the ramdisk
put the zimage as "image" and compressed ramdisk as "ramdisk" into input folder
create ftf
flash it
Sent from my X10S using xda premium
Click to expand...
Click to collapse
I did it completly. Here's Kernel. I just want to put sony ericsson logo. Thanks if you can made it works properly.
I did all stages correctly! Please, make it works...
fxdRoiD said:
I did it completly. Here's Kernel. I just want to put sony ericsson logo. Thanks if you can made it works properly.
I did all stages correctly! Please, make it works...
Click to expand...
Click to collapse
oops ****!!!!
i know what the problem is ... damn
it's using the x10 loader.sin for all phones... wtf!!
please send me the original nAa kernel
Sent from my X10S using xda premium
fixed loader sin problem and updated menu based interface
championswimmer said:
oops ****!!!!
i know what the problem is ... damn
it's using the x10 loader.sin for all phones... wtf!!
please send me the original nAa kernel
Sent from my X10S using xda premium
Click to expand...
Click to collapse
Original nAa Kernel, you can find it here: http://minicm.googlecode.com/files/E10_nAa-11_2.6.29.6-nAa-11.ftf
or
jump to threat forum:
http://forum.xda-developers.com/showthread.php?t=1256739
---------- Post added at 01:16 PM ---------- Previous post was at 01:14 PM ----------
championswimmer said:
fixed loader sin problem and updated menu based interface
Click to expand...
Click to collapse
Thanks. Try it now.
Tell me, if i want to change bootsplash, i just want to modify logo in ramdisk -> res -> images -> logo?
ramdisk > initlogo.rle
or
ramdisk > logo.rle
if any of this file is not present then i think the ramdisk does not have a logo.
(you can down load one of my kernels (from my devhost or ftp mirror in my sig), they are for x10 but you can extract them and see where the logo image is supposed to go)
it SHOULD be a <filename>.rle file. android logos are always rle files
championswimmer said:
ramdisk > initlogo.rle
or
ramdisk > logo.rle
if any of this file is not present then i think the ramdisk does not have a logo.
(you can down load one of my kernels (from my devhost or ftp mirror in my sig), they are for x10 but you can extract them and see where the logo image is supposed to go)
it SHOULD be a <filename>.rle file. android logos are always rle files
Click to expand...
Click to collapse
Can't see .rle file. Ramdisk contents a file "init" without extension. Please, can you download kernel and tell me where is rle file? Thanks!
---------- Post added at 01:50 PM ---------- Previous post was at 01:43 PM ----------
What's the link i can use to update without restart downloading? I try "Update [link]" but command "update" not found.
fxdRoiD said:
Can't see .rle file. Ramdisk contents a file "init" without extension. Please, can you download kernel and tell me where is rle file? Thanks!
---------- Post added at 01:50 PM ---------- Previous post was at 01:43 PM ----------
What's the link i can use to update without restart downloading? I try "Update [link]" but command "update" not found.
Click to expand...
Click to collapse
update what?
and about rle,
umm when you boot nAa kernel what bootimage you see? is there any bootimage?
Sent from my X10S using xda premium
Yes there's a boot image. In the kernel contents any rle file. Have you downloaded kernel?
Sent from my E10i using XDA
please move to this thread
http://forum.xda-developers.com/showthread.php?t=1659584
i'll not monitor this thread anymore

Lenovo K900 kitchen 1.23

Description: Utility (hereinafter - the kitchen) to make changes to the firmware image for the Lenovo K900.
Operating System Requirements: Any Linux-like system (I recommend Ubuntu), any digit. For correct working kitchen must be installed packges: p7zip, p7zip-full, jdk, jre, python, ia32-libs.
Features: Removing the preinstalled Chinese software from the VibeROM firmwares; other firmware - manual; deodexing firmware; adding ROOT rights in firmware; editing build.prop; installing Google apps (* not verified), repacking the system.img.gz image.
Instructions for use:
- unpack the archive to any folder;
- Run the kitchen with console command ./kitchen.sh and enter the root password (required for file operations);
- Copy the file system.img or system.img.gz in a folder /in/;
- Enter 1 if throwing system.img.gz image archive folder in /in/, or go to step 2 if the folder /in/ drop files system.img;
- Type 2 to mount the image, while in the kitchen wearing the phrase "System: unmounted" will change to "System: mounted". The system is mounted in a folder /mount/;
Then simply describe the menu items:
3 - removes Chinese preinstalled software according file cn-apps in /scripts/ folder;
4 - "easier" firmware by deleting unnecessary files, animation off; applies mods - Record video to MP4, boot animation changed to "clipped " (you can change your folder /scripts/mod/);
5 - deodexing firmware (it takes quite a long time , up to 10 min);
6 - adding ROOT rights (used SuperSU 1.93). If you want to use a different version, you can replace the files in the /scripts/root/;
7 - editing build.prop file by using gedit;
8 - Set the Google apps light with a minimum set of software, you can further install more right already from Google Market (not tested);
9 - edited image packaging system system.img.gz. Ready to pick up the file from the folder /out/;
10 - unmount mounted image. Performed at the end of all operations with an editable manner;
0 - unpack inb firmware;
x - exit.
Download link:
http://forum.xda-developers.com/devdb/project/dl/?id=5359
Download mirror:
https://drive.google.com/folderview?id=0Bz3X7ZuowQimM3c0ZFV2QlZMR2c&usp=sharing
XDA:DevDB Information
Lenovo K900 kitchen, Tool/Utility for the Lenovo K900
Contributors
xxx-man-by
Version Information
Status: Testing
Stable Release Date: 2014-02-17
Created 2014-02-19
Last Updated 2014-06-07
What a great job!:good:
Amazing
Now its time to cook some ROM's
Lenovo K900 kitchen 1.21 beta
Released new version 1.21 beta
Whats new:
- Added support for firmware format INB (unpacking only);
- SuperSU binaries updated to version 1.93;
- Added support for complex tools with Android 4.3 (deodex, zipalign, optipng). Work is not very stable.
great, I hv prepared ubuntu and hv started cooking
Released new version 1.23
Whats new:
- Changed the script for implementation Root rights firmware (to fully support Android 4.3)
Just asking...
no kitchen for Windows7?
pjsplayez said:
Just asking...
no kitchen for Windows7?
Click to expand...
Click to collapse
No. Only for Linux-like OS, because Windows cannot work with images, mounting, rights etc...
Thank you i try it and install root Good Job
Just ask
xxx-man-by.. why not just "inb" file in "sdfuse" folder ?!. thanks before
Thank you, I am being to buy that device ^_^
Dual boot
Hello, anyone know how the best way to dual boot os in my laptop?
i want to boot windows 7 with ubuntu.
Hope anyone can give me guide or give me any link to make a dual boot.
help XXX-Man
i think the link is not working anymore.
REupload please
pjsplayez said:
help XXX-Man
i think the link is not working anymore.
REupload please
Click to expand...
Click to collapse
Ok. I`ll upload to the mirror. Please wait. DONE.
pjsplayez said:
Hello, anyone know how the best way to dual boot os in my laptop?
i want to boot windows 7 with ubuntu.
Hope anyone can give me guide or give me any link to make a dual boot.
Click to expand...
Click to collapse
if you need linux just for cooking, dont install it to harddrive.. just throwit on some usb drive and run it live..
use pendrivelinux or yumi to make live linux on usb.
xxx-man-by, if we have already the unpacked system folder like the VIBEROM Dev1418?
sev7en said:
xxx-man-by, if we have already the unpacked system folder like the VIBEROM Dev1418?
Click to expand...
Click to collapse
I do not understand what you mean.
xxx-man-by said:
I do not understand what you mean.
Click to expand...
Click to collapse
Good morning,
to start my kitchen, I download the original VIBEROM image file, redhookbay-ota-VIBEROM_V1.0_1418_DEV_K900.zip but if I extract it on the "IN" folder I haven't the .img packages to mount (e.g. the system folder is already unpacked):
Also, after that, I get only the system.img file but in other release I used before, e.g. the one for the VIVO, I had the way to pack directly the image to flash. Here which one is the next step?
Thank you,
sev7en said:
Good morning,
to start my kitchen, I download the original VIBEROM image file, redhookbay-ota-VIBEROM_V1.0_1418_DEV_K900.zip but if I extract it on the "IN" folder I haven't the .img packages to mount (e.g. the system folder is already unpacked):
Also, after that, I get only the system.img file but in other release I used before, e.g. the one for the VIVO, I had the way to pack directly the image to flash. Here which one is the next step?
Thank you,
Click to expand...
Click to collapse
redhookbay-ota-VIBEROM_V1.0_1418_DEV_K900.zip - this is ordinary zip file, K900 kitchen is not working with OTA zip archives. To start working with kitchen you need to put in the /in/ folder only system.img, system.img.gz, or any INB file (to unpack it). Only like this.
xxx-man-by said:
redhookbay-ota-VIBEROM_V1.0_1418_DEV_K900.zip - this is ordinary zip file, K900 kitchen is not working with OTA zip archives. To start working with kitchen you need to put in the /in/ folder only system.img, system.img.gz, or any INB file (to unpack it). Only like this.
Click to expand...
Click to collapse
thank you for getting me back sooner, with your unique Kitchen we are able to manage that files as well to repack them but when done how we get the final package to flash?
thanks once again for that

Categories

Resources