yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Original Android Development] side:
Changelog:

Date:13-january-2018

Version 4

md5:cdc515da75510e0ff2a78d799e6c5500

Bring back Email app

Screen Recorder: Reduce resolution to 720x1080

prop: Remove Casting Screen props

prop: Allow GPU to make the graphics debug

PowerMenu: Enable advanced reboot by default

Settings: Enable Night Mode by default

Update our wallpaper

App drawer: Remove search bar

launcher3: Dont show search bar on home by default

Updated Snap camera app

Performance: Memory Optimizations

Rework camera. Allow 1080p front camera record

camera: allow more qualities to be selected

Updated video encoders and decoders

overlay: Enable vibrate when ringing as default

jf: twrp: Copy time zone data to recovery

Allow adding and editing APNs

Screen drivers edits

Enable builtin root access by default

Reenable weather providers

One hand mode : WORKS ONLY WITH NAVBAR ENABLED. Swipe from right to left. Can be disabled from Display settings

camera: Enable face detection

Allow user to set the QS Panel transparency (Settings/Status Bar)

Use OxygenOS switches on UI

Back to mainline GCC Toolchain for ROM

More round corners

Smoother animations and scrolls

Tide up the Settings/Status bar settings

Animate battery when you enter in Settings/Battery

Add PlayStore button on Settings/Apps/One application

Fix BuffCore App not showing CPU temperature

Remove BuffCore's all ads references

SystemUI: Set sound's panel animation correctly ( Comes from left-disposes to the left)

Update to r30 with January's security patches

Upstream merge until 12-January-2018

Do not build CellBroadcast

Add OxygenOS accent blue color to our theming engine - Need more colors? suggest!

Stop showing Settings suggestions in the main Settings activity

Revive O3 global flags for Pie. Also for clang

Faster wake/sleep behavior

Update Mixplorer and Brave

Enable developer options by default

Kernel: Update to 4.3

Clean out some compiler warnings

Reconfigure fast charge

Disable CONFIG_CMA

Edits on USB gadgets

Enable USB MIDI - to be tested

Fix pink screens on brightness changes

kernel: add tripndroid,deadline,zen io scheds

kernel: Optimize CC for speed.Not for size

Add compilation flags for our NEON SoC

Some code clean up

Make slub more flexible

Reimplement the LED configuration brightness. Still tweakable

LCD: Reimplement the Gamma control

GPU: Fix a bug where GPU thermal couldnt understand the pwr levels

audio:Allow audio to retrive more CPU clocks

Use optimized-for-mach-SoCs memcpy

Update CFQ, optimize it for our storage type and use it as default

Some notes...

On androidfilehost folder, you will find the same kernel with enabled OC....feeling risky?

I guess, this week, the android Go - Version 4 will also come. I will upload it to same folder as the default version4.

OC kernel CAN fit on Go version.

about bt.i know i know :( still no fix... sorry
[Galaxy S 4 i9505 Original Android Development] MegisCz:
Thank you and for your hard work ;)
[Galaxy S 4 i9505 Original Android Development] 1991tbirdsc:
[MENTION=3463310]bzyzny[/MENTION] Thanks for clarifying this for cawli2, and for myself! I've spent days reading up on this frustrating issue with TWRP 3.2.x-0 (jfltecan) and the i337m. To be honest, I haven't attempted anything on my S4 i337m yet. I'm still in reading/learning mode.

[MENTION=9340466]cawli2[/MENTION] Thank you for confirming "jflte" 3.2.3-0 worked on your i337m! Congrats!

Please correct me if I'm wrong. During the initial install of TWRP recovery, using Odin 3, on an S4 (with stock recovery and stock Lolipop OS), the phone should be prevented from re-booting the stock OS immediately after the install of TWRP (disconnect USB cable and remove battery just as phone starts to re-boot). This prevents the stock OS from overwriting TWRP in favor of the stock recovery. Then it's just a matter of using the phone's buttons to enter TWRP recovery, etc.

