Possible root for locked bootloaders with chmod sytem.sin - Sony Xperia P, U, Sola, Go

Hi All!
My terminology:
Extract system.sin from original ftf file,
with Flashtool in SIN editor dumping the SIN -> system.ext4
Mount in ubuntu (losetup system.ext /dev/loop0) change permission chmod 777 /, /bin, /app
Then repack to SIN with img2sin....
I stucked here, cannot do it well when I want to refesh the changed system.sin, I got this error
15/034/2012 16:34:55 - ERROR - ERR_SEVERITY="MAJOR";ERR_CODE="000A";ERR_DYNAMIC="0x0502: sin header verification";
If I can flash chmod-ed system.sin after its able to run XperiaSrootingKit, I think....
sry for my bad english :/

kaito83 said:
Hi All!
My terminology:
Extract system.sin from original ftf file,
with Flashtool in SIN editor dumping the SIN -> system.ext4
Mount in ubuntu (losetup system.ext /dev/loop0) change permission chmod 777 /, /bin, /app
Then repack to SIN with img2sin....
I stucked here, cannot do it well when I want to refesh the changed system.sin, I got this error
15/034/2012 16:34:55 - ERROR - ERR_SEVERITY="MAJOR";ERR_CODE="000A";ERR_DYNAMIC="0x0502: sin header verification";
If I can flash chmod-ed system.sin after its able to run XperiaSrootingKit, I think....
sry for my bad english :/
Click to expand...
Click to collapse
Im sure .sin files can only be generated by Sony. Im sure I read something on this earlier.

DeanBoro said:
Im sure .sin files can only be generated by Sony. Im sure I read something on this earlier.
Click to expand...
Click to collapse
And if I change the header from the original SIN after img2sin ?

Any sin file is signed with something like checksum ... you cant generate it by yourself ... only sony can do that !

Related

need system apps from Live with walkman Rom

Hy guys if some one rooted their WT19i live with walkman phone
then please copy your system apps folder using root explorer and upload them
from original WT19i stock ROM
i really need them
You may get all files in a few steps:
1. Download firmware file (take it here).
2. Open it with 7-zip or WinRAR and extract somewere system.sin.
3. Download and unpack Direct SIN & YAFFS UnPacker in the same folder with system.sin.
4. Open console (cmd) from this folder and type:
aIUP.exe system.sin 4096 apps_LIVE
5. Your apps will appear in apps_LIVE folder.
Please delete my post
Can you use them with CM ?
.: SID :. said:
You may get all files in a few steps:
1. Download firmware file (take it here).
2. Open it with 7-zip or WinRAR and extract somewere system.sin.
3. Download and unpack Direct SIN & YAFFS UnPacker in the same folder with system.sin.
4. Open console (cmd) from this folder and type:
aIUP.exe system.sin 4096 apps_LIVE
5. Your apps will appear in apps_LIVE folder.
Click to expand...
Click to collapse
Please tell me if i want to extract other mobile phone sin files then what will be the command for them
i want to extract Xperia Arc sin files to .... ?????????????
and i am thankful to you for your info.......
The command will be the same.

how to change sony boot image?

