[Tool] [ 5th May]Linux Tools for neo - Sony Ericsson Xperia Neo, Pro

Hi guys other devices have a thread like this so thought I'd get it going.
Here I share a folder, has a working unyaffs, built on ubuntu 12.04 64 bit known to extract all current neo img files.
a nice 51-udev rules that contains many popular phone models
and a recovery bundle too install cwm from linux, please feel free to add your own contributions and share
http://minus.com/mDZsF8gEU/

Two new additions today.
Motorola's modified fastboot, allows flashing larger images.
Android utility - nice little script will set up and update kitchen and help with porting.
Sent from my MT15i using Tapatalk

i wish i know what to do with these...
where to strt?

mpiekp said:
Hi guys other devices have a thread like this so thought I'd get it going.
Here I share a folder, has a working unyaffs, built on ubuntu 12.04 known to extract all current neo img files.
a nice 51-udev rules that contains many popular phone models
and a recovery bundle too install cwm from linux, please feel free to add your own contributions and share
http://minus.com/mDZsF8gEU/
Click to expand...
Click to collapse
thanks for sharing but unyaffs didn't work on my ubuntu 12.04 32 bit or other 32 distros i don't have any 64 distros so can't tested on those
error is Cannot execute binary file
may I ask did you build unyaffs for 64-bit

Yes sorry, built on 64 bit, just build it frm svn and it will work fine
added 64bit to first post now thanks

mpiekp said:
Yes sorry, built on 64 bit, just build it frm svn and it will work fine
Click to expand...
Click to collapse
already I did it but tool can't extract ics rom anyway

....... Don't get that is it a converted IMG or a nandroid
Sent from my MT11i using Tapatalk

unyaffs
mkfs.yaffs2
for 32bit systems
I hope you know how to install them...

mpiekp said:
....... Don't get that is it a converted IMG or a nandroid
Click to expand...
Click to collapse
converted
leajian said:
unyaffs
for 32bit systems
I hope you know how to install them...
Click to expand...
Click to collapse
also doesn't work with ICS system.img(ftf, not nandroid)

Has anyone tried flashing one of these converted imgs, with fast boot? Does it work
Sin2img strips certain bytes from the sin to create the IMG, could be Sony altered the byte order meaning the IMG are corrupt, especially considering what we had with flashtool final verification failure.
Sent from my MT11i using Tapatalk

added neo&vboottools.
contaions perl scripts to unpack and repack boot.img, edited to use default sony method, so that kernels boot after use. third perl script to extract commandline from existing boot.img, so that if extra options are needed you can add t repack script, just open in any text editor the script is straight forward.
binaries for mkbootimage and to565 included to create logo.rle for boot logs (e.g sony not bootsplash)

hi mpiekp , first of all thank you for your awesome work , secondly i would like to get to the notice of developers the new thread naming rules as mentioned in this fourm
http://forum.xda-developers.com/showthread.php?t=1636154
you can change the title as per the instructions in the above thread, sorry for the trouble , thank you

Related

[CLOSED][How To]Make your Own Custom ROM ~~By NeroYoung~~ [3/4/2012]