Thanks!

Huge respect to Side, Buff99, and the rest of the JDCTeam!
[Galaxy S 4 i9505 Original Android Development] cawli2:
I don't recall having to remove the battery after the ODIN flash ... but that was so many flash attempts ago that my memory may not be clear on this matter. ODIN by default will reboot the machine. If stock recovery is still there, then do ODIN again without the reboot flag to give you time to pull the battery. Newer phones like my wife's A5 do not permit battery removal, so I'm thinking this is no longer a requirement.
[Galaxy S 4 i9505 Original Android Development] bzyzny:
[MENTION=9340466]cawli2[/MENTION] & [MENTION=9679933]1991tbirdsc[/MENTION] Glad I could help! And yeah, I think you are right about not letting stock rom boot after using ODIN to flash twrp for the first time. Removing battery wasn't necessary in my case, I just held the volume up key when it auto-rebooted after flashing twrp.

[MENTION=5968293]side[/MENTION] (and the rest of JDCTeam) thanks for this wonderful rom! it's unbelievable the S4 is still getting updates, it really is a great phone even if it is ~6yr old :)
[Galaxy S 4 i9505 Original Android Development] ziky abdo:
oooooh version 4 , thank you, really thanks.
[Galaxy S 4 i9505 Original Android Development] stachuuu:
how to install a kernel?
[Galaxy S 4 i9505 Original Android Development] Marko999:
For Version 4, you dont need other Kernel.
[Galaxy S 4 i9505 Original Android Development] stachuuu:
and what about this given for download?

OptLineageOS-4-kernel-OC.img
[Galaxy S 4 i9505 Original Android Development] Buff99:
The OC kernel comes with the major caveat that your phone may not support the extra speed and could boot loop as a result.... set the phone up normally before even considering this alternate kernel.

You should at least have the default kernel extracted and ready to re-flash if needs be....
[Galaxy S 4 i9505 Original Android Development] bzyzny:
Does anyone know if device encryption was fixed in this v4 release? didn't see it mentioned in changelog
[Galaxy S 4 i9505 Original Android Development] 13kai13:
Thank you for posting.

So far I have not succeeded with the jflte 'universal' recovery as you reported success. My phone is a jfltecan (sgh-i337m). With 3.2.0-0 to 3.2.3-0 the touch screen is non-responsive.

I've used both the TWRP app and Odin to flash the universal recovery. It doesn't make a difference for my.

When I first installed Lineage OS 14.1 a few weeks ago to an unmodified S4 I got jfltexx 3.2.3-0 to work twice. It involved something akin to a rain dance that I was unable to reliably replicate. I even was able to use it to install LOS 14.1! My gut instinct tells me that it had something to do with hitting to power button at just the right time, or, that it had something to do with a clean install.

Since then I've tried flashing different recoveries and the only one that has ever worked is 3.1.1 jfltexx. I've usually flashed through TWRP (rooted) but even with Odin, no difference.

Now I'm experimenting with LOS 16 to see if I can modify the installer to work with jfltexx 3.1.1-0. What's the worst that can happen? I brick the phone :).
[Galaxy S 4 i9505 Original Android Development] Buff99:
was it mentioned as being broken?

I know it was fixed a few versions back but didn't see anyone reporting it had been subsequently broken again?
[Galaxy S 4 i9505 Original Android Development] bzyzny:
[MENTION=1711160]Buff99[/MENTION] if it was fixed previously, I was unaware of that. Guess I'll give it a try and report back.

---------- Post added at 06:48 PM ---------- Previous post was at 05:57 PM ----------

