Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,983 Members 45,688 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Saferoot to disable Knox problem

Tip us?
 
Tuppence_
Old
(Last edited by Tuppence_; 28th March 2014 at 05:06 PM.) Reason: Additional information
#1  
Junior Member - OP
Thanks Meter 0
Posts: 1
Join Date: Mar 2014
Default [Q] Saferoot to disable Knox problem

Hey! So I'm trying to root my device. I already ran an old rooting method using Odin, but when I tried to use it afterwards Knox was tripped. This led to finding Saferoot.

I've tried it a few times, only for it to get stuck at trying to disable Knox.

Code:
---        Samsung Galaxy S4 Android 4.3 Root         ---
--- Based on the CVE-2013-6282 exploit by cubeundcube ---
[*] Testing adb usability

Plug in your phone and Press any key to continue . . .
[*] Waiting for your phone to appear[*] Your phone is detected and ready for rooting.
[*] Sending files to your device...
[*] Starting rooting program.
ro.build.product=t03g
ro.build.id=JSS15J
search kallsyms...
1
(kallsyms_addresses=c082efb0)
(kallsyms_num_syms=0000ef10)
kernel dump...
1 2 3 4 5 6 7 8 9

prepare_kernel_cred=c00c04c4
commit_creds=c00bfcb0
ptmx_fops=c0bda36c
ptmx_open=c02bb450
tty_init_dev=c02b3ff0
tty_release=c02b3a4c
tty_fasync=c02b117c
ptm_driver=00000000

Succeeded in getroot!
Remount success!
Copying files..
Done.. reboot to enable root! 
(I don't actually need to reboot here, it just goes on to the next step)
[*] Checking if rooting succeeded
[*] Removing temporary files...
[*] Trying to disable Knox...
Usually the program just hangs here indefinitely, but one time it rebooted my phone and tried to run SuperSU, only for it to be blocked by Knox. My phone seems to be rooted according to Simple Root Checker - it says Application Superuser found, Terminal Rooted, Busybox installed, and Busybox v1.21.1 - so I guess that the old method of rooting did work, but Knox remains.

Any ideas?

[edit] The additional text which shows after a reboot. Obviously I was unable to actually start SuperSU to update it.

Code:
[*] Checking if rooting succeeded[*] Removing temporary files...
[*] Trying to disable Knox...
[*] Rebooting... Please wait.[*] Waiting for device to re-appear...

Wait until your phone reboots,then unlock it and Press any key to continue . . .

On your phone, open SuperSU and let it update if it asks.
When SuperSU is done updating, Press any key to continue . . .
On your phone, watch for the SuperSU permission popup and give
permission for ADB Shell to gain root permissions.
I have to quit it manually thereafter.

Just to note, Knox is tripped every time saferoot tries to disable it.
 
m.b.jikre
Old
(Last edited by m.b.jikre; 28th March 2014 at 07:44 PM.)
#2  
m.b.jikre's Avatar
Senior Member
Thanks Meter 18
Posts: 171
Join Date: Nov 2012
Location: Pune
Quote:
Originally Posted by Tuppence_ View Post
Hey! So I'm trying to root my device. I already ran an old rooting method using Odin, but when I tried to use it afterwards Knox was tripped. This led to finding Saferoot.

I've tried it a few times, only for it to get stuck at trying to disable Knox.

Code:
---        Samsung Galaxy S4 Android 4.3 Root         ---
--- Based on the CVE-2013-6282 exploit by cubeundcube ---
[*] Testing adb usability

Plug in your phone and Press any key to continue . . .
[*] Waiting for your phone to appear[*] Your phone is detected and ready for rooting.
[*] Sending files to your device...
[*] Starting rooting program.
ro.build.product=t03g
ro.build.id=JSS15J
search kallsyms...
1
(kallsyms_addresses=c082efb0)
(kallsyms_num_syms=0000ef10)
kernel dump...
1 2 3 4 5 6 7 8 9

prepare_kernel_cred=c00c04c4
commit_creds=c00bfcb0
ptmx_fops=c0bda36c
ptmx_open=c02bb450
tty_init_dev=c02b3ff0
tty_release=c02b3a4c
tty_fasync=c02b117c
ptm_driver=00000000

Succeeded in getroot!
Remount success!
Copying files..
Done.. reboot to enable root! 
(I don't actually need to reboot here, it just goes on to the next step)
[*] Checking if rooting succeeded
[*] Removing temporary files...
[*] Trying to disable Knox...
Usually the program just hangs here indefinitely, but one time it rebooted my phone and tried to run SuperSU, only for it to be blocked by Knox. My phone seems to be rooted according to Simple Root Checker - it says Application Superuser found, Terminal Rooted, Busybox installed, and Busybox v1.21.1 - so I guess that the old method of rooting did work, but Knox remains.

Any ideas?

[edit] The additional text which shows after a reboot. Obviously I was unable to actually start SuperSU to update it.

Code:
[*] Checking if rooting succeeded[*] Removing temporary files...
[*] Trying to disable Knox...
[*] Rebooting... Please wait.[*] Waiting for device to re-appear...

Wait until your phone reboots,then unlock it and Press any key to continue . . .

On your phone, open SuperSU and let it update if it asks.
When SuperSU is done updating, Press any key to continue . . .
On your phone, watch for the SuperSU permission popup and give
permission for ADB Shell to gain root permissions.
I have to quit it manually thereafter.

Just to note, Knox is tripped every time saferoot tries to disable it.
First try to update SuperSu manually it'd probably works.

Have you installed Knox full application which is around 150 Mbs? Then uninstall tha app and repeat the procedure.
 
Baller231
Old
(Last edited by Baller231; 9th April 2014 at 08:09 AM.)
#3  
Junior Member
Thanks Meter 7
Posts: 23
Join Date: Apr 2014
If SuperSU is not working. Go to Application manager and try to uninstall. If u can not then re-flash 4.3 from Computer Odin to get rid of Corrpt SpuerSU.

Downgrade from 4.3 to 4.1.2. I have done this with 100% Success

BACKUP everything. (Important)

Turn ON USB Debugging mode and Unknown sources.

First ROOT your phone.

Open Playstore and Update SuperSU. Open SuperSU and it will give a message to disable KNOX. Click YES/Ok.

Then install Titanium backup root from Playstore. Open it, go to backup/restore tab.
Find,
1.com.sec.enterprise.knox.attestation
2.com.sec.knox.eventsmanager
3.KLMS Agent
4.KNOX
5.Knox Notification Manager
6.KNOX Store

Go to each one of it and Uninstall them.

Next restart your phone.

*VERY IMPORTANT* Now Backup your efs folder by using EFS Professional on you computer (Link: http://d-h.st/Gfo ). Because your imei number will be changed after downgrading. You can easily restore it later.

Now install Mobile Odin Pro from Playstore on your phone. Here is the link.
https://play.google.com/store/apps/d...mobileodin.pro

*IMPORTANT* DO NOT flash firmware for downgrading with Computer Odin as it will NOT work and it will FAIL. *ONLY Mobile Odin Pro from Playstore will work.

Copy your 4.1.2 firmware to your phone. Next Open Mobile Odin Pro on your phone and let it download some necessary files from internet.
When done, click on Open file and select the firmware. After loading the firmware scroll down and UNCHECK EverRoot(because it cause problems). Then click on FLASH Firmware.

*IMPORTANT* If your phone get stuck on samsung logo. Go into recovery mode by pressing Home+Power+Volume UP keys together for 15 seconds. Click Factory wipe/data and then Wipe Cache. Then Reboot.
Now check your imei by *#06#. If imei is changed then restore it from EFS Professional.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes