yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] davy0104:
Hello everybody,

as a newbie, having read along this thread for several weeks,

I may contribute to the confusion about the battery drain on the i9100 :D

Not having installed any Gapps at all, the idea of making the PlayStore

responsible doesn't work for me. After a full wipe and re-installing my apps

(from F-Droid, as I am not a G00gle-fanatic) as recommended here,

my phone seems to consume normally again. I'm on today's Nightly (0702)

and can't report any problems.

Many thanks to the workers, experts, developers here, especially those on the i9100,

and to all keeping these great forums alive! :good:

davy
[Galaxy S II Android Development] vdZERO:
Don't know if this helps but restart phone before charging, turn off back up my data and then disable wifi. Now start charging the phone.

This is a bug in M that keeps the phone awake after a battery charge.

Forgive me if i speak off topic.
[Galaxy S II Android Development] Vidura Dissanayake:
well i try this and return back to ysf 4.1.2 time to time..i dont think our device can bare these new android versions anymore
[Galaxy S II Android Development] jojobg:
Multi-Partition SD Card in MM

It is a bug... S2 is hosting MM respectfully. Arnab is experimenting in DU to try to fix the battery drain.

Long live multi-partition SD: read article 1 and 2.

It is working kind of nice, testing it full fledged since last night on my two phones.

Just a teaser, SD card modes enabled for MM: Internal,Portable and ... Mixed ;) enjoy.

P.S. Today is a good day, Simon and team have implemented the new Zram approach, waiting for the build ... : https://review.cyanogenmod.org/#/c/149096
[Galaxy S II Android Development] daniu:
Honestly: no glue what you want to say ...

What is a bug?

What the heck abt that sd storage as internal storage? I partitioned my data partition with 6GB and install all apps on the device since that - do you have more than 10gb of apps? (You could partition data to 10gb)

Then it seems like you are trying to advertise another ROM or did I get that wrong?

Regards

Sent from my x-phone using brain 2.0
[Galaxy S II Android Development] jojobg:
Battery drain is a bug.

The rest is advanced hidden feature I'm sharing with the community. I was discussing about that back in the thread. Where the heck did you find another rom in the two links I've shared with deep explanation about sm command usage?

Just for the statistics. 1_6GB pit here: 4.47 used out of 5.91 GB. With already usage of 436Mb of 3.71 GB adopted SD partition. ;) And there are only production apps there. No Games installed. If I would sync full Google Play Apps list I would definitely exhaust the 6GB and need extension. Now I'm cursing my self for choosing the wrong version of Tab4 as I cannot use MM on my version. Hence even this feature there are apps with flag to not move to adopted storage. So kind of the old App2sd at the end the vendor can kill it by flagging the app. Root is not enabling advanced move also, like for example with App2SD with root able to move additional applications.

P.S. just updated my signature in order to rise the attention the this new feature.
[Galaxy S II Android Development] p3dboard:
So i did a day of usage and testing, getting the same battery drain issues on DU, device keeping awake about 50% of the time, not entering deep sleep properly.

I have restored my cm13 backup and switched back to cm13.

Next option for a test might be to try cm12.1 again... Maybe next weekend
[Galaxy S II Android Development] rINanDO:
I've found the patch in the kernel which fixes the 500Mhz bug after camera usage and tested it. I posted the patch here http://review.cyanogenmod.org/#/c/151602/.
[Galaxy S II Android Development] Saber:
Does this actually fix the bug or is this some workaround for the problem :confused:

I would suspect it to be deeper within the kernel.

gsstudios
[Galaxy S II Android Development] infinion:
for battery issue i use Greenify Donate v2.9 beta 2 with boost mode and all xposed features checked and all apps(incl. system apps) hibernated and [App] ForceDoze default settings
[Galaxy S II Android Development] rINanDO:
My guess is it is workaround for the problem, so I guess I have tot abandon the commit. Effectively this patch works for our camera 500Mhz issue.
[Galaxy S II Android Development] DevisG79:
Will this patch be included in coming nigtlies?
[Galaxy S II Android Development] Abdo ALh:
hello

if i update my cm13 rom by OTA Update will it delete all my data and my apps? and what can i do if so

... my rom is cm13 and my phone is i9100
[Galaxy S II Android Development] Saber:
No, was abandoned as it isn't a 'fix' for the issue. It will have to be investigated further.

gsstudios
[Galaxy S II Android Development] arnab:
This patch has no issues. It was taken from boefella kernel for i9300.
[Galaxy S II Android Development] Abdo ALh:
please please help me... i want a good cm13 rom update with good features.

because i flashed cm13 29-6-2016 and it sticks and reboot every minute
[Galaxy S II Android Development] mirhl:
I just wanted to remember problems with F2FS are still real.
[Galaxy S II Android Development] alienflorina:
Weird thing happened today. I wiped everything from the TWRP recovery because I wanted to try the Rom without Google services. So I reflashed, after full wipe, didn't flash google apps. After boot it asked me if I wanted to add me google account, I answered yes and I found myself with playstore again restoring my apps. What am I missing? Do I have to wipe SD card?
[Galaxy S II Android Development] jojobg:
First hours of usage of 3rd July build shows promising battery usage levels.
[Galaxy S II Android Development] Lysergic Acid:
Interesting, I'll take a look.

To be honest I think it was more stable before. Recently CM introduced some new APIs and weird commits with seems to break some stuff, so my to do list is just growing. Besides, the need for a repit to get gapps working is bad too, but if it gets to a good state again I'll push snapshots ;)
[Galaxy S II Android Development] MARCOSOFT:
[MENTION=6159291]Lysergic Acid[/MENTION] and [MENTION=414800]arnab[/MENTION],

Last rom DU by Arnab has enabled sending and receiving mms When mobile data is disabled, but CyanogenMod 13 Nightly Builds does not have!

Arnab, you can provide a patch to make enebled?

Thank you
[Galaxy S II Android Development] Saber:
Still needs updates otherwise we can't take full advantage of the file system.
[Galaxy S II Android Development] p3dboard:
Same for me. After restoring my CM 13 backup (made before DU rom testing), I then downloaded 3rd of July build and flashed the update. Today out of 6hrs so far, my phone has only been awake 3% of the time, with 30min screen on time, 5 1/4 hours of deep sleep.

The only annoying thing is that Cell Broadcast receiver was enabled in this nightly build, and now I keep getting Message Broadcasts telling me the name of the Mobile Phone tower / Tower location I am connected to. I disabled the Cell broadcast receiver app to stop these messages. It's in the Change Log of the 3rd of July, hope they fix this up :)
[Galaxy S II Android Development] DRKMTTR:
it will be nice if cm build bots start building "single-langauge" build like EN+GER etc :D (too bad for build bots), and bring additional option in setup wizard for downloading other language and install CM-apps like Gello or Snap for curent device with current langauge

sry for my bad english
[Galaxy S II Android Development] Andrea900:
Did you ever have the lack of Deep Sleep mode in the last few days?
[Galaxy S II Android Development] p3dboard:
Yes, i think every day last week my device was not able to enter deep sleep for about 60% of its battery usage, so on Friday night, i tried switching to the DU rom as there was some mention of extra patches. But after a day of usage on Saturday i had the same issue of a large amount of device time not being in deep sleep on this rom. So on Sunday night i restored my cm13 backup from Friday and then flashed the latest cm13 build. Today my device has been on battery for 12.5 hours, and in deep sleep for over 11 hours, 47 min screen on time and 37min awake time (when not in deep sleep due to background processes keeping the device awake), which is back to normal
[Galaxy S II Android Development] Andrea900:
Good news! I'll try this nightly soon, sharing with you the results.
[Galaxy S II Android Development] JukkaX:
MD5 verification failed

Since installing CM 13 the Cyanogenmod upadates have given "MD5 verification failed" error message only after downloading the updates. Is there a cure for this problem? Thanx.
[Galaxy S II Android Development] mirhl:
Ugh, okay.

At least I haven't to dig in logs :eek:

I have reverted /data to ext4 with backups.

Btw, I noticed that slow scrolling in catlog breaks vsync
[Galaxy S II Android Development] stylemessiah:
Im on the 28 june build, i only update every now and then, and no doze issues or slowness, though geenral battery drain needs to be fixed

For those who want a bit more control over Doze, im using this: https://play.google.com/store/apps/details?id=com.yirgalab.dzzz&hl=en

Its free.

Ive got Greenify license but dont use it these days, and havent for months, way too much going on in it that i feel doesnt add up to better performsce/savings, most of the time breaks somethign and i got sick of spending hours twiddling with it

Doze (above), deep sleep Battery Saver (to control the scheduled wakeips for syncs and airplane mode on quiet hours) and Amplify are all i use now.

---------- Post added at 04:34 PM ---------- Previous post was at 04:32 PM ----------

you have a rooted phone, or you wouldnt be using the ROM, so why not just remove it with a root uninstalling app, i do, along with about 18 other packages i never use
[Galaxy S II Android Development] p3dboard:
Today i am not sure what is different, but so far my phone can't enter deep sleep. It's constantly awake. Really frustrating as yesterday it was fine.
[Galaxy S II Android Development] Andrea900:
After the new nightly, nothing has changed for me, too. That's bad. :(
[Galaxy S II Android Development] Saber:
It's a known issue. You need to download manually (e.g. in your browser), then flash via recovery.

gsstudios
[Galaxy S II Android Development] jojobg:
Still going strong on the battery. Last night fall asleep on the couch. Phone was at 100 % just unplugged it, at the morning 6 hours later 85%.
[Galaxy S II Android Development] p3dboard:
Are you connected to Wifi during this time? One major difference between yesterday and today for myself is that I was at home with a Wifi connection and today I was out and about on Mobile Data. I wouldn't expect to get as much battery life with Mobile Data, but when on Mobile Data I can't enter deep sleep. I tried the trick someone mentioned about putting the device in flight mode and rebooting. While flight mode was enabled after a reboot, the device entered deep sleep (for about 5 minutes) but as soon as I took it out of flight mode, it no longer entered deep sleep.
[Galaxy S II Android Development] heleneh:
After I accidently resettet the App settings in the Settings I always got 'Google play closed'. What can I do??? I gave Goggle play all permissions. Also the permissions for all other Apps are completly given ( under Advanced -> App Settings)
[Galaxy S II Android Development] davy0104:
Concerning battery drain:

I'm on Nightly 0704 since yesterday; battery drain seems to be normal. And my S2 gets into deep sleep again:
[Galaxy S II Android Development] jojobg:
Yes I was on WiFi, mobile data is more power hungry so it's normal to get less battery time on 3g. Back in the days Y5 Battery saver was working like a charm but not since Lollipop days onward.

If you are able to reach app settings go and clear Google Play Service cache. If you are unable to fix it from there, reboot to recovery and clear dalvik cache and cache. I was performing the same several times yesterday till I found a culprit in one of the themes I use, not a FC but rather inactive layer stays on display after unlock... Be careful with Midnight Blue CM13 theme release 12th May 2016.
[Galaxy S II Android Development] wason92:
Instead of deleting every dex, you can navigate to '/data/dalcik-cache/' and just delete the dex for whatever google apps.

Will be quicker than compiling everything.
[Galaxy S II Android Development] DikkieDick:
Hi, I'm stuck. I thought giving it a try to install CM13 and found the unofficial version (and now I see it's dated 20151223). This went all very smooth and I wiped the cache and did a factory reset but after firing up it's in a lock screen and asks for a pin and whatever pin I enter it isn't recognized. Also not the pin used for my SIM. I've removed the sim and booted the phone but still it nags about a pin and my previous known and used pin isn't working. And every time I enter a pin now it goes to factory reset and rebooting again.

How to solve this?
[Galaxy S II Android Development] thearczoro:
Easy, install the latest official nightly. Before that, make sure you already install the latest TWRP IsoRec compatible.
[Galaxy S II Android Development] DikkieDick:
Well unfortunately I installed ClockWorkMod recovery and that looks after the flashing of CM13 quite different and I'm missing some options. :(
[Galaxy S II Android Development] thearczoro:
Always read #page1 buddy. All there [emoji6]
[Galaxy S II Android Development] DikkieDick:
That's what I did, except that I used another nightly. Hee, as I'm writing this it now comes up with a welcome and has stopped nagging about a pin.

And managed to get TWRP in it. Now flashing the latest Nightly.

And not getting better: everything is crashing. Installation wizard etc. Guess I'll have to do it again. Probably out of memory.
[Galaxy S II Android Development] laptopu:
Tried to record video tonight and camera app freezes as soon as I press record. This is with any camera app, tried downloading a few. If it makes a difference I have opengapps micro with Google camera app. Spent past hour looking for solutions, any help please?
[Galaxy S II Android Development] chrisXL:
No problem here. Back and front stock camera are working fine (20160703 build).
[Galaxy S II Android Development] Andrea900:
I'm on 0704 Nightly too, but the battery drain issue is still here...
[Galaxy S II Android Development] p3dboard:
I have been testing a few thingsthat seemed to help a bit. Last night I was testing Greenify's new Shallow Hibernation mode for Android 6, as well as Aggressive Doze - I haven't added any Apps to the Greenify hibernate just incase greenify was causing issues with apps, that seemed to help the device get to deep sleep a bit, but not all the time.

Give this a try, as it seems to be working for me today (I have turned Wifi off as I want to try get the phone when running under Mobile data to go into deep sleep) and my i9100 seems to be entering deep sleep now, Enable Location Services and choose Battery Saver mode. One of the main wakelocks I have been seeing is gps-lock. This seems to stop the gps-lock wakelock in my initial testing. Still not 100% sure yet, but see if that does anything for you.

Edit: I think I just figured out the source of the gps-lock wakelock. Google Play Services has a NlpCollectorWakeLock (Network Location Provider Collector Wakelock). Now if I can disable this location collection, it might help with the deep sleep issue...
[Galaxy S II Android Development] cherryb8844:
After seen many of positive reviews in here so I installed 4th of July nightly with some xposed version 80 module like greenify YouTube adaway native clipboard with integrated with Google keyboard of ogxposed not for download video just for background playback and pop-up

Standalone maybe my English is week please forgive me

Amaze file manager and explorer

Phonograph for listening music still in use

Musixmatch not activated

Play games

Helium backup and restore

UC browser still in use

In night my phone was 52℅ for more information see the attachment I was sleep 11 pm

Edit-guys I installed Yahoo weather provider by cyanogen mod from play store in night but it not updating by manually anymore can anyone link me the best weather provider this is rainy season here and I never ever miss any event create by nature

Cm12.1 have the data indicator showing in stausbar but cm13 not any suggestions to get it back
[Galaxy S II Android Development] chrisXL:
For those who have battery drain problems and have Xposed installed I suggest "amplify" module (free for Nplwakelock and NplCollectorwakelock, donation for the remaining processes). More infos on the module description. I have solved (free version) about 70% of the battery drain problems . Try it and reportate here
[Galaxy S II Android Development] Andrea900:
I'm already using the donate version, with no luck. [emoji17]
[Galaxy S II Android Development] Klaus20:
For all those who have problems with new installing the Gapps

** google play services has stopped - OR - setup wizard has stopped **

Here's a solution:

https://wiki.cyanogenmod.org/w/User:PsychoI3oy#Fixing_CyanogenMod_13.0_gapps_crashes
[Galaxy S II Android Development] tomtigerman:
Did you change default DPI ?

Changing dpi can cause app's crashes. I had the same problem with camera app, and I fixed it using Xposed "App settings" module and set default DPI for camera app. Now I'm able to record video.

Envoyé de mon GT-I9100 en utilisant Tapatalk
[Galaxy S II Android Development] laptopu:
No change from default. Could Google camera app be to blame, and if so how can I revert without wiping data partition on opengapps?
[Galaxy S II Android Development] thearczoro:
MTP broken, it's showing the drive but can't read files inside the phone. 06 July Nightly.
[Galaxy S II Android Development] Typhoon_Master:
Hi, since i havn't tried cm13 since february and had some issues concerning battery, i now wanted to know if there is already a build where battery drain is not that massive, and might be good for daily use. :)

2nd question:

does anyone know an alternative download server for i9100 cm builds. im currently loading with 4KB/s, which would take 9 hours to complete. :(

thank you
[Galaxy S II Android Development] Andrea900:
Mmm, keep your build for now! xD

---------- Post added at 04:01 PM ---------- Previous post was at 04:00 PM ----------

I'm triyng the desperate move. I'm reinstalling from scratch the entire rom.
[Galaxy S II Android Development] cherryb8844:
Try to use ucCloud download

Install uc browser

Go to cyanogen download page

Click on download

Then click on cloud download

Save file in temperery disk

Wait for a while if file will we download on uc cloud server

After download complete start your download
[Galaxy S II Android Development] Typhoon_Master:
why? :P is it that bad?
[Galaxy S II Android Development] Andrea900:
Really bad! The device is discharging blazy fast.

Less than 4 hours away from charger and you can say goodbye to your phone.
[Galaxy S II Android Development] jojobg:
Situation improved with 3rd July build onward. Heavy usage, 4 hours. Phone Idle - 6 hours 15 % down.
[Galaxy S II Android Development] Andrea900:
The desperation move has worked! Deep sleep is back.
[Galaxy S II Android Development] chrisXL:
No deep sleep? If yes try to wipe data, setup without titanium backup, install bbs and/or amplify, then take the action for processes that eat your battery.

My old original battery discharges in 14-16 hours (normal usage).
[Galaxy S II Android Development] slavanar:
Whats not working exactly ? cz i wana buy S|| to test this Rom ... Really i will
[Galaxy S II Android Development] laptopu:
I solved my freezing recording problems mentioned couple of pages back, did full data system and cache wipe, clean install of latest nightly and latest opengapps mini, fresh install of all apps from play store not reinstalling from a backup. Recording video now works perfectly, wanted to post this if it helps others in future.
[Galaxy S II Android Development] Saber:
Yep, it's official. :)

We now have a custom kernel for CM13.

[KERNEL][UNOFFICIAL][LINARO/UBER]DorimanX kernel for LP and MM

gsstudios
[Galaxy S II Android Development] Boolian:
Looking at reports of battery drain, I can't believe it's specifically a problem with ROM.

I'm on 10th March and never updated - I'm experiencing probs also now. But I suspect Play Services...maybe.

I couldn't understand why a clean wipe and re-install apps would cure a battery drain issue either (as recommended)

Anyway, I've just rebuilt with 10th March and a February pico Gapps package and all is OK.

I've just run a comparison of all installed system modules/apps with a Nandroid I've kept from May. The only thing I see different is that I no longer have the "ccc.abuse.droidguard" module which was present in my May backup.

This may not be relevant at all - But, was the GMS Droidguard module not introduced with a Play Services update sometime after March and designed to run continually in the background?

If I experience battery probs again I will check for this module reappearing and disable it, out of curiosity.

Edit* I'm a bit slow :)

It seems "Droidguard was introduced with Safety Net (snet) over a year ago and was implicated in PlayServices crashes which disabling it cured.

Although it also appears that Safety Net has an approx 3 month code update cycle. There was one in December 2016/around March 2016 so the timeline is right, but it could be pure coincidence that battery issues appeared after March. Just an observation...
[Galaxy S II Android Development] laptopu:
Thanks for your work. I have never used a custom kernel before, what are the pros and cons of this please?

Also as a side note anyone who's read my recent posts know I have had video recording issues fixed by wiping data, system and cache then clean install of rom and opengapps.I have noticed my gps was a bit slow at locking and dropped a bit but with a clean install of 6 July nightly and fastergps installed I lock in about 10 seconds really strong too.
[Galaxy S II Android Development] DikkieDick:
I installed the July 5th nightly ROM and am surprised by the battery life. Before with the stockrom battery would be completely depleted within a day with hardly no usage as it's the phone I use for the office. All other stuff I'm doing on my Nexus 5X. After over a day and only looking at the phone a few times it was this morning on 60% (took it of the charger yesterdaymorning). I really can live with it.
[Galaxy S II Android Development] Gent':
Which one to choose,linaro or uber ?
[Galaxy S II Android Development] mirhl:
Ok, I'll quote myself.

It seems problem with F2FS and messaging apps are related to inline_data mount option.
[Galaxy S II Android Development] hewhomustnotbenamed:
I am having terrible battery life with this ROM.. Android System is keeping the phone awake for

1-2 HOURS

at a stretch... All this is with no mods and clean flash with no apps installed from play except solid explorer(paid).

---------- Post added at 06:00 PM ---------- Previous post was at 05:55 PM ----------

How did it go? I did the same and the battery does not last for more than 6-8 hrs.. even with extreme light use.. screen on of less than an hour
[Galaxy S II Android Development] the.gangster:
:)

Honestly, the result got posted no more than 5 posts after:

Btw:

Took Nightlies 20160616, 20160622, 20160627 and now 20160706 (each time with that day's current OpenGApps Full package).

All flashed dirty as usual.

None of them did have any issues with falling asleep (when BLN disabled). In one I indeed had the impression it suffered from insomnia after flashing the ROM, but in that case a simple reboot fixed that for good.

No special greenifying, xposing or whatever else actions done.

So I assume, once you have the problem you might keep it but it might not be a problem which "generelly" occurs with these builds. Might have come with one build that I skipped.

But so far I haven't seen too many approaches here to really find the root cause.