• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[GearCM][i9500][5.0.x] Optimized CyanogenMod 12 for Samsung Galaxy S4 [Fin. 20150731]

Status
Not open for further replies.

Alberto96

Recognized Developer
Feb 24, 2010
8,291
17,325
0
24
Modugno (BA)
Use > this other thread < to ask questions or to discuss about something​


CyanogenMod is a free, community built, aftermarket firmware distribution of Android 5.0.x (Lollipop), which is designed to increase performance and reliability over stock Android for your device.
Code:
#include 
/*
 * Your warranty is now void.
 *
 * I am 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 me for messing up your device, I will laugh at you.
 */
CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for CyanogenMod is available in the CyanogenMod Github repo. And if you would like to contribute to CyanogenMod, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

ROM Downloads

<< Stable >>

20150731 Final Build: https://www.androidfilehost.com/?fid=24052804347784711

<< Misc. (Modem & Recovery) >>

GearRecovery (based on TWRP Recovery) 20150324: https://www.androidfilehost.com/?fid=95916177934545673 <= Recommended

I9500XXUHOD7 LL Modem: https://basketbuild.com/filedl/devs...s And Bootloaders/I9500-XXUHOD4-MODEM_CWM.zip <= Russian Modem, Recommended

I9500DDUHOA1 LL Modem: http://forum.xda-developers.com/attachment.php?attachmentid=3165311&d=1423927137 <= Indian Modem, use it if you're experiencing problems with Russian variant


Previous Releases:


Google Apps (add-on)

http://opengapps.org/ <== Recommended <> Platform: arm | Android: 5.0 | Variant: nano

Installation

3-button-combo = "Volume Up/+" + "Home/Center" + "Power/Lock"

- First time flashing GearCM 12 to your Galaxy S4 (or coming from TouchWiz/Stock Based ROMs)?
  1. Root your device and install latest GearCM Recovery.
  2. Reboot into Recovery using 3-button-combo
  3. Do a Nandroid Backup!
  4. WIPE (wipe data/factory reset + wipe cache partition + format /system partition)
  5. Install the ROM from internal/external sdcard using ClockworkMod Recovery
  6. Optionally install Google Addon
  7. Done! You can now reboot the phone to enjoy the rom :)
- Upgrading from Official CM10.2/CM11/CM12 or GearCM 11?
  1. Reboot into Recovery using 3-button-combo
  2. Do a Nandroid Backup!
  3. Install latest latest GearCM Recovery.
  4. Reboot into new Recovery using 3-button-combo (if needed)
  5. WIPE (wipe data/factory reset + wipe cache partition + format /system partition)
  6. Install the ROM from internal/external sdcard using ClockworkMod Recovery
  7. Optionally install the Google Addon
  8. Done! You can now reboot the phone to enjoy the rom :)
- Upgrading from another build of GearCM 12?
  1. Reboot into Recovery using 3-button-combo
  2. Do a Nandroid Backup!
  3. Install latest latest GearCM Recovery.
  4. Reboot into new Recovery using 3-button-combo (if needed)
  5. Install the ROM from internal/external sdcard using ClockworkMod Recovery
  6. WIPE Dalvik/ART Cache (wipe cache partition + wipe dalvik cache)
  7. Done! You can now reboot the phone to enjoy the rom :)

Known Issues (regarding latest available Stable build)
Please do not report bugs if it is already listen in the list of known issues
  • Rarely, when you wake-up the device, touchscreen will have a noticeable input lag, easily fixable by turning off and on the display. (H/W or S/W bug?)
  • Wireless Display with some TVs could cause issues (AOSP bug related to HDCP, and Google doesn't provide a solution)
  • Video Stream through Screencast & Wireless Display will have inverted Red and Blue color channels due to BGR Pixel Format (actual Exynos sources don't allow to fix it)
  • Any Chinese (CHN, I9500XCUxxx codename) Baseband/Modem reduces Call Quality (due to forced AMR_WB, unsupported by CHN modems)
  • 5GHz Wi-Fi Networks using Band B (52-140) and Band C (149-161) channels won't be listed (H/W or S/W bug?)

Reporting Bugs

You are allowed to report bugs only in this thread. Before reporting a bug, please make sure you are running as stock as possible. This means no custom kernel, no custom framework modification, etc. If you are using any of the above modifications, please flash the rom again to get rid of the modifications before reporting.

REPORT BUGS IN THIS THREAD ONLY

  • Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
  • If it is a random reboot, grab /proc/last_kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
  • If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log
Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. The following is a useful format to follow. Note: If you can provide the latest night/build that the bug didn't exist, it would greatly help in tracking down what caused it.

Code:
What is your--
Phone model:
Radio (baseband) version:
GearCM version:
GearCM download url:
Google Apps version:

Did you--
wipe data/factory reset:
restore with titanium backup:
reboot after having the issue:

Are you using--
a task killer:
a non-stock kernel:
CMSettings/Performance Settings (other than stock):
other modifications:
Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:
Changelog

20150731:
  • Updated CM Sources
  • Follow CM12.1 Changelog, until 20150731 Build.

Previous Releases:



20150506:
  • Updated CM Sources
  • KERNEL: Optimized Memory Operations
  • KERNEL: Optimized big.LITTLE CPU utilization
  • KERNEL: Optimized TCP Congestion Method
  • KERNEL: Some net. & ARM fixes

20150424:
  • Updated CM Sources
  • Updated Audio Driver and Configuration
  • Removed Hardware MPEG2 Codec
  • Properly Fixed and Updated XMM Modem RIL
  • Fixed Manual Network Operator Search
  • Reduced EGL Cache Size to reduce RAM usage
  • Fixed in-call echo problem (definitely)
  • Reduced Speaker Volume (to reduce distortion)
  • Using latest LL Hardware OMX Codecs
  • Optimized Wi-Fi by using Stock Configurations
  • Fixed Video Recording (no more pixelated videos)
  • KERNEL: Optimized Vibrator Driver

20150403:
  • Updated CM Sources
  • Highly Optimized
  • Updated Audio Driver
  • Updated RIL Stuff
  • Stabler and better audio mixer values
  • Optimized RAM Management
  • RECOVERY: Updated TWRP sources

20150324:
  • Updated CM Sources
  • Restored USB Mass Storage support
  • Fixed LEDs while in offline charging mode
  • KSM Configured and Enabled by default
  • Restored battery percentage while in offline charging mode
  • Using latest LL proprietaries
  • RECOVERY: Updated TWRP sources
  • KERNEL: Switched to LL kernel sources
  • KERNEL: Reduced debug
  • KERNEL: Merged some updates from Android 5.1

20150228:
  • Updated CM Sources
  • Improved Battery Life
  • Optimized Bluetooth Audio (A2DP & SCO)
  • Increased Speaker Volume
  • Decreased Headset Mic. Volume
  • Fixed VOIP Apps (Skype and such...)
  • Fixed MTP without ADB Debugging
  • Added F2FS Support for Cache & Data partitions (use latest GearCM Recovery to change filesystem type)
  • Fixed slow Flashlight toggle
  • Enabled Noise Suppression
  • Enabled Call Recording
  • Re-Introduced non-PIE support
  • Fixed touch-on-notifications (Ambient Display)
  • Fixed lags on some games
  • Disabled Equalizer Visualizer on Music app by default (laggy)
  • Optimized Auto-Brightness values
  • Reduced battery safe temperature (before 60 degrees, now 55)
  • Using Nexus 5 MMS User Profile
  • Fixed USB OTG on Lollipop
  • Increased External Storage speed access
  • Disabled Wi-Fi background scan (no one uses it and if enabled it causes battery to drain on idle)
  • Added Advanced Display settings
  • KERNEL: Optimized performance
  • KERNEL: Increased compression to fit new TWRP recovery
  • KERNEL: Enable some required flags by LL
  • KERNEL: Added F2FS Driver

20150214:
  • Updated CM Sources
  • DRM tested and properly working
  • Stabler Bluetooth Audio Quality
  • Added TouchScreen hovering support (untested)
  • Updated fingerprint to latest LL Stock Release
  • Increased main mic volume everywhere
  • Updated proprietary blobs to latest LL ones (except sensors stuff)

20150207:
  • Updated CM Sources
  • Updated Audio Driver (with new mixer_paths, now working much better than before)
  • Optimized Input/Output Audio Levels (no more echo effect and much more...)
  • Fixed Bluetooth Audio bad quality
  • Optimized ART Runtime for Cortex-A15
  • Optimized Network Speed (Mobile & WiFi)
  • Added Blinking Led Support (charging light uses low-power now, low light level is normal)
  • Re-Enabled 3D TV Support through MHL HDMI
  • Re-Worked CM Performance Profiles (now Balanced as default)
  • Some Updates from I9500XXUHOA7 (usable ones without LL kernel sources)
  • KERNEL: Updated Audio Driver to latest available from Wolfson
  • KERNEL: VPN should work properly now for ALL users

20150120:
  • Updated CM Sources
  • Fixed all DRM-Dependent apps (tested and ultra-tested)
  • Added some updates from I9500ZCUJOA3 leak (GPS, Radio and other minor changes)

20150117:
  • Updated CM Sources
  • Disabled S3D (3D TV through HDMI) support, useless on a mobile device
  • Fixed all SystemUI (Recents Apps/Apps Switcher) lags
  • Fixed all RIL Wakelocks (again) related to unsupported Samsung's requests
  • Fixed SOS Calls (i know that someone will be happy for this ;) )
  • Fixed USB Charging Only mode
  • DRM-Dependent apps should work correctly now
  • Reorganized phone initialization process (now cleaner than ever, even faster)
  • Optimized Auto-Brightness values
  • Optimized Mobile Data/Wi-Fi Internet speed
  • Speaker and Earpiece volume is now higher (as users request)
  • Disabled Block-Based OTA (this should fix all problems with ROM Flashing process, e.g. Status 1 Errors; Chinese PIT is now compatible)
  • Switched to new CM LL Boot Animation
  • AC & USB Charging Values are now the same (this means that you can charge your phone with USB or with AC at the same speed)
  • Some other optimizations and clean-up here and there

20150105:
  • Updated CM Sources
  • Enhanced Stability and Performance
  • Now switched from Beta to Stable :)
  • Disabled Audio Offload (unsupported)
  • Fixed Google Now Voice Input on Home Screen
  • Switched from old AwesomePlayer (KK) to NuPlayer (LL)
  • Enabled Ambient Display as user request
  • Clean-up Wi-Fi stuff
  • Enabled GPS LTO Support (http://www.broadcom.com/products/GPS/Location-Based-Services/LTO-AGPS)
  • Clean-up Framework overlays
  • Enabled CM Performance Profiles like on CM11
  • Correctly Configured Audio/Video Decoders
  • Fixed Flashlight/Torch (using a temp. workaround)
  • Properly fixed Root and USB at first boot
  • A2DP Calls should work fine for everyone now
  • You'll probably find many other fixes that i don't remember
  • EXTRA: Happy new Year :)

20141227:
  • Updated CM Sources
  • Properly fixed & enabled Bluetooth features
  • A2DP Calls should work fine now
  • Reduced Surface Buffers for smoother UI experience
  • Increased EGL Cache size to reduce lags
  • Fixed Audience ES325 audio effect name (now it should work fine everywhere)
  • Fixed Wi-Fi instabilities & Tethering
  • Added Screencast app
  • Properly enabled USB Ethernet support
  • Added CM Performance Profiles (for future usage)
  • Fixed & Optimized Offline Charging mode (now using less power than before) <= On Android L 4.2 bootloaders aren't supported anymore so offline charging may work only on 4.3 and newer ones. Let me know if works or not for you.
  • We are probably ready for a Stable release... ( or not? ;) )
  • KERNEL: reduce surface buffers
  • KERNEL: clean-up PVR GPU driver
  • KERNEL: some optimizations here and there

20141224:
  • Updated CM Sources
  • Fixed GPS
  • Updated NFC config
  • Using PIE binaries for RIL
  • Probably fixed all ART instabilities (app not installed and blah blah blah)
  • KERNEL: reverted change that was causing chrome and other app to crash
  • KERNEL: re-enable Android LMK
  • KERNEL: removed all Samsung USB rubbish
  • KERNEL: added some FS optimizations
  • EXTRA: Happy Christmas :)

20141223:
  • Updated CM Sources
  • Fixed all buttons features
  • Do not start GPS Binary (will be fixed when Samsung releases official Lollipop for our device)
  • Clean-up here and there
  • Smoother then ever, probably smoother than GearCM 11
  • Fixed WiFi instabilities
  • Fixed all Widevine (DRM) stuff
  • Application not installed bug should be fixed
  • You'll probably find many other fixes that i don't remember

20141216:
  • First Release



The CyanogenMod team would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!

XDA:DevDB Information
[GearCM][i9500][5.0.x] Optimized CyanogenMod 12 for Samsung Galaxy S4 [Final], ROM for the Samsung Galaxy S 4

Contributors
Alberto96, intervigil, codeworkx
Source Code: https://github.com/GearCM

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: 20150731
Stable Release Date: 2015-07-31
Current Beta Version: 20141227
Beta Release Date: 2014-12-27

Created 2014-12-16
Last Updated 2015-09-26
 

Alberto96

Recognized Developer
Feb 24, 2010
8,291
17,325
0
24
Modugno (BA)
Read carefully.

Differences between GearCM (Optimized CyanogenMod) and Official CyanogenMod (NIGHTLY):​

Enough of those dumb questions..
The official CM rom is maintained by @Alberto96 and @intervigil
He makes the very recent changes here relating to performance.. which are then in time pushed to CM official rom. The kernel is different because it has selinux disabled and few minor tweaks you might not even notice.. this gearcm rom will have more performance. But CM rom will have their updated base changes which are included here with each update.
What I mean is you probably wont even notice what's different in terms of user interface.. gearcm will have more performance. Official cm will have updated sources. But it will include gearcm's changes in time as @Alberto96 pushes them to CM
You can decide by a simple choice. more performance and not-nightly updated sources or similar performance (improving with nightly updates) with updated sources. I would choose gearcm because of the reasons I mentioned above. Do what you will.. and let this be a note to everybody who ask this again and again and again. Don't spam the thread with same question in every alternate page.. Because there are other people who might have different problems they need to ask. Read atleast 15 previous pages and the first post changelog before asking the question. Reading most of the times will give you a solution and if not most of the info you will read will help you anyway.
 
Last edited:

Alberto96

Recognized Developer
Feb 24, 2010
8,291
17,325
0
24
Modugno (BA)
Reserved

FAQ (Frequently asked questions)​

Where are "Performance" and "Developer Options" categories?
To activate 'Performance' and 'Developer Options' categories in Settings you need to tap 7 times on 'Build number' located into Settings -> About Phone.


How can i solve problems with Hebrew language?
Go to "Developer Options" in Settings and check "Force RTL layout direction".


What can i do to reduce the "echo effect" while in-call?
Try to reduce in-call earpiece volume (if possible).


I'm having problems with battery life, what can i do?

1) Use "Greenify" to hibernate all apps with a "little cloud + 'Gcm' word inside" on the right of each app's name. Donation version is recommended because it allows deeper hibernation of apps

2) Disable "Location" or set it to mode "Battery Saving" (Settings -> Location)

3) Make sure that your 2G/3G mobile network signal level isn't always low or unstable

4) Deny "Wake Up" and "Keep Awake" permissions to Google and third-party apps. (Settings -> Privacy -> Privacy Guard -> Press menu button and check "Show built-in apps" -> Press menu button again and go to Advanced -> Horizontal Scroll to Device)

5) Disable "Sync" or sync only useful stuff like Contacts

6) Disable "Auto-rotate screen" (Settings -> Display & lights -> Rotation)

7) Use one of the latest Modem/Baseband listed on first post.

8) Disable Ambient Display

9) Install Xposed Framework and configure Amplify

If this isn't enough then replace your battery and/or reduce your phone usage. :silly:


Is GearCM OTA supported?
Yes :) (Since 20150707 Build)


Why is my phone over-heating while playing heavy-games or running heavy-apps?
Use a bit your brain to explain why. High CPU and GPU usage = high heat production. Your phone will automatically throttle CPU when needed so don't worry, it is safe and normal.


Can I use another kernel instead of the one included in the zip?
No. Only use the included kernel for 100% compatibility, bug reports with non-standard kernel will be ignored.


Can i disable S-View cover features (lock/unlock)?
Not yet.


*** IR Remote app isn't working anymore/was working on previous builds/causes my phone to crash, what can i do?
Contact *** IR Remote app developer.


Any question about "Can't connect to camera" issue
Do not "stress" camera on CM because we don't use yet a proper implementation. Open/Close Camera apps carefully without force-closing them.
 
Last edited:

RoCorral

Senior Member
Dec 9, 2013
494
159
0
Been using lollipop as a daily driver with awesome results. But still there's something that bugs me. Although GPS works fine I find that its accuracy is pretty low.
For instance I run in order to keep fit. I use adidas miCoach which calculates your speed and distance covered giving as result km speed (from Argentina). GPS has a hard time keeping up with this and every time I train I revert to TW and then back to Lollipop.
Will test this GPS and see if its better than team Cajinica
 

Alberto96

Recognized Developer
Feb 24, 2010
8,291
17,325
0
24
Modugno (BA)
Not required here.
Been using lollipop as a daily driver with awesome results. But still there's something that bugs me. Although GPS works fine I find that its accuracy is pretty low.
For instance I run in order to keep fit. I use adidas miCoach which calculates your speed and distance covered giving as result km speed (from Argentina). GPS has a hard time keeping up with this and every time I train I revert to TW and then back to Lollipop.
Will test this GPS and see if its better than team Cajinica
Does it happens also on CM11?
does this rom have working bluetooth calls over car stereo?
It should.
Patiently waiting for the upload..
Great work Alberto :D

Sent from my GT-I9500 using Tapatalk
Great to see u working on this, i followed u when kitkat comes up and u made an amazing work, good luck with this!
Build finally uploaded.

Enjoy :)
 

rohanchrome

Senior Member
Jul 27, 2012
504
206
0
23
Hyderabad
Can't install apks.
Although pushing apks to system works. Titanium backup in not able to restore as well.

Edit: I guess Titanium Backup does work. Not with the default superuser though. I flashed supersu to get it working in frapeti's rom, strange.
 
Last edited:

RoCorral

Senior Member
Dec 9, 2013
494
159
0
@Alberto96 haven't test it on GearCM 11. I'll try and report back asap
With GearCM 11 latest build GPS is pretty accurate. Used Waze while driving and miCoach while walking and had good results.

Further testing done with the build posted (20141216) I can't access SD card to install apks that are not from playstore for example BBS, and getting the low memory message even if full wiped and fresh installed.
 
Last edited:

BlaqueDroid

Senior Member
Oct 13, 2013
615
1,376
0
Johannesburg
Storage Issues

@Alberto96 Hey man there seems to be an issue with your Kernel please take a look at the changes u made as they seem to be the cause of peope not being able to install any APKS and Install from playstore as its complaining about the storage being low so what i did is compile with CM kernel and tested it and the GearCm works fine without any storage issues but if I compile it using ur GearCm Kernel thats where theres storage issues. Please take a look at it
 

ElectroNinio

Member
Oct 27, 2014
46
3
0
Buenos Aires
Thanks for your time and dedication of this Alberto. Unfortunately I'm having a hard time with your CM12 Releases

With CM12-20141212v2 (I did a clear wipe) and no RIL Service. So I was not able to use it basically...
Today I gave it a second try CM12-20141216 . I was happy to see my 3G Connection. But when I started to download the app from Play Store. It was impossible. All APKS giving an error.

I will test Canjica Version. It's a pity but I will have to wait till we get to a stable version of Android 5.0.1 with GearCM12.

Despite of that, Thanks for your work on this! We wouldn't have this if it wasn't because of you
 
Last edited:
Aug 12, 2012
25
3
0
delhi
Heads Up

Brilliant to have 5.0 on our phones, look and feel is really cool.

Confirmed Working:
Calls, SMS, Internet (WIFI & 3G), Camera, Gallery

FC's:
Music, File manager, Play store (all google apps) & anything else which is on the SD card

Keep it up guys:good:
 
Status
Not open for further replies.