Rooting JB OTA from OS X (no flash counter) - T-Mobile, Samsung Galaxy SIII

The short story (links explain each step) of rooting your OTA updated JellyBean d2tmo from OS X (Mountain Lion in my case).
If you've installed Kies for Mac, you need to clean up
Install heimdall 1.4 (probably have to build from source)
You can download a binary as well.-0
Download root66_TMO_T999UVDLJA ROM (in my case)
Unpack the downloaded file. It's in 7z format. You can download Unarchiver for OS X
Get adb (platform tools addition to android sdk), and make sure it is in $PATH
Run the commands below after connecting to mac
The heimdall command to run:
Make sure your computer can see your phone:
Code:
adb devices
Code:
adb-kill-server
Flash the rooted image:
Code:
heimdall flash --primary-boot boot.img --cache cache.img.ext4 --system system.img.ext4
Finally, to install CWM Recovery, try id_twin's method (worked for me). A note on this: after installing the ROM Manager app from Play Store, the app doesn't realize that CWM Recovery is installed, so it wants to flash it again. I happened to let it -- but that upped the flash counter on the phone. I've resolved it using Triangle Away.

Does this work for jellybean?
Sent from my SGH-T999 using xda app-developers app

xxqbnxx said:
Does this work for jellybean?
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
According to the topic of the thread, this is specifically for Jellybean.

Not sure how to build heimdall can someone be of help please?
Sent from my SGH-T999 using xda app-developers app

xxqbnxx said:
Not sure how to build heimdall can someone be of help please?
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Are you on OS X? Which version, if so?

OS X 10.6.8
Sent from my SGH-T999 using xda app-developers app

I wound up downloading a 1.4 binary for OSX, which I found on wikiDOTcyanogenmodDOTorg/index.php?title=Install_CM_for_galaxysmtd . Please try that and let me know how it goes (it worked for me (TM)).
PS The outside link restriction, while understandable, is a bit silly.
xxqbnxx said:
OS X 10.6.8
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse

alecsharp said:
I wound up downloading a 1.4 binary for OSX, which I found on wikiDOTcyanogenmodDOTorg/index.php?title=Install_CM_for_galaxysmtd . Please try that and let me know how it goes (it worked for me (TM)).
PS The outside link restriction, while understandable, is a bit silly.
Click to expand...
Click to collapse
Hey thanks for all your help man. I went and tired to build heimdall but i need xcode? do i ? i tired installing xcode took 3 hours to download and then i went to install it and it was going to take 4 hours to install. i thought that was to much and i might be doing something wrong. Sorry but as you can tell i am a Noob on this here. What am i doing wrong ?

xxqbnxx said:
Hey thanks for all your help man. I went and tired to build heimdall but i need xcode? do i ? i tired installing xcode took 3 hours to download and then i went to install it and it was going to take 4 hours to install. i thought that was to much and i might be doing something wrong. Sorry but as you can tell i am a Noob on this here. What am i doing wrong ?
Click to expand...
Click to collapse
Hi! If you download heimdall from that link I posted into the cyanogen wiki, you don't need to build/compile it. That download is precompiled, so all you have to do is the following:
Go to wikiDOTcyanogenmodDOTorg/index.php?title=Install_CM_for_galaxysmtd <--- replace DOT with a . of course -- heimdall is independent of the type of phone you have, so don't worry that that page is for Galaxy S.
Download the heimdall 1.4rc1 zip file for OSX on that page. <-- Look for "
Code:
Mac OS X:
Heimdall Suite 1.4RC1 Command-line Binary: download
on that page.
Unpack the downloaded zip file, to find two files.
Copy 'libusb-1.0.0.dylib' to the /opt/local/lib directory on your Mac
Copy the file called 'heimdall' into /usr/local/bin <-- after you copy it over, in a terminal do: sudo chmod 644 /usr/local/bin/heimdall to make sure you can run it.
then you can just run heimdall (no front-end, just the command line tool) <-- see my original post up there for exactly how to do that.

OK thanks I'm going to have to wait for Monday to try this
Sent from my SGH-T999 using xda app-developers app

ok so after some work arounds i think i got it all set up. heimdall seems to be running on terminal. How safe is this ?

xxqbnxx said:
ok so after some work arounds i think i got it all set up. heimdall seems to be running on terminal. How safe is this ?
Click to expand...
Click to collapse
Well, considering what heimdall does, it's an inherently risky venture whether or not you have a GUI on it. The GUI lets you limit the amount of damage you can potentially do, of course, whereas the CLI is not as restrictive.
As far as those commands: I've run them on a couple of phones to successful ends. YMMV, of course.

im stuck i donwload the heimdall and the md5 file
but im stuck here
Copy 'libusb-1.0.0.dylib' to the /opt/local/lib directory on your Mac
Copy the file called 'heimdall' into /usr/local/bin <-- after you copy it over, in a terminal do: sudo chmod 644 /usr/local/bin/heimdall to make sure you can run it.
i dont have those folders
maybe im over looking this but can someone write a simpler tutorial?
no pun intended! maybe its just me, ive been googling how to root my s3 on a mac for so long!

Did you try this from the command line or Finder? If in Finder, did you try searching for those directory names?
beto0216 said:
im stuck i donwload the heimdall and the md5 file
but im stuck here
Copy 'libusb-1.0.0.dylib' to the /opt/local/lib directory on your Mac
Copy the file called 'heimdall' into /usr/local/bin <-- after you copy it over, in a terminal do: sudo chmod 644 /usr/local/bin/heimdall to make sure you can run it.
i dont have those folders
maybe im over looking this but can someone write a simpler tutorial?
no pun intended! maybe its just me, ive been googling how to root my s3 on a mac for so long!
Click to expand...
Click to collapse

OK... I had problems then I fixed them and then I found some more problems.
Here is what I receive:
Code:
$ heimdall flash --primary-boot boot.img --cache cache.img.ext4 --system system.img.ext4
Heimdall v1.4 RC1
Copyright (c) 2010-2012, Benjamin Dobell, Glass Echidna
http : // www glassechidna com au /
This software is provided free of charge. Copying and redistribution is
encouraged.
If you appreciate this software and you would like to support future
development please consider donating:
http : // www glassechidna com au / donate /
Initialising connection...
Detecting device...
Claiming interface...
ERROR: Claiming interface failed!
I didn't have any Kies kext's loaded as this is what I get:
Code:
$ kextstat | grep -v apple
Index Refs Address Size Wired Name (Version) <Linked Against>
126 2 0xffffff7f81e95000 0x36000 0x36000 org.virtualbox.kext.VBoxDrv (4.1.18) <7 5 4 3 1>
128 0 0xffffff7f81ed3000 0x5000 0x5000 org.virtualbox.kext.VBoxNetFlt (4.1.18) <126 7 5 4 3 1>
129 0 0xffffff7f81ed8000 0x6000 0x6000 org.virtualbox.kext.VBoxNetAdp (4.1.18) <126 5 4 1>
My process:
1. Phone -> Download Mode
2. Open Terminal
3. CD to the folder with all of the system files to be flashed
4. Run, verbatim, exactly what you said to run in OP
Any ideas?

Hi, basically that interface is busy and occupied by another process. Did you try unloading the Kies kexts anyway?
jhlax95 said:
OK... I had problems then I fixed them and then I found some more problems.
Here is what I receive:
Code:
$ heimdall flash --primary-boot boot.img --cache cache.img.ext4 --system system.img.ext4
Heimdall v1.4 RC1
Copyright (c) 2010-2012, Benjamin Dobell, Glass Echidna
http : // www glassechidna com au /
This software is provided free of charge. Copying and redistribution is
encouraged.
If you appreciate this software and you would like to support future
development please consider donating:
http : // www glassechidna com au / donate /
Initialising connection...
Detecting device...
Claiming interface...
ERROR: Claiming interface failed!
I didn't have any Kies kext's loaded as this is what I get:
Code:
$ kextstat | grep -v apple
Index Refs Address Size Wired Name (Version) <Linked Against>
126 2 0xffffff7f81e95000 0x36000 0x36000 org.virtualbox.kext.VBoxDrv (4.1.18) <7 5 4 3 1>
128 0 0xffffff7f81ed3000 0x5000 0x5000 org.virtualbox.kext.VBoxNetFlt (4.1.18) <126 7 5 4 3 1>
129 0 0xffffff7f81ed8000 0x6000 0x6000 org.virtualbox.kext.VBoxNetAdp (4.1.18) <126 5 4 1>
My process:
1. Phone -> Download Mode
2. Open Terminal
3. CD to the folder with all of the system files to be flashed
4. Run, verbatim, exactly what you said to run in OP
Any ideas?
Click to expand...
Click to collapse

alecsharp said:
Did you try this from the command line or Finder? If in Finder, did you try searching for those directory names?
Click to expand...
Click to collapse
I'm having the same problem.... i cant find any of those folders, and nothing comes up searching for each individual one in the finder. I then tried to type in the adress to the command line and it said directory could not be found. What am i missing here?

OSX Developer tools
fred8785 said:
I'm having the same problem.... i cant find any of those folders, and nothing comes up searching for each individual one in the finder. I then tried to type in the adress to the command line and it said directory could not be found. What am i missing here?
Click to expand...
Click to collapse
Do you have XCode installed?

alecsharp said:
Do you have XCode installed?
Click to expand...
Click to collapse
i do.....

fred8785 said:
i do.....
Click to expand...
Click to collapse
Thanks for verifying. Do you use homebrew at all? If not, can you install it and then run:
Code:
brew install libusb
That should create /usr/local/bin and /usr/local/lib directories. Use /usr/local/lib instead of /opt/local/lib at that point.

Related

Mounting a .RFS file in OSX

In case anyone wants to mount one of the .RFS files out of a firmware image (in particular, the "hidden.rfs" in the full 550MB+ CPW firmware which contains the full version of NovaHD) from within OS X, you can do so via these commands;
sudo mkdir /Volumes/RFS
sudo hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount filename.rfs
Take note of the drive number the command returns, then,
sudo mount_msdos /dev/diskX /Volumes/RFS (replace X with the appropriate number).
You then have the RFS file mounted & available to copy files from.
Under Linux you just mount it as a loopback device, OS X doesn't really support this functionality though, so this is a good workaround.
If you do need a FULL Euro firmware to play with, then you can get one of the full 550MB+ images from the FUS server;
http://fus.samsungmobile.com/Phone_Binary/9/GT-P1000_P1000XWJJ7_P1000CPWJJ5_P1000XXJK5_P1000XWJJ7_XW_CPW.zip.enc
Get the decoder util from: http://db.tt/i0yM0Py
Copy it into the same folder as the .enc file, and from a windows commandline, in that folder, run:
Decodertest.exe GT-P1000_P1000XWJJ7_P1000CPWJJ5_P1000XXJK5_P1000XWJJ7_XW_CPW.zip.enc 7161632
Click to expand...
Click to collapse
(Remove the space before _XW that the forum is putting in for some reason)
See: http://forum.xda-developers.com/showthread.php?t=838961 for more info.
I'd recommend against flashing .RFS files from this archive unless your tab is orginally an unlocked model from the UK. Flashing the entire .tar from Odin will almost certainly freeze unless you're running an original untouched CPW firmware. (You can check this with the Check FUS tool from the market).
Cool to know, thanks. I've wanted to reinstall Nova HD since I upgraded first, but didn't know where it could be found, and Samsung don't offer a way to reinstall it.
Hell, if it was on the Market I'd just buy it again, but that option isn't available - and I won't use Gameloft's horrendous broken process to buy it either.
Sent from my GT-P1000 using XDA App
Tried it but RSF folder is empty or it looks like its just loading,
Sent from my GT-P1000 using Tapatalk
antz88c said:
Tried it but RSF folder is empty or it looks like its just loading,
Click to expand...
Click to collapse
You've missed something then as I used those exact steps and it works fine. And what do you mean "loading"!?
knightnz said:
You've missed something then as I used those exact steps and it works fine. And what do you mean "loading"!?
Click to expand...
Click to collapse
The RFS folder is empty, and there's the round loading icon (lower right of Finder), seems its trying to load the contents but it wont
Sent from my GT-P1000 using Tapatalk
antz88c said:
The RFS folder is empty, and there's the round loading icon (lower right of Finder), seems its trying to load the contents but it wont
Click to expand...
Click to collapse
What was the output of the various commands?
Which RFS file(s) are you trying to mount, and from where?
What version of OS X are you running?
hidden.rfs from JM6, running 10.6.5.
Nothing peculiar with the terminal outputs.
Sent from my GT-P1000 using Tapatalk
antz88c said:
hidden.rfs from JM6, running 10.6.5.
Nothing peculiar with the terminal outputs.
Click to expand...
Click to collapse
How big is the JM6 hidden.rfs? The one from the CPW ROM is over 200MB.
About the same.
Your original post didnt say what hidden.rfs to use, so since im on JM6, thought i'd mount the one from JM6, but should still mount right?
Maybe will try the hidden.rfs from JK2.
Sent from my GT-P1000 using Tapatalk
antz88c said:
About the same.
Your original post didnt say what hidden.rfs to use, so since im on JM6, thought i'd mount the one from JM6, but should still mount right?
Maybe will try the hidden.rfs from JK2.
Click to expand...
Click to collapse
Doesn't matter what .RFS file it is, the instructions should mount ANY valid .RFS file.
you can find something interesting like Nova in the XWJJ3 firmware (hidden.rfs).
I had to mount in ubuntu with loop, because on Mac os I couldent see the content of the mounted volume, once I clicked on it the mouse pointer changed to loading and stucks!
knightnz said:
In case anyone wants to mount one of the .RFS files out of a firmware image (in particular, the "hidden.rfs" which contains the full version of NovaHD) from within OS X, you can do so via these commands;
sudo mkdir /Volumes/RFS
sudo hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount filename.rfs
Take note of the drive number the command returns, then,
sudo mount_msdos /dev/diskX /Volumes/RFS (replace X with the appropriate number).
You then have the RFS file mounted & available to copy files from.
Click to expand...
Click to collapse
Works nicely, thanks !
I've been searching for this thread like mad Thanks!

