So I've pulled apart an SBF file, and I can see the contents inside, but I'm not seeing a boot.img or anything I can play with, trying to see about putting a different kernel into it. Anyone have any ideas? Figured I'd try my hand at it though it isn't going so well. Haha.
xTMFxOffshore said:
So I've pulled apart an SBF file, and I can see the contents inside, but I'm not seeing a boot.img or anything I can play with, trying to see about putting a different kernel into it. Anyone have any ideas? Figured I'd try my hand at it though it isn't going so well. Haha.
Click to expand...
Click to collapse
What are you using to dissemble it? I saw an app somewhere that would pull it appart, but not really into anything that is useful.
But they layout of the file should be well known since we have a linux version of rsd (sbf_flash)
That being said, it shouldn't be impossible to rip apart one and put it back together.
apparently sbf_flash supports a -x param which will extract the contents of the SBF.
Basically I am trying to change the kernel. And replace it. And I will let you know what the program is called next time I get on the comp.
Sent from my MB855 using XDA App
xTMFxOffshore said:
Basically I am trying to change the kernel. And replace it. And I will let you know what the program is called next time I get on the comp.
Sent from my MB855 using XDA App
Click to expand...
Click to collapse
The software is sbf depacker. The thing is you'd have to hex edit the kernel into the file. I think in the process of extracting you lose the headers rendering it useless after you repack it.
I can't seem to edit the files with said program. So I can't test it sadly.
Sent from my MB855 using XDA App
When you unpack the sbf files with unpacker, you will get a bunch of smg files. When you try to hex edit these smg files, you will lose the vital header info. So I don't know how you would be able to just write in a kernel, repack, and have it work. I have the files already unpacked if someone wants me to upload it, it's more than 2 gb though.
No worries Man. I have it unpacked too. The problem I have is I don't know how to edit the SMG files. You said hex edit, but I'm not totally certain how to do that. To be honest, I figured I'd try my hand at this for ****s and grins, but I'm not totally sure what I'm doing, so any input is appreciated.
Related
I pretty much give up on this, and it's not all that important, but it's bugging me.
How do you, or even CAN you, dump the radio/modem from this device? The best I've been able to do is scour the web and end up with a 512KB .bin file that essentially contains nothing but 0xFF bytes in it.
(If context is required, I'm learning how to make an ODIN image from a device ... and so far this is the only partition that's really killing me)
Just download one of the complete Odin tar files and use something like winrar to extract all the bin files from it.
Sent from my SCH-I500 using XDA Premium App
you cant dump the modem...its like the only thing that cant be....if making a full odin package, pack in one of our existing ones
nitsuj17 said:
you cant dump the modem...its like the only thing that cant be....if making a full odin package, pack in one of our existing ones
Click to expand...
Click to collapse
That's what I figured, since it seems to be something you can't do with the Epic either. Do we know if it's because of CDMA? Something that needs to be secured from dumping perhaps? Meh, doesn't matter
Thanks guys!
I've been trying to make a couple of modifications to framework-res.apk and I've been having a lot of trouble. I've bootlooped the DX2 more than a few times (and was able to recover with the recently released SBF).
I've tried making one change, I've tried signing the file, I've tried not signing it, I've tried different compression levels on the zip, all with no luck. The one time I got my apk into the phone with my change on board (I verified that it was there) my change was ignored by the phone. (I've been trying to replace /res/drawable-hdp/zz_moto_list_texture_bg.png to change the default list background from the light gray to black.)
Has anyone been successful making modifications to this file in a DX2? If so, how did you do it?
What did program did you zip it with?
What was the compression set to?
Did you sign the file? If so, with what program and key?
What method did you use to drop framework-res.apk back into the phone?
Are there any files that should not be modified? (I've heard to leave the ".9" files alone.)
Thanks,
Chris
I've been trying to do the exact same thing and haven't got too far. I'm doing dev stuff thru Ubuntu and it seems to be very friendly along with gimp. I've actually been able to drag and drop replacement files without extracting the apk but haven't been able to flash it inside a theme. I haven't actually tried just replacing the framework.
Staying tuned...
Sent from my DROID X2 using XDA App
You can make a theme at uot.dakra.lt and flash the .zip file to your phone.. jus upload your framework-res.apk to the site once you make it, but anyway, they modify the file and it worked for me.
Peperm1nt said:
You can make a theme at uot.dakra.lt and flash the .zip file to your phone.. jus upload your framework-res.apk to the site once you make it, but anyway, they modify the file and it worked for me.
Click to expand...
Click to collapse
Yes I've been using this but it's not really set up for blur. we're talking about going deeper than UOT can reach with current software.
Sent from my DROID X2 using XDA App
You can recompile and decompile with apkmanager, but its not without some hiccups. First, it compresses the resources.arsc which unlike the rest of the apk needs to be decompressed. To fix this I pull it out then with 7zip I add it back to the framework-res archive with zip as the format and store as compression. That fixes the boot-loops. Even after that there's been some minor problems with it recompiling certain .xml a little goofy.
But at least it doesnt cause a boot loop.
I'm trying to edit some of the files in the ROM before flashing so I can have my defaults settings in place. I could do this just fine with EVO 4G ROM files, but when I try to open...say...build.prop, it says the archive is corrupt and that there are no files to extract. However, the ROM will flash onto my phone just fine.
Do I need a different version of WinRAR? Different program? Anyone else having that problem? Thanks for any answers.
Holyrolla said:
I'm trying to edit some of the files in the ROM before flashing so I can have my defaults settings in place. I could do this just fine with EVO 4G ROM files, but when I try to open...say...build.prop, it says the archive is corrupt and that there are no files to extract. However, the ROM will flash onto my phone just fine.
Do I need a different version of WinRAR? Different program? Anyone else having that problem? Thanks for any answers.
Click to expand...
Click to collapse
Update winRAR, or try 7zip. Redownload the file if you still get the error.
Maybe the ROM is signed that will keep you from making changes without extracting it first..
Id have to say use 7zip. Free app that's a 1000 x better for using when doing rom and theme building. IMO of course
Papa Smurf151 said:
Id have to say use 7zip. Free app that's a 1000 x better for using when doing rom and theme building. IMO of course
Click to expand...
Click to collapse
7zip does not care if the .zip is signed or not. Don't know if I would agree that its a 1000x better but thats just me. This is why I don't sign my ROMs anymore. Just encase someone wants to delete or add something before they flash.
zone23 said:
7zip does not care if the .zip is signed or not. Don't know if I would agree that its a 1000x better but thats just me. This is why I don't sign my ROMs anymore. Just encase someone wants to delete or add something before they flash.
Click to expand...
Click to collapse
It doesn't matter if a rom is signed or not. Its just a zip file. With 7zip u should be able to edit what ever you want. You won't be able to view any PNG files unless they are extracted but if you edit the rom or the apk it will usually break the signature which isn't a huge issue. You can always resign an apk or flash a rom without a signature. I can't stand win zip or winrar. They take forever and always have to extract crap. With 7zip its drag and drop and never an issue.
Thanks guys. I'll give 7-zip a try. That must mean that none of the EVO 4G roms I've ran (CM7 and MIUI) were ever signed...
Holyrolla said:
Thanks guys. I'll give 7-zip a try. That must mean that none of the EVO 4G roms I've ran (CM7 and MIUI) were ever signed...
Click to expand...
Click to collapse
Probably not most DEVs stopped signing ROMs a while ago.
What I'd like to do is to pull off all the files (keeping the structures intact) and either create an image file (.bin/.img) or something along those lines.
I know of DDMS and Android Commander, but I don't think they have the full power to get everything and I also understand the phone has to be rooted (which is not a big deal). Has anyone had any luck/expertise in this area?
If I can get this to work it then it would help out with some of the research that I am doing since it'll be easier to mount the image file in linux and go from there.
Alternate idea, does anyone know if when making a backup of the rom with CWM or BM does it hold the same type of data? If so where is the boot.img located?
Thanks for the help in advance!
I think there're a couple of threads in the development section regarding the images dumped from this phone.
sspa said:
I think there're a couple of threads in the development section regarding the images dumped from this phone.
Click to expand...
Click to collapse
Thanks I'll keep digging around to see what I can find.
Climber Ty said:
What I'd like to do is to pull off all the files (keeping the structures intact) and either create an image file (.bin/.img) or something along those lines.
I know of DDMS and Android Commander, but I don't think they have the full power to get everything and I also understand the phone has to be rooted (which is not a big deal). Has anyone had any luck/expertise in this area?
If I can get this to work it then it would help out with some of the research that I am doing since it'll be easier to mount the image file in linux and go from there.
Alternate idea, does anyone know if when making a backup of the rom with CWM or BM does it hold the same type of data? If so where is the boot.img located?
Thanks for the help in advance!
Click to expand...
Click to collapse
You can use an app called App2card at below for your need. It has the data tools for backing up any file/folder on any kind of storage (internal flash, fat32, ext2/3/4...) and ability to restore them in original structure as they were when backing up
http://205.196.123.32/fgqe9rc69leg/iln88jii0g81e05/App2Card_2.9.85_30Oct2011.apk
Sent from my MB860 using xda premium
Look for samcripps fruit cake maker it takes your /system folder and creates an. Img out of it.
Sounds like exactly what your after. Thank samcripp if it works for you too.
Sent from my MB860 using XDA App
I use android commander to pull system folder from phone.
Sent from my MB860 using XDA Premium App
stevendeb25 said:
I use android commander to pull system folder from phone.
Sent from my MB860 using XDA Premium App
Click to expand...
Click to collapse
Thanks, I tried that last night but the init.rc and other imortant files cannot be copied due to permissions access.
I eventually used CWM to make a backup of the phone and pulled the files that way. I just wonder if it has all the files on the phone (haven't had time to root through it yet)?
Climber Ty said:
Thanks, I tried that last night but the init.rc and other imortant files cannot be copied due to permissions access.
I eventually used CWM to make a backup of the phone and pulled the files that way. I just wonder if it has all the files on the phone (haven't had time to root through it yet)?
Click to expand...
Click to collapse
I think you can post your question in RomRacer's recovery thread; it's in dev section
Ok, this may be answered elsewhere, I don't know. "Search is temporarily unavailable" I am trying to understand how I am supposed to work with the backup from CWM. I understand that I should have a System image that I can work in, but what I have is 3 files in its place. System.ext4.tar, System.ext4.tar.a, and System.ext4.tar.b. All three files are broken to some degree.
System.ext4.tar is a zero byte file.
System.ext4.tar.a appears to be a spanned tar file that 7ZIP/WinRAR simply think was cut-off (never asks for the second file, and complains of unexpected End of Archive)
System.ext.4.tar.b appears to be the second part of the archive, but nothing will open it.
So, how do I get to a point I have a complete archive that I can edit? Or do I need to use different software than CWM to back up the phone?
Thanks for the help guys.
waldojim said:
Ok, this may be answered elsewhere, I don't know. "Search is temporarily unavailable" I am trying to understand how I am supposed to work with the backup from CWM. I understand that I should have a System image that I can work in, but what I have is 3 files in its place. System.ext4.tar, System.ext4.tar.a, and System.ext4.tar.b. All three files are broken to some degree.
System.ext4.tar is a zero byte file.
System.ext4.tar.a appears to be a spanned tar file that 7ZIP/WinRAR simply think was cut-off (never asks for the second file, and complains of unexpected End of Archive)
System.ext.4.tar.b appears to be the second part of the archive, but nothing will open it.
So, how do I get to a point I have a complete archive that I can edit? Or do I need to use different software than CWM to back up the phone?
Thanks for the help guys.
Click to expand...
Click to collapse
Well, I found a solution for now. Fire up Linux, use cat to combine all three files, then use tar to extract the contents. Not sure why this needed split in the first place, but at least the files can be extracted.
I have managed to remove the APKs I do not want, and made a new system.ext4.tar file (all in Linux), but need to know what else I have to do to make the system image usable.
I found several guides on making a ZIP file, but I didn't want to necessarily go through all that. I backed up everything, so what I would like to know, is what all needs to change so that I can use the separate files as they are, and simply do a CWM "restore" function?
I know I sound like a complete noob at this point, and will deal with the related comments. However, please understand, I don't want the heavily modified rom packs. I simply wanted a rom VOID of all the Verizon bloatware, and have the Verizon tethering restraints removed. I have them all disabled now, and 3rd party tethering is working quite well. So I would rather not have that garbage wasting space. Right now, it looks like I may save 250MB or so.
Any help would be appreciated. Thanks.
waldojim said:
I have managed to remove the APKs I do not want, and made a new system.ext4.tar file (all in Linux), but need to know what else I have to do to make the system image usable.
I found several guides on making a ZIP file, but I didn't want to necessarily go through all that. I backed up everything, so what I would like to know, is what all needs to change so that I can use the separate files as they are, and simply do a CWM "restore" function?
I know I sound like a complete noob at this point, and will deal with the related comments. However, please understand, I don't want the heavily modified rom packs. I simply wanted a rom VOID of all the Verizon bloatware, and have the Verizon tethering restraints removed. I have them all disabled now, and 3rd party tethering is working quite well. So I would rather not have that garbage wasting space. Right now, it looks like I may save 250MB or so.
Any help would be appreciated. Thanks.
Click to expand...
Click to collapse
Backups really aren't meant to be unzipped and played with. Usually bloat removal is done while booted into the system or you can unpackage a Rom and remove the bloat there and then repackage it and flash it then make your backup that doesn't contain any bloat. Using the xda kitchen tools from dsxda I believe is the name
Sent from my HTC6435LVW using XDA Premium HD app
.torrented said:
Backups really aren't meant to be unzipped and played with. Usually bloat removal is done while booted into the system or you can unpackage a Rom and remove the bloat there and then repackage it and flash it then make your backup that doesn't contain any bloat. Using the xda kitchen tools from dsxda I believe is the name
Sent from my HTC6435LVW using XDA Premium HD app
Click to expand...
Click to collapse
I think this is where some of my confusion comes from - it was never zipped. There was a group of tarred files, an MD5sum and a few other items. But nothing there was zipped.
waldojim said:
I think this is where some of my confusion comes from - it was never zipped. There was a group of tarred files, an MD5sum and a few other items. But nothing there was zipped.
Click to expand...
Click to collapse
I guess what I meant to say by "zipped" was just in general they are compressed by the recovery in a way that it knows how to go and use them to restore data to the device.