yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 General] Aack:
Rooted stock optus 4.2 without tipping knox

I managed to root my i9507 on 4.2 OS without tipping knox.

- grabbed the stock optus firmware from sams

- used the simg2img tool to create an image file for system

- mounted that on a linux machine

- added koush's latest su / SuperUser in the appropriate directories

- unmounted and img2simg'd

- used heimdall flash --SYSTEM system.img.ext4

- waited for fail after 100% downloaded.

- used heimdall close-pc-screen

- rooted!

PS.

- broke phone by dropping it on a road.

- replaced under insurance

- got 4.3 OS

- this method appears blocked by SElinux now.

- looking now at how to manage se policies / labels on a mounted filesystem. Getting that pointy stick feeling again though.

Update:

With the system partition mounted, and selinux-utils package installed on me linux system, I ran

setfilecon u:object_r:system_file:s0 system/bin/su

This allowed su to be executed. I then enabled the install-recovery.sh workaround from the zip file and am now running into the issue with permissions on the daemon socket mentioned by mohankr on the koush/superuser github site : github.com/koush/Superuser/issues/227 github.com/koush/Superuser/pull/234

---------- Post added at 03:37 PM ---------- Previous post was at 03:28 PM ----------

After accidentally bricking my 2hr old s4 by putting a 4.2 system part on a 4.3 phone, see my previous post, I recovered using the kies emergency repair (I forget the exact words) under the tools menu. It asked me for model number (GT-I9507) and serial number (under your battery). It then downloaded the 4.3 firmware and flashed it.

HTH
[Galaxy S 4 General] mookill:
how is this going?

I just upgraded from the S2 on CM11 to the S4 i9507.

really itching to go back to CM11 nighties.
[Galaxy S 4 General] mookill:
bump.

no love for the i9507?
[Galaxy S 4 General] skitzmix2000:
CM 11 now supports i9507 and has resolved all issues with modem and sleep issues so you can go back to nightlies now
[Galaxy S 4 General] jameshef:
Have you done this yourself? I will try to do it today if you've done it successfully (on the Optus/Virgin network?).
[Galaxy S 4 General] envyc:
Cm success?

I'm looking at moving to CM on this phone. No idea when Optus will release their bloatware enhanced KitKat for this!

---------- Post added at 01:23 PM ---------- Previous post was at 01:10 PM ----------

I couldn't find anything specific about supporting the i9507. Can this be done via the CM installer or still need to go root and custom recovery route?
[Galaxy S 4 General] skitzmix2000:
Not sure about installer as I went the root and custom recovery route
[Galaxy S 4 General] SH00T:
Thanks for link to the Orig Rom, in case I need to go back to stock...

I haven't flashed a ROM yet, but I have root, with a KnoxWarrantyVoid: 0x0...

Pretty happy with with 4.3 so far, and a lot of app freezing with TB... Just got it today!

We'll see what transpires.....

Subscribed...
[Galaxy S 4 General] SH00T:
I was going to start a thead on GPU's for the 9507 when I ran Quadrant on my S3 and S4, then I ran Antutu and looked at the GPU Scores... tells me a bit about benchmarking... And the software to test it.....

Antutu Testing

S3 4G Mali 400 MP

2D (1280 x 720) 1140

3D (1280 x 720) 5352

S4 9507 Adreno 320

2D (1080 x 1920) 1624

3D (1080 x 1920) 8030
[Galaxy S 4 General] kaiserwatson:
Hey guys sorry I've taken so long to reply, exams and all that! I'll be home later and I'll edit this post replying to some of you and letting you know how my experiences with KitKat have been going! Stay tuned!
[Galaxy S 4 General] just_chill:
can you please tell me how did you root your s4 i9507 4.3

can you please tell me how did you root your s4 i9507 4.3
[Galaxy S 4 General] skitzmix2000:
I was on optus network and all works fine

From snapshot m7 and up works on i9507
[Galaxy S 4 General] kaiserwatson:
Alrighty guys sorry it's taken me so long to reply.

Basically, right in the middle of pre-exam week I did, in all my wisdom, decide to try out KitKat. What it left me with was, for the near future, a useless phone. Let me explain.

What I did was basically upgrade from CM 10 -> 11 within the phone itself, through the upgrade menu in Settings. I upgraded to a Nightly. What this meant was that my phone was buggy and the GApps I already had installed did not work, my phone was essentially unusable; no Google services worked. So, I headed over to http://goo.im/gapps to download the GApps that would work with my phone. Somehow, probably in my tired but energy-drinked state I ended up flashing (thru CWM) the wrong GApps for my phone, which essentially broke it in that whenever I booted up it constantly game me messages about how the AOSP (keyboard) was not working, the Google services were not working, pretty much everything. No matter how many times I clicked OK, more and more messages showed. Not successful.

Even though I had an exam the next morning I knew I had to fix this issue, so I basically went through the CM website and found, as someone had said before, that basically CM has aggregated all S4s (jfltexx) into one firmware, no matter what version your S4 is (i950x). So I chose the latest stable build and set about basically starting from scratch installing the firmware, following my guide in the OP. What I got was a phone that worked fine once more!

So now I'm running KitKat on my S4 i9507, with minor bugs and hitches that haven't affected the use of the phone in any way, so little so that none actually come to mind as I type this. I've found that the battery sometimes drains for no reason but some helpful posts on this forum to do with Greenify etc have helped remedy most of those issues.

Overall, I really like KitKat and I'm glad I've made the jump, even if CM still is a little barebones with the options in Trebuchet, their default launcher, and other assorted niggles I would probably have whether I was on KitKat or not.

If you have any questions, feel free to ask and I'll do my best to answer; I'm also going to update my OP to have current links etc. Thanks all.
[Galaxy S 4 General] loveyasan:
none

very good
[Galaxy S 4 General] IT_Scooter:
just_chill, follow the instructions for root in the first post :)
[Galaxy S 4 General] SnJester:
I have a small issue with mine automatically overriding with the default boot image irregardless of what I do, any tips ?
[Galaxy S 4 General] envyc:
Hi, I thought I'd add to this to advise that after rooting and adding Philz touch recovery I have installed crDroid rom (custom CM 11 based on jflte unified) with complete success on my I9507.

It gives a few more bells and whistles over stock CM.
[Galaxy S 4 General] ekaj98x:
Thank you so much for this, it helped a bunch :) I wish there was more support for the 507 in general. has anyone tried the Alucard kernel? Everyone in the official CM 11 thread are recommending it and I wouldn't mind switching.
[Galaxy S 4 General] IT_Scooter:
New Firmware

Hi, There is new firmware (4.4.2) released for the HK variant on - SamMobile Should this work on the Aus Optus phones too?
[Galaxy S 4 General] ekaj98x:
The latest cyanogenmod update broke my S4, no one else is reporting it so it must only be our version :( anyone else experience this?
[Galaxy S 4 General] lqhorochi:
YES,you can try.
[Galaxy S 4 General] opelcalibra:
I installed the Hk 4.4.2 rom and it worked fine. I could not go back to Samsung bloat though. I had to re root after which worked fine with cf auto root. It did not update the modem but I flashed modem.Bin from the rom manually with Odin. Now running cm snapshot m8 with baseband hubne3 and running well
[Galaxy S 4 General] Ps1Ly:
Excuse my noobism

Where can I find the modem file?
[Galaxy S 4 General] opelcalibra:
Hi All.

Here is the latest modem.bin - Flash via odin

https://dl.dropboxusercontent.com/u/57744351/i9507/modem.bin

NON_HLOS.bin - usually for Wifi fix - I have not flashed this

https://dl.dropboxusercontent.com/u/57744351/i9507/NON-HLOS.bin
[Galaxy S 4 General] Ps1Ly:
Thanks mate :)

Im very new to this so i appreciate it :)

---------- Post added at 02:39 AM ---------- Previous post was at 02:06 AM ----------

What about that baseband?

Where can i find that?

Kind regards
[Galaxy S 4 General] opelcalibra:
Baseband = modem
[Galaxy S 4 General] Ps1Ly:
LOL ok maybe i shall dig up a where to begin info thread so i stop asking such basic questions.

But before i do (hehe)

Does anyone know if i can flash my GT-i9507 with: GoldenEye ROM Android 4.4.2 KitKat for Galaxy S4! GT-i9505/T-Mobile/AT&T/Canadian

Then directly flash the modem file before booting?

Reason: I really need touchwiz back so i can retrieve my snote entries

Tried using TWRP recovery but once i flashed the cm 8 snapshot i cant see any recovery files when i try restore in TWRP

In fact i see nothing when trying to find a recovery file in both sdcard and external

Do i need to flash the original Rom before i can use the twrp recovery?
[Galaxy S 4 General] Ps1Ly:
BTW i have the optus Australian\Hong Kong variant
[Galaxy S 4 General] opelcalibra:
You should be able to flash any rom made for the i9505. Flashing the modem file updates the baseband
[Galaxy S 4 General] Ps1Ly:
Ok thanks ill give it a go
[Galaxy S 4 General] Ps1Ly:
Success!

Now i just need to figure out how to get this modem.bin file into a flashable file for twrp
[Galaxy S 4 General] opelcalibra:
Just as easy to flash via Odin. Or download another modem zip file and replace the modem. Bin with this one.
[Galaxy S 4 General] rosspies:
I have GT-I9507, I was able to install the HK 4,4,2 from SamMobile, I have installed root with CF-Auto Root, I have tried with both Clockwork Mod and TWRP to install nightly jflte roms, but I can not them to install. I keep on getting “signature verification failed” when installing zip from sdcard.

I feel stuck, I can not install the original optus Rom, and am stuck with the HK install at present that is lacking most of the features I am after. Any suggestions would be welcomed.

This is the rom i tried to install cm-11-20140815-NIGHTLY-jflte but have had the same result with older versions as well
[Galaxy S 4 General] longtimerider:
i9507 ROMs

Are there ROMs available from anywhere else other than SamMobile?
[Galaxy S 4 General] opelcalibra:
Start with this rom and update via the cm updater to the latest snapshot.

http://get.cm/get/ejJ
[Galaxy S 4 General] evantangcd:
..........................................

....................................................................
[Galaxy S 4 General] degasto1:
Tks for the info
[Galaxy S 4 General] jaguaralani:
GT-I9507 - Can I ODIN Flash Official Sammy UK i9505 Firmware (4.4.2) ?

This is the Australian/Optus - HK Variant, I want to unlock it to other carriers and get rid of all the optus bloatwares.

Thanks.
[Galaxy S 4 General] rosspies:
The reason I was having issues is becaue i was not getting TWRP installed correctly,When i went in to recovery mode it was using the official recovery made by samsung.

When i installed philz_touch_5.18.9-i9505.tar.md5 via odin it worked without issue.

The Rom now is so much better then the stock roms from Optus and the HK rom. So glad to have found this forum.
[Galaxy S 4 General] opelcalibra:
I wouldn't recommend it. It may flash a baseband that will screw with your phone. Flash the i9507 Hk 4.4.2 firmware and then root and use one of the Samsung debloat scripts on xda forums.
[Galaxy S 4 General] Febers:
I've flashed 4.4.2 firmware, but after I CF-Auto Rooted my phone, the battery drain and heating is terrible...

could you please tell me how did you root your i9507?

big thanks.
[Galaxy S 4 General] lckh:
Could it be a bad ROM?

--------------------------------------------------------------------------------------------------------------------

On another note, according to this website, the i9507 is essentially the same as the i9505 with the exception of the ARM chip.

Does this mean that it would be considered virtually the same as the i9505 when rooting?
[Galaxy S 4 General] hevey:
TWRP

Hey Guys

I noticed that it wasn't mentioned but TWRP 2.8.0.1 seems to work fine. I have done a full factory reset on the device and flashed the omniRom nightly and gapps to the device. I haven't had a chance to play with omnirom yet but so far it seems to have booted and the device is showing to picking up network. thought I would add this in case people were wanting to know other options that seem to work with this model
[Galaxy S 4 General] lckh:
did the new rom change your modem? still works?
[Galaxy S 4 General] hevey:
The only issue I had was after it got off wifi it would has some issues connecting back to mobile data. I have just grabbed the latest nightly and will make sure it was not just a bad install

EDIT so doesn't look to change the modem but there is a delay in connecting to mobile network and switching between WiFi and mobile data. CM nightlies however don't suffer form these issues at all.
[Galaxy S 4 General] IT_Scooter:
Optus Firmware Update

Hi All, Optus have finally released a 4.4.2 update for the I9507. Here's a link to it on Sammobile :)
[Galaxy S 4 General] opelcalibra:
Updated to optus 4.4.2. Rerooted and removed approx 700mb of bloatware. All good so far
[Galaxy S 4 General] jaguaralani:
Mates, how did you mange to root the new optus 4.4.2 firmware ? Thanks
[Galaxy S 4 General] opelcalibra:
Yes rooted with cf auto root no problems. Just follow the same directions as i9505
[Galaxy S 4 General] jaguaralani:
Thanks mate, link to the file please ? :laugh:
[Galaxy S 4 General] lckh:
Did you manage to keep the same modem when flashing a new rom?
[Galaxy S 4 General] opelcalibra:
It flashed the new modem along with the rom.

Here's my recommended process.

1. Install latest optus rom

2. Root with cf auto root follow i9505 directions.

http://xdaforums.com/showthread.php?t=2219803

Note I have tripped Knox long ago so do so at your own risk.

3. Debloat as much as humanly possible. Look here http://xdaforums.com/showthread.php?t=2514703. Make sure you remove all the Samsung crap like push and Samsung account.

4. Install moab highly recommend. http://xdaforums.com/showthread.php?t=1916098

5. Installed xposed. Install nlpunbounce, app settings, app ops xposed modules.

6. Change dpi to 360 with textroider app. Use app settings to fix any Samsung apps that display weird.

7. Use app ops to prevent things like Facebook either waking up or keep awake your device.

8. Use a better launcher. I prefer dodol launcher.

9. Install ktoonez kernel. Set screen off mhz to max 384.

10. With this set up and wifi Bluetooth 4g, connected to my android wear all day and google now, location enabled I average around 14 hours to 20 hours battery life.
[Galaxy S 4 General] opelcalibra:
Heres today a typical usage day for me.
[Galaxy S 4 General] jaguaralani:
Any help with a download link on a third party server like MEGA? Sammobile reaches over 60 and stops...
[Galaxy S 4 General] lckh:
Does this guy ever not ask for help with everyting? So annoying.

Just rooted my i9507 and installed twrp recovery on it. Looking into how to flash the optus modem onto a new rom once I decide which rom to go with. Need to extract from the optus firmware which is 1.6gb download... so big
[Galaxy S 4 General] opelcalibra:
heres a mirror for you for the latest firmware

you can extract the modem.bin and flash manually or google

https://dl.dropboxusercontent.com/u/57744351/I9507XXUFNG2_I9507OPSFNG2_OPS.zip

you should be able to flash the modem.bin via phone button on odin. search xda for help on this. also flash the non_hlos.bin or you might have wifi issues.

alternatively you will need to make your own flashable zip (search xda)

uploading these now, should be done in 15 minutes

latest modem.bin

https://dl.dropboxusercontent.com/u/57744351/modem.bin

latest non_hlos.bin

https://dl.dropboxusercontent.com/u/57744351/NON-HLOS.bin
[Galaxy S 4 General] jaguaralani:
Cheers mate, appreciated.

This is what xda is all about, helping, teaching, and learning from each other rather than showing off or criticizing others.

Thanks again my friend.
[Galaxy S 4 General] lckh:
Ok mate 'showing off'.

You asking for links to the cf autoroot which is in the first post of this thread shows how lazy you are to even read the entire FIRST post. You're not learning anything, you're being spoon fed and I dislike people like you who whinge being criticised for not knowing how to use a search function.
[Galaxy S 4 General] opelcalibra:
guys dropbox killed my links. i hope you grabbed them while you could!
[Galaxy S 4 General] jaguaralani:
Cheers matey, it's on my HDD now, will flash it soon, just looking for a compatible custom recovery now.
[Galaxy S 4 General] lckh:
Rooted and put philz with goldeneye rom. The rom didn't flash a new modem so i didn't have to do a thing. Very smooth.
[Galaxy S 4 General] jaguaralani:
I managed to root it mate, flashed latest optus 4.4.2, then flashed Philz recovery, then flashed CF autoroot ( the new version dedicated specifically for i9507 which you may find on cf autoroot website :). )

Everything is going ok now.
[Galaxy S 4 General] hevey:
Lollipop is working

Hey Guys

Just thought I would post here if you didn't know already that the unofficial cm12 build by AntaresOne works awesomely on this device. I have been running it for about two days and have had no issues apart from was has been mentioned in the thread over there. Link to the thread
[Galaxy S 4 General] matambanadzo:
Verified CM v11 on i9507

I can verify that the latest nightly build of Cyanogenmod v11 works on the i9507.

Rooted using CF AutoRoot (they have specified an i9507 version)

ClockworkMod Recovery installed OK

CM nightly zip installed via recovery OK

Soooo much better than the clunky Optus stock ROM
[Galaxy S 4 General] shanebuchanan:
Ookay. I have a little issue. Im on an i9507 and i have android kitkat they released and update from Optus a couple months back. Im just wondering, will it work rooting it and installing the i9505 software for Cyanogenmod 11??
[Galaxy S 4 General] matambanadzo:
CM 11 for "jflte" works

CM have now combined all the versions of the Galaxy S4 into one - jflte - download.cyanogenmod.org/?device=jflte

The i9505 (jfltexx) nightlies stopped in February. I have the latest (jflte) nightly build installed on my i9507 successfully.

ClockworkMod's version of i9505 is installed and is working fine.

Also CF AutoRoot has a specific version for the i9507 and that also rooted the phone perfectly.

During use though, I have found some bugs which I will be reporting. But nothing serious. It's still sooo much better than Optus' stock ROM with all their crapware. :good:
[Galaxy S 4 General] katoiam:
Unlocking bootloader

Hello,

I know this thread is a little old now but seems to be best place to ask, so I hope some one sees this and can help!

I really really want to root my GT-I9507, asap, have been looking through this site alot recently and the simplest (for a noob) way seems to be 'CF-Auto-Root'.

The problem I am having and not being able to solve is how do I unlock the bootloader?

As chainfire says it can brick my phone if locked and it would appear that it almost certainly is, but I cant find a way to unlock the GT-I9507, only for AT&T and Verizon (American not Australian). I can see that some people must have as they have used the 'CF-Auto-Root' method.

Any ideas, or if someone can point me in the right direction, it would be much appreciated.

Cheers,

Katoiam

PS.

Model number

GT-I9507

Android version

4.4.2

Baseband version

I9507XXUFNG2

Kernel version

3.4.0-2182476

dpi@SWDD3017 #1

Fri Jun 15:19:47 KST 2014

Build number

KOT49H.I9507XXUFNH2

SE for Android status

Enforcing

SEPF_GT-I9507_4.4.2_0018

Fri Jul 11 15:19:24 2014

Secure boot status

Type: Samsung
[Galaxy S 4 General] katoiam:
I have just made the plunge and rooted my phone.

So I used the Chainfire-autoroot method, and it all worked fine.

I have some issues trying to get odin to see my phone, which were rectified by going to samsung for the drivers.

So for anyone who is wondering, Optus have not (at least by 27/1/15) not locked their bootloaders on the GT-I9507.

I hope that this might eventually help someone, and I'm not just talking to my self!
[Galaxy S 4 General] CarteNoir:
Heh, I was in your exact position a couple of days ago and decided to take the plunge myself. Same result; all worked fine. In case you're wanting to install a custom recovery I can confirm that the latest CWM 6.0.4.7 for jflte works perfectly provided you flash with the Heimdall Suite as per the instructions on the Cyanogenmod website under the jftle category (I can't post links yet).

Busybox installs well with the "Busybox Installer" app from the play store but not the "Busy Box" app for some reason.

I'm going to be trying Xposed today so I'll post back if that works without a hitch.
[Galaxy S 4 General] Epic.:
Any other 4.4 based roms (that are not CyanogenMod) work for any of you guys?
[Galaxy S 4 General] Epic.:
Just an update hoping to help out any future readers of this.

I have an i9507 Optus 4G+ model and have managed to root it, flashed a custom recovery (Philz Touch) and a custom rom (Google Play Edition - Lollipop) which runs absolutely beautifully on our device. Message for help
[Galaxy S 4 General] SH00T:
Message sent...
[Galaxy S 4 General] Drift spunk:
Hi Guys

So i have been playing around with android phone for many years..... so to help build the confidence for GT-I9507 users in flashing your device i will give a brief walk though of what i have done.

keep in mind that the GT-I9507 is in the JFLTE family of galaxy phones.

I will suspect that you have knowledge of flashing devices so i wont get into a tutorial of a how to flash.

1: Root - find the GT-I9507 file, download and follow instructions to root via Odin http://autoroot.chainfire.eu/

2: Flash a recovery (find a recovery suitable for

JFLTE

) I used Philz JFLTE latest version https://goo.im/devs/philz_touch/CWM_Advanced_Edition/jflte/

3: Flash a custom ROM- I flashed latest nighlty CM11 since it is official ( Cyanogenmod have made it unified JFLTE)

make sure what you flash is unifiled JFLTE

We want to make sure what you flash onto your GT-I9507 is compatible. I did have one unusual problem but its not not the first time it has happened on a Galaxy phone for me when flashed to a custom recovery for the first time. after i flashed the recovery i could not get into it via the volume up, power button, home button method and was instead in download mode so to counter this i downloaded a boot into recovery app from play.

Hope this has helped a bit
[Galaxy S 4 General] Epic.:
Hey mate, nice to see a fellow i9507 user who is running custom roms.

However you are wrong on a few points

- What you flash does NOT have to be explicity JFLTE. I have been running Lollipop Touchwiz roms on my i9507 Optus 4G variant and they work fine with everything functioning

- What you do need to make sure is that you don't flash a new modem/baseband. Use only the i9507 baseband othewise you will have problems like no cell service, no wifi and 4G etc.

- The CM12 nightlies are pretty buggy right now. The rom I currently use (Google Play Edition for i9505 by Danvdh is my daily driver and has no bugs for me at all. I highly suggest people use that rom instead of the CM12 Nightlies
[Galaxy S 4 General] Drift spunk:
Hey mate

I suppose that does make sense as we need the 4g+ modem. Personally i just stick with official cyanongenmod ROMS now. The bloat from Samsang plus carrier is ridiculous
[Galaxy S 4 General] martx75:
Hi guys. Just want to know if any has tried this.I got i9507 (has i9505 but got this inferior model due 2 insurance thingy[emoji22] ).. phone is rooted 4.3 using towelroot with Knox 0.now I'm goin 2 flash kk with keeping root( changed buildprop so phone thinks it's i9505) n got mobile Odin 2work, n using guides fr xda flash kk with MOdin method while keeping root n Knox 0. Was wondering has anyone tried this/had success? Gee I miss my i9505[emoji25]