This Thread is closed now
Visit new thread for more tutorials
Look link in my signature​
Hi,
If you willing to learn to build custom ROM then you should have following things
Basic Knowledge about handling Command Promt
Basic Windows software knowledge
PC with all tools properly installed
And a mobile with bootloader unlocked
This tutorial is for "Windows OS (Windows 7 x64 in my case)" And Android 2.3+ OS (2.3.4 GingerBread in my case).
In this whole post you will learn How To -
Make custom ROM
Unpack .ftf packages
Use Cygwin
Setup Android Kitchen
Edit .apk files
Edit .jar files
Edit .9.png files
Rooting System
Writing scripts
Making flashable zips
Porting apk software
A2SD Techs
Editing build.prop
Editing init.d tweaks
Information of every customizable file
Making Hosts
apn configs
editing boot.img
converting png to rle or vice versa
more and more things to arrive
Tools Required :
Download the tools as per your need.Link is given in the name itself below....
Flashtool - For Flashing stock ROM if anything goes wrong (Download link in the installation tab of website)
apktool - for editing apk files and jar files (you can use APK manager but apktool is simpler)
Cywign - Linus Terminal For Windows
ROM Kitchen (ROM Development Tool) - For Cooking custom ROM + boot.img related tools - to edit boot.img files (Its inside the ROM Kitchen Files)
ftf-extractor - It will extract system files from the ftf package which you will use to make your ROM
fastboot - For flashing kernel to your device
DoomLords Easy Root Kit v4 - To Root Stock/Custom ROM
Demo META-INF Folder - For Making Flashable zip files
DroidExplorer - For advance tools regarding real time phone memory handling through windows.
Flashable Zip Demo - For those who want to just apply some stuffs through CWM
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Tools Overview​
Introduction​
This video gives information about the basic tools for ROM development.
Tools will be uploaded once the tutorial is completed.And the links will be posted in 1st post.This tutorial is for all kinds of devices.No matter what your device is ... you can use this tutorial...
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Settings Up Cygwin And Kitchen​
This video teaches you how to setup Cygwin And Kitchen.The softwares told in this video can be downloaded from first post
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Setting Up Remaining Tools (ftf extractor,flashtool,fastboot etc)​
This video teaches you how to setup all remaining files and folders...
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Getting System Folder​
Extracting .FTF File​This tutorial guides you how to extract system folder from .ftf packages and get system folder for your custom ROM easily.
For this we have used ftf extractor.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Working With Android Kitchen​
Getting Started​This tutorial will tell you how to setup working folder in kitchen and how to root your ROM,change name,add busy box etc.
This is pre requirement on ROM development.So this video will continue after total customization is done !
After this video you can jump to next post to proceed with customization and then come back to setup to second video in this post so you can continue packing of system folder in flashable zip
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Finalizing ROM​This video shows you how to finalize making zip file of your ROM and use it for flashing.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Working With APKTOOL​
Editing .APK Files​​
This video teaches you how to setup APKTOOL folder as well as teaches you how to edit .apk files.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Editing .JAR Files​In this next video you will get information on how to edit .jar files like services.jar using APKTOOL.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Customization Tutorials​
Dealing With .9.png Files​​
This video teaches you how to edit draw9 i.e .9.png image files easily without any errors.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Reserved for more work 6
Reserved for more work 7
Reserved for more work 8
Reserved for more work 9
Would love this tutorial. Hope you complete it soon.
Really looking forward for this!
Android is based on Linux(and kind of java also) so you would need Linux and java knowledge also, if you want to customize the ROM throughly.
Sent from my WT19i using xda premium
I always knew buying a Mac was a bad idea :'(
Someguyfromhell said:
Android is based on Linux(and kind of java also) so you would need Linux and java knowledge also, if you want to customize the ROM throughly.
Sent from my WT19i using xda premium
Click to expand...
Click to collapse
Yes thats true BUT this tutorial is for windows and it doesn't require any kind of expert knowledge.
Its damn simple to make a custom ROM
BudgyN1 said:
I always knew buying a Mac was a bad idea :'(
Click to expand...
Click to collapse
Not at all !!
You can Run windows 7 virtually on your Mac and use this tutorial
Isn't it cool ?
Its damn simple to make a custom ROM
Click to expand...
Click to collapse
Simple custom ROM, yes. But it is only MY IMO. You NEED Linux knowledge, you need some android knowledge, and you need to understand what are you doing to make really OUTSTANDING ROM.
respawned said:
Simple custom ROM, yes. But it is only MY IMO. You NEED Linux knowledge, you need some android knowledge, and you need to understand what are you doing to make really OUTSTANDING ROM.
Click to expand...
Click to collapse
Can you explain what linux knowledge you talking about ?
For example, in your v4, i saw remount tweak, and there was JOURNALISM removing for ext4 partition. But you noticed that it is only for /data /system? Our partitions are in yaffs2, so we don't have journal.
Knowledge comes with experimentation ... keep it up dude

boot.img creation from the stock ftf

Hi everyone,
I'm noob here. I'm using Xperia S. And now learning mote about android.
However I have a question, how can I make boot.img from my ftf file?
Sure, I extracted the ftf, decrypt the kernel.sin into kernel.elf.
From kernel.elf, I decrypt it again and get 4 files, one image (I suppose it is kernel zImage), one ramdisk.gz, one file forgotten and another is elf.4.
Okay, now the problem comes.
The main purpose of me is to change the bootlogo of my Xperia S.
I searched for a day to change the bootlogo, most need to add the rle file into boot.img file (ramdisk).
For sure I read through the site how to unpack, edit and repack the boot image.
The kernel and ramdisk of mine are extracted from ftf but not existing custom Rom,
1. Can I directly use the mkbootimg program to create boot.img? Will it work out?
2. Do I need to aware of any parameters or setting for Xperia S? Since I worried that different devices have diff setting.
3. Is it better to make it on linux? I found mkbootimg.c in c language file but not precompiled program as tutorial, the link given is broken. Can work also?
Sorry, I'm really quite new and very noob, I tried searching and many other things, but still can't figure it out.
Hope that pros here can help me...
Sent from my LT26i using xda app-developers app
Trevor Chuah said:
Hi everyone,
I'm noob here. I'm using Xperia S. And now learning mote about android.
However I have a question, how can I make boot.img from my ftf file?
Sure, I extracted the ftf, decrypt the kernel.sin into kernel.elf.
From kernel.elf, I decrypt it again and get 4 files, one image (I suppose it is kernel zImage), one ramdisk.gz, one file forgotten and another is elf.4.
Okay, now the problem comes.
The main purpose of me is to change the bootlogo of my Xperia S.
I searched for a day to change the bootlogo, most need to add the rle file into boot.img file (ramdisk).
For sure I read through the site how to unpack, edit and repack the boot image.
The kernel and ramdisk of mine are extracted from ftf but not existing custom Rom,
1. Can I directly use the mkbootimg program to create boot.img? Will it work out?
2. Do I need to aware of any parameters or setting for Xperia S? Since I worried that different devices have diff setting.
3. Is it better to make it on linux? I found mkbootimg.c in c language file but not precompiled program as tutorial, the link given is broken. Can work also?
Sorry, I'm really quite new and very noob, I tried searching and many other things, but still can't figure it out.
Hope that pros here can help me...
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
how did you decrypt kernel.sin ? can you explain step by step ? Im also a noob
ShivangDave said:
how did you decrypt kernel.sin ? can you explain step by step ? Im also a noob
Click to expand...
Click to collapse
For how to decrypt the kernel.sin, you can use Flashtool (not Sony official one)
Under Tools (perhaps I remember correctly), there is a option about decrypt SIN, and then you can choose the kernel.sin you want to decrypt.
Have to tried kernel kitchen?
neectron said:
Have to tried kernel kitchen?
Click to expand...
Click to collapse
Yes, I tried Kernel Kitchen by champion at that time after I asked this question since nobody answer this thread.
I use command way to perform this boot.img creation also. It work that time. now forgot some part dy.
Trevor Chuah said:
Yes, I tried Kernel Kitchen by champion at that time after I asked this question since nobody answer this thread.
I use command way to perform this boot.img creation also. It work that time. now forgot some part dy.
Click to expand...
Click to collapse
Oh,now I see question is so old
neectron said:
Oh,now I see question is so old
Click to expand...
Click to collapse
yeah, very old. haha
Anyway, thank you for your kindly reply.
Moving my way toward developer (super noob developer). haha

Extracting boot.img

How do I extract boot.img from Xperia U
I already got many images but while unpacking they all say android magic header not found stopping using many tools
I used android kitchen and all
one more thing
i made rom using android kitchen and then when i boot
wifi,bluetooth and phone aint working
Help Me
:crying:
jatinrungta said:
How do I extract boot.img from Xperia U
I already got many images but while unpacking they all say android magic header not found stopping using many tools
I used android kitchen and all
one more thing
i made rom using android kitchen and then when i boot
wifi,bluetooth and phone aint working
Help Me
:crying:
Click to expand...
Click to collapse
Have you tried this link? I find it helpful for the single core A8 Cortex (Polaroid) tablets when I have to access the boot.img. Look about halfway down for the "Boot partition" section.
Hope this helps.
https://www.miniand.com/wiki/Allwinner/Unpacking+and+building+LiveSuit+images
jatinrungta said:
How do I extract boot.img from Xperia U
I already got many images but while unpacking they all say android magic header not found stopping using many tools
I used android kitchen and all
one more thing
i made rom using android kitchen and then when i boot
wifi,bluetooth and phone aint working
Help Me
:crying:
Click to expand...
Click to collapse
Use championswimmer tool http://forum.xda-developers.com/showthread.php?p=26229528
Sent from my GT-I9100 using xda app-developers app
rename it to kernel.elf and it can be extract either via flashtool or kitchen (kernel tools etc)

dsixda's Android kitchen 0.224 Standalone for Windows (Cygwin included)

