yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 General] mvmnt:
Yes i did a clean install, no problem with CM12.1 after I flash it back. But after I flash CM13 again, it give me the same problem.

My phone is brand new, all original, I am very sure that my cable is ok.

I actually cant even change the option in the usb configuration in developer option. When I change it to MTP, it will change back to charging only :(

I have no other problem with this ROM except for the usb things.

Thank you for helping.
[Galaxy S 4 General] fariez:
Battery drain fix

I use the wifi fix and related kernel below on the latest GCM13 (and stock battery). I also set advanced wifi to 'never' for 'keep wifi on during sleep' option (this is the most important fix) as well as turning off 'network notification'. And then battery optimization for all apps except those with needed notification push (WA, Telegram, Line, etc). By adding Greenify (greenify system apps) to these fixes/setups, I can get almost 2 days battery standby (maybe more, I haven't really count it), Screen-On Time differs for each users so I won't use it as a reference.

Keep in mind though, I don't use GApps in any form, so I have no GApps-related issue.

Good luck! I've been using this fix+kernel since I use GCM13, I've tried LWK and Virus Kernel but not as satisfied as using this one. Although we have to set CPU Max to 1000-1300MHz to prevent Camera from crashing or having visual glitches, which is barely noticeable for daily use (not gaming, supposedly).
[Galaxy S 4 General] LironImaN:
You don't use GApps? Why not?

About the kernel, will it fix the battery draining of "phone standby"?

I lost around 40% at night, and during the day I lose a lot of battery.
[Galaxy S 4 General] fariez:
I believe so, you can disable 'keep wifi on during sleep' as a start. My apps don't have GApps dependencies, so why would I? Consequently, free RAM is so much better.
[Galaxy S 4 General] LironImaN:
I'm not sure if the WiFi causes this drain of battery, because I lose battery when 3G is on too.

But I'll try this kernel anyway.

Before that, the way to get back to stock kernel is to reflash the ROM again?
[Galaxy S 4 General] richxrd_:
move to sd

There is no move to sd button in app storage, only clear data and clear cache
[Galaxy S 4 General] cmglng:
Anyone having this trouble on GCM13 5/30? Opening chrome beta's settings makes the app crash. I already tested this on GCM13 5/26 but it doesn't have that problem. I also installed the same gapps package on both roms. So I think this is ROM related...
[Galaxy S 4 General] fariez:
Battery drain when it's set as keeping wifi on during sleep is a known bug for CM13, whether you use wifi or not. Yes, reflash ROM for default kernel.
[Galaxy S 4 General] LironImaN:
Modified kernel + wifi fix didn't helped me, still "Mobile standby" battery drain because of the WiFi.

About turning off wifi during sleep, it means i won't get any notifications like WhatsApp, Facebook etc, right? it just shut down the internet when phone goes to sleep.
[Galaxy S 4 General] melekbarca:
Try to push the boot.img and the fix to the rom zip then dirty flash it
[Galaxy S 4 General] fariez:
It didn't mean like that, you'll still get your notifications through your GSM connection (unless you turn it off too). Your wifi connection will disconnect after your screen goes off and reconnect in couple seconds after it goes on.
[Galaxy S 4 General] braulio_holtz:
Has a developer for the GT-I9502 (Chinese version of the i9500) who is making a ROM.

Topic he commented yesterday about converting the ROM for the device: http://xdaforums.com/galaxy-s4/help/converting-aosp-rom-to-i9502-t3394564/post67220662#post67220662

The sound driver is different, but I do not know if there is any change related to the camera, any way the link Github is https://github.com/rim99/GearCM_device_i9502/commits/cm13-9502
[Galaxy S 4 General] krasCGQ:
He's the same person who is the only one that forked my KudKernel source when my kernel wasn't ready yet.

I think he didn't have any permission to port GearCM sources...

I even didn't give any permission to him to fork my kernel source...
[Galaxy S 4 General] jazzthe#1:
not able to make calls

While calling, a weird noise is coming making me unable to talk on calls

When i reset my phone, call works for 2-3 times, than again the same thing is happening!

Please help!!

Urgent!
[Galaxy S 4 General] eXd4:
You could try flashing the the latest modem (and bootloader) — it

may / may not

help your cause. ;)
[Galaxy S 4 General] teofilo1971:
Cyanogenmode on my S4
[Galaxy S 4 General] wyk0814127:
I was using odin to flash TWRP, but I guess I do it wrong, I place the TWRP as BL, and now I cant boot into recovery mode or download mode, what can I do?
[Galaxy S 4 General] souvikdas92:
is this rom discontinued or is it still under development??
[Galaxy S 4 General] eXd4:
Well, folks on this discussion board were merely getting bored and decided to sit around the bonfire and engage in a 44-page long, chit-chat.
[Galaxy S 4 General] LironImaN:
I have noticed there is a problem with installing APK files, "package analysis error" or something like that.

There is any fix/workaround?
[Galaxy S 4 General] anurag549:
I am unable to send any sms on this rom.. incoming sms works fine but whenever i am sending a message it says... 'unable to send please retry' and still the message wont get sent.. any fix?
[Galaxy S 4 General] krasCGQ:
Set your ISP's SMS center via *#*#4636#*#* on Phone Information and try again. Might be your SMS center is either blank or undefined yet.
[Galaxy S 4 General] MythStryker:
need a solution for battery drain.

for

[GearCM][i9500][6.0.x] Optimized CyanogenMod 13.0
[Galaxy S 4 General] Alberto96:
Enjoy this preview guys: https://www.androidfilehost.com/?fid=24591020540824051

You may notice lower performance, but much higher stability. Everything seems to be working.

Please provide me feedbacks, especially if you still notice some of the known issues specified here: https://github.com/GearCM/android_device_samsung_i9500/blob/cm-13.0/README.md

Changelog:

- Updated CM Sources

- SELinux is now enabled, but on permissive mode.

- TEST: Fixed Wireless Display with HDCP TVs

- TEST: Fixed WiFi issues

- TEST: Fixed Camera Instabilities

- TEST: Fixed Random Reboots

- TEST: Fixed Battery Drain (mostly caused by WiFi)
[Galaxy S 4 General] jayanth.shrek:
No Audio in earpiece or speaker during calls

Hey, I have installed gearcm 13 on my i9500, everything worked perfectly fine until the next day when i could not hear anything, other than occasional crackling noises. I backed up the gearcm 13 the way it was, and reverted to stock rom through a previous back up, everything worked fine. I restored gearcm13 again, :fingers-crossed: hoping things would magically get solved, but the problem still persists. I tried your solution for VOIP calls(i dunno if it was meant for this) of playing music through the stock music player, and then making calls without pausing the music, only works sometimes. Please let me know if there is a fix for this, coz i love the rom, everything else is perfect, i would hate to revert back to stock after gearcm. :crying::crying:
[Galaxy S 4 General] Alberto96:
2nd Preview: https://www.androidfilehost.com/?fid=24591000424945315

Changelog:

- Same 1st Preview Changes

- Updated CM Sources

- Added new CM Gello Browser

- Optimized WiFi & 3G Performance

- Restored Android M Doze Mode

- SELinux is nearly completely fixed

- Updated Proprietaries from latest INU OK2 rom

- Fixed Latency Issues (feedbacks required)

- DRM Stuff should be completely working

Known Issues:

- Camera is now Stable (using built-in Camera app), it doesn't seem to crash anymore, but it has some issues with the Flashlight

- Graphics Glitches are still there, i don't know yet if this is something that can be fixed on Android M due its changes that might not be compatible with OpenGL 2.0 only devices

- Sound Driver is still WIP, with VOIP issues, unstable HDMI audio, low in-call microphone volume (feedbacks required) and messed up mixer values.

- SIM Toolkit app isn't working properly yet
[Galaxy S 4 General] coolfx89:
is there a way to activate nonintrusive incoming call for this gearcm? just like popup incoming call in TW based rom
[Galaxy S 4 General] Alberto96:
20160710 Stable build has been released.

I hope you enjoy it guys :)
[Galaxy S 4 General] abhilash1in:
I checked the site today after months and voila!! New STABLE release just today! Backing up device and all set to try it out!

Thank you Alberto! You're our hero!
[Galaxy S 4 General] pramitbose:
Can I dirty flash over previous version ?
[Galaxy S 4 General] speed s:
Backup with titanium and make a clean flash. This build has major fixes

Envoyé de mon SM-G935F en utilisant Tapatalk
[Galaxy S 4 General] pramitbose:
OK thanks
[Galaxy S 4 General] pramitbose:
Can we use the new capps with this ROM ??
[Galaxy S 4 General] Alberto96:
Just try it by yourself :)
[Galaxy S 4 General] pramitbose:
Wow you replied!!!! :victory: OK I will. Thanks for the ROM !!!

---------- Post added at 10:39 PM ---------- Previous post was at 10:15 PM ----------

Capps gives error during flash any way to fix this ?

Edit: unofficial capps works with thus ROM
[Galaxy S 4 General] aboodyaiman:
I got a question :D

What does this line has to do with the camera function?

camera.disable_zsl_mode=1

And do we still have no compatibility for camera2.portability.force_api=2 ?
[Galaxy S 4 General] Alberto96:
New build is up, with extended battery life.

Enjoy :)
[Galaxy S 4 General] Alberto96:
That line is no longer in use.

It is rare to find an old device with new Camera API support.
[Galaxy S 4 General] aboodyaiman:
RR MM stock kernel still uses it, do you think it has something to do with Camera instabilities?
[Galaxy S 4 General] Alberto96:
I am not here to talk about other ROMs.
[Galaxy S 4 General] aboodyaiman:
Sorry didn't mean to cross the line.
[Galaxy S 4 General] pramitbose:
Downloading :)

---------- Post added at 02:55 PM ---------- Previous post was at 02:51 PM ----------

Any gapps restrictions? Like micro or nano only or can we use any gapps
[Galaxy S 4 General] Alberto96:
Always the same, as written on the ROM's first post.
[Galaxy S 4 General] pramitbose:
Oh OK sorry I forgot about that XD thanks :)
[Galaxy S 4 General] invincible authority:
Guys, hows the battery life on the new build?

SOT?
[Galaxy S 4 General] u7Xz:
Just to let you know that IR Blaster works fine. :good:
[Galaxy S 4 General] PR@N!T:
Voice search fix pls....

Thankss..
[Galaxy S 4 General] Blank00:
Hello [MENTION=2386505]Alberto96[/MENTION], I also suffer battery drain. I cleaned installed the ROM and haven't made any type of customizations to the ROM. Any way to fix battery drain? I provided a logcat.
[Galaxy S 4 General] LironImaN:
Exactly what happening to me.
[Galaxy S 4 General] Alberto96:
Thank you for your log, i'll definitely check what is wrong.
[Galaxy S 4 General] Kazafar:
Weird, my battery always stay as it was if I dont use it.
[Galaxy S 4 General] LironImaN:
There is any way to increase mic volume in calls?

People barely can hear me.
[Galaxy S 4 General] LucasLMD:
wait till there is a solution to the HAL issue, i had the same, and battery... i guess for i9500 cm12 is better than cm13
[Galaxy S 4 General] LironImaN:
HAL issues will never be fixed, Samsung sources are poor, and it's a known bug for a very long time.

Also in cm12
[Galaxy S 4 General] brofistme:
After installing home button and notification bqr (status bar) not working!
[Galaxy S 4 General] pramitbose:
What is caffeine in the quick settings menu ? What does it do ?
[Galaxy S 4 General] braulio_holtz:
https://www.google.com.br/search?q=...1.69i57j0l5.3617j1j7&sourceid=chrome&ie=UTF-8 -> https://www.reddit.com/r/cyanogenmod/comments/45wz3y/cm13_introduced_new_tile_called_caffeine_which/
[Galaxy S 4 General] pramitbose:
Oh OK thanks :)
[Galaxy S 4 General] kaankkaraman:
Guys how to fix bad call sound quality? The people who i am talking hears his sound ??
[Galaxy S 4 General] BraianV:
Does this rom work with xposed v26 arm, sdk23? Im having random reboots when xposed is on and when the screen turns of, battery its at 0% (i did calibrate battery so its not the problem) and phone shut down and enter bootloop until i conect it to a charger and then it finished booting but xposed appears disabled (installed but disabled)
[Galaxy S 4 General] BraianV:
I use viper4android, beats and other mods. Also i use loudspeaker

---------- Post added at 10:01 PM ---------- Previous post was at 09:58 PM ----------

This bug is well known on all exynos devices, even s6 and note 5 have this issue
[Galaxy S 4 General] u7Xz:
Xposed is working fine.
[Galaxy S 4 General] BraianV:
I did flash xposed then cleaned cache and davilk, after it finished loading apps, my s4 shows 0% battery (before it flashed, it was more than 70%), ans reboots, then again screen shows 0% and turn off. I have to connect phone to a charger to get "real" % of battery.

I activate xposed (then reboot) use it and after 1 hour it auto reboots and again, battery at 0%.

This never happens if xposed is disabled or when using a touchwiz based rom.
[Galaxy S 4 General] u7Xz:
Your battery is dead man.
[Galaxy S 4 General] BraianV:
What does xposed do when enabled that it doesnt affect battery that way when its disabled or running touchwiz?

I had to run lagwiz to use xposed but its a pain. There i dont have random reboots
[Galaxy S 4 General] kaankkaraman:
I get echo and i dont think these apps will fix echo
[Galaxy S 4 General] BraianV:
Echo is because of módem. You will need to flash another according to you country. Low sound could be fixed with sound mods
[Galaxy S 4 General] kaankkaraman:
How to find it? I live in Turkey
[Galaxy S 4 General] solomhamada:
i have to say that the rom is doing ok since installing few days back, i did a lot of tweaking though, and battery is not getting any better.

and Timely keeps crashing, and it crashes my heart with its crashing. I LOVE this alarm app.
[Galaxy S 4 General] braulio_holtz:
Timely works well for me.

Battery consumption is not the best for me, sometimes consumption is more than 40% per hour, when activated Wifi (without connecting to the network) and 3G connected. I have to do more tests to see what are the scenarios that this occurs
[Galaxy S 4 General] phaa84:
Xposed framework i9500

Hi...

I'm a newbie with the installation of the xposed framework...

I want some help to install the framework with this GearCM release. Someone can show me how I can do it?

By the way, this custom cm13 is working fine in my i9500.
[Galaxy S 4 General] invincible authority:
Guys, I have a question for you.

So like telegram uses google could messaging (GCM) service for notifications. Now if I don't install gapps, then I won't receive notifications from the app. Is that so?

And what exactly is gcm used for?
[Galaxy S 4 General] eXd4:
Just flash the latest official Xposed Framework (xposed-v86-sdk23-arm.zip) using Alberto96's GearRecovery — after you boot into Desktop, install XposedInstaller_3.0_alpha4.apk. :)
[Galaxy S 4 General] phaa84:
Thanks! :victory:
[Galaxy S 4 General] zhenhao97:
Is it worth upgrade from CM12.1 to this mod?
[Galaxy S 4 General] claytonjn:
[MENTION=2386505]Alberto96[/MENTION] I am trying to set up Android for Work, which required device encryption. I am seeing the following error in the logcat when trying to encrypt:

E/Cryptfs: Bad magic for real block device /dev/block/platform/dw_mmc.0/by-name/USERDATA

I am trying with a install straight from a factory reset. Not installing any apps, adding accounts or anything, just going immediately to Settings>Security>Encrypt phone

If anyone can point me into the right direction to remedy this I would greatly appreciate it. Thanks!
[Galaxy S 4 General] MD500:
Source Code of GearCM recovery with TWRP based

Source code of GearCM Twrp Recovery? To lower default cpu frequencies preventing overheating while flashing roms or making backups.

PD: Sorry for OT.
[Galaxy S 4 General] Martinmn:
I think mr.Alberto is preparing us a new update that fixes most of the issues , finger crossed :)
[Galaxy S 4 General] Aayan 123:
Hi I flashed the ROM after a lot of time just asking the quick setting status bar pull down(one with WiFi icon etc) isn't working and I can't go back to home by home button

Is this normal? Can I fix this?
[Galaxy S 4 General] TaylinG:
That's not normal at all. What recovery did you use to flash?
[Galaxy S 4 General] Aayan 123:
Gearcm recovery and I clean flashed 0711 version
[Galaxy S 4 General] Alberto96:
New Build is up!

Enjoy :)
[Galaxy S 4 General] braulio_holtz:
Screen "optimizing applications" cool, have not seen what else is new in this build (the part of the CyanogenMod), the rest of the ROM is stable
[Galaxy S 4 General] alizaki123:
My review after 3 days of usage

I finally found what drain the battery..

In the first day I went to sleep with 70% battery and WiFi on so I woke up with 23% with no data . in the second day I left the phone in aeroplane mode and it didn't drain.

When I use it again with WiFi it make about 1 hr on screen. WiFi need serious fix

Sry I had a screenshot from the battery usage but I don't know how to upload it:confused:
[Galaxy S 4 General] Blackko:
yeah thats the problem..wifi..in battery usage wifi is always on and maybe keep the device awake or something like that ..if you leave the device just with mobile data the phone will wasste just 2% of battery.(happend to me)
[Galaxy S 4 General] Sloth.M:
I know we shouldn't ask for ETAs, so I'm just going to say that I'm excitedly awaiting news of a camera fix.
[Galaxy S 4 General] rabbit_detroit:
List of bugs I know you know all of them

1. Camera n compass not working

2.flash is not working

3 . battery life is less not expected as 2x longer.

4.while the device is shut down, and when charger is connected, device starts automatically. It won't charge while shutdown.

Thank you.
[Galaxy S 4 General] codybank_789:
1 and 2 are known issues.

Doze is not enabled so 3. Also dont expect battery to be doubled even when doze is enabled.

4 is also known. Alberto said it can be fixed easily so dont worry. It also doesnt affect usability in any way.
[Galaxy S 4 General] braulio_holtz:
Yes, item 4 seems to have been corrected via source https://github.com/GearCM/android_d...mmit/0f0299fdf1857a876ea5fb1f0d195505412c5894

You can modify the root folder, file 'init.universal5410.rc' and change

service battery_charger /sbin/healthd -c

to

service charger /sbin/healthd -c

I have not tried, but I believe that does not give problems to the device

-----

The Doze mode is in the source code (https://github.com/GearCM/android_d...mmit/19001a9d88b09953792b3f1b5a801a370acece33), I don't know if is to enable changing any code or have to wait for the next compilation.

The Flashlight believe will be corrected with the camera, no longer know the progress of this

Only we wait the next build .. :)
[Galaxy S 4 General] Dewang rocky:
My wifi worked only once for an hour then stopped.after sevral wipes and clean flashes still no luck please help.
[Galaxy S 4 General] rabbit_detroit:
Next update on gearcm 13.

When do the next update will arrive with all fixes??
[Galaxy S 4 General] codybank_789:
No ETA allowed. These kind of posts can be really frustrating to the dev. Alberto has been dealing with lots of problems with camera since cm12.1 and now his phone's camera module is somewhat broken, making the fixing process even harder. Plz spend sometime to read the thread before asking useless question like this.
[Galaxy S 4 General] ArtZam:
Patiently waiting :o
[Galaxy S 4 General] braulio_holtz:
With the latest committed Alberto, I'm curious where would the problem of camera, has been removed CameraWrapper (https://github.com/GearCM/android_d...mmit/7fca79d23daa22bbb2368d18cfe70b758acd65f9) and open support for Snap and yet the camera does not work, it seems that having the similar error.

It does not have something that does not allow it to be compatible with Marshmallow? Strange that some other models with the Exynos (even some older) have support, but I believe that the source code is very different

Files with camera mentions in CM13

https://github.com/GearCM/android_device_samsung_i9500/blob/cm-13.0/include/camera/

https://github.com/GearCM/android_d.../cm-13.0/rootdir/etc/ueventd.universal5410.rc

https://github.com/GearCM/android_device_samsung_i9500/blob/cm-13.0/sepolicy/file_contexts

https://github.com/GearCM/android_device_samsung_i9500/blob/cm-13.0/i9500.mk

https://github.com/GearCM/android_device_samsung_i9500/blob/cm-13.0/include/hardware/gralloc.h

https://github.com/GearCM/android_device_samsung_i9500/blob/cm-13.0/configs/media/media_profiles.xml

https://github.com/GearCM/android_d...lob/cm-13.0/rootdir/etc/init.universal5410.rc

Logcat Camera - http://dl-1.va.us.xda-developers.co....txt?key=JroNhU8zGLJytsGgNrBC7A&ts=1454375411 (last build without camera wrapper)
[Galaxy S 4 General] kushpel:
Mm.. My clock and calendar apps had disappeared after reboot. They appear in search but won't start, if pressed.. Tried to clear cache and dalvik, won't help.. And they are absent in app settings.

Any ideas?
[Galaxy S 4 General] MorHop:
the camera ion_alloc problem

libexynoscamera.so should use libion_exynos.so,but it uses libion.so according to the log.

02-26 18:47:02.494 2593 2593 F DEBUG : backtrace:
02-26 18:47:02.494 2593 2593 F DEBUG : #00 pc 00000a40 /system/lib/[B]libion.so[/B] (ion_alloc+59)
02-26 18:47:02.494 2593 2593 F DEBUG : #01 pc 0002aff5 /system/lib/libexynoscamera.so (ExynosCamera::allocMemSinglePlane(int, ExynosBuffer*, int, bool)+60)
02-26 18:47:02.494 2593 2593 F DEBUG : #02 pc 0002c36d /system/lib/libexynoscamera.so (ExynosCamera::allocMem(int, ExynosBuffer*, int)+32)
02-26 18:47:02.494 2593 2593 F DEBUG : #03 pc 0002c719 /system/lib/libexynoscamera.so (ExynosCamera::allocInternalPreviewBuf(ExynosBuffer*)+40)
02-26 18:47:02.494 2593 2593 F DEBUG : #04 pc 0003dd03 /system/lib/libexynoscamera.so (android::ExynosCameraHWImpl::getPreviewCallbackBuffer()+806)
02-26 18:47:02.494 2593 2593 F DEBUG : #05 pc 0003df17 /system/lib/libexynoscamera.so (android::ExynosCameraHWImpl::startCameraHwThreadFuncC()+90)
02-26 18:47:02.494 2593 2593 F DEBUG : #06 pc 0003dfb9 /system/lib/libexynoscamera.so
02-26 18:47:02.494 2593 2593 F DEBUG : #07 pc 00010119 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+112)
02-26 18:47:02.494 2593 2593 F DEBUG : #08 pc 0003f99f /system/lib/libc.so (__pthread_start(void*)+30)
02-26 18:47:02.494 2593 2593 F DEBUG : #09 pc 0001a073 /system/lib/libc.so (__start_thread+6)

in ExynosCamera::allocMemSinglePlane:

buf->fd.extFd[index] = ion_alloc(ionClient, buf->size.extS[index], 0, ION_HEAP_SYSTEM_MASK, 0);

in libion:

int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask, unsigned int flags, ion_user_handle_t *handle)

in libion_exynos:

ion_buffer ion_alloc(ion_client client, size_t len, size_t align, unsigned int heap_mask, unsigned int flags)

I can't find a good way to solve the problem.

EDIT 1:

Camera HAL shared library import libion.so and libexynoscamera.so

EDIT 2:

Though Camera HAL shared library depends on libion.so, functions in libion.so aren't used in the HAL library.So we can edit it to avoid importing libion.so before libion_exynos.so

SOLVED!

02-27 00:45:48.208 2604 5718 [B]D[/B] ExynosCameraHWImpl: [bool android::ExynosCameraHWImpl::[B]startCameraHwThreadFuncC()[/B]] [B]end[/B] (5288)

!!!

First start Camera.app FAILED

Second start Camera.app FAILED

Thrid start Camera.app Success!

Now camera can work.

I'm trying to port GearCM 13 to i959,the China Telecom edition of S4.The GSM network is working well now.

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

My english isn't very good.:(
[Galaxy S 4 General] braulio_holtz:
Sounds like a great news will make the camera work, what changes you made?

You said the third time executed, it is only with the current build or you made any changes?

Anyway, this more technical information has been more helpful than seeing posts just saying "camera doesn't work" :)

Note: My English is not very good, so I did not understand everything