[Q] UNroot GT2 p5113 with heimdall - Galaxy Tab 2 Q&A, Help & Troubleshooting

I've been trying to unroot my Galaxy Tab 2 10.1 p5113 and go back to stock for the last few days with no success. I have only Linux machines in my house, so I've been trying with heimdall. From the output I get, it seems as it is succesful, but It still has root. After days of reading, this is what I've narrowed it down to.
I downloaded this file.
P5113UECLK7_P5113XARCLK7_XAR.zip
Which is supposed to be the stock firmware.
I extracted it, then got these 2 files.
SS_DL.dll
P5113UECLK7_HOME.tar.md5
Then I removed the md5 file extension and left it with just .tar and extracted that file. I got these files:
recovery.img
boot.img
system.img
hidden.img
cache.img
Sbl.bin
So I put the tablet in download mode and connect it to the Linux machine and this is my output from terminal
[email protected] ~/Downloads/P5113UEBLG2_P5113XARBLG2_XAR/P5113UEBLG2_HOME $ heimdall detect
Device detected
[email protected] ~/Downloads/P5113UEBLG2_P5113XARBLG2_XAR/P5113UEBLG2_HOME $ sudo heimdall flash --RECOVERY recovery.img
Heimdall v1.4.0
Copyright (c) 2010-2013, 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...
Attempt failed. Detaching driver...
Claiming interface again...
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...
PIT file download successful.
Uploading RECOVERY
100%
RECOVERY upload successful
Ending session...
Rebooting device...
Releasing device interface...
Re-attaching kernel driver...
Then it reboots like normal and I still have root.
I aslo tried transferring the .zip file to the SDCARD and tried to flash from recovery, but I get an error doing that.
Also I saw another way was to download Root_Remover.zip and flash that file from recovery, but it looks as if it flashed but when I reboot it still has root.

Can anyone re-host the P5113UECLK7_P5113XARCLK7_XAR anywhere? I've tried ~100 links and the file no longer exists anywhere on the internet. I'd love to try to fix my soft bricked tablet!

You try sammobile? I just looked and it was there, but, I didn't click download as I'm on company phone right now (data watchers)
Sent from my SAMSUNG-SM-G870A using XDA Free mobile app

Related

[Q] please help using heimdall

hello devs i am very much interested in checking out the bhundven's cyanogenmod.the instructions say that i have to use heimdall to flash his kernel-sms-kj6-v0.2.0.right now i am using windows 7 64-bit.when i tried to load the zimage in the heimdall firmware packages it says tar header contains an invalid file size.so i clicked flash tab and i can see a pit file there i tried loading the zimage file again and it says its not a valid pit file.i tried loading zip file also but still dint get it.anybody please please help me i am a noob
saketh91 said:
hello devs i am very much interested in checking out the bhundven's cyanogenmod.the instructions say that i have to use heimdall to flash his kernel-sms-kj6-v0.2.0.right now i am using windows 7 64-bit.when i tried to load the zimage in the heimdall firmware packages it says tar header contains an invalid file size.so i clicked flash tab and i can see a pit file there i tried loading the zimage file again and it says its not a valid pit file.i tried loading zip file also but still dint get it.anybody please please help me i am a noob
Click to expand...
Click to collapse
How exactly did you try to flash it with Heimdall? In his [KERNEL][UVKJ6][BETA3.1] Subtly Modified Stock with CWM5 + Voodoo Lagfix [1/14/2012] thread he has instructions on how to flash the kernel via Heimdall & the command prompt. I have not tried it with this kernel yet, so I'm not 100% that's what you're looking for.
thanks for the kind concern and sorry for the late reply.my problem is that i installed the drivers in heimdall as given in post and then i put my phone my phone to download mode and then when connected to pc heimdall says no device compatible download mode detected i tried reinstalling the drivers,installing kies,restarting laptop and nothing worked for me please help
I just tried this and it works fine. Win7 64bit
I'll post my steps in a minute.
======================================
Install Heimdall - C:\Test\heimdall-suite-1.3.1-win32
Unzip “kernel-sms-kj6-v0.2.0-bml”
Copy "zImage" from \kernel-sms-kj6-v0.2.0-bml\kernel_flasher to C:\Test\heimdall-suite-1.3.1-win32
Put phone in download mode
Install driver “zadig” at “C:\Test\heimdall-suite-1.3.1-win32\Drivers”
Option list all devices – select Samsung and install driver
Open Command prompt “Run as administrator”
cd C:\Test\heimdall-suite-1.3.1-win32
heimdall flash --kernel zImage --recovery zImage
Phone boots with new kernel
so you say you have to copy the zimage file in heimdall suite folder itself?
when i load the file into heimdall firmware package or pit file i get either "tar header contained invalid file size" or "invalid pit file" error message
and also i am sure i installed drivers for my phone in heimdall as stated in the post
but still heimdall is not detecting my phone it says "failed to detect compatible download mode device"
please help me if you know anything abt this
thanks for the reply
Attached are two jpgs, first is device with Hiemdall driver (libusb) and the second is with Samsung driver in device manager screen. To change driver just un-install the device in device manager and then let computer scan for hardware changes, this will get you back to Samsung driver. You must use Heimdall to install driver for libusb. Hope this helps... Are you trying to use the Heimdall frontend? I'm not using frontend just command mode, try it...
actually i used frontend first i found it not detecting my phone and so i used heimdall cmd no luck there too
i tried uninstalling samsung usb drivers from the system and installed it again
today morning i found a samsung composite usb device option list(which i was not getting it before)
so the changes i made is changed the compatibility to windows xp and tried it worked fine but still its not detecting help me please please
this is what it looks like after i install heimdall driver
when i go to cmd go to heimdall and flash kernel image it says device not detected
From off
I press both up volume and down volume together
then connect the usb cable to my phone ("Warning!!" screen displayed)
then press the up volume to get download mode ("Downloading" screen displayed)
I enter at the command prompt: heimdall detect
the system returns: device detected
If heimdall is connecting ok then open the command window in the same folder you have the zImage in.
then at command prompt type: heimdall flash --kernel zImage (hit enter)
it will flash the zImage and reboot.. Done.
Racing19969 said:
If heimdall is connecting ok then open the command window in the same folder you have the zImage in.
then at command prompt type: heimdall flash --kernel zImage (hit enter)
it will flash the zImage and reboot.. Done.
Click to expand...
Click to collapse
Stop racing and smell the roses. The OP has a problem where heimdall does not see his device. Have you seen this type of error? Read the entire thread, maybe. Thanks for the help and look out for that tree!
i hope changing the os to windows xp will help i installed drivers for heimdall as instructed in the forum i followed every step suggested by some other devs but still no luck i dont know wt to do now
You can wait for them to finish CM7. You can make sure you are using the correct Heimdall Suite for your computer. You can look at Juls guide in the general section for additional help with Heimdall.
i will tell wt i did frm the begining
first i already had samsung galaxy s usb drivers installed in my windows 7 with which i used to odin roms into my phone then
and downloaded heimdall 1.3.2(binaries it says) for windows and i changed compatibility of zadig to windows xp and ran as an administrator
now i put my phone in download mode and connected to pc while on zadig
i found samsung composite usb device in the list i selected that & installed drivers (wtever was selected by default) then i disconnected my phone and restarted once and then put it to download mode again
this time i opened heimdall-frontend and in utilities i clicked detect
it said "failed to detect compatible download mode device"
i copied zimage file from bhundven's kernel to heimdall folder
now if i load heimdall firmware package and select zimage file i get an error saying "tar header contained invalid file size"
if i load flash pit file and select zimage file it says "invalid pit file"
so i tried this command in heimdall cmd
"heimdall flash --kernel zImage"
it said device not detected
i dont know wt to do please get me out of this situation and thanks for taking concern and replying me regularly
saketh91 said:
i will tell wt i did frm the begining
first i already had samsung galaxy s usb drivers installed in my windows 7 with which i used to odin roms into my phone then
and downloaded heimdall 1.3.2(binaries it says) for windows and i changed compatibility of zadig to windows xp and ran as an administrator
now i put my phone in download mode and connected to pc while on zadig
i found samsung composite usb device in the list i selected that & installed drivers (wtever was selected by default) then i disconnected my phone and restarted once and then put it to download mode again
this time i opened heimdall-frontend and in utilities i clicked detect
it said "failed to detect compatible download mode device"
i copied zimage file from bhundven's kernel to heimdall folder
now if i load heimdall firmware package and select zimage file i get an error saying "tar header contained invalid file size"
if i load flash pit file and select zimage file it says "invalid pit file"
so i tried this command in heimdall cmd
"heimdall flash --kernel zImage"
it said device not detected
i dont know wt to do please get me out of this situation and thanks for taking concern and replying me regularly
Click to expand...
Click to collapse
If you still have the Samsung USB drivers installed, then I suggest uninstalling them. They don't seem to get along with the Heimdall drivers.
Next, put your phone in download mode & plug it into a USB port on the computer.
Run Zadig again. Try to reinstall the drivers from there if you can.
Run the Heimdall front end. See if it recognizes your phone now. If so, you should be able to open a command prompt and run the command:
Code:
heimdall flash --kernel zImage --recovery zImage
Let us know if it works.
as i stated earlier that i am gonna use windows xp for doing this i shifted to my pc which has windows xp in it.i followed all the instructions and it worked pretty fine in that now i am able to install cm7 but i dont know wt has happened to windows 7 as it dint allow me to properly work with it
anyways thanks to all of you guys for supporting me and for spending your time for me
i defenitely owe you guys thanks a lot
nothing works
odin heimdall whatever u wanna call it doesnt work for bricked infuse i been trying for 3 months like 3 hours a day but its ok im not in the right state of mind im a criminal. i steal others peoples stuff if i got a good oppurtunity and i will never stop not even if im a millionaire. i break random peoples windows with a bb gun. people like these are the ones that encourage me to do these things. all these threads dont work on my infuse so now im going to drive my car and shoot out someones window. this is just me and im me ftw
undetectedcriminal said:
odin heimdall whatever u wanna call it doesnt work for bricked infuse i been trying for 3 months like 3 hours a day but its ok im not in the right state of mind im a criminal. i steal others peoples stuff if i got a good oppurtunity and i will never stop not even if im a millionaire. i break random peoples windows with a bb gun. people like these are the ones that encourage me to do these things. all these threads dont work on my infuse so now im going to drive my car and shoot out someones window. this is just me and im me ftw
Click to expand...
Click to collapse
Old thread is old. Also, this phone is different then infuse. Check the infuse forum for help.
bhundven said:
Old thread is old. Also, this phone is different then infuse. Check the infuse forum for help.
Click to expand...
Click to collapse
Better yet go see a counselor. Will someone report this I'm mobile. Thanks