I would like to add this as a reply of the thread but the thread is already closed, MODS please help to merge if it needed
dsixda's Android kitchen original xda thread:
http://forum.xda-developers.com/showthread.php?t=633246
I have merged Cygwin with the kitchen so you don't have do that complicated Cygwin installation anymore. However, you still need Java JDK installed on your computer at first, please refer the original thread.
Here is the download link Download and unzip it then run runme.bat and you are good to go :good:
Hey thx for the information :good: i wanna ask you how to unpack boot.img with this software? Thx
wasdf said:
I would like to add this as a reply of the thread but the thread is already closed, MODS please help to merge if it needed
dsixda's Android kitchen original xda thread:
http://forum.xda-developers.com/showthread.php?t=633246
I have merged Cygwin with the kitchen so you don't have do that complicated Cygwin installation anymore. However, you still need Java JDK installed on your computer at first, please refer the original thread.
Here is the download link Download and unzip it then run runme.bat and you are good to go :good:
Click to expand...
Click to collapse
You sir, are a lifesaver.
I've been dealing with that horrible cygwin installer for 3 days and still got nothing due to the unreliable speed of internet connection in here, Indonesia.
Don't want to derail the thread and awesome work by the op. There is a kitchen that works fine in windows with no need for linux what so ever. I won't link it out of respect for the op but if you search xda you'll find it
sawdoctor said:
Don't want to derail the thread and awesome work by the op. There is a kitchen that works fine in windows with no need for linux what so ever. I won't link it out of respect for the op but if you search xda you'll find it
Click to expand...
Click to collapse
What is the name of that kitchen
Sent from my SM-T800 using Tapatalk
Dvalin21 said:
What is the name of that kitchen
Sent from my SM-T800 using Tapatalk
Click to expand...
Click to collapse
There are 2 kitchens you can use in windows one is a merge of cygwin and dsixda so it's just a one install the other is ricki kitchen. Personaly I'd create a live linux USB stick and run linux from there if you don't want to install linux
Sent from my SM-G925F using Tapatalk
Thanks for your response. Between the two window ones, do you know anyone of them have been updates for the 64 SoC CpU?
Helped me a lot. :good:

How to unpack boot.img

hi i know this seems like a over asked question but my case is different at least i could find a solution .. i did look for it
so i need to unpack a boot.img and i did try with dsixda's kitchen and championswimmers kitchen but no hope .. they both say android magic header not found and doesn't unpack it.. i need to edit the bootclasspath of the kernel but there isnt a way i can without unpacking yeah ? i even tried re-naming to .elf and extracting with flashtool but that dosent give me an output either ..
does anyone know how i can do this ? or atleast a workaround ?
androidous said:
hi i know this seems like a over asked question but my case is different at least i could find a solution .. i did look for it
so i need to unpack a boot.img and i did try with dsixda's kitchen and championswimmers kitchen but no hope .. they both say android magic header not found and doesn't unpack it.. i need to edit the bootclasspath of the kernel but there isnt a way i can without unpacking yeah ? i even tried re-naming to .elf and extracting with flashtool but that dosent give me an output either ..
does anyone know how i can do this ? or atleast a workaround ?
Click to expand...
Click to collapse
Try using this tool found here http://forum.xda-developers.com/showthread.php?t=2073775
it has worked very well for me. If this doesn't work for you then I can suggest some Linux alternatives.
Sent from my SCH-I535 using XDA Premium 4 mobile app
shimp208 said:
Try using this tool found here http://forum.xda-developers.com/showthread.php?t=2073775
it has worked very well for me. If this doesn't work for you then I can suggest some Linux alternatives.
Sent from my SCH-I535 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Hey thanks but ive tried that kitchen before and no luck
i figure the problem is
caused because the boot.img 's are not of standard type and do not have the standard ANDROID header therefore that kitchen wouldnt work
Okay, unpackbootimg crashes trying to unpack the boot.img from FXP204-cm-9-20130126-UNOFFICIAL-kumquat because it has the wrong "magic" at the top. trevd pointed this out as a definite incompatibility for some devices a couple pages back. Trying trevd's split_img from the first page, it actually reports the "Wrong magic" error and shows that the file has an ELF header not an ANDROID!. Opening in HxD shows that there is no ANDROID! header later on as with some HTC devices, so ELF is the only header, and we're basically dealing with a different, unsupported filetype here. On the upside, there is no real gap in the data, so there might not be a ramdisk packed with it anyway.
Click to expand...
Click to collapse
enlighten me on the linux alternatives please
androidous said:
Hey thanks but ive tried that kitchen before and no luck
i figure the problem is
caused because the boot.img 's are not of standard type and do not have the standard ANDROID header therefore that kitchen wouldnt work
enlighten me on the linux alternatives please
Click to expand...
Click to collapse
These are the linux alternatives they may or may not work based on what you said but might as well give them a try.

Categories

Resources