any way to set own .jpeg or .png picture?
or change it in kernel?
Do u think this is the right place to ask questions...that too with a new thread? The boot image lies inside the kernel...and decompiling a kernel is a dev's expertise.
Sent from my Xperia neo V using XDA
get the boot.img, exract it, you'll get ramdisk. extract it too, you'll get logo.rle
convert it to png
make your changes
convert it back to rle
then place it back in ramdisk
repack boot.img
AND ITS HARD TO DO THIS ON WINDOWS, YOU NEED LINUX FOR THIS
Aarush said:
get the boot.img, exract it, you'll get ramdisk. extract it too, you'll get logo.rle
convert it to png
make your changes
convert it back to rle
then place it back in ramdisk
repack boot.img
AND ITS HARD TO DO THIS ON WINDOWS, YOU NEED LINUX FOR THIS
Click to expand...
Click to collapse
Thank you for the detailed instructions!
I try to unpack it with Cygwin but give me error
Code:
./extractboot: ./split_bootimg.pl: /usr/bin/perl: bad interpreter: Permission de nied
./extractboot: line 17: cpio: command not found
gzip: ../../boot.img-ramdisk.gz: No such file or directory
Because you need to install cpio
, xz for some too. The is a win exe for unpacking kernels around here some where
Sent from my Xperia Neo V using XDA
i have instal cpio and get this
Code:
$ ./extractboot boot.img
./extractboot: ./split_bootimg.pl: /usr/bin/perl: bad interpreter: Permission de nied
gzip: ../../boot.img-ramdisk.gz: No such file or directory
cpio: premature end of archive
The clue there is permission denied
.. .
Sent from my Xperia Neo V using XDA
mpiekp said:
The clue there is permission denied
.. .
Sent from my Xperia Neo V using XDA
Click to expand...
Click to collapse
so where ist the problem? what i got to do?
Learn about Unix file permissions. Also read the Sony kernel dev blog or your repackaged kernel won't boot
Sent from my Xperia Neo V using XDA

[Resolved][Q] How to modify default.prop in nAa Kernel

Hi All,
Due to specific APP requirement, I need to modify some settings in kernel.
Here are all the settings I need to modify in default.prop:
ro.secure=1
ro.debuggable=0
persist.service.adb.enable=0
Here are the methods I already try:
1. Android Kernel; Kitchen 0.3.1 (http://forum.xda-developers.com/showthread.php?t=1659584)
Fail at extract kernel.sin, cannot found RamDisk
2. dsixda's Android Kitchen 0.224 (http://forum.xda-developers.com/showthread.php?t=633246)
Fail at extract kernel.sin, cannot found RamDisk
3. kernel.sin unpacker by DooMLoRD (http://forum.xda-developers.com/showthread.php?t=1262656)
Fail at extract kernel.sin, cannot found RamDisk
4. Tools in Xperia FlashTool
Fail...
The kernel.sin was extract from 2.6.32.61-nAa-jb-06.ftf. (http://forum.xda-developers.com/showthread.php?t=2136471)
I already start studying how to compile nAa kernel...
Is there any easier way to apply this change?
Thanks!
Resolved.
It's because LZ4 compress format.
Here are the steps to Unpack nAa Kernel / Modify default.prop / Repack Kernel FTF
1. Decompress nAaKernel.ftf
You will got Kernel.sin
2. FlashTool => Tools -> Sin Editor => Select Kernel.sin => Extract data
You will got kernel.elf and kernel.partinfo
3. FlashTool => Tools -> Extrators => Elf => Select kernel.elf => Unpack
You will got kernel.elf.2 and kernel.elf.Image
kernel.elf.2 = ramdisk binary which compressed by LZ4!
kernel.elf.Image = zImage
4. Rename kernel.elf.Image to zImage
5. Rename kernel.elf.2 to ramdisk.lz4 and use LZ4 tools to decompress it
You will got a new ramdisk binary which was known as ramdisk.cpio
6. Rename ramdisk which extracted in step.5 to ramdisk.cpio
7. Copy ramdisk.cpio and zImage to ubuntu system.
8. Extract ramdisk.cpio and you will see default.prop
Make any modify you need.
9. Compress ramdisk folder to ramdisk.cpio
Here are the commands:
find . | cpio -o --format=newc > ramdisk.cpio
10. Compress ramdisk.cpio by GZip
Here is the command:
gzip ramdisk.cpio
11. Use Kernel Kitchen to create kernel.sin
Put ramdisk.cpio.gz and zImage in input folder under Kernel Kitchen.
Create kernel.sin by this tools.
12. FlashTool => Tools => Bundle Creation => select kernel.sin and loader.sin => Create your FTF
13. Flash into your device!
Although Puzzle & Dragons still cannot works on X10 mini with MiniCM10...
But I tried and learned something. :laugh:
thanks for explaining the process
it is very useful for me .
ramdisk.gpio decompress & compress
I tried to follow all steps, but isn´t work for me :'(
What I did:
1) decompress E15_2.6.32.60-nAa-05.ftf with 7z under windows: I get kernel.sin and loader.sin (OK)
2) extract data from kernel.sin with flashtool (0.9.16) under windows: I get kernel.elf and kernel.partinfo (OK)
3) extract elf from kernel.elf with flashtool (0.9.16) under windows: I get kernel.elf.2 & kernel.elf.Image (OK)
4) renamed kernel.elf.2 to ramdisk.lz4, and kernel.elf.Image to zImage; both under windows with f2 (OK)
5) decompress ramdisk.lz4 (3662KB) under windows (fastcompression . blogspot.com . es/p/lz4.html): I get ramdisk (4608KB) (it supposed to be renamed, so I expect it´s ok)
6) renamed ramdisk to ramdisk.cpio under windows with f2 (OK). Copy to ubuntu (QUESTION: zImage is used in ubuntu only in kernel kitchen???)
7) extract ramdisk.cpio (4718592- not command in the post): I used cpio -i -F ramdisk.cpio (9216 blocks); 4 new elements> default.prop init (files) android modules (directories)
8) I want to check I can extract & compress ramdisk (and make a "new" kernel), so I don´t do any modification
9) with only those 4 elements in the directory (default.prop init (files) android modules (directories)), I make ramdisk: find . | cpio -o --format=newc > ramdisk.cpio (PROBLEM: alert message "ramdisk.cpio has been increased, 4718080 new bytes has not been copied" other line "27647 blocks")
Original ramdisk.cpio was 4718582, but the new one is 14155264... 3 times more!!! I think the problemis here, but I don´t know how to resolve it
I have done the rest of the manual
10) kernel.sin created with kernel kitchen 0.2.3 under ubuntu (last kitchen version gives me an error, because in despite of choose create kernel.sin from zImage and ramdisk, it tries to do a ftf from kernel -not available- and ramdisk)
11) ftf creation under windows with X10 flashing tool 0.5.0.0 (flashtool 0.9.16 force me to write what device is for, but the cell is blocked, so I cann´t do it) OK
12) I tried to flash it, but it was aborted, so I expect ftf was incorrect
Sorry for wrote all: I thik the problem is extracting and compresing randisk.cpio, but I prefer to write everithing to be sure and be as clear as possible.
Any help will be great!

