yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9506 Android Development] DeHAWK:
Update.

AutoRoot for GT-I9506 now available for download.

NOTE: This AutoRoot is ONLY for people running the GT-I9506 - European version, running stock 4.4.2 release version XXUCNG3.

Download link found below instructions.

Before we start:

This AutoRoot image, was originally a CF-AutoRoot made by famous Chainfire for the Galaxy S5: SM-G900F - European version.

I converted the whole image to work on our S4+, all binary still belongs to Chainfire. I therefore take no credits for this work, all credits goes to Chainfire, since the idea and magic binary is still his work.

Flashing instructions:

Download the Zip file below and unpack using 7-Zip. Go to the directory where you unpacked the Zip file.

This archive contains Odin v3.07 set up for you. Start this Odin and click PDA, now select the SGS4+_AutoRoot.tar.md5 file.

After a few seconds, Odin has verified the md5 sum and is ready to flash.

Put phone in download mode...etc etc...same as we always do :)

Just as a precaution: Check that only Auto Reboot and F-Reset Time is marked.

Now press Start and the magic will happen.

Phone will now flash and then reboot into a special Chainfire recovery. WAIT for the magic to happen.

After this, phone will reboot as normal and you will end up at your normal system...now rooted.

Now find and start SuperSU, it will first ask you if you want to disable KNOX. Answer yes and wait.

If SuperSU has not responded in about a minute, press and hold HOME button, Clear memory; press left most icon and then select RAM, Clear memory.

Return to SuperSU and start it up again.

I have done this several times now and it works every time.

Now get yourself an app that can remove all the crap :)

Don't hesitate to contact me in here, if you encounter any problems or have questions.

Download link:

https://drive.google.com/file/d/0B6he3hscczvdTUhqSDk0ZDNMdzg/edit?usp=sharing

Happy flashing and rooting.

Regards.
[Galaxy S 4 i9506 Android Development] kotaxor:
[MENTION=4188575]DeHAWK[/MENTION], after removing Knox and whatever, will flashing back the original kernel still enable root and wifi?
[Galaxy S 4 i9506 Android Development] DeHAWK:
Hey

No need to flash original kernal, because it's the original XXUCNG3 4.4.2 kernal I use in the AutoRoot image. And furthermore, after the flashing it will always return to the normal boot.img.

As you see, if you are on stock 4.4.2 kernel, no warning about setting kernel warranty bit. Because the kernel is original signed by sammy.

But system and binaries will still show modified. This because of the root. But it doesn't matter.

I believe screen mirroring works, haven't tested it.

Flashing a new kernel doesn't remove root.

Making a Factory reset doesn't remove root.

And sometimes after flashing a system, I still had root...

Regards and goodnight.
[Galaxy S 4 i9506 Android Development] kotaxor:
Deleted
[Galaxy S 4 i9506 Android Development] DeHAWK:
OP Updated.

Added fully stock, untouched 4.4.2 firmware: NEE-I9506XXUCNG3 - This is a zip file, 1.34 GB in size, added because someone asked for it.

Flash this only if you need to back to 100% original.

Will later today make other files available in the OP and 4.4.2 section.

AutoRoot and all the 3 Odin versions should pop up there...

Stay tuned.
[Galaxy S 4 i9506 Android Development] kotaxor:
Funny, I dirty flash my country stock Rom (4.4.2), let it settle down a bit. After that, I flash your above autoroot kernel.

Surprisingly, wifi is working just fine. Off and on, reboot and wifi is still working.
[Galaxy S 4 i9506 Android Development] DeHAWK:
Hey

Not surprisingly, you're still on your original signed sammy kernel. :)

Problem only comes with my insecure kernel, needed for a custom system.

Regards.
[Galaxy S 4 i9506 Android Development] mezo91:
what about a deodexed system? or does that custom system need an insecure kernel and doesnt work with stock kernel?
[Galaxy S 4 i9506 Android Development] hr2:
Root knox free? 0x0?
[Galaxy S 4 i9506 Android Development] SoRiNuS:
A few posts back you have your answers. Why dont you read??? And this is only the AutoRoot, not the firmware. YOU can root then remove knox.
[Galaxy S 4 i9506 Android Development] mezo91:
Flashing this will trigger knox 0x1
[Galaxy S 4 i9506 Android Development] DeHAWK:
Yes...that's the problem. Stock kernel doesn't accept a custom system. But stock system accepts an insecure kernel, but then the WiFi won't work. You see, that's what I am fighting right now. Even tried to flash the insecure kernel with custom system, let it install and then turned off. Then flashed stock kernel....no WiFi. Right now I can't see what is doing it, but I suspect something in the system...but it could also be my kernel. But kernel is now perfect, clean, fast and striped for unnecessary code.

But...this drives me crazy...

It's funny, because the chip controlling WiFi also controls Bluetooth and it works perfectly. :mad:

Well back to the keyboard.

Stay tuned.

Regards.
[Galaxy S 4 i9506 Android Development] mezo91:
Maybe something with the driver? Or an built in app blocks it.
[Galaxy S 4 i9506 Android Development] kotaxor:
While waiting for the insecure kernel, manage to remove about 920MB of bloatware from the stock Rom.
[Galaxy S 4 i9506 Android Development] hr2:
Thx. (:
[Galaxy S 4 i9506 Android Development] johnthepig:
Nice! Perhaps you might compare your findings with http://xdaforums.com/galaxy-s4-active/development/script-ultra-kleaner-debloater-samsung-t2809319 and improve it
[Galaxy S 4 i9506 Android Development] kotaxor:
Pardon me, but I prefer not to use script for removing bloatware, it might go into bootloop if the apks is stored in different location.

Looking at the link, some apks is definitely in different location, some folders don't even exist.

I remove these bloatware based on this : http://xdaforums.com/showthread.php?t=2514703

Using rootexplorer, I search for these.

Thanks.
[Galaxy S 4 i9506 Android Development] mezo91:
Better yet just freeze them in titanium backup.
[Galaxy S 4 i9506 Android Development] EclipseX:
Apparently wifi works with this kernel http://xdaforums.com/showthread.php?t=2857264

Enviado do meu GT-I9506 através de Tapatalk
[Galaxy S 4 i9506 Android Development] SoRiNuS:
Isn't that kernel for AOSP Roms??
[Galaxy S 4 i9506 Android Development] EclipseX:
Yes, I guess

Enviado do meu GT-I9506 através de Tapatalk
[Galaxy S 4 i9506 Android Development] DualJoe:
What actually is your kernel? An E330 derivate, the hlte frankenbuild or Samsung 4.4 stock source? If Samsung source, are you using 4.9 or 4.7 toolchain?
[Galaxy S 4 i9506 Android Development] DeHAWK:
Hey

I'm using the Samsung released sources for the EUR GT-I9506, which I then made some changes to. Have even tried different versions for the SHV-E330S, with the required changes but no change.

Using NDK 4.6 and 4.8, both latest version. 4.7 don't exist anymore.

Spent a lot of time making WiFi work and I'm now pretty convinced that Samsung made this by purpose.

Somewhere in either the framework or binary they must have made a check for insecure kernel. My problem is, I still haven't figured out where it happens. Even a stock kernel binary, but with a changed RAM disk doesn't work. So conclusion is that it must be something in the system image, I can't atm. come up with a better guess.

I'm running my insecure kernel, compiled wirh latest NDK 4.8, rooted and fully De-Odexed. Works very stable and fast, but as usual...no WiFi. I only need to check with a custom recovery. Would be nice if we had a Chainfire Mobile Odin.

Regards.
[Galaxy S 4 i9506 Android Development] DualJoe:
Sounds like you didn't stumble upon all the compiler warnings then (with 4.6 or 4.8). That's what i wanted to know...

I'm currently trying 'arm-linux-androideabi-4.9' (GCC 4.9) but it throws many warnings and i'm not sure if its a good idea to simply ignore them. I had to remove the gcc wrapper and set some more compiler flags to bypass harder warnings that break compiling. Doesn't look too healthy. I guess i will test it with a recovery first once i get the kernel compiled completely.

Regarding the insecure kernel. Did you set kernel dev mode and cmdline accordingly so it can get inherited down properly?
[Galaxy S 4 i9506 Android Development] DeHAWK:
Hey

Atm. I'm using the unmodified Makefile, but normally I put in compiler optimization flags. Most warnings in both 4.6 and 4.8 can be ignored, they concern the dtb files.

In 4.6 a lot of warnings is automatically suppressed but not in 4.8 where you need to make a few changes due to the C++ snprintf command.

The cmd line is as the original and not sure what you mean about dev mode, this: CONFIG_EXPERIMENTAL=

Should be set to; yes.

Regarding all warnings about the dtb files, just ignore them, they mean nothing. If unsure; use the original dtb image, as I do atm. due to this WiFi problem.

My .config file has now grown to 119,9 KB or 4201 lines.

Regards.

EDIT.

Using latest compiler is not always a good thing, since they normally still contains unsolved problems.

I normally stay on a good and well working one.
[Galaxy S 4 i9506 Android Development] DeHAWK:
As you see...but using a Linaro toolchain is also possible.

I made myself a linux script that takes care of everything, which bootloader I want the compilation to be used on , what toolchain, what dtb files etc. etc. I simply got tired of all that typing in everything. :cool:

It takes me about 320 seconds to make a fully flash able kernel for Odin, once the compilation starts.
[Galaxy S 4 i9506 Android Development] aresbv2000:
Man...is there already a fully 4.4.2 deodexed ROM? Sorry to ask but I see in the thread name that is still in testing mode. Thank you for your hard work! Have a nice day!
[Galaxy S 4 i9506 Android Development] DeHAWK:
Hey

Yes, making a De-Odexed rom is quite easy if you know how to do it.

The problem here on 4.4.2 is to make the stock kernel accept it...and on insecure kernel make the WiFi work...

Considering if I should release my insecure kernel together with my De-Odexed system. Then all you guys out there, can try help finding out, what in the system causing Wifi not to work. Problem is; who wants a phone without Wifi...

Regards
[Galaxy S 4 i9506 Android Development] aresbv2000:
One user with unlimited data plan :D But unfortunately not me.For me a phone without wi-fi is like non-alcoholic beer.
[Galaxy S 4 i9506 Android Development] DeHAWK:
Update.

Might have a breakthrough regarding WiFi. I think I found the program turning OFF WiFi the same split second I try to enable it.

Can't say anymore yet, need to be tested tomorrow. Furthermore I can't atm. say what else this will have influence on.

Stay tuned.

Goodnight.

UPDATE.

Made a test, WiFi stayed on a little longer, then turned off. I think I'm on the right track now. Requires more work.
[Galaxy S 4 i9506 Android Development] aresbv2000:
Just a advice : Why don`t u ask someone from i9505 section for the solution or from Note III(Snapdragon version). Maybe they know. Just my opinion, no offence. Thank you!
[Galaxy S 4 i9506 Android Development] WonkyYew:
Does anyone have a mirror for the 4.3 Rom ??? Keep getting error when downloading
[Galaxy S 4 i9506 Android Development] mezo91:
if you can release ur wifi non working rom, maybe we try help.
[Galaxy S 4 i9506 Android Development] DeHAWK:
Hey

Should be working, will check it later today.

Regards.
[Galaxy S 4 i9506 Android Development] DeHAWK:
Hey Thx.

Maybe I should. What I know so far; the required directories has been set up. If you're rooted, look in the following folder.

ROOT/data/misc/wifi/ - and the folder right below the wifi folder.

You will see some files, some of these are missing in my device with insecure kernel and De-Odexed system. Those missing files are quite important for wifi to work.

Everything is being set up in the init.rc, init.qcom.rc and init.target.rc.

These files are copied from kernel to root, where you can find them.

Note that in the beginning on init.rc and init.qcom.rc there are lines that import other files...

We also know that autoroot don't break wifi.

I have analysed a lot of files from other devices, S5, Note3 and they all seems to be quite the same.

Have also looked at the latest sources and system for the korean version...this looks almost as the one on the S5. It now contains a certificate in the kernel and the init file has once again grown in size.

I seems to me, looking at sources and more, that sammy is trying to streamline their sources for the S4+

What I mean is, they try to make the korean version more like the international S4+.

This makes sense.

Ok, need to stop now. Train at destination.

See ya
[Galaxy S 4 i9506 Android Development] kotaxor:
I only have one folder below wifi folder call zoneinfo.

I'm on odex Rom.
[Galaxy S 4 i9506 Android Development] DeHAWK:
Yes, and it's empty on my phone, but should contain a file with zone information. It seems that the files wpa_supplicant and dhcpcd, in bin folder, has something to do with it. I have compared some vital files to 4.3 and size is the same. Might have to compare bit by bit. Quite many files are the same as on 4.3. Furthermore they make calls to non existing files from some of the .rc files. Files that exists in S5 and latest korean version. :banghead:

Regards.
[Galaxy S 4 i9506 Android Development] kotaxor:
Wish you success..[emoji106]

Have been using 4.4.2stock Rom and kernel for the past few weeks, so far battery life is about the same as your 4.3.in OP.

Had to use Universal initd to enable the use of initd folder with scripts tho.

[emoji106]
[Galaxy S 4 i9506 Android Development] coroneta:
new release I9506XXUCNH4

Build date Fri, 22 Aug 2014 10:10:50 +0000

Changelist: 2587343

http://www.sammobile.com/firmwares/3/?download=34505
[Galaxy S 4 i9506 Android Development] mezo91:
Can you release the non wifi rom?
[Galaxy S 4 i9506 Android Development] DeHAWK:
Hey

You want it full with only KNOX removed or slim? Of course De-Odexed.

I'm going to post it here in the thread

since it still not official.

Found out something today, after going back to fully stock 4.4.2 and just auto rooted.

Will Include the insecure kernel.

Regards.
[Galaxy S 4 i9506 Android Development] DeHAWK:
Hi.

A1. Most carriers puts a lot of crap in the hidden partion. 3 here in both Sweden and Denmark does it. I normally don't flash the hidden partion only the CSC, which I later on edit for my own needs. The region lock only works if you try to flash an non European firmware, I think. Not quite sure about it, but I see traces of in in my source code.

A2. You can flash my system image right away, and later on the CSC image. Just remember that my image will wipe your current csc.

Therefore you should first flash system, then after reboot you flash the csc.

A3. No problem with warranty.

No problem, we're here to help each other. I had the S2 myself for 2 years. Just ask if you need help.

Do you want a striped version?

Why? - When you are ROOT, you can remove whatever you want.

Regards.
[Galaxy S 4 i9506 Android Development] sh0ne:
Hmmm ok, I've send you the files, link in PM, btw. should I just exclude the hidden.ext4 ? I like it pure without anything, if possible mate without that hidden xxxx.

cheers,

on my s2 I hand only 10.1.3 without googleplay and gapps and everything, I installed the apps manually which I needed. great battery life and all, but that baby is no more avaible.. ( Additionally I stripped CM ( app 30 apps deleted) before flash...) :D
[Galaxy S 4 i9506 Android Development] Numero17:
doesn't work. process of flash don't go .odin says me error....
[Galaxy S 4 i9506 Android Development] DeHAWK:
I need more information to help you bro. What happens and when does it fail. Did you flash your original firmware without problems?

Are you sure you are running version 4.2.2?

Is it the md5 check that fails?

Please provide me with all the information.

See ya'
[Galaxy S 4 i9506 Android Development] DeHAWK:
I make you 2 versions, one with hidden.img.ext4 and cache.img.ext and one with only the cache (csc)

See ya
[Galaxy S 4 i9506 Android Development] Numero17:
Yes Friend. When I use stock rom of 9506 odin seems stop but after many time he tells me that failed or nothing happens Idem for your firmware presents in the first page. When I flash with original firmware so for e330s he flash nothing problem odin it s very fast
[Galaxy S 4 i9506 Android Development] DeHAWK:
***

Latest news from the kernel development front.

***

The good thing is, my kernel is now booting the system and I have unlimited root access all over. This I didn't have before, only on the system partition. The phone now operates very fast, even if it's not overclocked, CPU Spy shows normal CPU states/frequencies, activity and even deep sleep.

All my installed root applications tested and seems to work without any problems. And I now have the SELinux-status: Disabled - This one is very good!

But lots of issues screams to be fixed, minors as well as more problematic once...

SIM card not detected, therefore no connection except the bluetooth is working; meaning no WiFi, no 2G/3G/4G. The IMEI number, serial number and baseband version is gone together with no SD-card detected.

Furthermore the phone won't reboot, just gets stock...and it won't turn off either, just enters a boot loop, had to pull the battery.

But if I look at it from the bright side, this took me a big step further.

For now, I'm not sure if any of these problems relates to my unlimited root access and the disabled SELinux or something else in the code, but I'm pretty sure I'll find out soon.

And don't worry, I did NOT brick my phone by doing this. After flashing stock kernel; everything was back to normal. :)

Thats all for now.

Regards.
[Galaxy S 4 i9506 Android Development] sh0ne:
FLASHED GOOD! KO I have to kill, thousands of apps, they are definitelly crazy.

cheers
[Galaxy S 4 i9506 Android Development] casiocas:
Qualcomm secureboot: 0x1

Hey!

Just wanted to ask, dose the" QUALCOMM SECUREBOOT: 0x1" mean something? Its in the DOWNLOAD MODE before "Write protection: Enable". Dose these two thigs not changing if I flash your rom?

These are my questions. Any way you doing the GOOD thing and I thank you for this HARD WORK!

Thanks!

Peace for all!!!

:cool:
[Galaxy S 4 i9506 Android Development] Numero17:
so in this rom there are bugs?
[Galaxy S 4 i9506 Android Development] casiocas:
Hey!

Like title says"Pre-Rooted Stock ROM - GT-9506, all official". If there are bugs, then they are stock rom bugs!

Peace for all!!!

:cool:
[Galaxy S 4 i9506 Android Development] Numero17:
sorry friend :D the problem is that i can't install this rom on my samsung s4 e330s with snapdragon 800
[Galaxy S 4 i9506 Android Development] casiocas:
Hey!

Do you have "stock 4.2..." installed in your phone, when you buy it from store? If yes, then go into stock recovery and wipe everything. Then try this one again like described in the FIRST post.

Peace for all!!!

:cool:
[Galaxy S 4 i9506 Android Development] DeHAWK:
Hey,

I got your .rar package, but can't unpack - it gives me an error while unpacking > package damaged. Tried downloading twice, but no luck. So I need you to upload it again, this time use Zip or 7zip to pack it.

Glad to hear you like the ROM, just be careful not to remove the files completely - just freeze them. You might end up with something not working. :)

I personally have removed about 75 apks...:good:

See ya
[Galaxy S 4 i9506 Android Development] DeHAWK:
Hey,

No, nothing will change from the original state since I don't deal with the critical files. The "Write protection: Enable" and "QUALCOMM SECUREBOOT: 0x1" is the reason why I get the Unsecure boot massage while testing my own kernel.

But it still allows me to flash and boot an insecure kernel.

Hope this helps and answer your question.

Regards.
[Galaxy S 4 i9506 Android Development] Numero17:
I install pre root stock rom
[Galaxy S 4 i9506 Android Development] casiocas:
Hey!

Just for asking(maybe I am stupid :p), if I install your rom(like dirty install, not wiping anything), dose ALL my apps and setting will be there? Or I must do it from zero, like install the stock rom and then your rom?

EDIT:

YEAH SORRY FOR DUMB QUESTIN, THE ODIN WILL WIPE EVERYTHING(LOL, I WAS THING LIKE CWM RECOVERY FLASH)!

Peace for all!!!

:cool:

---------- Post added at 12:24 PM ---------- Previous post was at 12:21 PM ----------

Hey!

Sorry, not understand you! Dose you have the original stock 4.2.... installed, when you buy it?

Peace for all!!!

:cool:
[Galaxy S 4 i9506 Android Development] Numero17:
stock stock? because i install stock room that includes root
[Galaxy S 4 i9506 Android Development] casiocas:
Hey!

Are you wiped everything in the stock recovery, after failing for flashing pre rooted stock rom?

Peace for all!!!

:cool:
[Galaxy S 4 i9506 Android Development] Numero17:
I don't know how it does
[Galaxy S 4 i9506 Android Development] mezo91:
Full knox removed yes.
[Galaxy S 4 i9506 Android Development] DeHAWK:
Hey

I've checked all 4.3 download links, all working. Did not actually download, only checked that links points to right files.

Regards.
[Galaxy S 4 i9506 Android Development] DeHAWK:
Update.

As requested, fully 4.4.2 system, all KNOX removed NOTHING else!

Fully De-Odexed.

BusyBox pre-installed,

NEE CSC pre-installed, NO NEED TO FLASH CSC.

Image contains insecure kernel! - SE-Android set to Permissive.

Rooting restrictions removed.

Be aware, this kernel has just been build. But everything has been tested on my own phone.

I build several kernels everyday, so....

WiFi still NOT working.

Compiled with GCC 4.8.3

After flashing, set up phone and then flash AutoRoot from OP 4.4.2 section, to re-gain root.

md5 sum and Zip integrity checked before uploading.

Download, Unzip with 7-Zip!

Flash with Odin 3.09.

Download link:

https://drive.google.com/file/d/0B6he3hscczvdY08xMFlTeUtQOVk/edit?usp=sharing

Regards.
[Galaxy S 4 i9506 Android Development] mezo91:
sound isnt working too :S had to reflash stock for work purposes. wifi the same not work.

thanks for the effort. i wish i knew why samsung is closing things on the i9506 as if they want us to hate it, no custom roms very late updates no support very hard sources on the other hand all other devices have great support and no problems with sources :((
[Galaxy S 4 i9506 Android Development] WonkyYew:
Thanks for checking probably just my crap internet speed! Keep up the good work
[Galaxy S 4 i9506 Android Development] DeHAWK:
Hey

Very strange, sound should be ok. I had boot sound. I'll check up on it when I get back home. Have a lot of music on the external SDCARD and will check with PowerAmp.

Yeah, Samsung doesn't make it easy for us to do anything anymore. I just downloaded the newly released ROM, need to check it out. But a quick check on the RAM disk showed no major changes. I'll probably try flashing the system with my insecure kernel later today. Will report back.

Btw. made a new build after the one I released yesterday. Found out 2 config lines was missing...

As said before, sammy never release the real sources only broken once. Well, main problem is really not the sources, but the incomplete configuration file. It's filled with crap, a mix of old configs, new configs and configs from, what seems to be other models...eg. S5 and N9005. Perhaps because many features are the same.

Stay tuned.

Regards.
[Galaxy S 4 i9506 Android Development] DeHAWK:
Update.

Just checked music on mp3 files with the stock music player. No problem found. Play as it should, even with different choices of equalizer.

Ok, now back to the keyboard.

See ya
[Galaxy S 4 i9506 Android Development] kotaxor:
I think he meant no ringtones.
[Galaxy S 4 i9506 Android Development] mezo91:
the touch sound not working, ringtones delayed. anyway i wanted this de odexed rom for a S5 MOD hoping it would work and i can live on mobile data for sometime,

FAIL!
[Galaxy S 4 i9506 Android Development] DeHAWK:
Hey

I've both touch tones, vibration and letter example when writing or dialing. Also when making screen selections.

See ya