Problem with Heimdall and linux

I have searched through the forums and Google and I have not found a solution to my problem.
I am running Mandriva Linux 2011 official. I do not have a Windows computer and I do not want one.
I keep getting errors getting Heimdall to communicate with my phone. I am able to transfer files from my phone and see it with my computer with my cable, phone, and computer.
I am able to get into download mode. I get the Warning!! A custom OS can cause problems. Volume up: Continue.Then I get the red "Odin Mode", with the green android and "Downloading... Do not turn off target!!"
When I use lsusb it sees the the Samsung phone. When using heimdall-frontend under Utilities, I click Detect and it says "Device Detected".
Now if I t run it as a user and try to download from the phone I get:
Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...
Checking if protocol is initialised...
Protocol is not initialised.
Initialising protocol...
ERROR: Failed to initialise protocol!
If I try to run it as root I get:
QGtkStyle was unable to detect the current GTK+ theme.
Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
Terminated
If I try to flash I get the same error.
What am I missing?
earthwalker_99 said:
I have searched through the forums and Google and I have not found a solution to my problem.
I am running Mandriva Linux 2011 official. I do not have a Windows computer and I do not want one.
I keep getting errors getting Heimdall to communicate with my phone. I am able to transfer files from my phone and see it with my computer with my cable, phone, and computer.
I am able to get into download mode. I get the Warning!! A custom OS can cause problems. Volume up: Continue.Then I get the red "Odin Mode", with the green android and "Downloading... Do not turn off target!!"
When I use lsusb it sees the the Samsung phone. When using heimdall-frontend under Utilities, I click Detect and it says "Device Detected".
Now if I t run it as a user and try to download from the phone I get:
Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...
Checking if protocol is initialised...
Protocol is not initialised.
Initialising protocol...
ERROR: Failed to initialise protocol!
If I try to run it as root I get:
QGtkStyle was unable to detect the current GTK+ theme.
Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
Terminated
If I try to flash I get the same error.
What am I missing?
Click to expand...
Click to collapse
When you become root you're likely losing access to your display. The app won't run cuz it doesn't know anything about the display or the gnome session or anything.
As the user, echo $DISPLAY to figure out what it should be set to as root. Before you become root make sure to run "xhost +" to allow anyone to access your display. This can be dangerous if you're not behind a firewall, but then the likelyhood of someone taking your display in this day and age is slim to none. Now, become root and set/export the DISPLAY variable to the same variable it was set to for your user.
Now, try running the app again.
Note: this is all trying to get you past the issue with GTK and the display. I've never run the heimdall stuff on linux so I can't help you there
dr4stic said:
When you become root you're likely losing access to your display. The app won't run cuz it doesn't know anything about the display or the gnome session or anything.
As the user, echo $DISPLAY to figure out what it should be set to as root. Before you become root make sure to run "xhost +" to allow anyone to access your display. This can be dangerous if you're not behind a firewall, but then the likelyhood of someone taking your display in this day and age is slim to none. Now, become root and set/export the DISPLAY variable to the same variable it was set to for your user.
Now, try running the app again.
Note: this is all trying to get you past the issue with GTK and the display. I've never run the heimdall stuff on linux so I can't help you there
Click to expand...
Click to collapse
When I ran echo $DISPLAY as a user, the output I got was:
:0.0
So I tried export DISPLAY=127.0.0.1:0.0 then ran xhost + still got the same errors when I tried to run Heimdall as root. I even tried heimdall-frontend -display 127.0.0.1:0.0 and got errors. So I tried my computers name and that did not work.
I decided to try heimdall from the command line. So as root I tried:
heimdall download-pit --output myplaze.pit
Heimdall v1.3.2, Copyright (c) 2010-2012, Benjamin Dobell, Glass Echidna
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:
Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...
Checking if protocol is initialised...
Protocol is not initialised.
Initialising protocol...
ERROR: Failed to initialise protocol!
heimdall detect shows device detected.
Trying running heimdall as user and as root I get the same thing. I have tried from a fresh reboot just incase it was an issue after the laptop went to sleep. Samething. Removed the software and tried older versions, then removed the older versions. Re-installed Heimdall 1.3.2
I powered up my phone with the same computer and usb cord. I can see the device with lsusb and I can mount the phone and mess with my files. I am sure the hardware is all working properly. I am just missing something. From reading through all the stuff I can find it does not seem that people are having this kind of problems. I will try another computer and see if that makes a difference.
I gave up on trying to get it to work and went with creating a script that builds a CWM flashable zip, copies it to the sdcard via adb, and reboots into recovery automatically so I can flash it.
merwin said:
I gave up on trying to get it to work and went with creating a script that builds a CWM flashable zip, copies it to the sdcard via adb, and reboots into recovery automatically so I can flash it.
Click to expand...
Click to collapse
Is there a way I could get you to share that script or point me in the right way to learn how to do this myself? I will be seeing what I can find with Google.
Thanks
Need script for creating CMW files...
earthwalker_99 said:
Is there a way I could get you to share that script or point me in the right way to learn how to do this myself? I will be seeing what I can find with Google.
Thanks
Click to expand...
Click to collapse
Ditto. Heimdall does not like the Galaxy S3 images. Keeps barking about missing XML files. Had to resort to Odin under Gates OS.