[guide] compiling and decompining kernel on windows

Hi. It's my first thread so please be kind with me
I found a way to compile and decompile any SIN kernel on Windows..
First, you must open the FTF kernel who contains the SIN file with Winrar or 7zip. You'll see:
*META-INF
*kernel.sin
*loader.sin
Extract the kernel.sin ...
Open FlashTool; Tools; Sin Editor; open the Sin file and click Extract Data. You'll see a kernel.elf file.
You can delete the other files and the sin files to make your workstation clean.
Open now FlashTool again; Tools; Extractors; Elf. Browse to your kernel.elf and click unpack. You obtain now the ramdisk and the zImage.
It's time to download this : https://www.dropbox.com/s/kdikeyb9hizoww6/Kernel Tools.zip
Extract THE ENTIRE ZIP and enter to BOOTIMG-TOOLS folder. Create a "boot.img_source" folder and a "boot.img_output" folder inside the bootimg-tools folder. You must have
*bin
*boot.img_source
*boot.img_output
*[FR]RunMe.bat
Copy your zImage and your ramdisk into the boot.img_source folder and rename the ramdisk to "boot.img-ramdisk.gz" (IMPORTANT) and the zImage to "boot.img-kernel".
Enter on the "boot.img_output" folder and create a "ramdisk" folder.
If you did well all this, you must have it: "\BOOTIMG-TOOLS\boot.img_output\ramdisk".
Now go to "\BOOTIMG-TOOLS\boot.img_source" and open your ramdisk with Winrar or 7zip. Inside, you have an unknown file with the same name of your ramdisk. Just double clic on it. You have now many files:
*data
*dev
*engine
..... and much more..
Extract it to the ramdisk folder. ("\BOOTIMG-TOOLS\boot.img_output\ramdisk")..
Go on ramdisk folder and make the modif's of your kernel ( like change initlogo.rle )
Once edits finished, it's time to reach BOOTIMG-TOOLS folder. Run the [FR]RunMe.bat. To compile your kernel, make change typing "2" and press ENTER. A boot_new.img will be created.
Re-Run the bat and type "3" to delete the "boot.img_output" and "boot.img_source" folders.
Rename the "boot_new.img" created by the batch to "boot.img"
Re-run the batch a third time and type "1" to decompile the boot.img you created.
Now go into the new "boot.img_source" and copy the new ramdisk and zImage to the SECOND UTIL YOU EXTRACTED FROM THE ZIP: sin-creator.
Paste the zImage and the ramdisk into the sin-creator folder and rename tke ramdisk "ramdisk" ( without quotes ) and rename the zImage "image".
Run the BUILD-IT.bat and press any key two times. After pressing the second time, tou can see new files into the folder, and the important file is RESULT.ELF.SIN ..
Rename the "result.elf.sin" to "kernel.sin" and add it to remplace the original sin file into your FTF kernel.
To do it, open the original FTF with Winrar and click add files. add the new kernel.sin.
Once it's done, just flash your new kernel with flashTool. You can edit the manifest file on your new FTF to recognise it as edited kernel on FlashTool
Hope this help some of us
real good guide btw make it more proper it so messy most of the people cant follow
and make stepps like
1) do this
2)do that
all in everything is good i am trying it out now
Nice Bro !! I will try !
ronald fera want hacked u can come to fb again he has been cleaning his pc
Buda1996 said:
real good guide btw make it more proper it so messy most of the people cant follow
and make stepps like
1) do this
2)do that
all in everything is good i am trying it out now
Click to expand...
Click to collapse
Thanks for anwsers If somebody don't understand what I want to explain, say it, I can try to improve my explanation
cheers
Buda1996 said:
ronald fera want hacked u can come to fb again he has been cleaning his pc
Click to expand...
Click to collapse
JAJAJAJAAJAJAJA Really???? Oh My God !! ! ... What a Dirty Joke !! Thanks a lot Rados !!
Ronald G V A said:
JAJAJAJAAJAJAJA Really???? Oh My God !! ! ... What a Dirty Joke !! Thanks a lot Rados !!
Click to expand...
Click to collapse
De nada You're welcome
dekefake said:
De nada You're welcome
Click to expand...
Click to collapse
jajaja You speak Spanish too? bro (Y)
Ronald G V A said:
jajaja You speak Spanish too? bro (Y)
Click to expand...
Click to collapse
Hablo espanol un poco porque aprendelo en en instituto ( tengo 16 anos )
I speak spanish a little because i learn it at Scholl ( i'm 16 )
Ronald G V A said:
Ahh jajaja bueno Yo hablo español porque soy de Latinoamérica y bueno también hablo ingles bastante porque estoy en mi instuto como 5 años Con todo y especialización jaja
Ahh jajaja Well I speak Spanish because I'm from SouthAmerica and I also speak english very well because I was in my institute like 5 years and I did specializations jaja
Click to expand...
Click to collapse
OK good ( web musn't forger that it's a development thread )

How To unpack/repack system.sin

Hi guys
There is a way to repack/unpack System.sin?
sin format on which operating system?Mac?Linux?
For unpack. Open Androxyde's flashtool > advanced > sin editor > choose system.sin and extract it. You will get system.ext4 file.
then use ext2explore to extract an ext4 file again.
Sent from my F5321 using XDA Labs
and how can i repack, whereas editing ?

Categories

Resources