yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Original Android Development] maysider:
my dear boy, I have even proposed faux123 to make a paid 5 $ "app" in play store for an Android 4.4 kernel link because I want to donate
[Galaxy S 4 i9505 Original Android Development] Skin1980:
Share your knowledge kt... I cannot resist... Where was the problem? :D:D:D
[Galaxy S 4 i9505 Original Android Development] Danvdh:
haha seriously, I'm anxious too

starting to think he's building another kernel or something, or playing with his world first fully functional non i9505G running Google Edition 4.4

those touch sounds are so chocolaty and delicious, I turned them off though
[Galaxy S 4 i9505 Original Android Development] maysider:
using the search about kernel bugs released 3 hours ago? oh my dear boy again ;)
[Galaxy S 4 i9505 Original Android Development] bmxje:
I'm so proud of you!

LOL:D I'd do the same, just playing around with it and justifying it by saying: "I'm just making sure its bug free guys, just a sec!"
[Galaxy S 4 i9505 Original Android Development] maysider:
good boy!
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
Update

Just an update guys, I am working with "Danvdh" doing my procedure that worked on mine and we can not get it working on his :(. I really hate Samsung sometimes :eek:
[Galaxy S 4 i9505 Original Android Development] iamnotkurtcobain:
Damn... How can that be.. Guess he has another 4.4 rom than you...?

Gesendet von meinem SGH-M919 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] Tylog:
Take your time, no reason for hurry:)

GT-I9505 / Nexus 5
[Galaxy S 4 i9505 Original Android Development] iamnotkurtcobain:
[MENTION=4325945]ktoonsez[/MENTION]

Can't you upload your rom? Call it ktoonsez's GE 4.4 supadupaworking edition :)

Gesendet von meinem SGH-M919 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] Skin1980:
I would like to help you...

If u want send me by PM how u solved and i will check on my self made build if it works or not
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
We just got it working on his :D, only problem is finding a way to make flashable zip.
[Galaxy S 4 i9505 Original Android Development] MattBooth:
I used apktool 1.5.2 :p I also use the -d argument to strip the debugging stuff out of the smali (.line 593 that kind of thing) as it's not really necessary and gives a smaller file size.

Also... Read the rest of this thread and you had it working? You were also looking for the keymaste.mdt file? They're in the NON-HLOS.bin that's in the dump. But the BL won't flash it :/

If there's a way of adding them to the mmcblk1 /firmware partition then we're in business. I think the name of the partition is apnhlos. It's definitely mmcblk1.
[Galaxy S 4 i9505 Original Android Development] iamnotkurtcobain:
You can make it ;)

Or upload the whole modified rom with your latest kernel. That would be perfect.

Edit: or tell jamal what he has to change in his rom so he can upload a new, fixed version.

Edit2: someone said your latest 28. GE kernel doesn't boot...

Gesendet von meinem SGH-M919 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] m3llon:
This is so exciting. /me is feeling like a little kid on christmas waiting for santa :D
[Galaxy S 4 i9505 Original Android Development] Skin1980:
I hate u. :D
[Galaxy S 4 i9505 Original Android Development] iamnotkurtcobain:
If you upload the folder with the changed files/stuff I'll make a rom of it.

Gesendet von meinem SGH-M919 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] Skin1980:
Maybe is not so simple... Don't know how the fix works but i don't think that is a simple files overwriting.

If a script can do the trick maybe he can try to repack the stock kernel with init.d support and then run that script at boot
[Galaxy S 4 i9505 Original Android Development] Benihipe:
[MENTION=4325945]ktoonsez[/MENTION] do do it well you do it well =) THX for your hard work
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
Total FC/Uninstall Fix

Total FC/Uninstall Fix

I know u guys are dying for this so here are the instructions, I could not get the files to flash to firmware partition no matter what I tried. Also dont want to do an init.d since alot of you guys swap back and forth between ROMs and dont want to cause issues there, so here we go:

First Flash this:

http://ktoonsez.jonathanjsimon.com/sgs4/TWGE/KT-SGS4-KK4.4-TWGE-INTL-11.29.2013.zip

Then:

1. Copy the 5 keymaster files from the /etc/firmware/ folder

2. Paste them into the /firmware/image/ folder

3. Lastly, remove the "r" from all 5 files after you paste them into /firmware/image/ folder (Example: keymaster.b00 will become keymaste.b00). Leave the file names alone in the /etc/firmware/, you are only rename the 5 you put in /firmware/image/ folder

ENJOY GUYS

And thanks alot to the 4 guys that donated, really appreciate it !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[Galaxy S 4 i9505 Original Android Development] Danvdh:
I want to burn my eyes out with paint thinner
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
LOL, guys give a big thanks to Danvdh for testing for me so I could get this out there :D :good: :highfive:
[Galaxy S 4 i9505 Original Android Development] antz88c:
Only for reboot? Or Security setting and Uninstall app fix included? Thanks.
[Galaxy S 4 i9505 Original Android Development] byron1985:
Everything. Security settings where fixed earlier. Not sure if its included in the kernel may have to flash it also.
[Galaxy S 4 i9505 Original Android Development] Danvdh:
We need some sort of script to get this to stick on reboot guys
[Galaxy S 4 i9505 Original Android Development] antz88c:
It doesn't? Okay will just stick with cyanogenmod for now.
[Galaxy S 4 i9505 Original Android Development] Danvdh:
yeah, its not horrible though, I just copied the files to my internel storage already renamed and just paste them back to firmware/image and its good again
[Galaxy S 4 i9505 Original Android Development] axiom:
Yes just rebooted and things went to hell again.
[Galaxy S 4 i9505 Original Android Development] Benihipe:
tried to rename it in firmware/image but cant renam the mdt file s4 reboots
[Galaxy S 4 i9505 Original Android Development] digital_ism:
Same here. Had to copy those 5 files again after reboot :S

But this fix does fix things up so thumbs up :)
[Galaxy S 4 i9505 Original Android Development] noname55804:
I´m a bit confused now. Version from 28.11/29.11 are only for the Google Edition Rom or will they also work with cm 11?
[Galaxy S 4 i9505 Original Android Development] axiom:
The only way I could get to all the files was to make a copy of them on the sdcard, rename them, then copy all at once. But after a few seconds the files are gone. Is this normal? Settings also stops working and random reboot is back.
[Galaxy S 4 i9505 Original Android Development] Danvdh:
no random reboots here

yeah I just copied them all to sdcard and renamed them there, and copied them all at once
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
Guess it depends on the ROM, mine survived 3 straight reboots.
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
Those are NOT for CM, only GE Edition

Going to bed, its 4 am here guys. Just glad this is working :D :D :D :D :D :D :D :D :D :D. At least for most people.
[Galaxy S 4 i9505 Original Android Development] iamnotkurtcobain:
Guess we should make a script that gets it done while the phone boots.

Gesendet von meinem SGH-M919 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
Tried it, Im either tired or its just screwing me. And mine survives reboot no problem.

Here is what the script should look like:

su

cp /etc/firmware/keymaster.b00 /firmware/image/keymaste.b00

cp /etc/firmware/keymaster.b01 /firmware/image/keymaste.b01

cp /etc/firmware/keymaster.b02 /firmware/image/keymaste.b02

cp /etc/firmware/keymaster.b03 /firmware/image/keymaste.b03

cp /etc/firmware/keymaster.mdt /firmware/image/keymaste.mdt
[Galaxy S 4 i9505 Original Android Development] axiom:
Tried this and I get a Read-only file system error
[Galaxy S 4 i9505 Original Android Development] Danvdh:
how about 5 new files?

place the files already renamed into a directory and write a script like this

su

path/to/keymaste.b00 /firmware/image/keymaste.b00

put the script in init.d

I'm dead tired, goodnight guys

upload a log, use ktweaker
[Galaxy S 4 i9505 Original Android Development] alucard_24:
Hey,

it doesn't work for me..... apnhlos partition is mounted on "/firmware" folder as read-access. Yesterday I did alot of tests, but there wasn't a way to keep those files inside that folder.

I tried also to unmount that partition, create "image" subdirectory, copy all keymaste*.* files and all files extracted from my NON-HLOS.bin, but I got the same error on security settings.....
[Galaxy S 4 i9505 Original Android Development] Danvdh:
try that method with the 11/29 kernel a few pages back

I think that might do it for you as the kernel includes the faux hack

the method didn't work for me without that hack, thats why we took forever
[Galaxy S 4 i9505 Original Android Development] alucard_24:
Yes I did with kt kernel (KT-SGS4-KK4.4-TWGE-INTL-11.29.2013.zip) but it doesn't work....
[Galaxy S 4 i9505 Original Android Development] Danvdh:
losing my mind on this,

goodnight all
[Galaxy S 4 i9505 Original Android Development] MattBooth:
Yeah no write permissions for me either
[Galaxy S 4 i9505 Original Android Development] xComplicity:
installing this will most probably trip KWV right..? :<
[Galaxy S 4 i9505 Original Android Development] mastergrillo:
Hells yeah working on my end did it manually using root explorer then flashing the kernel

Thx everbody involved in this great work
[Galaxy S 4 i9505 Original Android Development] axiom:
Get some rest we'll figure it out tomorrow.

Sent from my GT-I9505G
[Galaxy S 4 i9505 Original Android Development] The-Kevster:
The full script including remounting firmware r/w would be...

su

mount -o rw,remount /firmware

cp /etc/firmware/keymaster.b00 /firmware/image/keymaste.b00

cp /etc/firmware/keymaster.b01 /firmware/image/keymaste.b01

cp /etc/firmware/keymaster.b02 /firmware/image/keymaste.b02

cp /etc/firmware/keymaster.b03 /firmware/image/keymaste.b03

cp /etc/firmware/keymaster.mdt /firmware/image/keymaste.mdt

Although no matter how I copy the files my phone reboots after copying the last file and at next boot all keymaste.* files are gone :(
[Galaxy S 4 i9505 Original Android Development] m3llon:
The same happens to me :(
[Galaxy S 4 i9505 Original Android Development] Danvdh:
this script works
[Galaxy S 4 i9505 Original Android Development] axiom:
I used busybox and it survived the reboot. Here is what I did.

1. Copy the keymaster files to a folder on your sdcard.

2. Rename them

3. Put the script below in your init.d folder.

su

busybox mount -o remount,rw /firmware

cp /sdcard/keymaster/*.* /firmware/image/

4. Reboot

Go to settings>security and voila!
[Galaxy S 4 i9505 Original Android Development] oldblue910:
I don't have those files at all. I have a GPE GS4 with the 4.4/KRT16S update.
[Galaxy S 4 i9505 Original Android Development] MattBooth:
If the files are copied why do they not persist over s reboot?
[Galaxy S 4 i9505 Original Android Development] Skin1980:
i tryed several time... sometimes the fix works and sometime not...

BTW copying files one to one seems better...
[Galaxy S 4 i9505 Original Android Development] alucard_24:
It is related to samsung bootloader and non-hlos.bin that you have flashed into your phone, so could you tell me which modem, non-hlos.bin and previous rom that you had before?
[Galaxy S 4 i9505 Original Android Development] oldblue910:
Never mind. I found the files in /etc/firmware. If you guys still need then let me know.
[Galaxy S 4 i9505 Original Android Development] upndwn4par:
Awesome work KT! :good:

Here is a flashable zip of the script if anyone needs it.

Edit:

Go here: http://xdaforums.com/showpost.php?p=47971147&postcount=5690
[Galaxy S 4 i9505 Original Android Development] Skin1980:
for those who cannot copy:

maybe put the phone in airplane mode before copy can help
[Galaxy S 4 i9505 Original Android Development] Toss3:
What modem/rom are you guys using? Doesn't seem to work without crashing for me on MK9.
[Galaxy S 4 i9505 Original Android Development] Skin1980:
i'm on mj9
[Galaxy S 4 i9505 Original Android Development] Toss3:
Hmm works for like a second for me until the whole thing crashes (might be unrelated to the fix).
[Galaxy S 4 i9505 Original Android Development] jerkysh:
My wifi isn't working after flashing this kernel. Stock 4.3 MJ9 rooted+Philz recovery

nvm, found it :)
[Galaxy S 4 i9505 Original Android Development] Toss3:
Shouldn't the permissions be rwxr-x-r-x instead of just rw-r--r-- ?
[Galaxy S 4 i9505 Original Android Development] Skin1980:
try to put the phone in airplane mode

then copy the files but not all togheter... one to one
[Galaxy S 4 i9505 Original Android Development] upndwn4par:
This is a script for init.d.
[Galaxy S 4 i9505 Original Android Development] MattBooth:
So does any one know why it won't persist over reboots?
[Galaxy S 4 i9505 Original Android Development] muiacir:
I have phoenix rom v5 base on mj7

After flashing the latest version of this kernel the i have a problem

When i choose slow motion camera and press capture , the phone will restart

I do not have this problem with fast motion
[Galaxy S 4 i9505 Original Android Development] dandroid13:
Isn't it related to SELinux enforcing? It's enabled by default now on 4.4
[Galaxy S 4 i9505 Original Android Development] upndwn4par:
Edit:

Go here: http://xdaforums.com/showpost.php?p=47971147&postcount=5690
[Galaxy S 4 i9505 Original Android Development] Skin1980:
i think because that is a signed partition.... you cannot write into it
[Galaxy S 4 i9505 Original Android Development] MattBooth:
But we did, so what causes it to overwrite those particular files?

Just interested to know why
[Galaxy S 4 i9505 Original Android Development] Formhault:
Sweet Jesus and Mary, Mother of God!!!!! You're killing us with that 3G icon. You should settle with 2G and be done with it. :headbang:

Enable data. Go to Settings -> About -> Status. Mobile network type = HSPA or UMTS?
[Galaxy S 4 i9505 Original Android Development] mrvirginia:
i'm interested to know as well. after a reboot it's back to not being able to uninstall because they're gone, of course
[Galaxy S 4 i9505 Original Android Development] jzero88:
Those key files do work but only if copies manually. I used root explorer. Did not stick after reboot.
[Galaxy S 4 i9505 Original Android Development] Formhault:
And what the hell would that be about... ?!
[Galaxy S 4 i9505 Original Android Development] nik511:
It causes bootloops for me....
[Galaxy S 4 i9505 Original Android Development] psycovirus:
Same, how do to fix this bootloop?
[Galaxy S 4 i9505 Original Android Development] upndwn4par:
What did you guys flash this on? I flashed this before posting, and it works fine for me.
[Galaxy S 4 i9505 Original Android Development] nik511:
Flashed it on Jamal's 4.4 rom v1.0, rooted and installed busybox. That's really strange...

Edit: Tried clearing dalvik, cache and data but nothing...
[Galaxy S 4 i9505 Original Android Development] upndwn4par:
Did you also flash the kernel KT posted this morning?

I am running GE 4.4 on the AT&T S4, and it works perfect.
[Galaxy S 4 i9505 Original Android Development] nik511:
Yeah the one with the date 29/11...
[Galaxy S 4 i9505 Original Android Development] mrvirginia:
edited for incorrectness
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
Try using SuperSU 1.8 if you are not using it already.
[Galaxy S 4 i9505 Original Android Development] upndwn4par:
I'll add it to the script.

Not sure why any custom ROM doesn't have init.d support...
[Galaxy S 4 i9505 Original Android Development] nik511:
That's the one im using... Which 4.4 rom where you using during your tests and it worked? Maybe there's something wrong with jamal's rom...
[Galaxy S 4 i9505 Original Android Development] Formhault:
Someone has previously stated (forgot who / when) that GE is better than AOSP for a number of reasons (forgot those, too).

How can GE be better than AOSP, given that Samsung still pokes its tail around in these GE ROMs and does stuff the way they want? That really doesn't make GE better than AOSP... :confused:

(sorry for off-topic)
[Galaxy S 4 i9505 Original Android Development] mrvirginia:
my fault, mate. i forgot to add busybox to my build. thank you. working as intended!

edit: i would be thanking more in this thread but i've reached my limit for the day
[Galaxy S 4 i9505 Original Android Development] Ozonep:
But still, we get fully working phone (unlike CM, which has maaaaany bugs). And GE ROMS are surely better than TW :)
[Galaxy S 4 i9505 Original Android Development] upndwn4par:
OK, let's try this again...

I deleted init.d support from my ROM, removed the keymaster files from /firmware/image, then flashed the zip below. Everything is working.

Updated version: Adds the Keymaster script as well as init.d support (busybox run-parts):

KitKat_GE_4.4_Keymaster-Script_v1.2
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
I am using iB4STiD test build he made for himself and me. It also works on danvdh test ROM he was using.
[Galaxy S 4 i9505 Original Android Development] Formhault:
You lose so many features, compared to CM, though...

And is the camera in GE as good as it is in TW, or it's as bad as it is in AOSP-based ROMs?
[Galaxy S 4 i9505 Original Android Development] ebahena:
Same image quality as TW, but the post processing is a little less over-barring. So it doesn't over saturate like TW
[Galaxy S 4 i9505 Original Android Development] upndwn4par:
I am sure the ROM is fine. He probably didn't add init.d support.

Flash the new zip I posted (it adds init.d support).
[Galaxy S 4 i9505 Original Android Development] nik511:
Thanks I will try this soon. :) I put my phone to charge a bit...
[Galaxy S 4 i9505 Original Android Development] Formhault:
I rely very much on quick settings toggles. I guess I'll stick to AOSP until I switch to another phone...
[Galaxy S 4 i9505 Original Android Development] sid3winder:
I flashed your zip and my phone is now on a bootloop as well. How do i fix this?
[Galaxy S 4 i9505 Original Android Development] nik511:
Yep still causes bootloop.....
[Galaxy S 4 i9505 Original Android Development] sid3winder:
i reflashed jamal's rom... hope i can get out of this bootloop

EDIT: It worked! Currently showing optimising apps.

Flashed Jamal's 4.4 followed by SuperSU and KT Kernel. The last MotoX Qualcomm Dalvik speed thingy is optional
[Galaxy S 4 i9505 Original Android Development] upndwn4par:
Contrary to what I said earlier, maybe there is a problem with the ROM you are using.

This worked for mrvirginia, and I am also using this same script in my rom.

My ROM is posted in the AT&T S4 section. Feel free to try it and see if everything works.
[Galaxy S 4 i9505 Original Android Development] sid3winder:
Does your ROM work with international variants? I think most of us were on Jamal's 4.4 GPE ROM which explains why your fix didnt work for some of us.

Thanks for your help though! I'm pretty new to this kinda thing and the first bootloop was kinda scary but thankfully it was resolved. :D
[Galaxy S 4 i9505 Original Android Development] muiacir:
Please answer my question

this is a bug for this kernel

all of my friends that have this phone also have this problem with slow motion

I love this kernel but how to solve it
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
No solving it, just doesnt work, this has been discussed at least 500 times in this thread alone.
[Galaxy S 4 i9505 Original Android Development] nik511:
Still bootloop and I wiped everything (data,cache.system,dalvik)! :( I'm starting to suspect that the fix works only for US variants...
[Galaxy S 4 i9505 Original Android Development] muiacir:
thanks for your solution.sou can not solve this problem?and you men the ooooooooonly kernelthat worked with 4.3 rom is telexope?

my friend i have a suggestion that if is has been discussed 500 times please note it in first post
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
I dont know what kernels work, I just know that certain ROMs/phones cant do the slo-mo recording with my kernel, no clue why.
[Galaxy S 4 i9505 Original Android Development] rauschkugl:
Because it's just stock kernel that works with old bootloaders. Yes it's the only one, no he will not fix it. Use search if you want to know more about the topic.

Gesendet von meinem GT-I9505 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
Updated the OP with the release from earlier today. Same kernel as the one from 4am.
[Galaxy S 4 i9505 Original Android Development] upndwn4par:
Bootloops are part of the learning process. The first thing it will teach you is to do a nandroid backup before flashing anything. :)

My ROM should work fine on your device. No special modifications were made for the SGH-I337. Create a backup and flash - you'll have an answer in 10 minutes. :)

Please direct any further questions to my ROM thread since we shouldn't discuss this here.

You may be correct. This hack is not even a day old, so it will take some time to get things sorted. Sorry it didn't work for you.
[Galaxy S 4 i9505 Original Android Development] iamnotkurtcobain:
Oh and if you like to know progress on GE 4.4 rom with your fix... NO progress til now.

Gesendet von meinem SGH-M919 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] Tylog:
I download it now and test it, I think I am right when I think the script is in your rom and no need to flash it?

GT-I9505 / Nexus 5
[Galaxy S 4 i9505 Original Android Development] iamnotkurtcobain:
If it works could you modify it so we can directly flash it on our 9505 tylog?

Would be great :)

Gesendet von meinem SGH-M919 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] Tylog:
I will look if a changed updater script is need , if yes I can do it tomorrow , I am not at home and no pc here, if not I will let you know soon, I will test it now :)

Edit: didn't boot correct, I will look on it tomorrow and send you a pm, I am now on a birthday party of a friend and take one or two or three or some more beer :)

GT-I9505 / Nexus 5
[Galaxy S 4 i9505 Original Android Development] muiacir:
old bootloader?what do you mean?bootloaders that does not have knox?
[Galaxy S 4 i9505 Original Android Development] MattBooth:
[MENTION=4325945]ktoonsez[/MENTION]

AndiP (@Lord Boeffla) of Boeffla kernel had in his kernel a script that run, via the kernel, that added a blank .ogg file to fix some audio issues on Galaxy S3 ROMs. AFAIK, he did this via a script on the kernel, which ran on first boot. Is this at all possible on the S4?

Also [MENTION=4453458]upndwn4par[/MENTION]

I ran the first flashable zip you provided earlier, no avail. Didn't seem to copy the files on boot, using init.d support from the kernel ktoonsez provided.
[Galaxy S 4 i9505 Original Android Development] upndwn4par:
Yes, it's included.

Running the script from the kernel should definitely be doable, and is a good idea. I know that SELinux scripts are from there.

Did you flash the v1.2 zip?

I just deleted busybox, run-parts, and the keymaster files, flashed v1.2 and everything is as it should be. I assume you have the GT-I9505?
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
I was thinking of running a command from KTweaker when I see a special flag I would flash during flash of kernel. But not sure everybody uses KTweaker and sets on boot.
[Galaxy S 4 i9505 Original Android Development] ebahena:
modded apk with kernel that locks on boot?:fingers-crossed:
[Galaxy S 4 i9505 Original Android Development] iamnotkurtcobain:
[MENTION=4325945]ktoonsez[/MENTION]

http://xdaforums.com/showthread.php?p=47976923

Gesendet von meinem SGH-M919 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
You talking about the deleting of the .so file? I havent tried that since I saw that it was still causing reboot on uninstall.
[Galaxy S 4 i9505 Original Android Development] phil.o:
Klick

:highfive:

v2.0 is running great and so far no random reboots :victory: