[Q] Need help with bin2sin - Android Q&A, Help & Troubleshooting

Hello,
I am using the bin2sin tool at http://forum.xda-developers.com/showthread.php?p=17357668. But I need some clarification - how to get the 'partition info' from the SIN file? Say, now I've got an official SIN file of the kernel (boot) partition, what could I do to extract the partition address? I actually have no clue where DATA (oops, don't leave the thread yet - accept my apology for being a noob!) is. I attempted to use the address at(and after) 0000147a, but that's a non-sense number. If possible, please kindly point out where the 'DATA' actually resides.
Thanks in advance,

klikli said:
Hello,
I am using the bin2sin tool at http://forum.xda-developers.com/showthread.php?p=17357668. But I need some clarification - how to get the 'partition info' from the SIN file? Say, now I've got an official SIN file of the kernel (boot) partition, what could I do to extract the partition address? I actually have no clue where DATA (oops, don't leave the thread yet - accept my apology for being a noob!) is. I attempted to use the address at(and after) 0000147a, but that's a non-sense number. If possible, please kindly point out where the 'DATA' actually resides.
Thanks in advance,
Click to expand...
Click to collapse
watch this
http://forum.xda-developers.com/showpost.php?p=17384177&postcount=3
it will surely help u!!

Related

[Q] Browse / Extract .SIN files???

please somebody help me,
how to browse / extract .sin files????
Browse where? From within the phone? Impossible...
After a succesful flashing session with SEUS/PC Companion follow this thread:
http://forum.xda-developers.com/showthread.php?t=730282
i want to get into the system.sin file so i can modify it, decrypting guide doesnt tell you how to get into it and replace some files in it!
Use SIN2IMG then use unyaffs on the img.
Many thanks arkedk i'll give it a shot
osamahindi said:
i want to get into the system.sin file so i can modify it, decrypting guide doesnt tell you how to get into it and replace some files in it!
Click to expand...
Click to collapse
My bad i totally mis understood you.... Sorry....
Jim
@osamahindi - next time please post your question in the Q&A section
Read: http://forum.xda-developers.com/showthread.php?t=900175
i'm sorry, i was trying to delete the thread but i couldnt!
use sin2img

[Q] Convert .img to .sin/.ftf

I've become somewhat of a flash-aholic recently and brick my phone quite often. Especially with all the experimentation with dual boots and kernels and such.
Is there a way to convert my backup .img files to .sin/.ftf files so that they may be flashable via flashtool? I've looked all over the internet and XDA, but can't quite get everything together to make this happen. I know that being able to flash data could be troublesome, but I get tired of having to flash stock firmware and then root, then xrecovery to get back to my backups.
And by that time, I've forgotten what I was experimenting with/where I left off and what baseband I was on.
I'm not looking for a walkthrough, but just a finger-point of in the right direction.
Checked out Doomlords posts, SIN2IMG and the such, but that's to go in the opposite direction that I need.
(I highly doubt, but) If anything, a way to flash xrecovery via flashtool without having a working rom.
unyaffs.exe
Gonna play with this in a bit.
I'll report.
Let me know if you've used this.
Still accepting all help offered.
Compile .sin
Also looking how to compile a .sin file.
Google gives me one of three types of info:
sin(sine wave) - trigonometry
.sin - Microsoft game files (Age of Empires, Rise of Nations, etc.)
and of course, sin - Christian morals
Okay....I cannot find a valid link to Jerplea's SIN reconstructor. Only dead links.
Does anyone have a copy of this? Seems like it'll be my only hope.
andrewddickey said:
Gonna play with this in a bit.
I'll report.
Let me know if you've used this.
Still accepting all help offered.
Click to expand...
Click to collapse
unyaffs worked great. Just drag and drop then you get your system, data, and cache from the corresponding .img.
Now I'm using the ConvertTool to break down the .sin but cannot figure out how to extract the .tgz that comes out. 7zip says that it cannot open it as an archive.
Wanting to look at the file structure of the .sin.
...Back to work...
Thanks to all that......uh............helped?
Hi andrewddickey,
Appears you have been successful in converting .img to .sin/.ftf
If is it true can you make a post telling how achieve this ?
Thanks in advance.
Yea I'd be interested in knowing how to do this too
Sent from my R800i using XDA App
I'm 99.999999% sure you won't be able to flash them using flashtool
Sent from my X10i using XDA App
The whole idea is a no-go.
Sorry. Hope you didn't get your hopes up.
From jerpelea
hy
unfortunately the ones that can create sin files are se
sin is an signed img file , signed with se certificat and we dont have that certificate
img file is an yaffs2 image
after 2.3 release you will not need sin files
Click to expand...
Click to collapse
From zdzihu
Hi Andrew,
Unfortunately we cannot create proper .sin files from yaffs images - .sin files are signed with SE signature and we still don't know the public/private keys.
The .sin structure is quite simple:
[sin header]
[signature1]
[signature2]
[body of the actual image]
If the rumours about bootloader unlocking are true, soon you will be able to flash backup images via fastboot
Cheers,
z
Click to expand...
Click to collapse
unless andrewddickey happens to have the RED certificate to compile the sin.
99.999999% sure you dont
soon i will post tool for that problem for win users
kernel.sin unpack and repack for cracked bootloader...
this question always puzzle me
So....
How to Convert *.img file to *.sin or *.ftf??
please....
A file with the FTF extension is merely a ZIP archive.
if *.img can convert *.sin
it's can flash sin by x10 flash tools
I want to keno,how to Convert img to sin.
thanks a lot...
看来这条路子是走不通的了,如果能的话那真是神了的说
Was an interesting idea buddy
Sent from my X10i using XDA
andrewddickey said:
The whole idea is a no-go.
Sorry. Hope you didn't get your hopes up.
From jerpelea
From zdzihu
Click to expand...
Click to collapse
You can download the msm7227.7z . Extract it and the contents are some apps and some folders.
One of them is 'sinTools'. Inside it are some applications, i think, that can help in making .sin files to sign these.
Please try and help me what to write in the command window.
Thanks in advance.
anyone found a solution yet? would be nice to be able to create your own ftf's
guess it's somehow linked with cryptographics so it's only one way, but i'm too tired to check right now.

