yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Original Android Development] AntaresOne:
Optimized CyanogenMod 12 for the Samsung Galaxy S4 (Qualcomm variants)

Brought to you by AntaresOne & Alucard24​

#include <std_disclaimer.h>

/*
* Your warranty is now void.
*
* We're not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/

Features

Rock stable and faster than a rocket

Based on CyanogenMod 12.0 - Android 5.0.2 Lollipop

First Android Lollipop ROM released for Galaxy S4. Born as unofficial CM 12.0, evolved in Optimized CM 12.0

AntaresOne OTA Center built-in - your all-in-one assistant to check for updates & read XDA threads

Custom kernel Alucard-PWR-CORE with STweaks support, compiled with Linaro GCC 4.9.3 and XZ compression

F2FS support for cache, data, system and MicroSD Card

JustArchi's ArchiDroid Optimizations inside

-O3, Graphite, Pthread and Strict Aliasing optimizations

Many system tweaks (not hosted on GitHub) to enhance speed and stability

Only one zip for any Galaxy S4 with Qualcomm Snapdragon 600:

GT-I9505

GT-I9505G

GT-I9507

GT-I9508

Any SCH-I545

Any SCH-R970

Any SGH-I337

Any SGH-M919

Any SPH-L720

GT-I9515 is not supported (slighty different hardware)

Known issues

Device-related issues: none

Download

ROM builds are hosted on AndroidFileHost

TWRP Recovery v2.8.6.0 with F2FS management support: AndroidFileHost

Installation

Clean or first time install:

Download the ROM from the link above

Download GApps package for Lollipop

Put the zip files on your SDCard

Reboot in Recovery

Wipe Data/Factory Reset

Select "Install zip from SDCard"

Choose CM12 zip file

Choose GApps zip file

Reboot system

Update from a previous build:

Download updated build from the link above

Put the zip file on your SDCard

Reboot in Recovery

Select "Install zip from SDCard"

Choose CM12 zip file

Reboot system

First boot after install/update takes a while, wait at least 5 minutes for it to boot.

To convert cache/data/system partitions to F2FS look in 2nd post.

Sources

Available on GitHub: Device tree - Kernel

Credits

Alucard24 - kernel developer

[*]AntaresOne - ROM developer

[*]CyanogenMod

[*]vt0r - AndroidBuilder build server

XDA:DevDB Information

Android 5.0.2 | Optimized CyanogenMod 12 builds [STABLE], ROM for the Samsung Galaxy S4

Contributors

AntaresOne, alucard_24, smeroni68, franzyroy, JimSilver73

ROM OS Version: 5.0.x Lollipop

ROM Kernel: Linux 3.4.x

Based On: CyanogenMod

Version Information

Status: No Longer Updated

Current Stable Version: Final 20150420

Stable Release Date: 2015-04-20

Current Beta Version: Pre-Final 20150403

Beta Release Date: 2014-11-19

Created 2014-11-17

Last Updated 2017-05-19
[Galaxy S 4 i9505 Original Android Development] AntaresOne:
Video reviews

[youtube]y6YpDGhM14I[/youtube]

Thanks to [MENTION=4581600]ISF[/MENTION]

[YOUTUBE]oEuwLgOAzcU&list=UUU-5Ixoq2T4_nKjnLPw4-BQ[/YOUTUBE]

Thanks to [MENTION=5180261]LMH1998[/MENTION]

[YOUTUBE]Urj7uWpqX_c#t=31[/YOUTUBE]

Thanks to [MENTION=2698640]nadejo[/MENTION]
[Galaxy S 4 i9505 Original Android Development] AntaresOne:
Changelog (starting from 8/3/2015)

20/4/2015 - Final - Stable -

Clean install required

AntaresOne OTA Center:

Removed DarkUI thread

Updated italian translation

Various minor updates

Device:

Removed discard flag in fstab

Kernel:

Ramdisk updates

Various code updates - [MENTION=4899086]alucard_24[/MENTION]

ROM:

JustArchi's ArchiDroid Optimizations V4 - here and here

F2FS for system not as default anymore to fix installation in recoveries without mkfs.f2fs (look below in this post to convert to F2FS)

Merged all the upstream changes from CM (branch cm-12.0)

More system stability & speed

Various code updates

3/4/2015 - Pre-Final

Device:

Add GPS set privacy

Kernel:

Various code updates

ROM:

Added brightness settings to Profiles

CMFileManager: fix support for USB-OTG

Merged all the upstream changes from CM (see here for info)

21/3/2015

ROM:

Merged all the upstream CM changes

Various code updates

15/3/2015

Kernel:

Alucard CPU governor updates

Various code updates

ROM:

Merged all the upstream changes from CM

14/3/2015

Kernel:

Some MMC changes from official Samsung Lollipop kernel

ROM:

Merged all the upstream changes from CM

Weird screen tint LiveDisplay bug should be now fixed

LiveDisplay: fix for multiuser

Various code updates

12/3/2015 - Beta 12 - Clean install required

Device:

Disable config_show_apn_settings_cdma (apparently causes issues on non-CDMA devices)

Enabled OTG storage settings

GPS: update build target (now fixed and perfectly working)

Kernel:

Various code updates

ROM:

Merged all the upstream changes from CM

New STweaks, materialized! Thanks B--B

New installation script! (this *should* definitely fix Bluetooth share & GApps FCs after a dirty update)

Fixed 2G/3G/LTE switch

Fixed disappearing clock in status bar

Fixed LiveDisplay color calibration

Various other code updates

Various SystemUI updates

Various Theme Engine updates

8/3/2015

Device:

Added XPrivacy SEPolicy

Ramdisk updates

Various device tree updates (see my GitHub for details)

WiFi instability fixed

ROM:

Added back CM File Manager

Merged all the upstream changes from CM

Testers

@franzyroy @Jimsilver73 @smeroni68

Using F2FS

What it is? Wikipedia

To use it you should first convert your EXT4 partitions through recovery, before installing this ROM.

On PhilZ:

Wipe and format options->custom format options->toggle ext4 f2fs migration

Format cache->f2fs

Format data and data/media-> f2fs (Warning: internal storage is formatted, make a backup of your personal data before doing this!)

Format system->f2fs

On TWRP:

Download and install this TWRP version: https://www.androidfilehost.com/?fid=95916177934546651

Wipe->advanced wipe

Select cache->change or repair file system->f2fs

Select data->change or repair file system->f2fs (Warning: internal storage is formatted, make a backup of your personal data before doing this!)

Select system->change or repair file system->f2fs

Now you can install this ROM following installation steps in post above
[Galaxy S 4 i9505 Original Android Development] AntaresOne:
Banners

If you want to give an awesome look to your signature and let the world know what ROM you're using, add in your signature the code that you find below the preview :)

Normal

[CENTER][URL="http://goo.gl/Pq1sL2"][IMG]http://i57.tinypic.com/2lvy2l2.png[/IMG][/URL][/CENTER]

Blue

[CENTER][URL="http://goo.gl/Pq1sL2"][IMG]http://i62.tinypic.com/2yyuibq.png[/IMG][/URL][/CENTER]

Cyan

[CENTER][URL="http://goo.gl/Pq1sL2"][IMG]http://i57.tinypic.com/10xenua.png[/IMG][/URL][/CENTER]

Green

[CENTER][URL="http://goo.gl/Pq1sL2"][IMG]http://i61.tinypic.com/35mjcsk.png[/IMG][/URL][/CENTER]

Greyscale

[CENTER][URL="http://goo.gl/Pq1sL2"][IMG]http://i58.tinypic.com/5be8tx.png[/IMG][/URL][/CENTER]

Inverted

[CENTER][URL="http://goo.gl/Pq1sL2"][IMG]http://i59.tinypic.com/11tr2ug.png[/IMG][/URL][/CENTER]

Low flames

[CENTER][URL="http://goo.gl/Pq1sL2"][IMG]http://i59.tinypic.com/2u7lq4p.png[/IMG][/URL][/CENTER]

Pink

[CENTER][URL="http://goo.gl/Pq1sL2"][IMG]http://i60.tinypic.com/3496gs6.png[/IMG][/URL][/CENTER]

Red

[CENTER][URL="http://goo.gl/Pq1sL2"][IMG]http://i59.tinypic.com/2nqrzbk.png[/IMG][/URL][/CENTER]

Violet

[CENTER][URL="http://goo.gl/Pq1sL2"][IMG]http://i60.tinypic.com/e9j87b.png[/IMG][/URL][/CENTER]

Yellow

[CENTER][URL="http://goo.gl/Pq1sL2"][IMG]http://i58.tinypic.com/2wcff4k.png[/IMG][/URL][/CENTER]
[Galaxy S 4 i9505 Original Android Development] nadejo:
[YOUTUBE]Urj7uWpqX_c[/YOUTUBE]
[Galaxy S 4 i9505 Original Android Development] feraay:
External SD card man ... Is broken

And No u are not need to convert anything

Lesen Äffchen
[Galaxy S 4 i9505 Original Android Development] netonicodemos:
So, the mobile network, like calls and 3d won't work? Sorry for my bad english
[Galaxy S 4 i9505 Original Android Development] Joeyxc:
A*Radio Interface Layer*(RIL) is a layer in an operating system which provides an interface to the hardware's radio and modem on e.g. a mobile phone.
[Galaxy S 4 i9505 Original Android Development] BakedTator:
This is one hell I f an alpha ROM...to have all this working and our first build! You sir are awesome! Will repost any bugs for(other than those stated in op) for the jflteusc
[Galaxy S 4 i9505 Original Android Development] kLN93:
Thank you so much, eargerly waiting for the download link to appear :P
[Galaxy S 4 i9505 Original Android Development] rboy28:
Great :D

It's amazing that at the moment only a few components don't work. Also the camera, I didn't expected it's working in the beginning (okay the cm code is changing in the next future and may some issues later but we'll done, sir)

Hopefully we're seeing more of you in the next time :)

Gesendet von meinem GT-I9505 mit Tapatalk

Edit: Is the Play Store working?
[Galaxy S 4 i9505 Original Android Development] andrew.johnson42:
$10 says I break the refresh button out of excitement. Awesome job devs and many thanks.
[Galaxy S 4 i9505 Original Android Development] BakedTator:
He didn't say anything g about the play store being broke...seeing as WiFi works, all should be well...I know we are going to run into issues where some users have a problem only they have but, please remember, this is an alpha build...I mean alpha!!! So if you do have a unique issue, please get a logcat to him so that it may help with future builds!
[Galaxy S 4 i9505 Original Android Development] AntaresOne:
It's coming :)

Uploaded 192/224 MB, meanwhile I'm pushing sources on GitHub
[Galaxy S 4 i9505 Original Android Development] xByt3z:
Awesome! Can't wait till its done uploading! Thanks for the share! Will flash as soon as its online. Will try do as much reporting and solving bugs as I can.
[Galaxy S 4 i9505 Original Android Development] mcconvict:
Sooooo close! Thanks man!
[Galaxy S 4 i9505 Original Android Development] AntaresOne:
Finished! :)

Sources uploaded on my Github
[Galaxy S 4 i9505 Original Android Development] noremac258:
Done downloading
[Galaxy S 4 i9505 Original Android Development] Isolameteo_Sardegna:
HI , first of all congratulations for your work , dear fellow .

I wanted to know what was changed in the distribution today. you can make a changelog ? :o
[Galaxy S 4 i9505 Original Android Development] Lurninn:
Dude?

Try to be more detailed, or just don't answer. ;)

If someone asks you why he burns when he is under the sun for too long, you don't answer "Because the sun is hot, duh!" ... you answer "Because the sun damages the RNA, and the cells it contains die. Receptor molecules pick up this signal and infect surrounding cells to give a warning"

The first one is useless :) And like i said: I'm not complaining, I'm just trying to learn something.
[Galaxy S 4 i9505 Original Android Development] DefyUser89:
Okay, thank you. I'll be careful on the beach

BTW, We are talking about new system, where for each phone needs a different drivers and different configuration.
[Galaxy S 4 i9505 Original Android Development] Isolameteo_Sardegna:
I'm sorry, but I only noticed now that the last update is related to the post, but the download version and that of 17 ever . :angel::crying::silly:
[Galaxy S 4 i9505 Original Android Development] BIGfin86:
ready to test with jfltevzw
[Galaxy S 4 i9505 Original Android Development] Jchef:
Not responding to anyone in particular, but maybe people should read the entire op before posting. This is a work in progress. If would be nice if we could keep it as clean as possible. We know there are going to be lots of bugs so please read before posting an issue. I also don't want to read the same stuff over and over. Cheers and thanks op for your work.
[Galaxy S 4 i9505 Original Android Development] kLN93:
Very impressive for a alpha build, wasn't expecting a build so quickly but thanks for your work. Looking forward to seeing a stable build
[Galaxy S 4 i9505 Original Android Development] AntaresOne:
GPS is fixed now, but RIL it's still broken. External storage (MicroSD Card) is working only if FAT32 formatted (exFAT is broken)

Compatible with any jf device, just install the zip. :)

I'm trying to fix sound now
[Galaxy S 4 i9505 Original Android Development] dante_ale:
What is the difference between the ril in the i9500 and i9505?
[Galaxy S 4 i9505 Original Android Development] AntaresOne:
Everything. :p
[Galaxy S 4 i9505 Original Android Development] dante_ale:
ah ok, grazie
[Galaxy S 4 i9505 Original Android Development] stldelsol:
So I noticed this is for any i9505 but in my experience I can't get radios to work ever. I always use cm for the i9500 jflte not the jfltspr even though mine is a sprint s4. Am I missing something? I know I'm an idiot but lol
[Galaxy S 4 i9505 Original Android Development] AntaresOne:
Uploading new build:

Compatible with any jf device (just install the zip and you're ready, loki patch for locked bootloaders is inside)

Sound and GPS are fixed, ROM is way faster now

Sources are on https://github.com/AntaresOne

Beta!
[Galaxy S 4 i9505 Original Android Development] Arnibarniboy:
Wow great man :good: now there are only the RIL and the exfat what shoud be fixed before it is daily usable :D

but yeah the progress is very fast of this Rom... great job :D
[Galaxy S 4 i9505 Original Android Development] DSDONE:
This is awesome!
[Galaxy S 4 i9505 Original Android Development] kLN93:
Great work! will try the new build when I finish work.
[Galaxy S 4 i9505 Original Android Development] tibaland:
Waiting for radio!

I cant install GApps...
[Galaxy S 4 i9505 Original Android Development] AntaresOne:
Try to download 5.0 ones here: https://s.basketbuild.com/gapps

I wrote this link in OP some hours ago
[Galaxy S 4 i9505 Original Android Development] AntoineAc:
[MENTION=5464206]AntaresOne[/MENTION] Is RIL easy to fix and when will you start to fix it ?
[Galaxy S 4 i9505 Original Android Development] FcukBloat:
minimal gapps I suggest you http://xdaforums.com/android/software/gapps-google-apps-minimal-edition-t2943330 much smaller in size :)

as soon as ril is fixed I may flash this on my girlfriend's s4 and my colleague's... grazie mille to OP and keep up the good work! ;)
[Galaxy S 4 i9505 Original Android Development] auiterwaal:
Try disabling or enabling HW overlay on developer options
[Galaxy S 4 i9505 Original Android Development] Prouder:
Yea I guess it is. I'm on Verizon with the same issue on 12/3 and 12/5, so 12/1 is a daily driver right now
[Galaxy S 4 i9505 Original Android Development] HORiZUN:
I can test Netflix on gsm, but I need a temp login as I'm not a subscriber.
[Galaxy S 4 i9505 Original Android Development] BakedTator:
12/1 text works for me but no mms
[Galaxy S 4 i9505 Original Android Development] KroonBerg:
Makes no difference. Still broken.
[Galaxy S 4 i9505 Original Android Development] dwarfer66:
Reading these posts, it seems most of the problems (such as sms etc.) are with US telcos.
[Galaxy S 4 i9505 Original Android Development] munkyvirus:
T-Mo US here, texting works, no MMS tho, nor Netflix.
[Galaxy S 4 i9505 Original Android Development] HORiZUN:
MMS works on my T-Mobile SGH-M919, but I'm on At&t..
[Galaxy S 4 i9505 Original Android Development] dwarfer66:
Can't wait for xposed to be working as I use a lot of them, something to do with not being ART compatable isn't it?
[Galaxy S 4 i9505 Original Android Development] HORiZUN:
Yeah, xposed is based on dalvik and 5.0 made the transition to ART. Broken xposed for 5.0 possibly indefinitely according to xposed author.
[Galaxy S 4 i9505 Original Android Development] HeavyA:
12/5 mms works on the T-Mobile lte apn, but not on the ipv6 lte apn
[Galaxy S 4 i9505 Original Android Development] BakedTator:
How do you get to change your APN? I don't have the option in the ROM anywhere
[Galaxy S 4 i9505 Original Android Development] HeavyA:
Settings/more/cellular networks
[Galaxy S 4 i9505 Original Android Development] BakedTator:
Not there for CDMA...and no apps that I have tried have worked
[Galaxy S 4 i9505 Original Android Development] HeavyA:
I'm on T-Mobile (GSM), so I have the option to change it. Don't know anything about working on CDMA. sorry
[Galaxy S 4 i9505 Original Android Development] TLK3:
Xposed will not likely be back anytime soon. Read the developers comments regarding ART.
[Galaxy S 4 i9505 Original Android Development] dwarfer66:
Yeah I just did as you posted that mate!
[Galaxy S 4 i9505 Original Android Development] draginslygj:
Stay awake

In such the latest build with clean flash but it battery terriorable. Android os is keeping the device awake almost all the time. Tried everytjing including turning off all location relatwd services. Wifi and data. Doesnt change anything.
[Galaxy S 4 i9505 Original Android Development] mulletcutter:
YouTube ads are killing me. One module that is missed
[Galaxy S 4 i9505 Original Android Development] dwarfer66:
Yeah tell me about, also I use Obb2SD as well.
[Galaxy S 4 i9505 Original Android Development] Cyclonesrule91:
On US Cellular so CDMA as well. ON 12/3 and 12/5 I always get errors sending SMS but they actually send Ok, but sometimes send 1-2 more duplicate texts. Every SMS I send the text shows failed and if I hit the resend in the error pop up, it sends another text but shows as failed. Now if I try and send a MMS picture, then blam it's sent just fine and shows success. Strange......
[Galaxy S 4 i9505 Original Android Development] mulletcutter:
That's what we CDMA guys are getting past 2 builds. They go through yes, but error. Idk somebody will figure it out
[Galaxy S 4 i9505 Original Android Development] BakedTator:
I'm on us cellular as well...same thing happens to me but I can only send MMS with stock messenger and hangouts...I use google messenger and it fails on sending MMS...I can't figure out what's causing this...only seems to be CDMA phones having this issue
[Galaxy S 4 i9505 Original Android Development] BakedTator:
This is what it says when i try to acces my apn setting via app

[/URL]

How do I enable editing?
[Galaxy S 4 i9505 Original Android Development] achilles08:
turn off the bluetooth...its the only thing that keeps the device awake at minimum scaling speed(cpu).
[Galaxy S 4 i9505 Original Android Development] JhoonB51:
[MENTION=3462598]BakedTator[/MENTION], try this..In messaging go to Settings->->SMS Validity Period->->change setting to Maximum. I am now able to send mms with no error messages, also sent attachments with no error messages.
[Galaxy S 4 i9505 Original Android Development] TRusselo:
so... it doesn't let you push the Circle + button at the top beside the three dot menu overflow button?
[Galaxy S 4 i9505 Original Android Development] TLK3:
Install a REAL battery monitoring app (Better Battery Stats or GSam) to find out why. This tells you nothing.

Oh. Did you turn off Bluetooth? I'm betting that's the problem.
[Galaxy S 4 i9505 Original Android Development] Andycar:
This actually depends on version of gapps that you are using.

GoogleCalendarSyncAdapter.apk needs to be in /system/app/GoogleCalendarSyncAdapter

Or just use this flashable gapps zip with this file already added by me:

https://www.dropbox.com/s/ytgvu1v7a5i9a3h/gapps-L-minimal-signed-11-23-14-calendar_Add.zip?dl=0
[Galaxy S 4 i9505 Original Android Development] michelino.chionchio:
I've already salve changing the GApps pkg, but thank you for kindly replay
[Galaxy S 4 i9505 Original Android Development] :
For those who also got broken status bar option:

go to the location data/data/com.android.settings/shared_prefs and open com.android.settings_preferences.xml:

delete following line:

<boolean name="status_bar_show_battery_percent" value="false" />

Save and close Settings (through Task Manager or Restart)

Than it should work again :)

The problem is the conflict of the old value and new one.

Old one is boolean, new one string.
[Galaxy S 4 i9505 Original Android Development] AntaresOne:
Better to wait the new build where I have already fixed that :)

Inviato dal mio GT-I9505
[Galaxy S 4 i9505 Original Android Development] BakedTator:
It does let me push it but I won't hold anything I set
[Galaxy S 4 i9505 Original Android Development] AntaresOne:
Guys a new build will come in the next hours, someone wants to make a video review of latest build (or at least 3/12) of this ROM for me? :)

Any video review that I found on YouTube is based on builds before December
[Galaxy S 4 i9505 Original Android Development] malybru:
Mod Edit

Thread cleaned

Weekly reminder:

Questions go HERE

Bug Reports go HERE

Thank you

malybru

Forum Moderator
[Galaxy S 4 i9505 Original Android Development] florencsinanaj:
I can do it :) you want it by screen recording or a camera?
[Galaxy S 4 i9505 Original Android Development] AntaresOne:
As you want, I haven't preferences :) maybe with a camera is better, since you can also show how to install (format /system)
[Galaxy S 4 i9505 Original Android Development] florencsinanaj:
Oh damn i thought it was just a review because im using multirom and cannot show how to format system ( you know what im talking about )
[Galaxy S 4 i9505 Original Android Development] kofe:
You can show how to format system withouth actually formatting it :)

Just point the directions to it.

Thanks for your effort!
[Galaxy S 4 i9505 Original Android Development] AntaresOne:
It's okay too :) just a video review of the ROM then
[Galaxy S 4 i9505 Original Android Development] florencsinanaj:
Alright i will try to swap Roms and set CM as primary
[Galaxy S 4 i9505 Original Android Development] hugoglezp:
MSN serial hs DMA is what? Kernel wake lock says this is draining my battery.

I think it is related to bluetooth, it has to do with framwork (config.xml)
[Galaxy S 4 i9505 Original Android Development] JonanomisK:
I'm pretty busy today, but I can try and make a video later for the installation and review of the rom. Thank you!
[Galaxy S 4 i9505 Original Android Development] Kattiq:
[MENTION=5464206]AntaresOne[/MENTION]

I can make a video review! I've actually been thinking to make one about This rom for a while. But is it okay if it doesn't include a tutorial for installation?, I mean I will use a screen recorder.
[Galaxy S 4 i9505 Original Android Development] blk_jack:
^ this. The upstream CAF-related issues should be mentioned in the OP so they're not brought up here ad nauseam. AntaresOne isn't touching the hardware libs with this ROM. They'll be fixed when it's (most likely) fixed in CAF and cherry picked by CM's chipset maintainers.
[Galaxy S 4 i9505 Original Android Development] AntaresOne:
I hope that now they'll listen you... I said that depends on bluetooth source itself don't know how many pages ago and even in bug tracker

Thanks for the tip, I'll add it right now to the OP
[Galaxy S 4 i9505 Original Android Development] blk_jack:
Cheers man. Don't want to downplay your efforts either and I run your ROM & appreciate the work you've put in.

People just need to be made aware that upstream issues affecting the chipset are beyond 99.99% of the Android community's ability to resolve and that typically these things get fixed when they're pushed to CAF first.

For those unaware, CAF is Qualcomm's public code repository that Qualcomm pushes updates to their chipset code to. Very few members (Literally 1 or 2?) of the Android community are familiar enough with that level of code to be able to debug/fix issues relating to hardware and as such it is almost always done upstream by Qualcomm themselves.

This affects most ROMs mind you. We should be grateful that Qualcomm maintains Code Aurora Forum for the large number of chipsets that they do.

/educational rant
[Galaxy S 4 i9505 Original Android Development] CraigHardy:
Hey [MENTION=5464206]AntaresOne[/MENTION], attaching a couple logcats here, one for the continuous Netflix loading, and the other for black screen on my banking app. Appreciate all your efforts

Netflix

Banking App