Root through osx help

Hi I just picked up a T-Mobile galaxy s4 and I've been trying to root it through osx. I've only rooted my phones through windows 7 so if anyone can help me, I would appreciate it. We can do it through team viewer if you want.
Thanks
Sent from my HTC One using Tapatalk 2
Optimusg2x said:
Hi I just picked up a T-Mobile galaxy s4 and I've been trying to root it through osx. I've only rooted my phones through windows 7 so if anyone can help me, I would appreciate it. We can do it through team viewer if you want.
Thanks
Sent from my HTC One using Tapatalk 2
Click to expand...
Click to collapse
Search heimdall.
KillaHurtz said:
Search heimdall.
Click to expand...
Click to collapse
I tried that but it only gives me an error and all of the fixes won't work but thanks.
Sent from my HTC One using Tapatalk 2
To try and help, Optimusg2x is right. On OS X, the only easy way I've found is to use Heimdall 1.4, which is the Odin equivalent on OS X. I rooted my S4 near its release date using Heimdall and by following ChainFire's CF-Auto-Root instructions. I'd like to disclose that I did this a very long time ago and I'm telling you this from memory because I'd like to help you, so anyone else that sees something wrong with my instructions, please correct me.
First download the package from his thread, and unzip it so you get:
Code:
CF-Auto-Root-jfltetmo-jfltetmo-sghm919.tar.md5 <-- remove the .md5 extension
Odin3-v1.85.exe
Odin3.ini
Remove the .md5 extension to make it a .tar file and extract the files from that, which should be:
Code:
cache.img.ext4
recovery.img
These are the files that you'll be using Heimdall to flash. There is a new version of Heimdall that came out recently, v1.4.0, in June, however when I rooted I used a release client v1.4rc1, which I should have uploaded in this post. Download and extract that, or use the official v1.4.0 (if you're running Mountain Lion) I only have instructions for the way I did it which was to use the command line to root.
At this point, put "heimdall", cache.img.ext4, recovery.img in a location you know how to get to, such as your desktop. Then place your phone into download mode
Open terminal on your mac
go to where you extracted the HEIMDALL contents, so say "cd ~/Desktop/" or wherever you extracted it to
To make sure you're in the right directory say "ls" and see if "heimdall gets listed"
if so, say "sudo ./heimdall flash --recovery ~/Desktop/recovery.img --cache ~/Desktop/cache.img.ext4" (Saying sudo may be unnecessary, but its a good precaution)
Wait a bit and let your phone reboot and you should now be rooted!

[Q] How to root SM-T113 ?