Unbricking the 4.0 U.S

Ok, I think our problem is we need the dbdata and cache partitions because I added a dbdat.rfs file I made before bricking to the rom and I no longer get "E:failed mount dbdata (invalid argument)", still get the "E:failed mount /cache (invalid argument)"
So I will paste my dbdata.rfs if someone could post a cache backup.
For now just upload the file you got in the correct name. I will upload the ones you need just give me the commands to retrieve them.
Thats just it, I have no idea how.
I'll ask adamoutler...
Ok i got a hour so if we can get all the files that would be great. After we figure it out i will make a thread on how to restore to stock firmware here and in anythingbuyipod.
Ok, only problem I have about posting my dbdata is; could someone get personal data from that?
I dont think so. Since its the system not the sd card or anything else. Im taking risks posting these things to.
Ok, if you could try:"dd if=/dev/block/bml24 of=/sdcard/cache.rfs
Hyperrunner said:
I dont think so. Since its the system not the sd card or anything else. Im taking risks posting these things to.
Click to expand...
Click to collapse
Hyperruner, thanks for all you help btw. So far, in over a month, you have been the only one who has actually wanted to help us with bricked devices. Sorry I can't help you guys tonight since I have to go somewhere. But good luck!
Ok got it now uploading, post your file and ill post mine so i can create a new md5
Uploading now, it will take at least an hour on my internet!
Hold on it says Cannot open or read no such file
Check your command.!!
I will test it first to let you know if it works, then we can make a md5 to post.
Hyperrunner said:
Hold on it says Cannot open or read no such file
Check your command.!!
Click to expand...
Click to collapse
Afraid of that, I have no clue what the correct block number is!
Does anyone know how to find out?
I got a extremely easy way of finding out
type
su
mount
and it should tell you the locations
k, but someone else needs to, Im still bricked, remember?
Ok here is what i got so far ima compress it so you can download and try it out ok
factoryfs.rf
zImage
dbdata.rfs
cache.rfs
efs.rfs
I think that is enough let me make it into a md5 file ok. Ima upload it tonight but in the morning i will send you the link and you can try it over the day. Please im trusting you with the dbdata.rfs if there is any personal info please tell me and i will fix it ok. You can cancel the upload. Do you agree to tell me if there is any personal data and to delete it from your device?
K, thank you.
Do you agree to what i just posted about personal data?
That is fine
File will be given to you as soon as im done
Also what is your download speed?

[Q] to Developers, How to Preroot.