[MENTION=1711160]Buff99[/MENTION] Not having any success with encryption. After going to settings and choosing to enable encryption, it shows the green android guy, then the screen goes blank for a few seconds, then goes back to lock screen (i guess this is a soft reboot). I thought maybe Magisk was interfering so I uninstalled that, but still no success. Phone is also fully charged and plugged in. Previously had Nougat RR rom and skipped oreo, so maybe I'm missing a step if the process has changed since Nougat? Thanks for any help
[Galaxy S 4 i9505 Original Android Development] side:
about ant+...first of all i dont know what it is :P secondly...how can i know if it works or not ?
[Galaxy S 4 i9505 Original Android Development] Buzbee2:
Any progress on bluetooth headset/car calling? Not mentioned in new changelog.
[Galaxy S 4 i9505 Original Android Development] 13kai13:
Using this installer modification seems to have worked: https://xdaforums.com/showthread.php?t=2522762

And, I learned a little bit about installers at the same time.

What do ya know, succeeded with TWRP 3.1.1-0 for jfltexx and the modifications detailed above.

I did a super dirty install of OLOS 16 and it got all the way to the lock screen where I got a whole bunch of complaints about missing Play Services (oops, I neglected to install the Android 9 Google apps :)). It wouldn't let me swipe up to login but I imagine that's because of the Play Services or the really dirty install (I wiped absolutely nothing and it started from LOS 14.1).

After a reboot was able to login. Lots of complaints about Play Store being needed but it's working :). Super dirty install.

[Update] The lock screen seems to be problematic. If the S4 goes to sleep and locks I can't use touch screen for anything. Will have to do a clean install now that I've confirmed it works. Lawnchair Launcher seems a little sluggish vs. how it was in LOS 14.1.
[Galaxy S 4 i9505 Original Android Development] bzyzny:
[MENTION=9680441]13kai13[/MENTION] I'm by no means an expert on the topic, but not a noob either so here are my thoughts:

1) the errors you are getting are not related to missing Play services. I intentionally do not install GApps and the rom works fine.

2) the errors are most likely due to dirty flash over LOS 14.1, jumping from Nougat to Pie without wiping is just crazy

3) the errors could also be because the installation did not work properly since you used twrp 3.1.1. When I was trying to upgrade to pie and was having trouble with upgrading twrp, I also tried flashing pie rom with twrp 3.1.1 and it gave some error about unknown/unsupported functions, so I assume the statement that 3.2.3 is REQUIRED was not arbitrary.

4) what version of Odin did you use? it may be necessary to use v3.13.1, if I recall correctly flashing twrp 3.2.3 didn't work for me until I switched from Odin v3.12 to v3.13

Lastly, there may be some minor difference in your model but I don't think so, hopefully you can get it working properly. Luckily the S4 is rather difficult to fully brick, you can usually enter Download Mode and revert to stock with Odin in worst case. Just don't F with the bootloader :)
[Galaxy S 4 i9505 Original Android Development] 1991tbirdsc:
Post #588. No fix yet. ;)
[Galaxy S 4 i9505 Original Android Development] 13kai13:
Thanks for the thoughts. I did flash with Odin v3.13 today so that didn't address my issue :(.

The Play Services missing errors were all in regards to either Google apps or other Play Store apps that were complaining to high heaven that Play Services were missing. Deleting those apps quieted the number of complaints.

I will wipe System, Cache, Dalvik and Data and install OLOS 16 and gapps.

PS Regarding your point #3: did you successfully install OLOS 16 with TWRP 3.1.1-0 or did the error prevent you from installing it outright?

For anyone interested in my experiment, I'll post my success or failure vis-a-vis installing with TWRP 3.1.1-0.

I too imagine that there is perhaps something that TWRP 3.2.3-0 does that TWRP 3.1.1-0 doesn't do because TWRP 3.2.2-0 (or was it TWRP 3.2.3-0) was required when I migrated an S5 from LOS 14.1 to 15.1. Of course, I didn't bother changing the installer script because the newer TWRP just worked for me on the S5. I guess I'll find out.

[Edit] Wiped Internal Storage, Data, Dalvik, Cache and System. Then ran my modified installer for OLOS successfully.

On first boot everything appears fine.

However, there's a show-stopping bug. Once the phone goes to sleep the touch screen stops responding. The hardware buttons still work and the OS is still active. The only thing that isn't working is the touch screen :(.

It feels like it's the exact same reason that TWRP fails to respond to touch and it also resembles how I managed to get TWRP 3.2.3-0 working two or three times. It was on initial boot that TWRP worked with that version (though I couldn't reliably get TWRP 3.2.3-0 working... and considering that the official Lineage OS 14.1 page for the S4 points to 3.1.1-0 suggests this is a long-standing issue).

Now I'm intrigued. How is it that people are successfully installing and using TWRP jflte universal (with a December 2018 build date)?

Can it really be Odin? I'm not entirely convinced because I'm fairly sure I flashed TWRP 3.2.3-0 jflte at least once today with Odin 3.13. The other times I used the TWRP app to flash TWRP 3.2.3-0. Will have to trouble-shoot tomorrow.
[Galaxy S 4 i9505 Original Android Development] bzyzny:
TWRP 3.1.1 didn't stop me from trying, but when flashing the OLOS 16 zip, the installer script would fail part way thru. Not sure which factor ultimately allowed twrp 3.2.3 to work, since I also had to do the "rain dance" to get it working :P Maybe try reverting to the latest stock rom, and then using odin to flash twrp 3.2.3. If that doesn't work then I'm out of ideas for you. Good luck
[Galaxy S 4 i9505 Original Android Development] 13kai13:
Hmm. Maybe I'll try reapplying stock next.

As for your current TWRP, does it work reliably? Or, do you have to do a rain dance?
[Galaxy S 4 i9505 Original Android Development] hcdaniel:
I had to shrink the data partition manually to have a working encryption. Not sure whether updating the ROM will do that for you automatically.

Due to some surprizes with the unlock mechanism magically changing between PIN and pattern, I suggest that you pick a PIN that could also be entered as pattern, otherwise you could be stuck at the boot prompt with an "unswipeable" PIN.
[Galaxy S 4 i9505 Original Android Development] benlm72:
Can't install over release 2

Hi side,

I've tried to install the release 4 over the release 2. As for release 3, the installation doesn't achieve and my phone reboots in recovery. Is there a way to get a log of this that I can send you to try to understand why this happens ?

EDIT : I just found the opengapps log saying I install micro package (that's OK) but no GApps package found and showing a ROM duplicate file with GApps (/system/lib/libjni_latinimegoogle.so). Does i t help ?
[Galaxy S 4 i9505 Original Android Development] ikwerner:
Direct unlock was working somewhat in v2.

It was only working in v2.

If I would hit the power button and one second after the screen would go dark there was the unlock sound it would work else it would not.

In all other version I need hit power 3 times to direct unlock.

The first time it will only show status bar.
[Galaxy S 4 i9505 Original Android Development] aykuut:
is a dirty flash ok if I upgrade from release 3 to release 4?
[Galaxy S 4 i9505 Original Android Development] Alienfly:
Ok for me!
[Galaxy S 4 i9505 Original Android Development] herbi1966:
For me too[emoji846]
[Galaxy S 4 i9505 Original Android Development] 13kai13:
An update to trying to install OLOS 16 into jflte (jfltecan).

Using Odin 3.13 I first flashed stock Android 5 and then the universal TWRP 3.2.3-0 jflte. No luck. The recovery usually does not respond to touch.

At one point I was able to get recovery to respond to touch (I happened to hold down volume up and home until the main TWRP screen appeared and it worked... But I couldn't replicate the behavior).

I took the opportunity to install OLOS 16 but it's the same as before. OLOS 16 v 4 boots and works fine right after boot but as soon as it locks, the touch screen stops responding. Hardware buttons still work but that's it.

I tried with and without SD card and it didn't make a difference.

I guess just flashing in TWRP 3.2.3-0 isn't enough to get LOS 16 working 100% if TWRP isn't responding to touch itself.

I think I'll just go back to 14.1 for this device. It's rock solid stable. I just wanted to see what Android 9 was like... the Pixel launcher was nice but Lawnchair launcher already provides that in earlier versions of Android.
[Galaxy S 4 i9505 Original Android Development] InTheY2K:
For me not so much. Various Google apps keep crashing repeatedly, even after reinstalling gapps.

Account restore hangs on confirmation of unlock pattern.

EDIT: Two reboots later it's working alright. I had overlooked the feature of the integrated su solution which seemed to be in conflict with the concurrent presence of Magisk. Now after flashing Magisk 18 once again it is looking promising.
[Galaxy S 4 i9505 Original Android Development] xtil:
Bottom of post #588
[Galaxy S 4 i9505 Original Android Development] bzyzny:
Thanks, I had read something like that before but was hoping there would be an easier fix. Perhaps I'll try that when I've got plenty of time, seems like it could easily go wrong if not careful
[Galaxy S 4 i9505 Original Android Development] DoughMucker:
I had trouble flashing v4 onto my jfltecan too. I originally had v2 on it and tried a dirty flash but it didn't work...boot loop. I saw that my trwrp was outdated so I tried updating to twrp-3.2.3-0-jfltecan. That failed (as did 3.2.2-0 and 3.2.1-0). I put twrp-3.2.3-0-jfltexx on and that allowed me to (clean) flash v4 successfully.

BTW, I love this rom. Pie on a S4...who'd a thunk it. And the performance is excellent!
[Galaxy S 4 i9505 Original Android Development] Catscratch:
He guys.

I'm still on v2. Tried to dirty upgrade to v3 and v4. Both result in a reboot into recovery after seeing the pie boot animation for some minutes.

Does anyone have an idea what I can try to avoid a clean flash?
[Galaxy S 4 i9505 Original Android Development] nostrings:
Titanium backup. Though, I haven't tested this myself in Pie, so YMMV
[Galaxy S 4 i9505 Original Android Development] Leone/kyleproxx:
Had the same bug as this also. Also had to reflash magisk after flashing the overclock kernel. This might not be a bug though.
[Galaxy S 4 i9505 Original Android Development] Israelleite:
were you able to flash the kernel ?

Do you know how to flash this kernel in a *.img format ?
[Galaxy S 4 i9505 Original Android Development] ziky abdo:
ya that's happen to me when upgrading to v3, you need a clean flash .

note : dirty flash from v3 to v4 is working
[Galaxy S 4 i9505 Original Android Development] elektro255:
[MENTION=5968293]side[/MENTION] thanks for the update, I've verified the MIDI is working both BLE and USB including Android M packages
[Galaxy S 4 i9505 Original Android Development] Visotsky:
We are expecting for BT calling to be functional. :) That's the only problem concerning my phone usage - no way to connect my BT car audio.

Thank you for your job, side! :)
[Galaxy S 4 i9505 Original Android Development] Savatage76:
Sometimes after receiving notify on screen off, the launcher going freezing for 2/3 minutes. anyone have the same bug?
[Galaxy S 4 i9505 Original Android Development] DerHimmel:
Regards to all. With version 2 the GPS works perfectly, fast and stable fix. I tried, in succession, version 3 and now version 4. Unfortunately, the GPS does not work more well, fix very slow and not stable. Test in central Italy. Has this problem been found by others? Thank you

Saluto a tutti. Con la versione 2 il GPS funziona perfettamente, fix veloce e stabile. Ho provato, in successione, la versione 3 e adesso la versione 4. Purtroppo il GPS non funziona più bene, fix molto lento e non stabile. Test in centro Italia. Questo problema è stato riscontrato da altri? Grazie

P.S. I've always done a clean installation

P.S. Ho sempre fatto una installazione pulita