Hello, i have one question.
I have a Samsung Galaxy Tab 3 7.0 ( SM-T113 ) i can't find any rom and root package for my pad.
Maybe someone can help me?
I support this request. The T113 is a new device. I was thinking of getting me a cheap t110, but the t113 is also cheap. If it would be possible to root this I would take it.
Rooting SM-T113
Hello everybody
I struggled to root my Samsung Galaxy Tab 3 Lite
(SM-T113). So I decided to shared my experience and writing this tuto.
Of course, this is "a non standart" device, and elements for rooting
SM-T110 or SM-T210 didn't work. Android version of this device is 4.4.4
Methodology and tries :
I have proccured myself the Samsung official firmware (here). This image
allow me to get back during beetwen the experimentations. I tried several
experimentation and restore the device after each fail.
Installing with Odin the Clockworkmod (CWM) for SM-T110 , for SM-T210, and
SM-T211. (Has preconnised here) Each time, when loading the CWM, I got a little
(1 ascii character) exclamation mark at the top-left of the screen. The device
didn't boot on recovery
Installing with Odin the (TWRP) for SM-T110. Same symptom
Installing philz_touch : against the message with only the red exclamation
mark.
I conclude of checked of some signature before executing recovery.
Using Kingo root application : software try to root during 20 minutes and
finaly fail.
Using Towel root application : The device isn't reconized
Conclusion: Security breach for rooting have been fixed in this version of android
I have downloaded UPDATE-SuperSU-v2.46 for android. The idea is to push this
application by the standart android update way. (native recovery).
Sending the zip archive 'as is' => failure to check the whole archive
Re-sign the archive with the autosign tools => failure to check footer of archive
Rewriting the update-script (see here) and (here) and auto-sign the archive
: failure to check footer
I am procured myself some pre-rooted image. Odin fail to import them. (and I
have no succed to use heimdall for linux on my debian)
I have try to improve the official samsung Image by adding root manually , using
simg2img and make_ext4fs. Odin fail at the same point
It's remaining me two way : Or I try to generated a correct update file, or I
try to understood why odin fail to import prerrooted system and my custom
image. I choosed the second option.
The offical update is splited by several blocks, each block having is own
header. A master header provide global information about the image (number of
blocks, size, ...). I have putting some spies in simg2img and
observate the headers of official update and of my custom uptate. Result is
surprising : It is missing 4 bytes by headers. in custom update. According to
samsung orginal update, missing values seem to be constant. I suppose it's a 'magic
number', checked by the device to be sure the 'good' update is applied. So I
modifed this headers in make_ext4fs for adding the missing constants. My custom update is now
accepted by my devices, and I got root (!)
I will now describe how to generate and import this update.
DISCLMAIMER
I or Xda-developers are not responsable of any damage one your device, in particular if you bricked it
You waranty will probably void
Rooting device may lead to some dysfonctionnement, or may open some security breach. You are the only responsable.
1. What do you need :
Your device, and a cable to connect it to your PC
A Windows distribution, with Odin (www (dot) samsungodindownload (dot) com/) and the samsung drivers (www (dot) samsung (dot) com/us/support/owners/product/SM-T110NYKAXAR#")
A Linux distribution, with the appropriate compilation package (build-essential), and with git.
A way to transfers big files beetwen your Linux and your Windows.
The Official samsung update (best-tech-reviews (dot) com/update-sm-t113-t113xxu0aoa4-android-4-4-4-2152 or rapidgator (dot) net/file/7140bfdc421eea86eda5a5cbca00216e)
The UPDATE-SuperSU-v2.46 in zip format (download (dot) chainfire (dot) eu/696/SuperSU/UPDATE-SuperSU-v2.46.zip?retrieve_file=1") (or root program for your android)
Method assume you never installed root on your device
2. Generate the update
Uncompress the Samsung official image.
Code:
unzip image_official.zip
tar -xf image.tar.md5
Uncompress and make_ext4fs and simg2img (here)
Code:
cd ..
git clone https:// github.com/YuLaw/ext4-utils.git
cd ext4_utils
Download and applied the patch (see attachment)
Code:
patch -p1 < ../patch_ext4_utils.diff
Build ext4_utils
Code:
make
Extract the image
Code:
cd ..
unzip DBT-T113XXU0AOA4-20150121104149.zip
tar -xf T113XXU0AOA4_T113OXA0AOA4_HOME.tar.md5
ext4_utils/simg2img system.img system.img.raw
Mount the image
Code:
mkdir mount_point
sudo mount -o loop,rw system.img.raw mount_point
unzip the UPDATE-SuperSU-v2.46
Code:
mkdir UPDATE-SuperSU-v2.46
mv UPDATE-SuperSU-v2.46.zip UPDATE-SuperSU-v2.46/
cd UPDATE-SuperSU-v2.46/
unzip UPDATE-SuperSU-v2.46.zip
cd ..
Now, copy common file and armv7 one the mount_point. If you use an other
device, replace the armv7 repository by the appropriate repository according
to your device processor. You can refer to the
UPDATE-SuperSU-v2.46/com/google/android/update-binary to find them.
Code:
sudo cp UPDATE-SuperSU-v2.46/armv7/{su,supolicy} mount_point/xbin
sudo cp UPDATE-SuperSU-v2.46/armv7/su mount_point/xbin/daemonsu/
sudo cp UPDATE-SuperSU-v2.46/armv7/libsupol.so mount_point/lib
sudo mkdir mount_point/etc/init.d
sudo cp UPDATE-SuperSU-v2.46/common/99SuperSUDaemon mount_point/etc/init.d
sudo cp UPDATE-SuperSU-v2.46/common/Superuser.apk mount_point/app
sudo mv mount_point_app/etc/install-recovery.sh mount_point/etc/install-recovery.bak
sudo cp UPDATE-SuperSU-v2.46/common/install-recovery.sh mount_point/etc
sudo chmod 0755 mount_point/xbin/daemonsu
sudo chmod 06755 mount_point/xbin/su
sudo chmod 0755 mount_point/xbin/supolicy
sudo chmod 0644 mount_point/lib/libsupol.so
sudo chmod 0755 mount_point/etc/install-recovery.sh
sudo chmod 0744 mount_point/etc/init.d/99SuperSUDaemon
sudo chmod 0644 mount_point/app/Superuser.apk
We will regenerate the file system. Do not umount them. If patch on
ext4_utils is not applied, you shall applied it now.
Code:
mkdir output
sudo ext4_utils/make_ext4fs -s -a system -l 1500M output/system.img mount_point
cd output
tar -cf system.img system.img.tar
md5sum -t system.img.tar >> system.img.tar
mv system.img.tar system.img.tar.md5
You can now transfert this file to your windows operating system.
3. Android prepartion
You must ensure your device is allowed to install apk from untrusted source. See
in option/application or in developper menu option
Connect the android to you pc.
Boot your android device into downloading mode. On SM-T113 Samsung galaxy Tab3 lite,
press power, volume down and pad when booting.
Run odin, ensure Repartion is NOT checked, and select the AP (PDA) button. (The
only checked case is autoreboot and F.Reset time) Load the previously generated
file and click start.
Your android device may now reboot and install the root application.
Congratulation, you have now rooted your device. You can clean up the downloaded files.
4. One of these step fail, what I can do to come back. :crying:
You may import with odin the official samsung firmware or proceed to a factory return from the recovery.
5. May I eat my devices if I can't root it ?
Samsung user manual say to not do it.
samsung tab 3 sm-t113 root
Thank for the update about for the root. But I don't have Linux and I don't know how to use Linux too. It's there a way without Linux
If you don't have linux, you can try using Cygwin. This is a linux like environment running on Windows.
or if you find my solution is too complicated, I do it for you.
Warning: before following the next step, ensure your device is Samsung Galaxy Tab 3 Lite SM-T113
Simply download the file :
https://drive.google.com/file/d/0Bwao3SgtdOPPYm9XNF8wQXEyWjg/view?usp=sharing
unzip file and upload it to you device with Odin
Nb: This file will remain on my google drive until I need space or until I decide to remove it. (in a long time)
grizzlyfute said:
If you don't have linux, you can try using Cygwin. This is a linux like environment running on Windows.
or if you find my solution is too complicated, I do it for you.
Warning: before following the next step, ensure your device is Samsung Galaxy Tab 3 Lite SM-T113
Simply download the file :
unzip file and upload it to you device with Odin
Nb: This file will remain on my google drive until I need space or until I decide to remove it. (in a long time)
Click to expand...
Click to collapse
Thank you for your great work!!
Do you think the package will work also with Tab3 lite SM-T116? (Sm-t116 should have only the 3g module more than sm-t113)
Root Worked
Thanks for the your great effort grizzlyfute.
Worked perfectly and finally got my device rooted
beodev said:
Do you think the package will work also with Tab3 lite SM-T116? (Sm-t116 should have only the 3g module more than sm-t113)
Click to expand...
Click to collapse
No. Package will erase the system partition, including configuration file (/system/etc), and probably some drivers. Importing the SM-T113 package will probably put the 3G module out of service.
I suggest you to procure an 'official firmware' for your device (see in Settings/about for the exact version) and follow procedure in post#3.
grizzlyfute said:
No. Package will erase the system partition, including configuration file (/system/etc), and probably some drivers. Importing the SM-T113 package will probably put the 3G module out of service.
I suggest you to procure an 'official firmware' for your device (see in Settings/about for the exact version) and follow procedure in post#3.
Click to expand...
Click to collapse
I tried to follow your linux-instructions (by using cygwin, with an official sm-t116 firmware), but something go wrong (i think cygwin doesn't know batch commands like "sudo", or "su" etc..).
I put your md5 file to my sm-t116: the results is that the device is rooted, but no network connection works (Wi-Fi too) .
I jump back to the original firmware, maybe in the future someone will develop the firmware for the sm-t116 version.
Thank you for the Help
Thanks buddy! It works! :good:
Just got my t113 today and now rooted. Awesome!
Light at end of tunnel
grizzlyfute said:
...
Warning: before following the next step, ensure your device is Samsung Galaxy Tab 3 Lite SM-T113
Simply download the file :
https://drive.google.com/file/d/0Bwao3SgtdOPPYm9XNF8wQXEyWjg/view?usp=sharing
unzip file and upload it to you device with Odin
...
Click to expand...
Click to collapse
FABULOUS!!! And thank you! And have i said fabulous? And thank you??? And this, only for giving me rooting hope!
I am a proud user of a gt-i9100 for a few years, rooted/unlocked/custom rom(ehndroix), so, all the 9 miles, but, that´s the phone... And since i am not very proficient when it comes to using odin, and if you don´t write all the steps, i am like a fish out of water (can´t breathe or swim) and i am afraid to do some wrong step.
So, when you say upload it to your device, which will be the parameters in ODIN?
Edit: I confirm, it works, i was afraid of doing something wrong and brick the thingy, but its working fine, thanks to odin and pda and this developpers work!:victory:
!! Thanks !!
I followed these instructions step-by-step on my SM-T113, but for some reason the device would always fail to receive the image I'd built (Odin would just sit there saying NAND Write Start! for a while, then fail. So I tried downloading your precompiled version... and what do you know, it worked straight away.
Thanks a ton, HUGE help!
(q)how to root tab sm-t116nu ?
please help me
cjmac said:
I followed these instructions step-by-step on my SM-T113, but for some reason the device would always fail to receive the image I'd built (Odin would just sit there saying NAND Write Start! for a while, then fail. So I tried downloading your precompiled version... and what do you know, it worked straight away.
Thanks a ton, HUGE help!
Click to expand...
Click to collapse
Sorry for the delay.
I encountered the same problems before I make the patch. Cause of the problem is the file generated by ext4_utils tools is not immediately compatible with the sm-t113 device. I have to add constants in the encapsulation headers for the device to accept the file. You can see details in the patch provided.
To determine theses constants, I put some spies in simg2img and extracts the official firmware. It is not exclude these values change in function of the device.
For the sm-t116, I suggest to open an other thread. I think the works can be picked up and adapted.
wifi issues?
Thanks for your work!
I have successfully rooted my tablet, but its now not connecting to a weak wifi signal it was previuosly connecting to. In fact, it previuosly rratd the same signal as "fair".
Is this connected in any way to the rooting package, and can be resolved somehow?
Hello, thanks for your help! now, i have my Samsung SM-T113 rooted.
but, there any way to put the cmw?
I want to make a backup image and not as .... thanks
Anyone know if this way working in model SM-T113NU ?
Samsung official image ?
grizzlyfute said:
2. Generate the update
Uncompress the Samsung official image.
Click to expand...
Click to collapse
I don't understand what is the "Samsung official image" :
i don't see it neither in the 1. What do you need : list , nor in attached files
I thought it could be "The Official samsung update ", but its name is not "image_official.zip" I see in the first line of code, and moreover I see "unzip DBT-T113XXU0AOA4-20150121104149.zip" in the following lines.
any chance to make more easy the way to get root? btw I have the variant SM-T133NU 4.4.4 KK please!
Minimalistk0 said:
any chance to make more easy the way to get root? btw I have the variant SM-T133NU 4.4.4 KK please!
Click to expand...
Click to collapse
I second that! Rooted custom rom highly appreciated! I'd even pay some bucks

Heimdall with Samsung Galaxy SM-T555 PIT Error

I'm trying to flash stock ROM on my Galaxy Tab A with Heimdall 1.4.0 (Odin doesn't work - see thread https://forum.xda-developers.com/galaxy-tab-s/help/samsung-t550-galaxy-tab-unlock-t3665660)
The first part of Heimdall (as far as I can tell) is to install drivers and then download the PIT file. The drivers have installed without issue but when I try and download the PIT file i get the error below. I have read similar issues online and they suggest using a newer, unreleased version 1.4.2 of Heimdall and something about a the latest commits and master? I'm totally lost with this!! I'm not sure if this will work so I'm open to any ideas... and some guidance
Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...
Initialising protocol...
Protocol initialisation successful.
Beginning session...
Some devices may take up to 2 minutes to respond.
Please be patient!
Session begun.
Downloading device's PIT file...
ERROR: Failed to send request to end PIT file transfer!
ERROR: Failed to download PIT file!
Ending session...
ERROR: Failed to send end session packet!
Releasing device interface...
jimmisavage said:
I'm trying to flash stock ROM on my Galaxy Tab A with Heimdall 1.4.0 (Odin doesn't work - see thread https://forum.xda-developers.com/galaxy-tab-s/help/samsung-t550-galaxy-tab-unlock-t3665660)
The first part of Heimdall (as far as I can tell) is to install drivers and then download the PIT file. The drivers have installed without issue but when I try and download the PIT file i get the error below. I have read similar issues online and they suggest using a newer, unreleased version 1.4.2 of Heimdall and something about a the latest commits and master? I'm totally lost with this!! I'm not sure if this will work so I'm open to any ideas... and some guidance
Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...
Initialising protocol...
Protocol initialisation successful.
Beginning session...
Some devices may take up to 2 minutes to respond.
Please be patient!
Session begun.
Downloading device's PIT file...
ERROR: Failed to send request to end PIT file transfer!
ERROR: Failed to download PIT file!
Ending session...
ERROR: Failed to send end session packet!
Releasing device interface...
Click to expand...
Click to collapse
Are you using Heimdall on a native Linux machine or Windows?
You need a native Linux PC and the command line version of Heimdall.
ashyx said:
Are you using Heimdall on a native Linux machine or Windows?
You need a native Linux PC and the command line version of Heimdall.
Click to expand...
Click to collapse
Oh I'm using Windows 10. I don't have access to a Linux PC... Where does that leave me? Totally flummuxed?
jimmisavage said:
Oh I'm using Windows 10. I don't have access to a Linux PC... Where does that leave me? Totally flummuxed?
Click to expand...
Click to collapse
Unless you can dual boot a Linux distro with W10 or download one of the Live Bootable from disk Linux distros. There's plenty about.
https://help.ubuntu.com/community/LiveCD
Finding time to try this is proving troublesome. What are the chances this will actually work (more than Odin)?
I'm just trying to work out if it's actually worth the time/hassle?
Hi,
I finally managed to find some time and i'm currently on a lunix machine (from usb boot).
Now, do i need a 'Heimdall Firmware Package' or do i use the Samsung firmware for the SM-T555 you posted before?
jimmisavage said:
Hi,
I finally managed to find some time and i'm currently on a lunix machine (from usb boot).
Now, do i need a 'Heimdall Firmware Package' or do i use the Samsung firmware for the SM-T555 you posted before?
Click to expand...
Click to collapse
Just flash the stock firmware.
Okay, I had a nightmare on this last night.
I was using Ubuntu 14.04 but when i opened a terminal and typed 'heidmall-frontend' it would tell me that it wasn't installed and to try (something like) 'sudo apt install heimdall-flash-frontend' but then it would tell me that it doesn't exist.
What version/build of Linux should i be using (as a USB boot) and how do i install heimdall frontend?
Also, when reading instructions on flashing a rom they all say to use a heimdall firmware but you're saying i can use the stock firmware? How would i install that? Will heimdall recognise the .zip file?
Thanks again, i know i'm being a pain but i was up until 1am last night (waiting for the longest firmware download ever!!) trying to flash this!
jimmisavage said:
Okay, I had a nightmare on this last night.
I was using Ubuntu 14.04 but when i opened a terminal and typed 'heidmall-frontend' it would tell me that it wasn't installed and to try (something like) 'sudo apt install heimdall-flash-frontend' but then it would tell me that it doesn't exist.
What version/build of Linux should i be using (as a USB boot) and how do i install heimdall frontend?
Also, when reading instructions on flashing a rom they all say to use a heimdall firmware but you're saying i can use the stock firmware? How would i install that? Will heimdall recognise the .zip file?
Thanks again, i know i'm being a pain but i was up until 1am last night (waiting for the longest firmware download ever!!) trying to flash this!
Click to expand...
Click to collapse
Don't try and use a fronted. Use the command line. There is no such thing as Heimdall Firmware as far as I'm aware.
Heimdall flashes images which can be extracted from the stock firmware.
If you search Google for Heimdall flash commands you will find the correct syntax required to flash images.
Thanks for that.
I'm not at home to try right now, but i want to be as sure as possible i'm getting this right. I'm going to...
1. Download this firmware for my SM-T555 model tablet: http://updato.com/firmware-archive-select-model?record=3EFD4C401EE211E7963AFA163EE8F90B (which is a .zip file)
2. Put my tablet into download mode and connect to my linux machine
3. Open a terminal (how do i open as admin?) and according to a Google search, type 'heimdall flash --RECOVERY filename.img' (replacing filename.img with the stock firmware)... only my downloaded firmware is .zip rather than .img ???? https://davideddu.org/blog/posts/how-to-flash-a-recovery-image-using-heimdall/
Do i unzip the firmware file i've downloaded? I've tried to do that in linux but it failed, maybe i need to unzip in windows?
jimmisavage said:
Thanks for that.
I'm not at home to try right now, but i want to be as sure as possible i'm getting this right. I'm going to...
1. Download this firmware for my SM-T555 model tablet: http://updato.com/firmware-archive-select-model?record=3EFD4C401EE211E7963AFA163EE8F90B (which is a .zip file)
2. Put my tablet into download mode and connect to my linux machine
3. Open a terminal (how do i open as admin?) and according to a Google search, type 'heimdall flash --RECOVERY filename.img' (replacing filename.img with the stock firmware)... only my downloaded firmware is .zip rather than .img ???? https://davideddu.org/blog/posts/how-to-flash-a-recovery-image-using-heimdall/
Do i unzip the firmware file i've downloaded? I've tried to do that in linux but it failed, maybe i need to unzip in windows?
Click to expand...
Click to collapse
That's more or less correct. You should be able to extract the image from the zip using the stock utility in Linux. Ensure md5 is changed to tar.
If not then Peazip for Linux or 7zip for Windows.
Thanks again! I'll have one more go at this tonight... if it doesn't work then it's going in the bin and I can go back to living my life
Whilst in work i decided to download the firmware again and see if i could extract the image from the zip.
I have successfully completed that. It's currently named 'T555XXS1BPL4_T555BTU1BPE2_T555XXU1BPD7_HOME.tar.md5'. Do i simply delete the .md5 on the end to leave the .tar or is there something more complicated than that? Shouldn't it be a .img or am i just being overly concerned about details?
My head is going to explode!
1. Download this firmware for my SM-T555 model tablet: http://updato.com/firmware-archive-s...3AFA163EE8F90B (which is a .zip file)
2. Put my tablet into download mode and connect to my linux machine
3. Open a terminal (how do i open as admin?) and according to a Google search, type 'heimdall flash --RECOVERY filename.img' (replacing filename.img with the stock firmware) WHEN I DO THIS I GET A MESSAGE SAYING HEIMDALL IS NOT INSTALLED. HOW DO I INSTALL IT?
jimmisavage said:
My head is going to explode!
1. Download this firmware for my SM-T555 model tablet: http://updato.com/firmware-archive-s...3AFA163EE8F90B (which is a .zip file)
2. Put my tablet into download mode and connect to my linux machine
3. Open a terminal (how do i open as admin?) and according to a Google search, type 'heimdall flash --RECOVERY filename.img' (replacing filename.img with the stock firmware) WHEN I DO THIS I GET A MESSAGE SAYING HEIMDALL IS NOT INSTALLED. HOW DO I INSTALL IT?
Click to expand...
Click to collapse
It seems you are making this more complicated than it needs to be. Admin is the root user on a Linux system.
The instructions at the link below pretty much explain what you need to do.
http://www.dudleymediagroup.com/Detail/id/installing-using-heimdall-on-with-linux-3547
It seems i'm using Ubunto 16.04 and I cannot see a heimdall version for that? I guess I need to try Ubuntu 13.04?
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
jimmisavage said:
It seems i'm using Ubunto 16.04 and I cannot see a heimdall version for that? I guess I need to try Ubuntu 13.04?
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
Click to expand...
Click to collapse
I should think you'll be fine with 16.04 or 14.04
ashyx said:
I should think you'll be fine with 16.04 or 14.04
Click to expand...
Click to collapse
I don't see 16.04 or 14.04 in the download options though. Only 13.04 or 12.10.
What am I missing here? If I download ubuntu13.04-heimdall_1.4.0-0_amd64.deb and click install nothing seems to happen. The same goes for ubuntu12.10-heimdall_1.4.0-0_amd64.deb (I'm running Ubuntu 16.04 Live x64 from a USB drive).
jimmisavage said:
I don't see 16.04 or 14.04 in the download options though. Only 13.04 or 12.10.
What am I missing here? If I download ubuntu13.04-heimdall_1.4.0-0_amd64.deb and click install nothing seems to happen. The same goes for ubuntu12.10-heimdall_1.4.0-0_amd64.deb (I'm running Ubuntu 16.04 Live x64 from a USB drive).
Click to expand...
Click to collapse
From the directory where it is located try:
sudo dpkg -i ubuntu13.04-heimdall_1.4.0-0_amd64.deb
Got heimdall installed but i cannot flash anything.
Time to give up. Thanks for all the help

How to go back to official firmware

Hii. I am ankit.
I have downloaded custom rom and twrp recovery.
Now i want to get back to stock rom and stock recovery in my phone.
And also wants to use official updates of phone's software.
Can anyone help?
1.Download the odin
2.Download rome orginal a50
Windows
The easiest way for Windows is to just use Odin. This is a nice tutorial on how to restore to stock with it.
Linux
If you use Linux and don't want to bother with trying to use something like Wine to run Odin, the following steps are for you.
Get the firmware
You can use something like updato.com, but from my experience it failed 2 separate 4 hour downloads, and the download speeds are abysmal, so I can't recommend.
I use samloader, the only caveat with it is that you can only get the latest firmware for a region (because Samsung only saves the latest one), you'll need to use something else for older versions.
1.1 Install samloader, following their instructions
1.2 Get your Model number, it should look something similar to GT-I8190N, if you don't know it, here is a link on how to find it (it's made for stock firmware, but it should still point you in the right direction)
1.3 Get your region (you might be able to install from any region, but I think it's safest if it's the region from which the phone is bought), here you can find a good list of available regions
1.4 Check the latest firmware version available. Use the following command, and replace the model and region with your values
Code:
$ samloader -m GT-I8190N -r BTU checkupdate
The output should be something like this:
Code:
I8190NXXAMJ2/I8190NBTUAMJ1/I8190NXXAMJ2/I8190NXXAMJ2
1.5 Download the firmware, whose name you got from step 1.4. Use the following command, again replacing the values with your own
Code:
$ samloader -m GT-I8190N -r BTU download -v I8190NXXAMJ2/I8190NBTUAMJ1/I8190NXXAMJ2/I8190NXXAMJ2 -O .
After it has finished downloading, the output should look something like this:
Code:
downloading GT-I8190N_BTU_1_20131118100230_9ae3yzkqmu_fac.zip.enc2
[################################] 10570/10570 - 00:02:02
1.6 Final step is to decrypt the downloaded firmware. To do so, use the following command, while again, changing your values. Important: after the -V, you put in a number, that number is dependent on the file you downloaded from step 1.5. If the file ends with .enc4, replace the number 2 with the number 4, if it ends with .enc2, leave it at 2.
Code:
$ samloader -m GT-I8190N -r BTU decrypt -v I8190NXXAMJ2/I8190NBTUAMJ1/I8190NXXAMJ2/I8190NXXAMJ2 -V 2 -i GT-I8190N_BTU_1_20131118100230_9ae3yzkqmu_fac.zip.enc2 -o GT-I8190N_BTU_1_20131118100230_9ae3yzkqmu_fac.zip
Unzip the firmware archive. You should do so in a new folder, as a lot of files will be extracted.
Code:
unzip GT-I8190N_BTU_1_20131118100230_9ae3yzkqmu_fac.zip
Extract the files from the files, you got in step 2 (yeah, there are archived files inside an archive). The following command does just that, you can simply copy-paste it
Code:
for file in *.tar.md5; do tar -xvf $file done
Finally, flash all of the resulting .img and .bin files. On how to find which file goes where, use these instructions. If you use Heimdall for flashing, in that link you can also instructions for it.
Syndamia said:
Windows
The easiest way for Windows is to just use Odin. This is a nice tutorial on how to restore to stock with it.
Linux
If you use Linux and don't want to bother with trying to use something like Wine to run Odin, the following steps are for you.
Get the firmware
You can use something like updato.com, but from my experience it failed 2 separate 4 hour downloads, and the download speeds are abysmal, so I can't recommend.
I use samloader, the only caveat with it is that you can only get the latest firmware for a region (because Samsung only saves the latest one), you'll need to use something else for older versions.
1.1 Install samloader, following their instructions
1.2 Get your Model number, it should look something similar to GT-I8190N, if you don't know it, here is a link on how to find it (it's made for stock firmware, but it should still point you in the right direction)
1.3 Get your region (you might be able to install from any region, but I think it's safest if it's the region from which the phone is bought), here you can find a good list of available regions
1.4 Check the latest firmware version available. Use the following command, and replace the model and region with your values
Code:
$ samloader -m GT-I8190N -r BTU checkupdate
The output should be something like this:
Code:
I8190NXXAMJ2/I8190NBTUAMJ1/I8190NXXAMJ2/I8190NXXAMJ2
1.5 Download the firmware, whose name you got from step 1.4. Use the following command, again replacing the values with your own
Code:
$ samloader -m GT-I8190N -r BTU download -v I8190NXXAMJ2/I8190NBTUAMJ1/I8190NXXAMJ2/I8190NXXAMJ2 -O .
After it has finished downloading, the output should look something like this:
Code:
downloading GT-I8190N_BTU_1_20131118100230_9ae3yzkqmu_fac.zip.enc2
[################################] 10570/10570 - 00:02:02
1.6 Final step is to decrypt the downloaded firmware. To do so, use the following command, while again, changing your values. Important: after the -V, you put in a number, that number is dependent on the file you downloaded from step 1.5. If the file ends with .enc4, replace the number 2 with the number 4, if it ends with .enc2, leave it at 2.
Code:
$ samloader -m GT-I8190N -r BTU decrypt -v I8190NXXAMJ2/I8190NBTUAMJ1/I8190NXXAMJ2/I8190NXXAMJ2 -V 2 -i GT-I8190N_BTU_1_20131118100230_9ae3yzkqmu_fac.zip.enc2 -o GT-I8190N_BTU_1_20131118100230_9ae3yzkqmu_fac.zip
Unzip the firmware archive. You should do so in a new folder, as a lot of files will be extracted.
Code:
unzip GT-I8190N_BTU_1_20131118100230_9ae3yzkqmu_fac.zip
Extract the files from the files, you got in step 2 (yeah, there are archived files inside an archive). The following command does just that, you can simply copy-paste it
Code:
for file in *.tar.md5; do tar -xvf $file done
Finally, flash all of the resulting .img and .bin files. On how to find which file goes where, use these instructions. If you use Heimdall for flashing, in that link you can also instructions for it.
Click to expand...
Click to collapse
Sorry sir but I don't know how to use linux.
Could you tell me easy way.
_Ankit_Chahar said:
Sorry sir but I don't know how to use linux.
Could you tell me easy way.
Click to expand...
Click to collapse
Do you have a Windows PC if so download latest Odin an latest firmware file for your phone also download Samsung USB Drives install USB Drives on you PC extract Odin an extract file's from firmware zip place file's in Odin folder start Odin click on where it says AP in Odin the file will pop up click on AP file an repeat for BL ,CP, an CSC files an click on start . Should be all good .
_Ankit_Chahar said:
Sorry sir but I don't know how to use linux.
Could you tell me easy way.
Click to expand...
Click to collapse
https://forum.xda-developers.com/t/guide-how-to-downgrade-to-android-9.4096323/ Same procedure, just use newest Android version.
Watch this video How to Flash Samsung Galaxy ROM ( Firmware ) with ODIN
Hey there. I'm also having kinda same problem. I recently upgraded my Galaxy A50 to latest January 2021 updates but after that my touch is not working. I tried to install old firmware : 'A505FDDU5BTF1 INS' which helps me to fix the problem in past but now I can't install it. I tried it with odin many times but it keeps saying "SW REV. CHECK FAIL (BOOTLOADER) DEVICE 6, BINARY 5" something like that. Can anyone help me out here???
Details of my Galaxy A50 :
Model number : SM-A505F/DS
Serial number RZ8M51R73AE
One UI version 2.5
Android version 10
Baseband version A505FXXS6BUA6
AP : A505FDDS6BUA6
CP : A505FXXS6BUA6
CSC : A505FOLM6BUA6
Model : SM-A505F/DS
Please inform me if anyone can on [email protected]
Any help will be really appreciated. Thank you in advance.
SudanTmz said:
Hey there. I'm also having kinda same problem. I recently upgraded my Galaxy A50 to latest January 2021 updates but after that my touch is not working. I tried to install old firmware : 'A505FDDU5BTF1 INS' which helps me to fix the problem in past but now I can't install it. I tried it with odin many times but it keeps saying "SW REV. CHECK FAIL (BOOTLOADER) DEVICE 6, BINARY 5" something like that. Can anyone help me out here???
Details of my Galaxy A50 :
Model number : SM-A505F/DS
Serial number RZ8M51R73AE
One UI version 2.5
Android version 10
Baseband version A505FXXS6BUA6
AP : A505FDDS6BUA6
CP : A505FXXS6BUA6
CSC : A505FOLM6BUA6
Model : SM-A505F/DS
Please inform me if anyone can on [email protected]
Any help will be really appreciated. Thank you in advance.
Click to expand...
Click to collapse
Make u sure to use Binary 6 rom, U cannot flash binary 5 rom... thats why it didnt work. u wanted to use binary 5 rom
peter couniaz said:
Do you have a Windows PC if so download latest Odin an latest firmware file for your phone also download Samsung USB Drives install USB Drives on you PC extract Odin an extract file's from firmware zip place file's in Odin folder start Odin click on where it says AP in Odin the file will pop up click on AP file an repeat for BL ,CP, an CSC files an click on start . Should be all good .
Click to expand...
Click to collapse
After that could I use knox services like secure folder etc.
_Ankit_Chahar said:
After that could I use knox services like secure folder etc.
Click to expand...
Click to collapse
Yes you should be able to use secure folder after going back to official firmware .
kisvagen said:
Make u sure to use Binary 6 rom, U cannot flash binary 5 rom... thats why it didnt work. u wanted to use binary 5 rom
Click to expand...
Click to collapse
And if for example, I want to go back to Android 9, which is binary 5 and my A50 is Android 11, binary 7, is there any way I can ignore the binary or something?

Categories

Resources