SBF Extraction - Droid X General

Anyone know how to extract an sbf file to a computer? Been searching everywhere can't find an answer.
Sent from my DROIDX using Tapatalk

Are you trying to extract apks etc? I can get you started but I don't know all of it (yet) myself.
First you need to unpack the sbf. I've been working with Skrilax_CZ's Motorola Android Firmware depacker (google to find this). Hand it the sbf file and it will unpack the various filesystems into a folder. The good stuff (/system) is in CG39.smg. I believe that it is a cramfs filesystem but with an offset. Technically, one should be able to mount it if one knows the offset then bingo, everything in /system would be seen/able to be copied. This is the first, important part of ROM creation btw since the tool above can also repack the smg files...
However, I've not researched this any further atm. It may be that CG39.smg is also encrypted on a DX. Soon...

Related

status on rooting cliq

I found this on http://cliq-development.com/forums/viewtopic.php?f=5&t=13
hopefully this can help anyone who is trying to develop a way for root on the cliq.
To get where we are at in development you must learn about a few things
.SHX = A re-flashing file similar to a .nbh on the HTC brand. It is a full re-flash of everything on the phone, full stock. When extracted it creates three files the main one is the CG2
CG2 = A file extracted from the shx that hold the main partitions that will be flashed to the phone.
-----------------------------------------------------------------------------------------------------------------------
How to extract a shx
(http://modmymoto.com/forums/showthread.php?t=525344)
A developer by the name of Meiner Einer created a program named SbfRecalc. With this program we can extract three files and as i stated above the most important one is the CG2
How to extract a CG2
(http://modmymoto.com/forums/showthread.php?t=525477)
A developer by the name of Skrilax_CZ created a program named CG2 Parser. With this program we can extract all of the files within the CG2.
-----------------------------------------------------------------------------------------------------------------------
After you extract all of the files from the CG2 you will find that some of the names were similer to the partitions of the cliq. With a little file manipulation i recreated a boot.img and a recovery.img from some of the files. The guys over at modmymoto dumped a full system partition.
(http://android-dls.com/wiki/index.php?t ... oot_Images)
To recreate both the boot.img and the recovery.img just do these simple steps
1. Create a directory and put either bootsec.mbn or recoverysec.mbn from the CG2 dump inside it
2. Download the split_bootimg.pl from the link above and run it with the file in the directory to get both a kernel and a ramdisk file.
3. Using the mkbootimg from the android source code you can recombine the kernel and the ramdisk files to create your boot.img/recovery.img strait from the re-flash file
------------------------------------------------------------------------------------------------------------------------
With the system dump from modmymoto and my boot.img(+a little root) I created an update.zip file with root ready to be flashed when the keys are ready.
This is where we are at any help would be greatly appreciated.
Wow, nice work!
This could really so with a sticky...
Thanks for the update! The cliq goes hard. Once rooted its ova, best android phone on tmo!
Nice! It would be really great if you could repost this at android-devs.org over in the cliq development section of the forum
Since XDA is only for HTC phones and most people here most likely don't have the cliq and there really isn't a correct forum to have this posted in..
I'd reccomend using android-devs.org forums

system.img from ROM zip files?

Hi,
I was wondering if there was a way to convert .zip files of ROMs/themes into system.img files so that they can be booted up via the android sdk emulator?
I've seen that it's possible to launch system.img files in the sdk emulator, but after searching for quite some time I wasn't able to pinpoint a method for creating system.img from update-cm-4.2.12.2-signed.zip (for example).
Thanks.
DT
i made a post about those system.img files earlier here: http://forum.xda-developers.com/showthread.php?t=609090
in theory it's possible using the mkfs.yaffs2 tool, but i'm not sure whether the emulator supports danger SPL roms, because the system image file size is limited in the emulator as well...
http://www.dotphone.org/attachment.php?aid=6
it's the mkfs.yaffs2 tool
see usage here:
http://www.dotphone.org/viewthread.php?tid=32
Hi,
Thanks for the link, but I'm quite a newbie in these things, so could someone please walk me through process? I've downloaded the archive in the link.
How many times do I unzip it (I can unzip it up to three times and then I get 5 files numbered 1 through 5)? Where do I paste it? How do I use it? The explanation in the other thread was slightly too complicated for me sorry
Thanks
DT
/push
Anyone willing to help out a newbie?
bump
I am looking to do the same thing
Get someone to Nandroid backup the ROM.
It creates a system.img, recovery.img, data.img, cache.img and boot.img.
Not the easiest method but it works

Atrix Custom Backup For Each Sbfs

Hi,
I readed this
http://forum.xda-developers.com/showthread.php?t=1041572
then I had an idea that is just simple
I got tired with my att atrix for many months now we can't flash any sbf on that phone.
I suggest that people dump data and system files and all other folders for all the sbfs that are shared.
that is as simple as it is, after that we just need to update the folders and files over the old ones.
I will also try myself to extract contents inside the .smg files of sbfs using linux but I can not garantee it will work since I don't know what is the real file format of current atix smgs right now.
I will create a shell script that will do the job easily and I need people that have Bell atrix, Europe Atrix, Latin atrix or Asia Atrix.
If we succesfully overwritte those folders and files on our phones, I'm pretty sure that future update will also work since update.zip is just looking for right files on the phones and not checking for 1init bootloader version.
Who would like to participate and try?
for those who have questions, feel free to ask me
extract sbf
rename CG57.smg to system.img
use kitchen to make a update zip
or
make a nandroid backup
use system.img from clockwork/backup folder
use in kitchen to create update.zip

Extract *.img files on Windows

I've been wandering and wondering about my failed first ROM, and while I was looking for ressources, I found this:
http://android.modaco.com/content/a...es-inside-the-nandroid-img-file/#entry1745667
Unyaffs is used to extract *.img files, but it seems that it only works on Linux. So I searched and found this windows port. I think it can be useful: the 5 "similar threads" I am seeing right above this topic are questions on how to extract .img files
I menage to past that dbus error but after loading some modules i got cant init bnep module ...i give up for now
I think "yaffey" pretty much cover that dont u think??
Sent from my R800i using xda premium
are you also able to extract and repack kernel images with this tool? ??

convert tar to zip?

I've been scouring the interweb looking for a way to take a stock tar file and convert it to a zip file that will flash with twrp. I know it can be done, but thus far I'm not happy with the processes I've found... how do you guys do it?
The stock TAR files contain partitions in IMG format - an all in one file system, and in this case using EXT4 formatting.
In order to create a ZIP, you need to access the files on the partition, which means finding a way to mount those IMG partitions to copy their contents, or find a piece of software to extract from them w/o mounting. Since they are EXT4, you can probably assume a Windows solution isn't available (EXT4 is Linux). Some utilities may exist to handle EXT4 on Windows, but finding one that knows EXT4 and can extract/mount an IMG file is pretty specific.
EDIT : found a utility for you - http://forum.xda-developers.com/showthread.php?t=2285831
If you can somehow get the files out of the archive, you'll need to find a tutorial on the structure of a flashable ZIP. Generally, its just folders and files but there is also a META-INF folder, scripts to install and set permissions, etc. There are likely threads here on XDA that can detail these steps.
Spitzaf, thanks so much! I was hoping for just such a tool

Categories

Resources