translated with google translator
[Galaxy S 4 i9505 Original Android Development] InTheY2K:
No, GPS working fine here. Quick and precise.
[Galaxy S 4 i9505 Original Android Development] Rustdroid:
Does everyone else's screen rotation work ? I did a clean flash V4 then flashed OC kernel.

My bad lol. Downloaded V1 by mistake. Must of been to excited there was a update :)
[Galaxy S 4 i9505 Original Android Development] InTheY2K:
Yup!
[Galaxy S 4 i9505 Original Android Development] side:
Optimized LineageOS 16.0 Version 4 - Go

is uploaded inside the version4 folder.

Changelog

Rebased from V4

Removed more apps

Gapps are included

Go apps are also included ( Youtube, file manager,maps, Google search,assistant)

Launcher is built for Go version
[Galaxy S 4 i9505 Original Android Development] Israelleite:
How did you flash the kernel ? Odin or TWR ?

Do you mind to help me with that ?
[Galaxy S 4 i9505 Original Android Development] RuKaDa:
To Flash the OC Kernel you need to reboot in recovery mode. Once in TWRP select install (It´s the same as flashing a ROM), go to the folder where you have the OC Kernel (.img file), in the bottom of TWRP select image (instead of zip), then select the OC Kernel and finally select boot. :)
[Galaxy S 4 i9505 Original Android Development] 13kai13:
Hmm DoughMucker. It must be the way I'm flashing the S4 or my device. I've tried jfltexx and no dice. It almost always fails to have a working touch screen on first boot for the recovery (any version after 3.1.1-0) and in Optimized Lineage OS v4 the touch screen consistently fails after going to sleep.

I've also tried flashing recovery in a variety of ways (Odin 3.13, TWRP app, TWRP itself, with or without an SD card in the slot). I've also tried flashing 3.2.3-0 using Odin 3.13 after having flashed stock Android.

The only thing I haven't tried is with a SIM card in the slot because this isn't my phone (an S5 Neo is my primary device because it's faster and has a more responsive camera than the S4). The S4 is just a play toy (which is why I'm willing to take a gable with a ROM under active testing).

With TWRP 3.1.3-0 and Lineage OS 14.1 this phone is rock, solid stable.

Did you have the touch screen problem?
[Galaxy S 4 i9505 Original Android Development] Israelleite:
Thank you very much. I didn´t know that TWR could flash *.img files.

I just install the kernel and seen to be pretty stable.
[Galaxy S 4 i9505 Original Android Development] RuKaDa:
Glad you´ve made it :)
[Galaxy S 4 i9505 Original Android Development] DoughMucker:
No touch issues here. FYI, I also did not have a SIM in the S4 while flashing.
[Galaxy S 4 i9505 Original Android Development] Savatage76:
Anyone have no maps in google maps?
[Galaxy S 4 i9505 Original Android Development] marduj5:
I don't have problem flashing recovery and rom with or without sim.I am using old odin 3.07 without problem.Before flash twrp I rooted stock firmware with autoroot and than succesfuly flashed twrp.No problem with touchscreen on version 3 and 4.I have better battery life than on oreo.Model i9505.
[Galaxy S 4 i9505 Original Android Development] cawli2:
To clarify, I loaded LOS 16 using TWRP 3.1.1 jfltecan (although I had to remove the assertions from the updater-script) . I later used https://dl.twrp.me/jflte (link from earlier [MENTION=3463310]bzyzny[/MENTION] post) to load TWRP 3.2.3 successfully. I have not used 3.2.3 to load any new LOS yet.
[Galaxy S 4 i9505 Original Android Development] olo320i:
gt-i9505 version 4 Go, Clean instalation no access to sd card and external memory via otg. Access danied.
[Galaxy S 4 i9505 Original Android Development] liammc83:
Install latest pie on i720 with twrp provided. Everything working perfect, Thank you so much.

Only bug is with freedom pop wasnt getting a signal, flashed freedom pop APN zip, and it only gets 3G, But honestly don't care as everything else personally needed works, battery life is also much better than stock.