• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Odin (Return phone to Stock/Factory)

LOL. I would love to donate for all your great effort. This is just what the prevail community needed thank you soooo much.

your welcome

now I need to learn how to make custom roms, I would I also like to make an unrooted odin backup, but you have to be rooted to do this, so I need to figure a way to do it
 
Upvote 0
I need some help making an Odin pda.tar that is not rooted.
The 2 files that need to be modified in the pda tar are system.rfs and data.rfs

What I have tried is opening those files with MagicISO and deleting the files that I think are the root files

system.rfs /xbin/su
system.rfs /app/Superuser.apk
system.rfs /xbin/busybox
system.rfs /xbin/remount

data.rfs /dalvik-cache/Superuser.apk.dex

save the files in MagicISO
make the tar file in Cygwin
tar -H ustar -c boot.img system.rfs data.rfs recovery.img > pda.tar
flash with odin
phone boots fine, and it does not look rooted at all

The problem is if you now try to root that phone again with the KMS script you get access denied errors

So I have to Odin the phone back to my Rooted Odin PDA Image

I want to make an image that is as close to possible to factory as I can, but I am not sure of all the files need to be deleted or replaced.

I have been looking at the KMS script and I understand alot of it, but alot of it confuses me too.

I am very newbish to Linux I am more of a Windows guy, but I want to learn Linux

Any help is appreciated
 
  • Like
Reactions: new optimus
Upvote 0
Nice to know this is available . Thanks for making it happen hroark13 !:D

Your Welcome

You have done very well I hope with this new information we can get some real custom kernels and roms.

Thank You


I am willing to bet there will be a custom recovery and custom kernels for this phone in the very near future.

I was at this for 3 days figuring this out, I bricked my phone because some one said to do a factory wipe if the unroot did not work, and I did that, phone would not boot just vibrated on logo screen.

I started messing with the phone and loading Odin images from other phones onto it to see what would happen, I messed up the phone so bad that the only thing it would do is go into yellow download mode, i was not able to get into recovery, and nothing displayed on the screen.

I started looking at diferent odin images and how they were structured, got another working phone, rooted it, dumped all the partition and started looking at them with winhex and comparing them to the files in odin images and I was able to figure it out after flashing about 10 different images to the phone.

I was so damn happy when it Booted,,,yaaayyyy

This Odin image is a different structure than the Epic 4G but it is more simple, you can read the ops file with notepad, when you read a pit file with notepad it is not so simple

I have not slept very much during this time, I must have smoked a carton of cigs, but I love doing this type of stuff, and if your going to experement this is a good phone to do it with
 
  • Like
Reactions: wyelkins
Upvote 0
So has those phones are kinda the same. Is it possible to port over a custom recovery? And a few other stuff? I am just saying lol :)

Well the files system is similar

I dont know about porting because the hardware is differnent

I am not a coder so I dont know how to write code to these files, but anyone who wants to do it just needs to find how they did it on that phone and it will be a very similar process

I just dont understand why Samsung does not provide recovery images.
I spent hours searching for one and there was nothing.


Oh and by the way I let my phone do another full update, after the update I Odined the phone tar and my baseband was back to ED13
 
Upvote 0
yea interdpth did teh same thing, interesting... how did you get the modem off?

as for custom kernels im working on it :p

custom recovery however is a bit more off.. shit is way over my head and im in talks with someone who has done an amazing job on the epic and the indulge to see if he can help us out.. the big issue for us right now is almost every other samsung android phone uses zimage as the kernel.. yall got boot.img
 
Upvote 0
yea interdpth did teh same thing, interesting... how did you get the modem off?


modem is amss or bml4 partition or phone.tar

adb shell
su
dd if=/dev/bml4 of=/sdcard/amss
copy file from sdcard to cygwin or linux and tar it
tar -H ustar -c amss > phone.tar
flash phone.tar with odin

i think the phone was in airplane mode at the time, but I am not sure if that matters
 
Upvote 0
i posted this at ACS

kernel is in boot.img

http://www.sleetherz.com/troubleshoo...o-800mhz/4085/

Below info is for SPHM820 ED13

bml14 FSR_STL cache ? Maybe 102,400
bml13 FSR_STL data.rfs 173,056
bml12 FSR_STL system.rfs 173,568
bml11 ??? 768
bml10 recovery.img 10,240
bml9 boot.img 10,240
bml8 arm11boot 2,048
bml7 all ffffffffffffs 6,144
bml6 ???? 768
bml5 FSR_STL cdma info 12,800
bml4 amss 17,920
bml3 oemsbl 768
bml2 qcsbl 768
bml1 mibib 1,536
stl14 MSWIN4.1 cache ? 97,280
stl13 data.rfs 166,400
stl12 system.rfs 166,912
stl5 cdma info 8,960

FSR_STL is too complicated for me to understand
http://jhulst.com/publicsvn/captivate/kernel/modules/dpram/fsr/FSR_STL.h
 
Upvote 0
Upvote 0
I did see mention of Heimdall but wasn't sure if it would work with the prevail. I think the version of Odin that is used here just barely came out (got leaked?) so that's why it works. Could be totally wrong on that.

I'm currently using Odin in Virtualbox and so far it seems to be going well.

It just rebooted my phone and it did start (a.k.a. no brick :-D). Thanks everyone for all the work you guys put into all this!
 
Upvote 0
hahah would explain why when interdpth flashed it loaded to airplane mode right away.. thanks

The only thing that was done with the phone before I made the image was rooting it with KMS, installing ESF File Explorer, installing Advanced Task killer, Airplane Mode, Enable USB Debugging

Any one who flashes all 3 tars with be the same as above.

They can do a Factory Reset after Odin, and the only thing that will be different from Stock is the Root

Now that we can just edit the RFS files and flash them with Odin we should be able to make a Factory Stock image, I need to learn more about what the KMS rooting does.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones