yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Mini Original Android Development] bakeLit:
battery problem

Good morning everyone,

Yesterday, I bought a used S4 mini LTE and immediately went for TWRP and then CM13 from here. Needless to say the ROM is absolutely stunning, but I can't get my head over one thing. It's eating my battery quite fast. I got a 30℅ drop overnight with Wi-Fi and GPS turned off. The phone didn't show any wakelocks in Wakelock Detector or BetterBatteryStats, no extraordinary usage shown in battery settings either. Also when I'm using it, it's losing like 5 ℅ per 10-15 minutes. I suppose battery life should be extended when compared to the stock ROM (I didn't have time to test it, went straight for CM). Could this be just because of an old, drained battery? I mean the phone is far from brand new. I tried ordering a new battery, so I'll see if things change. In the meantime - any ideas? Thank you very much, otherwise everything is smooth and flawless! Great job!
[Galaxy S 4 Mini Original Android Development] supachris:
Try flashing newest modem version with Odin and/or try the Custom Kernel (remix kernel).
[Galaxy S 4 Mini Original Android Development] :
If it's not too much hassle, back up your current CM-rom, flash the latest stock rom and see how the battery behaves. CM has great battery life, if there's a wake lock it's always a badly programmed app that causes it. My guess would be a worn battery, but to make sure you can test it with flashing the stock rom.
[Galaxy S 4 Mini Original Android Development] arco68:
I don't understand why people recommend custom kernels in these situations. If the battery drain is that extensive, the kernel is the least of the problems. It the phone is otherwise sleeping as it should, the problem is most likely related to hardware. Like the battery.
[Galaxy S 4 Mini Original Android Development] bakeLit:
Will try that, but if everything's working like it should, I suppose CM shouldn't be at fault here. I have a battery on the way, so I hope that'll solve the case. :) I only just got the phone because of its wide community support and so far I've been loving it!

Yeah, I almost ended up with a broken phone myself. :(
[Galaxy S 4 Mini Original Android Development] JimmyRay:
[MENTION=4584243]bakeLit[/MENTION], as others have suggest I would be inclined to suspect that the battery on your S4 mini is simply tired.

For what it's worth, I bought a reconditioned S4 mini LTE from an AliExpress vendor. The appearance of the phone was absolutely spotless, however I doubt the battery is brand new. I used to experience a sudden 10% drop in battery life from full-charge, then a slow and gradual discharge of around 1% per hour after this. Recently, it seems like the phone discharges slowly from full-charge, but that the 10~15% drop happens later on. I'm a very light phone user, and my usage does not really change from day to day. Therefore the only explanation is that the battery in my refurbished phone is also tired and worn. I have considered purchasing a replacement (which one did you go for, by the way?), but it's not such a high priority for me as the phone otherwise works wonderfully.

By the way, I thoroughly agree with your sentiments regarding the quality of this rom - absolutely stunning! arco68 has done an incredible job of keeping this great phone - possibly the best compact Android device with reasonably specs? - up to date. I see that CM work is also progressing (by another dev) very nicely on the newer 9195I variant, I'm confident that both the dual core and quad core versions of the S4 mini will remain popular devices for some time.

Cheers!
[Galaxy S 4 Mini Original Android Development] bakeLit:
I could see these drops myself. I've actually prepared a little bit of a test for me - I ordered two batteries. One was this dirt cheap 2350 mAh piece from China and the other one I got from a Czech store that was probably double the price and labeled with "Samsung" logo. I'll see how they do. Do you think every 8$ battery is bound to be useless?
[Galaxy S 4 Mini Original Android Development] IronRoo:
When starting the camera from the lock screen in portrait but then turning the phone on it's side for landscape mode the preview picture does not fill the screen. Anyone else noticed this? It's minor as picture is only a little smaller, but a possible bug. It works fine when the camera is started from home screen etc (0708 nightly I9195)
[Galaxy S 4 Mini Original Android Development] eltano06:
Try greenify and enable agresive doze.

Enviado desde mi GT-I9190 mediante Tapatalk
[Galaxy S 4 Mini Original Android Development] gfogger:
Could it be that some baseband versions produce this trouble?
[Galaxy S 4 Mini Original Android Development] sasank360:
That is possible. I use an older kitkat modem. I9195XXUCNH5. I will try to upgrade modem to a newer version.

Thanks for your feedback. I will report after upgrading baseband.
[Galaxy S 4 Mini Original Android Development] umuturunc:
I have been have this mobile data issue since cm12.

I can solve this problem with changing APN from Vodafone Internet to Vodafone tr. This APNs are already added in settings. So I don't make any changes in APN settings. I only selected other APN.

(9190)
[Galaxy S 4 Mini Original Android Development] hollandais:
It means that your Mobil data issue is not due to CM13...

Envoyé de mon GT-I9195 en utilisant Tapatalk
[Galaxy S 4 Mini Original Android Development] Timir1972:
1. Let me ask you first, when I install the upgrade Gaps again?

2. Did I philz_touch_6.07.9-serranoltexx and re-install it to me along with this new upgrade ROM. However, when updating errors occur and have to manually flash the CWM has to be that way?

Sorry, my English is made in google :)
[Galaxy S 4 Mini Original Android Development] Pangadaywalker:
Waiting anxiously to have this on i9192. Hope some day. :):):):)
[Galaxy S 4 Mini Original Android Development] KyeWalker:
[MENTION=3044346]arco68[/MENTION]

29/12/2015 Release CM13

So for me is the first time using CM13 I have WiFi issues. When my phone screen turns off I loose connection and the only way to get it back is by rebooting my phone (GT-I9195) Luckily I have no Mobile Connectivity issues and thank God for LTE

I had the same issue on stock ROM using F4k kernel, not that I'm anyway near an expert but I'm assuming its a kernel issue? Anyone else experienceing this?
[Galaxy S 4 Mini Original Android Development] Freddynic159:
If you already have installed Philz Touch you dont need to re-install it, only wipe and after flash ROM and Gapps through your recovery. :good:

---------- Post added at 08:53 AM ---------- Previous post was at 08:44 AM ----------

It's probably a issue of kernel or baseband (modem) as some users have commented previously.
[Galaxy S 4 Mini Original Android Development] KyeWalker:
WiFi has been fine and consistant from first release to the 28/12 I guess I'll wait till tomorrow release before I mess around with modem hopefully [MENTION=3044346]arco68[/MENTION] can take a look at the kernel first
[Galaxy S 4 Mini Original Android Development] transmuting:
Anyone else having trouble running Tasker on CM13? I get an error saying that it can't save data. After every reboot all my configurations are gone.
[Galaxy S 4 Mini Original Android Development] sej7278:
[MENTION=3044346]arco68[/MENTION] is there any chance that compiling this with gcc5 (debian sid) is the problem with my own builds getting the "no sim" error? the same 29/dec nightly works fine, so its not a cm issue, its got to be my environment (or some repo i'm missing). i had to disable clang on the host to even get it to build.

i noticed some commits about gcc 4.9 problems, what version are the official build servers using, ubuntu 12.04 or something? although isn't gcc used from the prebuilts directory rather than the host os?
[Galaxy S 4 Mini Original Android Development] transmuting:
I got it working. Deleted data and imported my configurations again. Now Tasker is working!
[Galaxy S 4 Mini Original Android Development] arco68:
Maybe you're missing the vendor blobs from themuppets.

Android is using GCC 4.9 from prebuilts when building, yes.
[Galaxy S 4 Mini Original Android Development] sej7278:
well i've got it listed in my .repo/local_manifests/roomservice.xml :

<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" />

and it all appears to be there in vendor/samsung/serrano-common/ :

├── Android.mk
├── BoardConfigVendor.mk
├── proprietary
│** ├── app
│** ├── bin
│** ├── etc
│** ├── lib
│** └── vendor
├── serrano-common-vendor-blobs.mk
└── serrano-common-vendor.mk
[Galaxy S 4 Mini Original Android Development] arco68:
Need to look at the logs then, to check for clues.
[Galaxy S 4 Mini Original Android Development] AndreAkaNick:
I have a problem with my SdCard.

It works but i can't find it using my phone.

Actually I have found it in /Storage/90EF-15C6/

But none of my apps see this folder. So i cant restore my backups on the SdCard.

Any way to fix this ?
[Galaxy S 4 Mini Original Android Development] sej7278:
from dmesg i can see:

[ 902.739874] init: Starting service 'ril-daemon'...
[ 902.799450] init: Service 'ril-daemon' (pid 3605) exited with status 255
[ 902.799481] init: Service 'ril-daemon' (pid 3605) killing any children in process group

then just tried to run rild:

root@serranoltexx:/system/bin # ./rild
dlopen failed: dlopen failed: library "libstlport.so" not found
255|root@serranoltexx:/system/bin #

so i mounted your system.img and my one, and lib/libstlport.so only exists in your image, that's the only difference when comparing both file listings. copying that file over fixes the no-sim problem.

looking at this: http://review.cyanogenmod.org/#/c/122014/ it seems we need to add this to our device tree:

<project path="external/stlport" name="CyanogenMod/android_external_stlport" groups="pdk" />

even though it already seems to be in qrd.xml, nothing got checked out for that repo until i added it to roomservice.xml

another 2 hour build and we should find out!

edit: yes, it compiled libstlport.o and put it in system/lib, so adding that repo to roomservice.xml should be documented somewhere i guess.

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="CyanogenMod/android_device_samsung_serranoltexx" path="device/samsung/serranoltexx" remote="github" />
<project name="CyanogenMod/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" />
<project name="CyanogenMod/android_device_samsung_msm8930-common" path="device/samsung/msm8930-common" remote="github" />
<project name="CyanogenMod/android_device_samsung_serrano-common" path="device/samsung/serrano-common" remote="github" />
<project name="CyanogenMod/android_kernel_samsung_msm8930-common" path="kernel/samsung/msm8930-common" remote="github" />
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" />
<project name="CyanogenMod/android_external_stlport" path="external/stlport" groups="pdk" />
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" />
</manifest>
[Galaxy S 4 Mini Original Android Development] joelalmeidaptg:
Is this happening for anyone of you guys with today's build??
[Galaxy S 4 Mini Original Android Development] xtspot:
Not to me.
[Galaxy S 4 Mini Original Android Development] hollandais:
I wasn't at home until yesterday, and since I flashed the cm13 without any computer. Tomorrow I tried to connect my I9195 to the computer and the only thing I saw was I9195. But nothing else appears. The phone seems empty, no internal memory, no ext sd1, no folder no files. Is there somehing to do I haven't seen?

Thanks,
[Galaxy S 4 Mini Original Android Development] DarkJoker360:
How can i enable it?

Inviato dal mio GT-I9195 utilizzando Tapatalk
[Galaxy S 4 Mini Original Android Development] imarsh72:
Hi, just bought an i9195 for cm13 , great rom. But I have a small request for the next snapshot , would it be possible to make the mobile data button in quick settings an on/off toggle and long press to go into settings page just like the WiFi button please. :good:
[Galaxy S 4 Mini Original Android Development] misscandy:
The gps doesn't seem to work very well. I'm playng Pokemon Go and sometimes my avatar doesn't move :(
[Galaxy S 4 Mini Original Android Development] IronRoo:
I would like this too, however it's unlikely as I believe it's CM13 and not phone specific.
[Galaxy S 4 Mini Original Android Development] DarkJoker360:
Is the material design lines guide

Inviato dal mio GT-I9195 utilizzando Tapatalk
[Galaxy S 4 Mini Original Android Development] imarsh72:
That's a shame as it was enabled on my previous phone (siii mini) with omni rom 5.1
[Galaxy S 4 Mini Original Android Development] supachris:
Is there any setting that can be done to decrease the in call echo? In the Nightly it is much more than in Snapshot. Is this related to to new audio HAL?
[Galaxy S 4 Mini Original Android Development] DarkJoker360:
When I reboot my phone the battery graphic is resetted. I m on 0418 Snapshot. Help

Inviato dal mio GT-I9195 utilizzando Tapatalk
[Galaxy S 4 Mini Original Android Development] jihadinhorocks:
I tried moving some google apps to system, still, I don't have enough space to install or even update apps from the playstore, I also use my 64gb sd as internal and moved most apps which support external. Nonetheless, this is my main issue with my phone. How can I get more space on internal please!
[Galaxy S 4 Mini Original Android Development] IronRoo:
Sorry, looks like I misled you, the July security update for our device was already rolled into the nightlies when I made previous post. For "official" versions of CM the security updates are normally updated into nightlies in about 3 days of Google advisory, while "unofficial" updates are more like the 2 weeks I mentioned before.

So any nightly after July 5th has the July security patches already.
[Galaxy S 4 Mini Original Android Development] himi:
CM13 battery issues - huge battery drain, hot..

Hey there, I am having battery drain issues with my S4 mini I9195. The phone gets sometimes very hot and the drain is huge. It also happens that battery % jumps quickly - for example the phone jumps from 28% to 0% and shuts down. Also during using Google Maps for navigation the drain is very high. And the phone gets really hot, as mentioned. I had no issues on stock ROM. I also bought a brand new battery but the problem is still the same. I was running both stable and nightly CM13 builds, with no difference, the same issue. I'm currently running 13.0-20160713-NIGHTLY-serranoltexx.

I get maximum 1 day of usage, sometimes I need to charge during the day to survive (if using navigation etc). Did not have such issues on stock ROM.

Does anybody experience the same? I found some similar topics but no real solution.

Can anybody help me, please?

Thx in advance!
[Galaxy S 4 Mini Original Android Development] xdaschwallobert:
[MENTION=276074]himi[/MENTION]: max 1 day of usage is normal. For stock and CM13. At least for me.
[Galaxy S 4 Mini Original Android Development] himi:
[MENTION=4076419]xdaschwallobert[/MENTION] Thanks for your reply but 1 day is total max (few calls, texts, emails, web .. nothing more), but normally it is like half day when using navigation or bit more calls, web etc. So it is definitely not normal. I saw some threads mentioning different radios but with no real success. Hence I tried my luck here. I am considering to go back to last stock ROM .. but saving it as the last resort because I really like CM ROMs ;)
[Galaxy S 4 Mini Original Android Development] M1chiel:
First you need to check if a (newly installed) is responsible for the battery drain (Settings - Battery). Several users see a high battery usage of Google Play Services in MM (including me, but for another device). You can install "Doze - For Battery Life". This is fairly effective, but not for Google Play Services.

I installed the Xposed framework (requires root), and the modules Amplify, Greenify and NoWakeLock. Especially the latter is very effective since it can block all wakelocks from Google Play Services (I got the tip here: http://xdaforums.com/showpost.php?p=67777699&postcount=2727). Unfortunately, it can block wakelocks of system apps like Google Play Services only with the paid version. The block does not seem to affect the overall performance of my phone but easily doubles my battery time.
[Galaxy S 4 Mini Original Android Development] paulrox:
Hi all!

I have an S4 mini I9195 with stock KitKat Rom, i would like to try cm13 but I few questions. Is there any big issue with the stable release of cm13? And after flashing cm13, can I go back to the stock rom?
[Galaxy S 4 Mini Original Android Development] Migual12:
Hi, after flashing TWRP, you should do a full backup of your system, than you can go back to stock rom. To be sure not to loose your stock rom copy the backup in the TWRP folder to your PC. Be careful to take the right versions. I mixed 3G and LTE versions which caused a lot of problems. See my previous posts. Be sure to backup your data first.
[Galaxy S 4 Mini Original Android Development] NathaCR:
Question

Hello!

What happens if I try to install this ROM on a i9192 model?

Thanks in advance :D
[Galaxy S 4 Mini Original Android Development] fyritp:
Thank you man, now i have CM12 what should i do tp update, cuz notifications bar get me all days notification about update should i only update through my phone? or do a wipe data&cache and flash the phone from reovery mode?

Thanks.
[Galaxy S 4 Mini Original Android Development] M1chiel:
You will have to go to recovery, back up your data and system, wipe (factory reset in twrp), install the update and gapps for 6.0 (e.g. Opengapps Mini, choose 'arm') in one go (without booting into system in between). If you want to you can restore your data in twrp, but I am not sure if this will cause conflicts with the Google apps.
[Galaxy S 4 Mini Original Android Development] IronRoo:
As M1chiel says, you must do a clean install & wipe all data, when updating from 12 to 13. I never update any app data between major updates, though many apps will work fine, but it's unpredictable, from what I've read, so best not to. NEVER update any system apps data, as stated in first post. Also update to latest TWRP before install CM13 if you don't have it yet.

I used TWRP to do a full nandroid backup to external SD & then also copied this file to PC so easy to get your entire phone back to exactly how it was. However I use apps like EasyBackup, myphoneexplorer, titanuim to backup most things so individual apps etc are easy to restore, but remember there are often lots of things that will not backup eg bookmarks from some browsers, nothing from whatsapp, none of your photos etc etc, depending on app used, so do other stuff manually .

After updating to CM13 upgrades are easy using the built in "CyanogenMod updates" feature white a compatible recovery like latest TWRP, no need to wipe anything, though you should still do regular backups just in case.

That turned out longer than I meant it tell be!
[Galaxy S 4 Mini Original Android Development] Linkdk:
Latest nightly(19th of july) doesn't seem to go well with Xposed? Keep getting reboots after a minute or two. Has anyone tried one of the latest nightlies together with xposed?
[Galaxy S 4 Mini Original Android Development] dirtyr3d:
Do you have the latest Xposed framework installed (v86)? If not, get it from here: http://dl-xda.xposed.info/framework/sdk23/arm/ (sorry, can't link yet).
[Galaxy S 4 Mini Original Android Development] amonowy:
Hi!

I believe my problem is related to system prsmission. The symptoms are:

1. I am unable to unrar/unzip with ES file manager

2. Unable to unstall Sygic navi on itnernal storage

When I try to install gps, I recevie an error like: Its not possible to start Sygic from your SD card due to new limitations of write on Android.

Partially fix was to pull out microSD card, then I was able to install app.

I am also unable to copy files from internal mem. Any idea how to fix it on settings level?
[Galaxy S 4 Mini Original Android Development] Linkdk:
Yes i downloaded the latest version yesterday when i tried (same version as you linked to).

I was running an older may build with v85 fine, but i wanted to upgrade to a newer nightly. Did a full wipe formatting everything, but something might have gone wrong anyway, was just wondering if anyone is was running one of the latest nightlies with xposed :)
[Galaxy S 4 Mini Original Android Development] amonowy:
To use this app I have to unmount SD on settings menu. Its kind of annoying to mount and unmount sd every time I want to use app.

Is it android related version related or CM 13.0 issue?
[Galaxy S 4 Mini Original Android Development] Sopis:
Hi guys

can anyone help me?

I flashed the ROM via twrp and then gapps but they appear as android icons with names like com.xxxxx and I keep getting unfrortunately, xxx has stopped working for alsmot everything.

Any ideas what is wrong here?

Thanks!
[Galaxy S 4 Mini Original Android Development] M1chiel:
You must wipe and then flash CM and Gapps in one go without booting into system in between (choose 'add more zips' in twrp). If that does not help, boot the first time into system without adding your google account. Check the permissions of the googly apps and give permission to everything before you add your google account.
[Galaxy S 4 Mini Original Android Development] Dr. Slump:
A process named "system_server" may be the responsible of the draining trouble, by fully utilizing one CPU for no apparent reason.

I observed this problem only twice and on one of them I saw that it kept its troublesome state until the phone goes sleep. After turning off the screen for a few seconds (hopefully going sleep and then waking up) it returned to its normal state. So it is not the certain culprit, only it may be. But it is one main trouble anyway. It causes the phone to consume an extra ~~300 mA and rapidly elevates its temparature and I guess finally causing a reset.

I couldn't exactly replicate it. They happened while surfing web with a lof of connectivity option changings (like switching between 2G 3G, mobile data on/off, wifi on/off) and a lot of opened tabs. May be it is not about forcing connectivity options but something about memory management.

Phone is i9190 and has 20160716 nightly. It might happened numerous times before (on previous nightlies) but didn't get my attention, very probably because making the phone go to sleep really cures the bad state.

*****************

Update: Later I figured out that it was about one particular application (a beta web browser). I am sorry for the hasty and unaccurate post.
[Galaxy S 4 Mini Original Android Development] Sopis:
Hi, first of all thanks for your reply!

I followed your steps and now the phone takes forever to finish optimization.

It keeps showing the boot animation, then App Optimization and this goes on and on for some time now.

Is that normal behaviour?
[Galaxy S 4 Mini Original Android Development] M1chiel:
15 minutes or so is normal.
[Galaxy S 4 Mini Original Android Development] Sopis:
It keeps optimizing 22 apps over and over again...OMG..

is it possible it's stuck in a bootloop or similiar?
[Galaxy S 4 Mini Original Android Development] M1chiel:
Try flashing again. Wipe first. Do you have the correct gapps and rom?
[Galaxy S 4 Mini Original Android Development] Sopis:
ROM: cm-13.0-20160418-SNAPSHOT-ZNH0EAO2NJ-serranoltexx

gAPPS: open_gapps-arm-6.0-nano-20160720

Is it possible they dont go along?
[Galaxy S 4 Mini Original Android Development] M1chiel:
Try the mini gapps. Nano and micro sometimes do not work.
[Galaxy S 4 Mini Original Android Development] Sopis:
OK, thanks, I will try it...

I tried putting both zips into /sdcard folder as written in guide, but still the same, apps keep optimizing...unbelivelable...
[Galaxy S 4 Mini Original Android Development] milouk:
Optimizing can take from 15' up to 30' ...it is normal for some apps to take longer to optimize.Also high temperature is normal.