Stock Android 4.3 for SGS4 and root
Posted on 2013-06-28, 41 comments, 146 +1's, imported from Google+/Chainfire

NOTICE: This content was originally posted to Google+, then imported here. Some formatting may be lost, links may be dead, and images may be missing.

RE: JWR66N.S005.130625

This build has the following kernel options enabled:

CONFIG_SEC_RESTRICT_ROOTING=y

CONFIG_SEC_RESTRICT_SETUID=y

CONFIG_SEC_RESTRICT_FORK=y

CONFIG_SEC_RESTRICT_ROOTING_LOG=y

This is why root mostly doesn't work. Other development firmwares from Samsung have had this set as well, and did not allow root, though later released retail firmwares did not have (all) of these options set, and did allow root. I would actually expect the official release to allow root as usual (but who knows).

It is by no means impossible to bypass this, it is however almost 1 AM and the weekend has started, so ... :)

If you only install SuperSU's binary (using TWRP for example, or through rooted shell in CWM, or whatever) without the GUI, it will allow you root access from adb shell, by the way.

+1146
Hitesh commented on 2013-06-28 at 23:23:

What's the file name ? 

Hitesh commented on 2013-06-28 at 23:26:

lol Thanks Randy. 

Greg W. commented on 2013-06-28 at 23:37:

So the development builds where root might be useful to debug restrict root.  Samsung, what are you playing at here...

Роман Романов commented on 2013-06-28 at 23:52:

Блядь как же хуёво и нечестно, что i9500 сосёт хуй.

Hitesh commented on 2013-06-28 at 23:58:

ok so this is in config.gz, but I have no idea how to make a boot.img out of it. 

唐力 commented on 2013-06-29 at 00:54:

S4的4.3这么快?N4的呢?

Michel Tamarin commented on 2013-06-29 at 01:01:

@J Mulla It's not an info to download something ;)

Kyle Reynaert commented on 2013-06-29 at 02:27:

I've unpacked the kernel and cannot find those anywhere, granted i'm new at this but trying. would you be able to point me in the right direction? I'm opening every last RC or SH in notepad++ and can't find anything

Thanks for the help if you manage to respond.

Kyle Reynaert commented on 2013-06-29 at 03:11:

well i'd like to give it a shot, any pointers?

Ruxi Wang commented on 2013-06-29 at 03:50:

so now can't get root?

任义 commented on 2013-06-29 at 05:19:

how to get root?

Rohan Mishra commented on 2013-06-29 at 05:29:

4.3???

Harald Hoyer commented on 2013-06-29 at 05:37:

config.gz is not something you can change and repack. config.gz just contains the compile settings, with which the whole kernel was built.

Markus Menczel commented on 2013-06-29 at 12:28:

Good job.. Thx

David Ferreiro commented on 2013-06-29 at 13:39:

9505 or 9500?

Jaime Villalobos commented on 2013-06-29 at 14:08:

So we have to wait... Ok thanks

Esteban Zenteno commented on 2013-06-29 at 15:22:

9500 or 9505? or both as he just states SGS4...

David Ferreiro commented on 2013-06-29 at 15:43:

As he says and chainfire; is not the same phone. Small but big diferences

Jacob Bishop commented on 2013-06-29 at 16:24:

Up what is changed in 4.3?

Jacob Bishop commented on 2013-06-29 at 16:33:

Oh that's nice

David Ferreiro commented on 2013-06-29 at 16:44:

So. Does it works on any S4. Or is only for the snapdragon powered?

David Ferreiro commented on 2013-06-29 at 18:04:

Ok. Thats it. Only 9505g. Wasnt that dificult dude. Thanks for the info

Arek Mandrela commented on 2013-06-29 at 18:24:

Damn chainfire im counting on you we need root 4.3 is awesome...

Martin Eriksen commented on 2013-06-29 at 19:03:

I hope you manage to pull this off! You are the android god! :D

said bensouda commented on 2013-06-29 at 23:53:

Can we instal the v 4.3 on the i9500?

Sergiy Shulik commented on 2013-06-30 at 00:30:

+The Watcher . You have ANOTHER QUESTION from said bensouda to answer.... :-)

Esteban Zenteno commented on 2013-06-30 at 03:09:

+The Watcher . You are telling me something I already know pal. My question is: This post is related to which specific model of the Galaxy S4? I do not see how I can identify which one is CF talking about here since he doesn't state the model specifically.

Errol Roberts commented on 2013-06-30 at 03:28:

There's only one model the firmware was made for, there are other models with identical hardware which is very specific and even broken down in a few points of this post, which model DO YOU think it is?^ The technical aspects of Android isn't for everyone.

paul stone commented on 2013-06-30 at 05:11:

When is the note2 getting anything?

Martin Eriksen commented on 2013-06-30 at 06:52:

The i9505 is exactly the same, isn't it? Hardware wise, that is.

Amin Hajari commented on 2013-06-30 at 07:43:

Wow great!!!

Mustaq Ahmed commented on 2013-06-30 at 12:43:

Can you build a cm for it that would br great.

Edo commented on 2013-06-30 at 12:57:

. Bertobatlah zn, m

Jacob Bishop commented on 2013-06-30 at 18:50:

Can I use this on my iPhone 5? :)

Anh Vu Thai commented on 2013-07-01 at 03:49:

can you port this to note II?

Janet Brown commented on 2013-07-01 at 18:03:

yes you can I got the same phone iPhone 5

Adnan Hodzic commented on 2013-07-01 at 21:08:

+Chainfire I tried couple of methods to obtain root. 

First one that came to my mind is to restore backup of my root using "OTA Root Keeper", I used this method couple of times back in the day and it worked. 

It worked pretty good except the fact that it couldn't get root permission granted: http://goo.gl/LTaE7

I figure this is due to addition of "SELinux" with Android 4.3.  

To go around this, in adb shell mounted the /system then pushed su to /system/xbin/su and Superuser.apk (also tried with *.zip).

However, I failed on step where I tried to do:

chown 0.0 /system/app/Superuser.apk && chown 0.0 /system/xbin/su

I'll try with couple of more things tomorrow, if you have any ideas or suggestions do let me know :)

Mike Chaka commented on 2013-07-02 at 11:00:

Love ur work mike from sa will support u

Adnan Hodzic commented on 2013-07-02 at 11:31:

+The Watcher . the way it's going we might end up having custom kernel for Stock ROMs in order to have root access ...

李杨 commented on 2013-07-03 at 09:32:

can this be ran on nexus 4??

Chainfire commented on 2013-07-25 at 21:46:
This post is over a month old, commenting has been disabled.