Hi developers, i know sometimes i can be too insistent but, i really want to learn how to make those prerooted system.iso to help the comunity (Specially the spanish comunity, we have an spanish version of XDA for the people that does not understand english).
I've been searching a lot on google and this forum but i cant find anithing.
I would like to know at least where to look to find this info, what i need to know or some links to read. (Note: im not a developer, just a user wanting to learn xD)
Thanks in advance.
PD: I assume OTA rootkeeper doesnt work when flashing an .ftf
Sorry for repost, i found something, i know i have to make an .img from our system partition (i dont know how) then unpack the .img, then add superuser.apk and correct permissions and then repack the img.
oh, and i found this: http://www.mobi-forum.de/handys-sma...npack-repack-system-image-and-add-root-to-it/
as i understand is something like...
extract system.img from the device (dont know if we can do this from the system.sin, and dont know how)
extraxt system.img to a folder (dont know if this is an ext4 or yaffs2 partition but i can extract with ext2eplore but it seems that if you extract system.img on windows you lose all permissions so.. need linux?)
include superuser and correct permissions
include binaries and correct permissions
include or delete other apps and correct permissions
take that system folder to an .img
flash (yay! i know how to do it!)
so.. i know what must i do, but i dont know how to do it.
im not dev. im not a linux user but i learn fast
I would like to learn how to make prerooted images too. I've been looking for information about it but I haven't found anything
Any help will be appreciated
Just look in the Development section, and PM the people who are posting the pre-rooted images.
I have more info:
extract system.img ···> i think we can do that with sin2img (it extracts to yaffs partition, but i cant extract it with unyaffs)
extraxt system.img to a folder ···> We need linux to do this, im ussing Ubuntu for my first time and i downloaded:
These files for ext4 extracting and packing
These files to unyaff
But i have some errors line "command not found" with ext4 extractors, and "exceptions or corruptions" with unyaffs (it seems sin2img does not work properly)
include superuser and correct permissions
include binaries and correct permissions
include or delete other apps and correct permissions
take that system folder to an .img
I have similary problem.I cannot unpack system.img.So I cannot get root to my office firmware.If you have any progress,please tell me.Thanks.
well i found this, but when using unyaffs it gives me an error like "system.img not suported or corrupted"
http://wikiwiki.jp/knot/?SK17i-en
Yakandu said:
well i found this, but when using unyaffs it gives me an error like "system.img not suported or corrupted"
http://wikiwiki.jp/knot/?SK17i-en
Click to expand...
Click to collapse
system.img for XS is ext4, not yaffs.

[Q] How to decode WhatsApp crypt8-files whit Cygwin, it show me an error

Hi, sorry for my bad english, i try my best.
I want to decode my crypt8-file with Cygwin and i got this error-message: gzip: msgstore.gz: not in gzip format (see image).
Please help.
Cm11 said:
Hi, sorry for my bad english, i try my best.
I want to decode my crypt8-file with Cygwin and i got this error-message: gzip: msgstore.gz: not in gzip format (see image).
Please help.
Click to expand...
Click to collapse
If you are using a recent version of WhatsApp then this method will not work as the iv is no longer stored in the key file. See: Decrypting WhatsApp crypt8 >= v2.12.38.
TripCode said:
If you are using a recent version of WhatsApp then this method will not work as the iv is no longer stored in the key file. See: Decrypting WhatsApp crypt8 >= v2.12.38.
Click to expand...
Click to collapse
Hi TripCode,
thanks for the answer, but i get the same error-message. Have you another idea?
Cm11 said:
Hi TripCode,
thanks for the answer, but i get the same error-message. Have you another idea?
Click to expand...
Click to collapse
Can you confirm that aes.txt and iv.txt have data written to them and what size is msgstore.gz? There could be a few things wrong. Just a question of narrowing things down.
TripCode said:
Can you confirm that aes.txt and iv.txt have data written to them and what size is msgstore.gz? There could be a few things wrong. Just a question of narrowing things down.
Click to expand...
Click to collapse
Hi TripCode,
After the decryption, I get all this files. (See the image. ) But I can´t extract the msgstore.gz file because it is corrupted.
Cm11 said:
Hi TripCode,
After the decryption, I get all this files. (See the image. ) But I can´t extract the msgstore.gz file because it is corrupted.
Click to expand...
Click to collapse
Having same issue here?
Did you come up with any solution or any proper explanation on this ?
Most likely scenario is that either the tools being utilized aren't functioning properly (common on Windows if using Cygwin as it's hit and miss) or the cipher key has rolled to a new algorithm. Try on Unix or use WhatCrypt (either online version or offline).

Categories

Resources