yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Android Development] Kushan02:
Kushan's Optimized CM Marshmallow Rom​

#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.
*
*/

This Rom is based on CynogenMod 13.0 (Marshmallow) with some small optimizations to achieve a fast, stable, and major bug free rom !​

Download Links:

Rom builds are hosted on AndroidFileHost (Select the latest build)

Open Gaaps - Link (Select ARM and Marshmallow i.e 6.0)

Installation:

Clean or first time install:

Download the ROM from the link above

Download GApps package for Marshmallow from the link above

Put the zip files on your SDCard

Reboot in Recovery

Wipe Data/Factory Reset

Wipe System

Wipe Cache

Wipe Dalvik Cache

Wipe Internal Storage if possible (Highly Recommended)

Select "Install zip from SDCard"

Choose the rom zip file

Choose Open GApps zip file

Reboot system

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

WORKING:

Ril (Calls,messages etc)

Microphone

All SD Card Now work.

System rw mount

Wifi Disconnections fixed

Google Now on Tap works

Permissions fixed

Root access fixed

Camera taking rotated pictures fixed

Incoming call bug fixed

Cellular Network FC fixed (not selection option enabled - a marshmallow feature)

LCD Density

Bluetooth - Untested

Bugs/Not working:

Currently none other detected. Will update as I receive bug reports

Sources:

Device Tree available on Github

Credits:

CynogenMod

Google

Samsung

Everyone who supported me!

PM me if I forget you.

XDA:DevDB Information

Kushan CM Marshmallow, ROM for the Samsung Galaxy S 4

Contributors

Kushan02

ROM OS Version: 6.0.x Marshmallow

ROM Kernel: Linux 3.4.x

Based On: CynogenMod

Version Information

Status: Stable

Current Stable Version: Build 20151225

Stable Release Date: 2015-12-25

Current Beta Version: Kushan-CM-13.0-20151

Beta Release Date: 2015-11-29

Created 2015-11-27

Last Updated 2015-12-25
[Galaxy S 4 i9505 Android Development] Kushan02:
Reserved

Video Review and screenshots :

Thanks [MENTION=4581600]ISF[/MENTION]

[youtube]iQm8Xcd5pds[/youtube]

Thanks [MENTION=7119908]shark jungle[/MENTION]

[youtube]3tFlmz49L_Q[/youtube]
[Galaxy S 4 i9505 Android Development] Kushan02:
Help me understand bug more effectively by providing a log cat and exact description of the problem.....

Also dont report bugs if you

- Did a dirty install on another rom

- Did not wipe what I said in the OP

- Installed Xposed
[Galaxy S 4 i9505 Android Development] [[EU]Tomas]:
Cm13 hype!
[Galaxy S 4 i9505 Android Development] TGSKK:
Awesome! Will test now.
[Galaxy S 4 i9505 Android Development] rickyy22:
Is the system in read-only mode or you have fixed this bug? And what about bluetooth audio streaming?

This rom is based on cm13 so i expect this bugs..anyways great job [MENTION=5804776]Kushan02[/MENTION] ???
[Galaxy S 4 i9505 Android Development] LastStandingDroid:
My man great work I'll test and report back :)
[Galaxy S 4 i9505 Android Development] Kushan02:
BTW guys... its too late here so going to sleep...