[Q] Heimdall claiming interface failed?

GT-P5113
Version 4.1.1
Trying to flash Cyanogenmod through their wiki guide I have a GT-P5113 however I am using their GT-P5110 install guide (since the wiki said it was the same)
I am stuck on step 5.
I ran the cmd prompt from the heimdall folder with recovery.img in it however I get the line,
"ERROR: Claiming interface failed!"
How to fix?
C:\Users\Guest\Downloads\Desktop\heimdall_v1.4rc1_win>heimdall flash --rec
overy recovery.img --no-reboot
Heimdall v1.4 RC2
Copyright (c) 2010-2012, Benjamin Dobell, Glass Echidna
[Website]
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:
[Website]
Initialising connection...
Detecting device...
Claiming interface...
ERROR: Claiming interface failed!
Install the win32 version instead http://cmw.cmfs.me/common/heimdall_v1.4rc1_win32.zip
Good Luck!
doorbolt said:
GT-P5113
Version 4.1.1
Trying to flash Cyanogenmod through their wiki guide I have a GT-P5113 however I am using their GT-P5110 install guide (since the wiki said it was the same)
I am stuck on step 5.
I ran the cmd prompt from the heimdall folder with recovery.img in it however I get the line,
"ERROR: Claiming interface failed!"
How to fix?
C:\Users\Guest\Downloads\Desktop\heimdall_v1.4rc1_win>heimdall flash --rec
overy recovery.img --no-reboot
Heimdall v1.4 RC2
Copyright (c) 2010-2012, Benjamin Dobell, Glass Echidna
[Website]
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:
[Website]
Initialising connection...
Detecting device...
Claiming interface...
ERROR: Claiming interface failed!
Click to expand...
Click to collapse
doorbolt said:
GT-P5113
Version 4.1.1
Trying to flash Cyanogenmod through their wiki guide I have a GT-P5113 however I am using their GT-P5110 install guide (since the wiki said it was the same)
I am stuck on step 5.
I ran the cmd prompt from the heimdall folder with recovery.img in it however I get the line,
"ERROR: Claiming interface failed!"
How to fix?
---------------------
Heimdall can't access to usb interface.
If yor usb is free, you can run heimdall as root user.
Click to expand...
Click to collapse
newsong said:
Install the win32 version instead http://cmw.cmfs.me/common/heimdall_v1.4rc1_win32.zip
Good Luck!
Click to expand...
Click to collapse
That worked! Thanks.

[Q] Bricked (Or bad?) I925U (Us Cellular)

Ok.
So, I have acquired a bricked SCH-I925U, the US Cellular version. The unit can get into download mode, but no recovery.
I have tried to ODIN, and get fails on everything. It connects, and a COM comes up, so the computer sees it, just fails at any write.
Just tried heimdall to flash CWM recovery, and got a fail on that.
When not in download mode, the unit flashes screens, nothing comprehensible, just Lines of pixels.
Is this a hardware failure?
I have attached a few pictures.
(I have been searching threads, with some info in one, and some in another. Just figured I would create my own thread to get an answer asap.)
Thanks for any help and thanks to everyone on here.
Alex - aka docchaos
And here is what I am getting when trying to flash a recovery via heimdall
---------------
Copyright (c) 2010-2013, 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...
Setting up interface...
Initialising protocol...
ERROR: Protocol initialisation failed!
Releasing device interface...
C:\Users\owner\Downloads\Heimdall Suite>heimdall flash --RECOVERY recovery.img -
-no-reboot
Heimdall v1.4.0
Copyright (c) 2010-2013, 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...
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...
PIT file download successful.
Uploading RECOVERY
100%
ERROR: Failed to confirm end of file transfer sequence!
ERROR: RECOVERY upload failed!
Ending session...
ERROR: Failed to send end session packet!
Releasing device interface...
C:\Users\owner\Downloads\Heimdall Suite>

[Completed] Heimdall Uploading Recovery unsucessfull

Hi, a Problem arose using Heimdall to root my phone: Samsung Galaxy SIII, GT-i9305 Build: KTU84P.I9305XXUFNL1.
I am using Heimdall-Suite 1.4.0 from the official website, which should be the newest. The installation is running off a Windows 7 64-bit OS.
First off: most of the things I did, I did according to the Cyanogenmod Guide
I went into advanced settings and checked 'USB-Debugging'
I uninstalled all device drivers from Samsung, and made sure no software was active on windows.
I installed the 'Zadig' Drivers according to the linked guide.
I disabled user account controll as nothing was working, and restarted my PC several times.
When opening Heindall (with admin privileges) i was able to connect to my device, and download the PIT-File. I saved it, selected it in the 'Flash' menu and added the CACHE and RECOVERY files accordingly. When pressing the Start button i get the following message:
Heimdall v1.4.0
Copyright (c) 2010-2013, Benjamin Dobell, Glass Echidna
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:
[...]
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...
PIT file download successful.
Uploading RECOVERY
0%
ERROR: Failed to send file part packet!
ERROR: RECOVERY upload failed!
Ending session...
ERROR: Failed to receive session end confirmation!
Releasing device interface...
I get this Error every time. When using the Command Window most of the time I get the Error message '-7'. The recovery file doesn't load.
I have tried every USB connection on my PC, tried it on a second PC, cleaned my USB-Cable etc...I just can't upload any data to my device.
If any of you can help me with this problem i'd be happy. This is the first device I am trying to root / install a new ROM on.
Best Regards, Alex
Hello and thank you for using XDA Assist,
please create an account and ask your question here:
Galaxy S III I9305 (4G LTE + 2GB RAM) Q&A, Help & Troubleshooting
The experts there should be able to help you.
Kind regards and good luck
Trafalgar Square
XDA Assist

Categories

Resources