[GUIDE]How to extract Stock firmwares from Samsung? - Galaxy Ace S5830 General

And,comes another guide from me.... I was actually extracting a stock firmware and this came into my mind
Ok,I made this guide since the process of extracting firmware is a bit confusing sometimes.So,lets start with it​
What you would need:
1.7zip or any other zip utility
2.Stock Firmware
3.MagicISO
4.Nothing else
Tutorial:
1.Start off by downloading a stock firmware,for this guide,we assume its DDKQ8
2.You will get 2 files, S5830DDKQ8_<bla bla>.tar.md5 and SS_DL.dll
3.Ignore the second file,we only need the first file which has an extension of .md5
4.Now its not possible to extract the file with the current extension.
5.So,rename the file S5830DDKQ8_<bla bla>.tar.md5 to S5830DDKQ8_<bla bla>.tar
6.Now,the file is extractable,so extract it.
7.You will get approx. 9 files: arm11 boot,amss,csc.rfs and various others.
8.Delete all the files except boot.img and system.rfs.These are the only files we need.
9.Now,using MagicISO,open up system.rfs and extract it.
10.Make a new folder named Rom_working
11.Now,move the boot.img there
12.Make a folder called system
13.Move all contents of system.rfs to this this folder.
14.Now all you need is a META-INF folder to complete the rom.(Unless you messed up)
Thats it! Pretty easy huh,this is something really basic,but a few people get confused on extracting it anyway.Its just meant to be a basic guides for those people.If you want to get more info on making a rom,refer this guide which i wrote a few months ago.Hope this helped you guys out.
NOTE: I am not responsible if you mess up your phone or w/e happens to it.Btw,<bla bla> stands for the rest of the filename ​

thanks for that,, i was woundering how it was done,, i ended up using a nandroid backup with kitchen to make my own lol

How can I root the rom??
Sent from my GT-S5830 using xda premium

Where do we get a META-INF folder?
Do we use CWM recovery to restore with the new folder?

lypang said:
Where do we get a META-INF folder?
Do we use CWM recovery to restore with the new folder?
Click to expand...
Click to collapse
You can get a META-INF folder by creating one yourself
I don't understand your 2nd question though

dredremon said:
How can I root the rom??
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Take su bin file from a rooted rom and insert it in your rom.Done.

lypang said:
Where do we get a META-INF folder?
Do we use CWM recovery to restore with the new folder?
Click to expand...
Click to collapse
Make one yourself,refer other stock roms for the path,then get the update binaries and script from BlackHawk (if stock ONLY).

okay, this is to flash via CWM is not it? how to change the kernel?
Sent from my GT-S5830 using xda premium

modolheula said:
okay, this is to flash via CWM is not it? how to change the kernel?
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Kernel is in boot.img. If u want to change kernel, you should change the boot.img
Sent from my fingers to your face,take it or leave it.

okay, I'm trying to find out about the boot.img .... thanks for sharing knowledge
Sent from my GT-S5830 using xda premium

Well, on Linux I usually do this: http://forum.xda-developers.com/showpost.php?p=28933492&postcount=3

Hmm is it possible to extract a stock ROM from the phone itself? Or not extract but get the stock ROM as zip (with those md5 files, etc) so that it can be flashed via Odin on another phone?
It's because i can't find anywhere to download the stock ROM i had...
Sent from my GT-S5830 I think...

Millenium3 said:
Hmm is it possible to extract a stock ROM from the phone itself? Or not extract but get the stock ROM as zip (with those md5 files, etc) so that it can be flashed via Odin on another phone?
It's because i can't find anywhere to download the stock ROM i had...
Sent from my GT-S5830 I think...
Click to expand...
Click to collapse
Many ways:
1.Adb pull /system
2.Manual copy and paste with file xplorer
3.Use Qtadb and copy /system
Sent from the year 3000 using a SGA where sheep's are not present.

Prawesome said:
Many ways:
1.Adb pull /system
2.Manual copy and paste with file xplorer
3.Use Qtadb and copy /system
Sent from the year 3000 using a SGA where sheep's are not present.
Click to expand...
Click to collapse
Y U No like cwm backups ?