will reply to all users tomorrow morning till then keep testing and report back ;)
[Galaxy S 4 i9505 Android Development] ben.ormrod.90:
Great work downloading!
[Galaxy S 4 i9505 Android Development] Vinschir:
Boot up!! Restore app with titanium all ok!! Too incoming call ok...but no voice record with whatsapp :rolleyes:
[Galaxy S 4 i9505 Android Development] Kushan02:
Try withou restroing apps with titanium backup and installimg from playstore with a clean install bro...
[Galaxy S 4 i9505 Android Development] Vinschir:
Ook I will try it...goodnight...i'll report you all tomorrow
[Galaxy S 4 i9505 Android Development] LastStandingDroid:
Mount doesn't work on /system reverting to my system modified cm ;)
[Galaxy S 4 i9505 Android Development] TGSKK:
T-Mobile version SGH-M919 not supported yet. :( Hope it will be in the near future.
[Galaxy S 4 i9505 Android Development] christoophat:
ah, bummer & thanks for the HU before I did something foolish...:o
[Galaxy S 4 i9505 Android Development] Duck4Cover:
Looking good so far. Nice. No issues with SD card or camera. Hope Bluetooth is sorted.
[Galaxy S 4 i9505 Android Development] marlon86:
opened the camera and snapped a pic aaand the phone switched off. Had to remove the battery and put it back again for it to boot. Any camera fix yet ? Awesome job, keep up the Development !!
[Galaxy S 4 i9505 Android Development] noooooo:
Is wifi still dropping after screen off?
[Galaxy S 4 i9505 Android Development] sanangel:
Thanks for your work, tomorrow flash and post here
[Galaxy S 4 i9505 Android Development] Kushan02:
Yes I have already done that :)
[Galaxy S 4 i9505 Android Development] mikehorizon:
:) I was thinking to do this, so I did it, I added the

<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >

<group gid="media_rw" />

<group gid="sdcard_rw" />

</permission>

to /system/etc/permissions/platform.xml and reboot.

No luck.

I guess google changed again the permission philosophy. We'll have to wait for a fix.
[Galaxy S 4 i9505 Android Development] ben.ormrod.90:
Waiting for people to test new build microphone [emoji14]
[Galaxy S 4 i9505 Android Development] mikehorizon:
Microphone ok in calls.

Microphone not OK in sound recorder or Gnotes.

Not a big deal to me, but maybe to others.
[Galaxy S 4 i9505 Android Development] hust1k:
Too bad( Will waiting for next bilds
[Galaxy S 4 i9505 Android Development] ben.ormrod.90:
It's important to be because I have a lot of important WiFi calls
[Galaxy S 4 i9505 Android Development] mikehorizon:
Ups, never crossed my mind .... just tried to make a call with facebook messenger and.... no mic ... :crying:.

Suddenly the mic problem became critical to me to :(
[Galaxy S 4 i9505 Android Development] myawan:
What about camera and it's quality?
[Galaxy S 4 i9505 Android Development] electrolt:
But the mic problem is being fixed rigth now?
[Galaxy S 4 i9505 Android Development] mikehorizon:
Just tried to record a video with snap camera and the mic is OK here. The video has sound recorded by the mic.

But no mic for skype or facebook mess.

I'm puzzled:

sound record is native to the build and no mic.

calls is native to the build and mic works.

snap camera is external app but the mic works.

So I guess is not a permission problem.

Concerning the quality of pictures ..... I can't really say as I'm not at all picky about photos. They look fine to me.

---------- Post added at 08:21 PM ---------- Previous post was at 08:16 PM ----------

@ Kushan .... I hope so :).

But anyway Kushan is already "the master of the day" for fixing the mount of /system as rw.
[Galaxy S 4 i9505 Android Development] morpheus302:
Beside Mic not working with FB messenger, Viber; Hangouts etc... Everything seems to work.

Great ROM. Thank you so much.
[Galaxy S 4 i9505 Android Development] Razoth:
it still says that i need to have the samsung sd card formated, because the data is corrupted, which it isn't.... formating 64gb disc that is full would be a real pain in the ass^^
[Galaxy S 4 i9505 Android Development] fedef12evo:
bluetooth streaming?
[Galaxy S 4 i9505 Android Development] Duck4Cover:
+1 please can someone who has installed let us know if Bluetooth share is working ie working with Bluetooth speakers and hands free working? Thanks thanks.
[Galaxy S 4 i9505 Android Development] hammer7t:
Everything seems to work great except for microphone in apps (phone and camera okay) and Bluetooth audio streaming (connects and phone calls okay). Every app I have can also see and write to external sdcard okay (I have fat fs). Video, GPS, audio all fine.

Great progress kushan!
[Galaxy S 4 i9505 Android Development] mikehorizon:
Can you give some examples of an app that is able to write to external sdcard? Thanks in advance
[Galaxy S 4 i9505 Android Development] lordodin912:
[MENTION=5804776]Kushan02[/MENTION] installed on m919 fine(no gapps). Bluetooth will send files and phone calls work through it but streaming audio doesn't. Stock browser crash on download (dolphin worked). Phone dialer becomes really laggy when BT is connected and crashes usually. Other than that seems really stable already. Attached log. Thanks for your hard work.
[Galaxy S 4 i9505 Android Development] hammer7t:
Examples are CameraZoom FX, Lightning Browser, Photo Editor, ES File Explorer...
[Galaxy S 4 i9505 Android Development] mikehorizon:
I just tried the first 2, since I have already purchased CameraZoomFX.

In all cases I checked storage permission for each app.

CameraZoom FX = Desired folder = /storage/0AA5-2356/DCIM/Camera , taking picture ok, but no picture is saved in /storage/0AA5-2356/DCIM/Camera.

Lightning Browser = Folder /storage/0AA5-2356/Download. Result: Download complete, but no file in /storage/0AA5-2356/Download.

Where are you saving the pictures/files for these apps?
[Galaxy S 4 i9505 Android Development] Soroxi:
For the download issue, change permission of the browser app, enable the storage permission

Envoyé de mon GT-I9505 en utilisant Tapatalk
[Galaxy S 4 i9505 Android Development] hammer7t:
Lightning - /storage/3347-16E1/

CameraZoom - /tree/3347-16E1:DCIM/Camera (Make sure you pick the Custom option is the Save settings to get the /tree path.

Files are getting downloaded and saved correctly with the above. Also make sure your SD Card is good...I had a similar issue sometime back when files were reported to have been written to SDCard and i could not see them...turned out to be my sdcard had gone bad and once I switched it out it worked.
[Galaxy S 4 i9505 Android Development] ISF:
@Kushan02 ROM based on Marshmallow Video Review. Hope it gets in the Video section of your thread!

Also added a way on how to flash Xposed.​

[YOUTUBE]iQm8Xcd5pds[/YOUTUBE]​
[Galaxy S 4 i9505 Android Development] mikehorizon:
Lightning - OK for me now.

CameraZoom - Custom option is the Save settings => OK, pictures are saved in desired folder.

So I guess it depends on the app, like Kushan said.

I have to wait for an snap update, as camerazoom doesn't record video, just takes photo.

Thank you for your interest.
[Galaxy S 4 i9505 Android Development] Razoth:
ext sd permissions are still not working correctly, i get permission errors from multible apps....
[Galaxy S 4 i9505 Android Development] XxTripleBeamxX:
Been keeping an eye on this thread as my phone is the Sprint variant and have seen that this rom is currently only for the jflexx. My question is, with the latest update just released is it still jflexx or multi variant?
[Galaxy S 4 i9505 Android Development] Darmer Aldevaran:
Great work Kushan, excellent rom bro.:highfive:

Works great on my i337m. SD card, RIL, wi-fi, et. all works, except the mic:(

I can´t wait for the next update.:D

Yes, here say GT-I9505 but my phone is I337m

Here is a Log
[Galaxy S 4 i9505 Android Development] kofe:
[MENTION=5804776]Kushan02[/MENTION], Wi-Fi still disconnects when the phone is in sleep mode... See screenshot.
[Galaxy S 4 i9505 Android Development] vbajs:
Actually,

That's a good thing

Since The Wi-Fi disconnects

That means doze is trying to save your battery life[emoji4]
[Galaxy S 4 i9505 Android Development] kofe:
Oh, i see. So this disconnects are supposed to be a normal behavior. Thanks.
[Galaxy S 4 i9505 Android Development] noooooo:
Well no, doze si NOT supposed to turn off WiFi , definetly only to avoid wakelock :D that's a bug not a feature
[Galaxy S 4 i9505 Android Development] vbajs:
Well,

I don't know

But I think I heard some where around the forums that it Is a feature of doze

We have to let Google decide again either its a bug or a feature[emoji4]
[Galaxy S 4 i9505 Android Development] vbajs:
Werid

Its a appears that the Wi-Fi doesn't disconnects at me

BTW

I am running the initial release of this ROM[emoji4]
[Galaxy S 4 i9505 Android Development] Galukon:
Goodmorning everybody,

I was thinking of moving to this ROM from 5.1.1 JDCTeam CM12.1

Does anyone know how this rom is compared to that one? I know it's a iddferent Android version but i've never seen this developers work. Is it stable enough, as a beta, that i can use it as a daily driver?

Thank you for your work for the S4!
[Galaxy S 4 i9505 Android Development] Sebastiaanlabr:
Is location acces working?
[Galaxy S 4 i9505 Android Development] Strephon Alkhalikoi:
The WiFi sleeping is an Android feature present since Android 2.x. It's not part of Doze, and you actually WANT the WiFi to sleep. Not letting the WiFi sleep will drain your battery and may affect the operation of Doze.
[Galaxy S 4 i9505 Android Development] robertogl:
Well, I've used android for years and WiFi never shutdown itself.

Inviato dal mio GT-I9505 utilizzando Tapatalk
[Galaxy S 4 i9505 Android Development] :
[MENTION=5804776]Kushan02[/MENTION] i think i must have a system issue since i can't mount system as r/w
[Galaxy S 4 i9505 Android Development] Kushan02:
try a clean install.... as this is working and confirmed by me and many users...

probably wipe user media this time also and dont forget the factory reset ;)
[Galaxy S 4 i9505 Android Development] leap_ahead:
good !

u test mic?
[Galaxy S 4 i9505 Android Development] Kushan02:
that bug is not yet fixed :(
[Galaxy S 4 i9505 Android Development] :
[ROM] [MARSHMALLOW] Kushan CM13 Marshmallow Rom [CM13]

I always do factory reset must be a non clean format in updater script then since i noticed v4a was working after wipe

Also on restore i got sine system first period error lol nothing important though

But you're correct it does work now only issue lefti nag about is Dev shortcut don't Hastitate on it though not really important

Also almost forgot there is some graphical issues when scrolling etc catlog text sometimes get a bit messy
[Galaxy S 4 i9505 Android Development] _ray_:
Everthing seems ok, I must say this rom is smooth as hell (coming from Kushan TW version) .

My only request would be if its possible to integrate Faux Sound into the kernel (like kushan TW kernel) so I can use certain apps ?

Keep up the good work m8.
[Galaxy S 4 i9505 Android Development] KMBeatz:
Amazing Rom.

But no Mic in Whatsapp and Google voice search??

How to fix
[Galaxy S 4 i9505 Android Development] Jyanjy92:
Yeah the rom is very smooth, the big bug is that unfortunally mic doesn't work :(
[Galaxy S 4 i9505 Android Development] Kushan02:
Thanks...

For the mic issue currently I am finding a fix... but I think that bug is deep within the core system... so it will take some time to fix...

Other than that now no major issue is left I guess :)
[Galaxy S 4 i9505 Android Development] mikehorizon:
Battery life is amazing for a CM ROM, I got 4h29min of SOT, a value matched only on odex TW kitkat.
[Galaxy S 4 i9505 Android Development] Kushan02:
Glad to see you are satisfied with the performance and battery life...

I will keep improving this rom release after the other ;)

Cheers!
[Galaxy S 4 i9505 Android Development] mikehorizon:
Thanks again, the ROM is fantastic so far.

For the moment put all your energy into the mic problem. Good luck :good:
[Galaxy S 4 i9505 Android Development] vbajs:
OK

I thought it was a part of doze

Well,i don't know if the WiFi sleeping feature existing from 2.X

As I started using android since ICS (4.0 I think,might be wrong)

I never check if the WiFi slept or not
[Galaxy S 4 i9505 Android Development] dorian2kx:
Rom is very fast and smooth and good battery life but after setting my adb and apps in developer options i still don't get root access to my apps? Y
[Galaxy S 4 i9505 Android Development] Anonymous Vagrant:
Still can't interchange between 3G, LTE or Edge/2G.
[Galaxy S 4 i9505 Android Development] Shymek:
Use smaller package. For example "mini" or "pico".

Anyone have problem with app restore from google play store?
[Galaxy S 4 i9505 Android Development] Kushan02:
actually thats a kind of difficult thing because its related directly with blobs... not much I can help with.... unless cm makes their own blobs compaitable with marshmallow as currently we are using sort of tw blobs if I am not wrong :)
[Galaxy S 4 i9505 Android Development] Rebok88:
Mobile Data Problem !?

Does anybody else has mobile data problems !? My 4g connection speed is only 4kb :D....
[Galaxy S 4 i9505 Android Development] Chibbo:
great work, everything seems to work ok, ext sd works ok altho labeled a bit strange? also something is a bit off with root, when I remove system apps with titanium backap, they return after reboot, had the same issue when cm12 came out
[Galaxy S 4 i9505 Android Development] luistro:
Smart pulldown works?

Enviado desde mi SM-T535 mediante Tapatalk
[Galaxy S 4 i9505 Android Development] dvhttn:
Just checked and I get this too. Hmmmm. I do find it strange that you can give an app 'storage' permission (i.e. access to the sdcard) AND it can correctly see the folder location you choose but it then fails to write to that location and/or the folder location does not 'stick' in settings. This whole 'permissions' thing is over complicated IMHO. Most people (i.e. the 99.9% of smart phone users who don't read xda!) won't have a clue and just want things simple. Such as 'I want to save my pictures to my removable card so I can show grannie when I visit her' but they're subjected to several screens of 'app permissions' etc etc and rapidly lose the plot. Sort of like when Google complicated lives with the 'priority interruptions etc' to replace 'volume down to vibrate/then silent'. They need a tech director whose job it is to ensure that any new features pass the 'easy to use for the totally non-IT literate majority' test!

Sorry, rant over ..... :D
[Galaxy S 4 i9505 Android Development] Kushan02:
nope not yet...

it will in next build ;)
[Galaxy S 4 i9505 Android Development] Vinschir:
What type of mod did u use for status bar and black theme?
[Galaxy S 4 i9505 Android Development] Razoth:
viper4android can't find any convolver setting even if they are at the right place (internal storage) and my ftp programm (servers ultimate pro) can't write to external storage... is that because of android version 6.0?

or is there something you found on app permissions etc....? would be impossible to wait for ppl to fix their apps for 6.0 -.-
[Galaxy S 4 i9505 Android Development] BabelHuber:
I just have tested this:

Installed rSAP Apps (https://play.google.com/store/apps/details?id=com.android_rsap.rsap) for connecting the phone via rSAP instead of handsfree (Audi MMI Plus).

My findings:

- rSAP fully works (calls, syncing contacts and SMS, online navigation, WIFI hotspot)

- One must first activate bluetooth, then unlock the car (otherwise the phone connects via handsfree instead)

I've just quickly tested this in the garage, I have no experience about what happens when driving for hours. But the first test results are good :good:
[Galaxy S 4 i9505 Android Development] Chibbo:
a combo of these two themes, black side isnt compatible all the way and it crashes the settings if you apply the style from it, the icons and the rest work ok
[Galaxy S 4 i9505 Android Development] CyBeRmAsTeRx:
Does the mic works for regular calls ?
[Galaxy S 4 i9505 Android Development] Chibbo:
yes, atleast on i9505
[Galaxy S 4 i9505 Android Development] side:
i have already started working on black side theme for cm13 :)

Please be patient.Real-life job costs me a lot of time :(
[Galaxy S 4 i9505 Android Development] popliuc:
Asop has some bugs that are solved in cr Droid and Kushan But these are early releases and they are not very different (the last 2)
[Galaxy S 4 i9505 Android Development] Jyanjy92:
For me this is the best ROM based on Android Marshmallow :)

Yeah I have tried today and calls work perfectly! :) (EU s4 gt-9505)

I can't wait! :) This ROM is very smooth, and the only big bug that i found is the Mic problem. (And the switch between LTE/H/2G, but it's not a problem for me) :)
[Galaxy S 4 i9505 Android Development] ComputerNmyPocket:
I'm a touchwiz user, for the fact that no AOSP ROM has yet made the camcorder function at 30fps, rather it's some variable fps. But sometimes I dual-boot AOSP. And I keep hoping that the camcorder fps will be fixed someday and I won't need touchwiz. Kushan made a debloated touchwiz ROM that is rock solid. Before that, I used to fall back to Echoe Rom as my default for stability. But Kushan's is as stable, and uses probably 40% less battery and has much less lag, so for the past 2 months Kushan's touchwiz has been my default ROM.

Thanks Kushan!
[Galaxy S 4 i9505 Android Development] XxTripleBeamxX:
Will this rom work on the Sprint variant?
[Galaxy S 4 i9505 Android Development] ben.ormrod.90:
Try it and report back
[Galaxy S 4 i9505 Android Development] dorian2kx:
This heats up a lot and there's no clear data or clear cache under option under apps
[Galaxy S 4 i9505 Android Development] ben.ormrod.90:
Did you clean install no heat ups when I used it
[Galaxy S 4 i9505 Android Development] dorian2kx:
No i dirty flashed, gonna do a clean one
[Galaxy S 4 i9505 Android Development] ben.ormrod.90:
Don't report issues on a dirty flash.
[Galaxy S 4 i9505 Android Development] kofe:
U"ll have to look again :)
[Galaxy S 4 i9505 Android Development] maik facturas:
what about screen mirroring?
[Galaxy S 4 i9505 Android Development] vbajs:
Works pretty fine

I use chromecast and it works fine
[Galaxy S 4 i9505 Android Development] maik facturas:
Then it looks pretty promising. Thx a lot to devs. Dowloading right now. testing tomorrow. I'll comment latter.
[Galaxy S 4 i9505 Android Development] ben.ormrod.90:
[MENTION=5804776]Kushan02[/MENTION] have you managed to find what's wrong with the mic ?
[Galaxy S 4 i9505 Android Development] SubNoizey:
Only bug I can find is mobile data doesn't work, I've played with APN and can't get a connection. Text and calls has full signal and works but no data.

---------- Post added at 07:54 AM ---------- Previous post was at 07:51 AM ----------

@kushan02 sorry no edit feature on xdalabs but see above post please, what do I need to provide to get it working?

---------- Post added at 07:57 AM ---------- Previous post was at 07:54 AM ----------

Nevermind for some reason it was turned off. Everything is working now
[Galaxy S 4 i9505 Android Development] robertogl:
From cm12.1 thread:

Maybe this commits can help here.

Inviato dal mio GT-I9505 utilizzando Tapatalk
[Galaxy S 4 i9505 Android Development] Pho3nX:
Good job Kushan02, i can't wait for the audio fix (it's the most important thing for me because i use so much LiNE and WhatsApp call) Good luck bro !
[Galaxy S 4 i9505 Android Development] :
Titanium backup doesnt remove apps here ;o I still can use root browser
[Galaxy S 4 i9505 Android Development] mbaier:
use root uninstaller
[Galaxy S 4 i9505 Android Development] Soroxi:
Does layers work in this Rom?

Envoyé de mon GT-I9505 en utilisant Tapatalk
[Galaxy S 4 i9505 Android Development] ben.ormrod.90:
That's down to the aplication probably check if it has android m support
[Galaxy S 4 i9505 Android Development] noooooo:
The last rom on androidfilehost is the fixed one?
[Galaxy S 4 i9505 Android Development] :
[ROM] [MARSHMALLOW] Kushan CM13 Marshmallow Rom [CM13]

As I said root browser works just fine

If anyone is interested I'll make a gaps mini with 5x MB zip package even the minimal I found has google stuff such as launcher and search :o
[Galaxy S 4 i9505 Android Development] kofe:
I don't know if u know, but there are slim zero gapps (which i am currently using). They have aprox 90 mb. Just FYI. ;)
[Galaxy S 4 i9505 Android Development] Sebastiansm:
Can jfltecan support be added?

Thanks.