Prawesome said:
Many ways:
1.Adb pull /system
2.Manual copy and paste with file xplorer
3.Use Qtadb and copy /system
Sent from the year 3000 using a SGA where sheep's are not present.
Click to expand...
Click to collapse
Thanks i will try and post if i have any problems
madman said:
Y U No like cwm backups ?
Click to expand...
Click to collapse
I want to flash the rom in another phone... or maybe it works by copying the backup files cwm made into the another phone? But anyways i tried to restore the stock rom once but it failed.. but thanx
PS: i actually thought the thread was the guide for my question
Sent from my GT-S5830 I think...
Don't forget to press thanks button..!!

Prawesome said:
Many ways:
1.Adb pull /system
2.Manual copy and paste with file xplorer
3.Use Qtadb and copy /system
Sent from the year 3000 using a SGA where sheep's are not present.
Click to expand...
Click to collapse
ok sorry for late reply
after pull /system how can i make the stock ROM flashable through ODIN on another phone?
or at least another way to flash the rom? adb push?

Millenium3 said:
ok sorry for late reply
after pull /system how can i make the stock ROM flashable through ODIN on another phone?
or at least another way to flash the rom? adb push?
Click to expand...
Click to collapse
For Odin flash,refer freeyourandroid.com.
For CWM flash,take updater script and binary from Blackhawk and put it in your rom
Sent from the year 3000 using a SGA where sheep's are not present.

dredremon said:
How can I root the rom??
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Download root file with su and extract it you will find the files you need there.
Sent from my GT-S5830 using xda app-developers app

can some1 tell me what i did wrong? I made a flashable zip, and after installation phone is not booting.

TechNoJerky said:
can some1 tell me what i did wrong? I made a flashable zip, and after installation phone is not booting.
Click to expand...
Click to collapse
Logcat or it didn't happen
Insert witty sentence here

Related

Touchwiz 4

Does somebody know if Touchwiz 4 will work on the Ace?
http://forum.xda-developers.com/showthread.php?t=1077641
Hope so!
Sent from my GT-S5830 using XDA Premium App
dude i am ready to take risk but how to install
boot into recovery and installthe .zip
wont't work its a clockworkmod installation package...
Yeah thought so
Sent from my GT-S5830 using XDA Premium App
kills999 said:
wont't work its a clockworkmod installation package...
Click to expand...
Click to collapse
just replace file update-binary from file for root gingerbread upd_1.zip and it will work....
ingbrzy said:
just replace file update-binary from file for root gingerbread upd_1.zip and it will work....
Click to expand...
Click to collapse
can you please post the file?
ingbrzy said:
just replace file update-binary from file for root gingerbread upd_1.zip and it will work....
Click to expand...
Click to collapse
dude can u send me the link
Here extract update-binary with winrar and replace... I didnt test it... it will just allow install zip file with touchwiz without clockwork...
but file with touchwiz 4 is for 240dpi and SGA has 160dpi... So I am not sure if it will work properly...
so we will need some voluntary testers
so we will need some voluntary testers
dude i am ready just give me the files.....
Try it... file with replaced update-binary is HERE
reboot to recovery mode and apply .zip file...
I didnt try, so good luck...
ingbrzy said:
Try it... file with replaced update-binary is HERE
reboot to recovery mode and apply .zip file...
I didnt try, so good luck...
Click to expand...
Click to collapse
waiting for results
You wanted it!
Sent from my GT-S5830 using XDA Premium App
ingbrzy said:
Try it... file with replaced update-binary is HERE...
Click to expand...
Click to collapse
instalation aborted...
error in /tmp/sideload/package.zip (status 0)
during installation writes... TouchWiz4 for Tab
cult007 said:
instalation aborted...
error in /tmp/sideload/package.zip (status 0)
during installation writes... TouchWiz4 for Tab
Click to expand...
Click to collapse
Try again with attached files....
182dpi try first....
if it will not install automatically at recovery mode, you can add files manually with root explorer to the folder:
system / app /
system / lib /
sorry no success... i copied files with rootexplorer... wiped twlauncher's and dalvik's cache... set the rights
...there is just blank screen and after a minute FC
cult007 said:
sorry no success... i copied files with rootexplorer... wiped twlauncher's and dalvik's cache... set the rights
...there is just blank screen and after a minute FC
Click to expand...
Click to collapse
So, now we know TW4 is not working on SGA...
possible that the problem is here...
[tutorial] manually moving apps to /system/app
Requirements:
- Rooted SGA
- File Explorer with Root permission (i'm using File Expert)
NOTE: I was only successful in moving apps/games without 'lib' linked to them
Click to expand...
Click to collapse

Modifying stock rom

I am very interested in ROM developing, the problem is i am a beginner. I tried to look for some guides, but they are quite hard to find to be honest. If i would want to modify stock rom what should i do? Although i could not find it i thought this could be an option:
- flash stockrom through odin
- modify stockrom
- make backup and copy system.img
- in a flashable zip you have the system directory, but how do you obtain this directory from system.img, what program do i need? Simple mounting program poweriso didn't recognize the image. I thought it might be possible to directly extract the required files from the odin package, but not find a guide for this?
Use MagicISO to extract system.img
Sent from my GT-S5830 using Tapatalk
Use 7zip to extract system.img from odin's md5 file.
Sent from my GT-S5830 using Tapatalk
how about dsixda kitchen??
you know you are rooted when you use XDA more than FB
Dragonoid said:
how about dsixda kitchen??
you know you are rooted when you use XDA more than FB
Click to expand...
Click to collapse
dsiXDA kitchen should be used only to zip-align, deodex and repack everything to flashable zip. It isnt really good at extracting .img files (personal opinion).
Read ketut's blackhawk rom's 2nd post for more info about dsiXDA kitchen
Sent from my GT-S5830 using Tapatalk
Probably a dump question, but when i extract the md5 file i obtained only a boot.img file and a recovery.img file, system.rfs file and some other files. Where is the system.img file located? I can't load the .img files with magic iso.
acceleratus said:
Probably a dump question, but when i extract the md5 file i obtained only a boot.img file and a recovery.img file, system.rfs file and some other files. Where is the system.img file located? I can't load the .img files with magic iso.
Click to expand...
Click to collapse
Open magicISO. Click on open -> navigate to system.rfs. It will load up all folders inside system.rfs. Select all -> right click -> extract all
Sent from my GT-S5830 using Tapatalk
Use my guide to get a better understanding of roms.
Sent from my GT-S5830 using XDA
I'm interested in extracting a stock rom from my s5830i to computer
Can someone help me with that. I'm not a newbie

[SOLVED] Can anyone please explain this ROM?

I have problems in installing part of **FeraLab*** ICS v1 heres the thread http://forum.xda-developers.com/showpost.php?p=25331067&postcount=2452
Please help...
i did was:
-flash the kernel *done
-go to CWM 5.5 and format all partitions and mount all partitions...install it and reboot ***problem part..
-Installing ROM **not done
-Reboot and done **not done
the problem part is what id dont know how to do...its messed up.. or something.. please help
did the rom download properly. check again if its downloaded fully.
Yes it downloaded fully.. I dont know why it does not show up in CMW?
When I check the downloaded fule its a .tar not a .zip.. I tried to get to zip but it just takes erroe
Sent from my X10S using my hand
Gooperz06 said:
Yes it downloaded fully.. I dont know why it does not show up in CMW?
When I check the downloaded fule its a .tar not a .zip.. I tried to get to zip but it just takes erroe
Sent from my X10S using my hand
Click to expand...
Click to collapse
so the rom doesnt show up in cwm?
make sure the extension is .zip
also check if its inside some folder and not directly in root directory of sdcard
On the computer open up the .tar file and see if the .zip file of the rom is in there the TAR extension is a compressed file which has other files in it
Sent from my X10i using xda premium
dunc4n88 said:
On the computer open up the .tar file and see if the .zip file of the rom is in there the TAR extension is a compressed file which has other files in it
Sent from my X10i using xda premium
Click to expand...
Click to collapse
yeah theres a zip file in there but theres a kernel in the .tar too..
THeLogiC said:
so the rom doesnt show up in cwm?
make sure the extension is .zip
also check if its inside some folder and not directly in root directory of sdcard
Click to expand...
Click to collapse
inside the .tar theres a .zip called update_es209ra_ICS_alpha1_CWM5 and a kernel wich is a SIN file thats it..maybe i need to flash the .zip... and what will i do to tha kernel?
Gooperz06 said:
inside the .tar theres a .zip called update_es209ra_ICS_alpha1_CWM5 and a kernel wich is a SIN file thats it..maybe i need to flash the .zip... and what will i do to tha kernel?
Click to expand...
Click to collapse
you need to flash zip file
THeLogiC said:
you need to flash zip file
Click to expand...
Click to collapse
and what will i do to the kernel.sin?
ignore that.
just flash ferakernel
boot into cwm and install the zip file.
THeLogiC said:
ignore that.
just flash ferakernel
boot into cwm and install the zip file.
Click to expand...
Click to collapse
ok..tnx again for ur continues help...
will my current ROM will affect the new ROM... my current is X10S ROM
Gooperz06 said:
will my current ROM will affect the new ROM... my current is X10S ROM
Click to expand...
Click to collapse
not really.
make sure to wipe data before installing feraICS

Re: [DEODEX][P769V20D]CWM Backup Stock Fully Deodexed Locked Bootloader

Re: [DEODEX][P769V20D]CWM Backup Stock Fully Deodexed Locked Bootloader
How do I flash this via cwm? I tried putting the file into sdcard/clockworkmod/backup and choosing restore in cwm but nothing.. then file disappears. Do I need to zip the file first or?.. I really need this.
Sent from my LG-P769 using xda app-developers app
HD_Status said:
How do I flash this via cwm? I tried putting the file into sdcard/clockworkmod/backup and choosing restore in cwm but nothing.. then file disappears. Do I need to zip the file first or?.. I really need this.
Sent from my LG-P769 using xda app-developers app
Click to expand...
Click to collapse
Did you download the one here on the forums are they with the dup extension? if so if wont work dont even try...
carloswii5 said:
Did you download the one here on the forums are they with the dup extension? if so if wont work dont even try...
Click to expand...
Click to collapse
Yes from the Android development section, and I don't understand what you mean. I am however on the exact same version p76920d
Edit: It is a .tar.gz file.
Sent from my LG-P769 using xda app-developers app
HD_Status said:
Yes from the Android development section, and I don't understand what you mean. I am however on the exact same version p76920d
Edit: It is a .tar.gz file.
Sent from my LG-P769 using xda app-developers app
Click to expand...
Click to collapse
ok all you have to do is put the file it should be in a folder already and if its in a zip or rar extract it then put in sdcard then put it in the folder clockworkmod which should be on your sdcard already then inside the backup folder and if you dont have any do the following
on the root of your sdcard make a folder called "clockworkmod" no caps then inside that another folder called "backup" then inside that one put the extracted filed then boot to recovery and choose restore from external sdcard and you should see the file
GoodLuck
carloswii5 said:
ok all you have to do is put the file it should be in a folder already and if its in a zip or rar extract it then put in sdcard then put it in the folder clockworkmod which should be on your sdcard already then inside the backup folder and if you dont have any do the following
on the root of your sdcard make a folder called "clockworkmod" no caps then inside that another folder called "backup" then inside that one put the extracted filed then boot to recovery and choose restore from external sdcard and you should see the file
GoodLuck
Click to expand...
Click to collapse
I will try that method.
So the path should look like this? root/clockworkmod/backup/thefile.tar.gz?
Sent from my LG-P769 using xda app-developers app
HD_Status said:
I will try that method.
So the path should look like this? root/clockworkmod/backup/thefile.tar.gz?
Sent from my LG-P769 using xda app-developers app
Click to expand...
Click to collapse
correct but the tar files must be inside a folder so to be more exact
root(externalsd)/clockworkmod/backup/folder(you can name it whatever)/all the tar files and etc
carloswii5 said:
correct but the tar files must be inside a folder so to be more exact
root(externalsd)/clockworkmod/backup/folder(you can name it whatever)/all the tar files and etc
Click to expand...
Click to collapse
That's what I thought. Because when I backed up my current rom. It was in a folder. So either method would've worked I just didn't create an extra folder. Thanks.
Sent from my LG-P769 using xda app-developers app
HD_Status said:
That's what I thought. Because when I backed up my current rom. It was in a folder. So either method would've worked I just didn't create an extra folder. Thanks.
Sent from my LG-P769 using xda app-developers app
Click to expand...
Click to collapse
No Prob :victory:
carloswii5 said:
No Prob :victory:
Click to expand...
Click to collapse
Okay I'm lost again. It found the file via cwm. But now I get md5 sum mismatch??
Sent from my LG-P769 using xda app-developers app
HD_Status said:
Okay I'm lost again. It found the file via cwm. But now I get md5 sum mismatch??
Sent from my LG-P769 using xda app-developers app
Click to expand...
Click to collapse
He Probably did the backup with artas recovery so you might have to use that one but im not sure...
carloswii5 said:
He Probably did the backup with artas recovery so you might have to use that one but im not sure...
Click to expand...
Click to collapse
But I did the same method for cwm.
Sent from my LG-P769 using xda app-developers app
HD_Status said:
But I did the same method for cwm.
Sent from my LG-P769 using xda app-developers app
Click to expand...
Click to collapse
Wait you dont have unlocked bootloader do you? ((extra info)and so you know when you flash a recovery to unlocked bootloader it registers as a P760 phone and artas recovery registers as a P769) it all depends how he did the backup thats why you get md5 mismatch but then again sometimes it acts really stupid but ask him what recovery he used to backup artas or unlocked bootloader
The backup file that you downloaded will have a specific folder name. Usually the date and time it was made. You will get a mismatch if you modify the folder name. Just extract the backup to the backup folder.
sdcard/clockworkmod/backup/date and time/files
Kid_Ding said:
The backup file that you downloaded will have a specific folder name. Usually the date and time it was made. You will get a mismatch if you modify the folder name. Just extract the backup to the backup folder.
sdcard/clockworkmod/backup/date and time/files
Click to expand...
Click to collapse
Thats actually not true i always modify the name of my backups and i never get md5 mismatch
carloswii5 said:
Thats actually not true i always modify the name of my backups and i never get md5 mismatch
Click to expand...
Click to collapse
Then its probably as you said, backup compatibility.
Or the files are actually corrupt.
If you feel like living on the edge, you can modify the nandroid.md5 file to match the md5 of the files that have a different number. I do this when I want to install a different boot or recovery img that was not backed up with the original.
Edit:
Or check if the md5 numbers are actually correct. Type (in a terminal)
md5 <name of file>
Example
md5 recovery.img
and compare that number to the number found in the nandroid.md5
Sent from my LGMS769 using xda app-developers app

[Q] Stock GB 2.3.6 task manager widget

Hello, can anyone extract this widget and send it to me by email? I removed it accidentally but I don't wanna re flash whole system and loose all my settings because of that. I suppose it should be apk and odex files. They can be found in one system directory. Please pm me for email. Thanks
blackfire74 said:
Hello, can anyone extract this widget and send it to me by email? I removed it accidentally but I don't wanna re flash whole system and loose all my settings because of that. I suppose it should be apk and odex files. They can be found in one system directory. Please pm me for email. Thanks
Click to expand...
Click to collapse
Why don't you open the flashable zip of your rom? Then you can extract it yourself
How to do that? What ROM?
blackfire74 said:
How to do that? What ROM?
Click to expand...
Click to collapse
Download a 2.3.6 rom flashable zip file. Open it and go to system/app extract the file and copy it to your phone. Install it and your done.
If you want to install a system app then you need to be rooted. So i thought you already had a flashable zip file.
I got my firmware downloaded only. It is md5.tar file. Is this what you are talking about or should I download something else?
blackfire74 said:
I got my firmware downloaded only. It is md5.tar file. Is this what you are talking about or should I download something else?
Click to expand...
Click to collapse
No, it should be in that tar file.
Christiaan91 said:
No, it should be in that tar file.
Click to expand...
Click to collapse
Inside there are few BIN files.
blackfire74 said:
Inside there are few BIN files.
Click to expand...
Click to collapse
Extract those. It must be there somewhere
Christiaan91 said:
Extract those. It must be there somewhere
Click to expand...
Click to collapse
Not working!
Anyway I foung other ROM in zip file and I got all extracted. I already have ODEX file in my SGS2 but I was trying to install apk file and it says it cannot be installed.
blackfire74 said:
Not working!
Anyway I foung other ROM in zip file and I got all extracted. I already have ODEX file in my SGS2 but I was trying to install apk file and it says it cannot be installed.
Click to expand...
Click to collapse
You have root?
Enough space?
Making a flashable zip and flash it in recovery?
Christiaan91 said:
You have root?
Enough space?
Making a flashable zip and flash it in recovery?
Click to expand...
Click to collapse
1. YES
2. YES
3. HOW?
I tried to copy apk file , widget opens but it is scrambled and not responding... Cannot copy ODEX file thou
blackfire74 said:
1. YES
2. YES
3. HOW?
I tried to copy apk file , widget opens but it is scrambled and not responding... Cannot copy ODEX file thou
Click to expand...
Click to collapse
Im confused. You did install it? What error do you get when trying to move the odex file?
Christiaan91 said:
Im confused. You did install it? What error do you get when trying to move the odex file?
Click to expand...
Click to collapse
I didn't install anything, just copied apk file from SD card into system/app directory. Odex file can't be replaced. No matter what error, just tell me if I have to run 7ZIP program, pack both files and then flash via CWM?
blackfire74 said:
I didn't install anything, just copied apk file from SD card into system/app directory. Odex file can't be replaced. No matter what error, just tell me if I have to run 7ZIP program, pack both files and then flash via CWM?
Click to expand...
Click to collapse
Reboot into recovery and wipe cache and dalvik cache. Reboot. Maybe that will work.
Sent from my GT-I9100 using Tapatalk
Christiaan91 said:
Reboot into recovery and wipe cache and dalvik cache. Reboot. Maybe that will work.
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
I probably created zip file, signed it and this time widget completely dissapeared from list. Wiped cache etc
blackfire74 said:
I probably created zip file, signed it and this time widget completely dissapeared from list. Wiped cache etc
Click to expand...
Click to collapse
You flashed a zip file?
Is the apk file still in system/app? If not just place it there and wipe the caches. Without flashing a file.
BTW I don't know exactly how I make a good flashable zip file. Search and it shouldn't be hard to find and make.
Sent from my GT-I9100 using Tapatalk
Christiaan91 said:
You flashed a zip file?
Is the apk file still in system/app? If not just place it there and wipe the caches. Without flashing a file.
BTW I don't know exactly how I make a good flashable zip file. Search and it shouldn't be hard to find and make.
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
The thing is it is not possible to just copy system files into proper directory because it returns error that it can't be replaced.
blackfire74 said:
The thing is it is not possible to just copy system files into proper directory because it returns error that it can't be replaced.
Click to expand...
Click to collapse
Deleting the old file and then copy the right file doesn't work?
Christiaan91 said:
Deleting the old file and then copy the right file doesn't work?
Click to expand...
Click to collapse
I'm not allowed to delete system files as they are in use and any operation is restricted, even while rooted!
Whatever, I flashed my firmware from scratch and f**k it still won't work because I run Go Launcher Ex which is not compatible with stock widget.
Thread closed...

Categories

Resources