yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] bixi:
Thank you Andrea Grazie xD... I see that for a long time the phone stay at 200MHz and not in deep sleep...it's the same thing that I noticed with the resurrection remix...probably there is some wakelock that keep the phone awake...
[Galaxy S II Original Android Development] Andrea900:
Checked with Wakelock Detector. No wakelocks from system, except for Play Services, as usual.
[Galaxy S II Original Android Development] bixi:
What's your battery life? And which battery have you got?
[Galaxy S II Original Android Development] levio:
help me, the twrp recovery with stock kernel by [MENTION=6159291]Lysergic Acid[/MENTION] must be flashed before or after the gapps? My order is this:

-flash snapshot rom

-flash twrp zip file by lysergic

- flash gapps

- wipe

- reboot

is it right?
[Galaxy S II Original Android Development] BenjyTec:
I think you should do this: Go to recovery (CWM or TWRP needed) and there:

Wipe - flash ROM - flash Gapps - flash TWRP by LA - reboot.
[Galaxy S II Original Android Development] DevisG79:
- Flash TWRP, then backup

- wipe System, data, Cache and dalvik

- Flash cm 12.1 snapshot or nightly

- Flash gapps

- Reboot

- Be happy

---------- Post added at 05:04 PM ---------- Previous post was at 04:56 PM ----------

[MENTION=6747943]BenjyTec[/MENTION]. Sorry, we posted nearly at the same time.
[Galaxy S II Original Android Development] kudos1uk:
Your method is wrong, BenjyTec is correct, your method leaves you with CM recovery, TWRP must be flashed after ROM (you can do it first as an extra step if you want so you can do a nandrod).
[Galaxy S II Original Android Development] levio:
so the order is this?

- wipe

-flash rom

-twrp

-gapps

-reboot?

and [MENTION=5710255]kudos1uk[/MENTION], [MENTION=6747943]BenjyTec[/MENTION] can you tell me if smart call work for you? and the option larger icon?

thank you for your help
[Galaxy S II Original Android Development] kudos1uk:
Yes, that order is fine, I can't comment on smart call, don't use it.
[Galaxy S II Original Android Development] DevisG79:
There is nothing wrong with CM Recovery. TWRP is optional, is not a must have. It can be flashed with and without TWRP
[Galaxy S II Original Android Development] BenjyTec:
Smart Call I don't know, for the big icons I needed a reboot after activating, then it worked. Or go to

Settings-->Apps-->Trebuchet and force close it. Then click home button and the icon size will be updated.
[Galaxy S II Original Android Development] kudos1uk:
Many wont agree but the question was the correct order to get the ROM with TWRP. Sorry if I offended but the poster needed the correct information.
[Galaxy S II Original Android Development] the.gangster:
But keep in mind, that (at least all OpenGApps-based packages that I'm aware of) GApps packages officially only support TWRP recovery. So no matter what you end up with, whether CM or TWRP, you should run the GApps-part from within TWRP already.
[Galaxy S II Original Android Development] DevisG79:
Sorry for misunderstandings. I don´t wanted to be unfriendly and will never be. I only wanted to help. I think levios question can be understand in two ways. But according to my guide by flashing gapps you are still in TWRP Recovery.
[Galaxy S II Original Android Development] Andrea900:
Up to 4h of screen on, a whole day with a light usage. I've got a 1900mA Anker battery, bought on Amazon.
[Galaxy S II Original Android Development] rubentkato77:
Cyanogemod has made an announcement about cm13

http://www.cyanogenmod.org/blog/a-marshmallowy-cm
[Galaxy S II Original Android Development] lurker316:
Guys I have not re-partitioned my i9100 ever. I was on stock jellybean 4.1.2 and used the CM Installer a year or so back. It installed CMW recovery and took me upto version 4.4.4 Kitkat. Now I wish to install the latest CM12.1 snapshot. My question is which gapps package do you all recommend will work with my unpartitioned S2? The nano or the pico?

Original post recommends Pico. So If I install Pico and wish to get Google Calendar or Gmail I can still install it later from the Play store?
[Galaxy S II Original Android Development] Jack122:
Please repartition 1gb system 6gb data
[Galaxy S II Original Android Development] lurker316:
Currently in Storage its showing as 1.97Gb and 11.5Gb. Sorry I am new to all this. Maybe I am not looking at this correctly.
[Galaxy S II Original Android Development] Fr4nz83:
Don't listen to jack, his advice is useless and it could be even counter-productive.

Sizes of your partitions are just fine.

About the GApps: use the pico version, you can download the appropriate package here:

http://opengapps.org/
[Galaxy S II Original Android Development] lurker316:
But after I download the Pico version of Gapps I can still download and install some of the other apps like Maps, Gmail from the playstore?
[Galaxy S II Original Android Development] Fr4nz83:
Sure! Indeed, one of the advantages behind the pico package is to install ONLY the minimum amount of apps required to have the Play store app. Once you have it, you can choose to install whatever you want (included those you mentioned).
[Galaxy S II Original Android Development] levio:
Remember to format system partition if yours previous gapps wasn't tkgapps. And yes you can install all the apps.
[Galaxy S II Original Android Development] daniu:
Hi

I recommend deltagapps. You can choose 4 urself which apps to install as system apps. To be honest: I just install the basic package ... which means that it is probably the same as Pico ...

Regards
[Galaxy S II Original Android Development] lurker316:
Thanks guys. Finished Installing the latest Snapshot release of CM12.1 for the i9100. Flashed the opengapps Pico. Flashed the stock kernel + TWRP because I didn't like Cyanogen Recovery. Rooted it as well. Everything appears to be working just fine. Good Job Lysergic Acid!! Been following you since your unofficial builds - although I never installed any of them. :P But just following you on your progress. Great work.
[Galaxy S II Original Android Development] Kozmyk:
Why counterproductive?

You make it sound as if repartitioning the S2/system for 1GB is a bad idea.

I've done mine and have had no problem with it.

What might be counterproductive about doing it?
[Galaxy S II Original Android Development] eminem_b:
Repartitioning is mandatory. Even if you fit your rom and gapps in the /system partition (which is possible), you'll face /data space problems in the future, that's a guarantee.

If you don't want to repartition, stick with Kitkat or stock... Simple as that!
[Galaxy S II Original Android Development] zeitferne:
Freeze issue: Kernel with a fix attempt

Hello!

Since the freeze issue happens so rarely, it would be helpful if you could test the attached kernel (signed, thus flashable with CM recovery) and report if you have a freeze with it or no freeze after an unusually long time. The changes are just a stab in the dark, but who knows, maybe I got lucky again. :D

ATTENTION TWRP users: As AFAIK the recovery is inseparable from the kernel, this will also flash the CM recovery!

EDIT: kanyb reports that this did not fix the issue. /EDIT

The code diff from the original CM 12.1 kernel is here: https://gist.github.com/Oberon00/aeac47ac3425298751e7 (full original file)

Explanation:

Every time the Mali GPU voltage/frequency was changed, or when waking from (deep) sleep a function was called that writes at a particular memory location. That function seems intended to be used only on the S3 and related devices: In every other place in the kernel, before calling it there was a check that skipped the call if running on a Exynos 4210 chip (as used in the S2 and Note 1). I added these checks in the Mali code too. As I understand that function (exynos4x12_set_abb_member) it writes at a particular location in the RAM that is expected to be reserved by hardware. Since this probably isn't the case on the S2, that may have caused memory corruption.

When waking from deep sleep, voltages and frequencies intended for the S3 and similar devices were used. I changed this to use a frequency that is normal for the S2.

Just because, I inserted a check if an out of bounds access in the GPU frequency table is attempted.

Additionally, when comparing the voltage tables used now with the ones from CM-10.1 (AFAIK the last version before the S2 and S3 kernel were merged) I noticed that originally there were three different frequencies/voltages for the GPU while now there are only two. Also at the max frequency, a slightly higher voltage (1050000µV instead of 1000000µV) is used. I goes nobody knows why this was changed / if that change was intentional (@Lysergic Acid)? It is not unlikely that adding the original frequencies back would improve battery life (but I have not changed anything regarding that).
[Galaxy S II Original Android Development] Andrea900:
Every hint/commit is highly appreciated! Testing it right now!

Thank you very much zeitferne! ?
[Galaxy S II Original Android Development] papei:
Yep! Repartitioning was the best thing that I ever did to my S2.
[Galaxy S II Original Android Development] lukss12:
Wow nice observations :thumbup::thumbup::thumbup:

If this memory space isn't reserved and it's accesible by the kernel to be assigned to a process' memory space that could explain randomness of freezes. In that case freezes should depend on that memory being used by a process when waking up from deep sleep.

I can't figure out how this could generate OOM without thinking of a very rare situation.:what: Btw.. Does CM11 had this "slip" on their sources? AFAIK the frezees are L exclusive. I'm glad to thank you for the time you're spending on this. As an S2 lover I really appreciate it.
[Galaxy S II Original Android Development] zeitferne:
That code is unchanged from CM-11.0. You can see all kernel changes here (but note that at least the commits on Jul 01, 2015 were also contained in CM-11, so this is not completely accurate), there are not many of them. Of course I looked through these but I found nothing I considered suspicious. As I said, the changes are a stab in the dark. Having the clues "Mali/GPU" and "frequency", I found this file and that code looked fishy, but there is not really anything that makes me feel very confident about these changes fixing anything. If they fix it, the reason this bug seemed to have caused no problem on CM-11.0 could be that the different things are on the affected memory location in CM-12.1. I also have no idea about the OOM.
[Galaxy S II Original Android Development] :
While I don't want to start an argument and I certainly don't agree that repartitioning is "counter-productive", it isn't as simple as that. It might be mandatory in your case, but many users(like me) have no problem with stock partitons on LP roms. And it's only a "guarantee" to face /data space problems if you install too many apps and data.

My first recommendation if you have space issues is to repartiton, but it is definately not mandatory
[Galaxy S II Original Android Development] lukss12:
After digging a bit i found defined EXYNOS4412_REV_2_0 here is setted to 0x20 and function samsung_rev() defined here returns "samsung_cpu_rev" defined as "samsung_cpu_rev = samsung_cpu_id & 0xFF; " with "samsung_cpu_id = __raw_readl(cpuid_addr);". cpuid_addr is obtained using "CONFIG_S3C_ADDR_BASE=0xFB000000" from i9100's defconfig using "S3C_ADDR" macro defined here. So CPU ID is being obtained from hardware directly or is defined elsewhere?. How do we know what value is our CPU sending? Is it posible to this value when masked with "& 0xFF" to be higer than EXYNOS4412_REV_2_0 value of 0x20? I'm asking this because it makes me doubt if it was possible that controlling <" EXYNOS4412_REV_2_0" were enough to prevent executing when running on smdk4210 platform.

PS: Also "__raw_readl" returns 32 bit, doesn't it? how does C apllies "&" operation with 0xFF wich is 8 bits long? does it complete with zeroes?Left?Right?
[Galaxy S II Original Android Development] omyg:
Is it possible to format sdcard0 without flashing new kernel?
[Galaxy S II Original Android Development] :
Yes

Edit: You mean in general, yes? Or format sdcard0 with CM recovery?
[Galaxy S II Original Android Development] good8life:
test kernel

Night 14.11 kernel take from antutu 16800, and test kernel take 17030

Slowly good
[Galaxy S II Original Android Development] DomagojR:
Is GPS working with latest build?
[Galaxy S II Original Android Development] IonutGherman:
GPS always worked for me :) you just need to modify your gps.conf for more accuracy
[Galaxy S II Original Android Development] DomagojR:
Oh, okay. I'll do some research. Thanks :)
[Galaxy S II Original Android Development] IonutGherman:
From what country do you are?
[Galaxy S II Original Android Development] zeitferne:
Exactly, < EXYNOS4412_REV_2_0 was not enough! You can see samsung_cpu_id in the kernel log at startup right at the beginning. For me this is the line

<4>[ 0.000000] c0 CPU EXYNOS4210 (id 0x43210211)

(printed here, supplied with samsung_cpu_id here).

So the CPU ID is 0x43210211, the revision is the last byte, i.e. 0x11 (EXYNOS4210_REV_1_1). Since 0x11 < 0x20, (0x20 == EXYNOS4412_REV_2_0), the code in question was executed all along.

Even though 0xFF would fit in 8 bit, according to the rules of C it is still an int constant (32 bit here). And of course, that means that it is padded with zeros on the left (meaning 0x000000FF is the same as 0xFF). So this does the right thing.
[Galaxy S II Original Android Development] DomagojR:
Croatia
[Galaxy S II Original Android Development] IonutGherman:
Go to /system/etc folder and find gps.conf file. Open it and edit line: north-america.pool.ntp.org to europe.pool.ntp.org . you can't use your country domain because you have less servers than other countries (5, more exactly). You can test hr.pool.ntp.org if you want too but I recommend more Europe servers. Hope I was helping you. :)
[Galaxy S II Original Android Development] Bobacco:
Or use a small simple app such as: https://play.google.com/store/apps/details?id=org.fastergps and have it make it for you.
[Galaxy S II Original Android Development] IonutGherman:
Or this. :)
[Galaxy S II Original Android Development] JamaRu:
I have faced this issue,and I format my internal sd in pc,problem solved..
[Galaxy S II Original Android Development] jabarel:
Is some one have a pit file with 2gb or 3gb system please give a link or attache !!!!! i don`t found on google
[Galaxy S II Original Android Development] wdevil12:
Dont mess things up bro. system partition never caches anything in itself. it doesnt change anything in there unless you flash something like mods or do something with root granted. cache and art have their own place (/cache and /data/dalvik-cache respectively). And 512mb system partition is enough for rom, pico gapps and supersu. From alpha builds i have never repartitioned my system or data and you dont have to do it unless you install loads of apps.
[Galaxy S II Original Android Development] DaveKing:
When I speak System, I don't say /System or system partition. Is the System/ROM/Instalation whatever you want to call it. And when I talk about cache, is not /cache or cache partition. Is the cache used by apps to take some space in /data. Well. The space is always needed rather is on /data or /system. Maybe I'm not using the right words to you, but if you try to install more and more apps, you will find what I'm talking about. Simple as that.

Be well.
[Galaxy S II Original Android Development] ringen00:
But I flashed 0702 via ota and my partitions seem to still exist[emoji4]

Is it ok then like this?

7GB system?

Just wanna avoid this old error if not having enough space for installing new apps as I had before...

---------- Post added at 03:06 PM ---------- Previous post was at 03:02 PM ----------

I used to have errors before when trying to install new apps!

How can I avoid that in the future?

I mean all this app2sd-related stuff...
[Galaxy S II Original Android Development] DaveKing:
[MENTION=349465]ringen00[/MENTION] that's related to /data, not /system space. And if you want to get more /data space you have to flash in odin a .pit file with the size block ((size in mb) x 2048) you want for each partition. It's a very important file, so you have to be careful and see the thread made by metalgearhathaway with a various .pit files pre-edited and follow 1st page guide. It's a matter to find the .pit fits for you.

I don't remember, but I think that S2 has 2Gb of data space in default. To me 8Gb of data was the spot, but there's many other sizes. It depends of how people use their phones.

Cheers.
[Galaxy S II Original Android Development] Resync:
http://xdaforums.com/galaxy-s2/development-derivatives/mod-partition-internal-memory-app-t2538947
[Galaxy S II Original Android Development] Orange Solution:
Reading seems to be overrated...

Common guys, if you make yourself the work to just move back a couple pages, you'll see the explanation of most of your issues. Let the programmer do his work and he might show up with a suitable solution eventually.

Suggestion: flash the first nightly 7/1 and you gonna be fine until LA has a workaround.

Keep calm and beat the daily flash addiction :cowboy:

Obrigado pelo excelente trabalho LAc

Cheers from the Orange world
[Galaxy S II Original Android Development] ringen00:
Sorry! Just looked into Diskinfo right now...

Looks actually like my system partition has only 520 MB! Data has 8 GB.

Would I be fine with this running lots of apps? Flashed some 'basic' gapps from somewhere which worked - only Play Store. Also fine?

System seems quite full!

Please! How can I increase that partition (if necessary)? Detailed hints very appreciated/link to pit file :)
[Galaxy S II Original Android Development] Lysergic Acid:
Omg, please understand, PLEASE, CWM was discontinued, so they did CM recovery to replace it. You can't add TWRP to CM github and tell them we are gonna use it. CM = CM recovery, if they wanted TWRP, it would already ship TWRP.

Our problem is that we don't have a partition for recovery like other phones, other phones can use what ever the recovery they want.

I'm working on a script to resize /system after the ROM is flashed, but I don't know if someone have python skills here to help. Aroma will never happen on official builds too lol
[Galaxy S II Original Android Development] Gluco:
Understand that.. but at least get back the backup and restore option. That's the critical function we use for every flash.

Thanks for your hard work for the whole S2 community :good::good::good:
[Galaxy S II Original Android Development] Nick_Knight:
[MENTION=6159291]Lysergic Acid[/MENTION] maybe you can build us a signed LP-Kernel what we can flash in CM Recovery with last unofficial CWM Recovery? The way now it's only over the old philz_touch 5.15.9 signed.

Regards Nick_Knight
[Galaxy S II Original Android Development] x3dnd3x:
Can I check where's the option to change governor and increase processing speed on 07/04 build? :confused:
[Galaxy S II Original Android Development] ajislav:
No OC on stock CM. Use custom kernel.

---------- Post added at 08:33 PM ---------- Previous post was at 08:32 PM ----------

If it was that easy, somebody would have already done it.
[Galaxy S II Original Android Development] p3dboard:
You will have to wait till cyanogen mod development add features such as backup. LA only maintains the parts to allow our device to compile the cm 12.1 rom, he doesn't develop the rom features. You will have to submit that feature request to cyanogenmod development team
[Galaxy S II Original Android Development] Saber:
Mate, I made a guide that could be searched using the XDA search function or via search engine.

Here is my guide: http://xdaforums.com/galaxy-s2/development-derivatives/mod-increase-partition-size-t3011162
[Galaxy S II Original Android Development] p3dboard:
As already mentioned by others, 512mb system with a pico (very basic google apps) should be fine. All the other gapps you can download from the playstore and they can live in your data partition. Many google apps are updated frequently, so it makes more sense to keep them in the data partition, otherwise your old version from your gapps package will live in the system partition as wasted space. As long as system has enough room for the rom plus basic google services, i think we can live with that (just my opinion)
[Galaxy S II Original Android Development] essenov:
I confirm there is an issue when I specify wi-fi region, it does not connect anymore, and I have to "forget" the network and type the password each time to connect.
[Galaxy S II Original Android Development] mersad0101:
thanks,but for me not found any wifi!
[Galaxy S II Original Android Development] ringen00:
Thanks! Think I've been using this thread already repartitioning the first time :)
[Galaxy S II Original Android Development] Kevin3014:
Sorry for the late reply, but ugh I was just browsing through CM's wiki page, and saw this. "YOG7D". So ugh, I assume it's some kind of a codename.
[Galaxy S II Original Android Development] DomagojR:
thank you :good: what would happen if I edit line to hr.pool.ntp.org?
[Galaxy S II Original Android Development] IonutGherman:
You will set servers from your country. But I'm not recommending this because this domain have only 5 servers and your gps will localize you slowly or neither at all...use Europe server for sure. You welcome :)
[Galaxy S II Original Android Development] DomagojR:
Then i guess i will use europe servers. Because i'm also traveling a lot across europe so that will make sense for my case
[Galaxy S II Original Android Development] lukss12:
Great, thanks. I'm new on this kernel stuff and trying to understand devices initialization, etc. :sly:

So, that is. If the padding is on the left "Houston, we have a problem". :banghead:
[Galaxy S II Original Android Development] kanyb:
[MENTION=5948587]zeitferne[/MENTION] installed latest nightly (26.11) and then flashed your malifix test kernel. In the morning I took it out of my pocket and noticed that it has automatically soft rebooted (display said "android is starting" and didn't need to input my sim pin). I haven't noticed this behaviour with any kernel or lp version in the last 3 months. No other problems until now, just to let you know the new unexpected/unusual behaviour. Freezes usually happen to me a few days after a reboot. While only using mobile data instead of WLAN i recently got an uptime of 10 days with LAs kernel and an october nightly
[Galaxy S II Original Android Development] DevisG79:
Does anyone have problems with sending MMS? I can only receive them
[Galaxy S II Original Android Development] nussis:
Since the update from 11/25/2015

is the background image is reset to standard not what I set after restart
[Galaxy S II Original Android Development] eminem_b:
Can you tell me how you can edit the file from adb?

The partition is mounted as "ro":

/dev/block/mmcblk0p9 /system ext4 ro,seclabel,noatime,user_xattr,barrier=1,data=ordered 0 0

EDIT: Never mind, I applied +w to the file from my file manager, made the edit and reverted back the permissions.

Thanks for the tip though! :)
[Galaxy S II Original Android Development] IonutGherman:
You welcome! :)
[Galaxy S II Original Android Development] Klaerchen:
I installed it and it runs now 36 hours without problem.
[Galaxy S II Original Android Development] kanyb:
[MENTION=5948587]zeitferne[/MENTION]

Now I got the first freeze with your kernel: replied to a whatsapp message and recognized that the display would not turn off. Didn't respond to any key anymore had to hold the powerbutton to shutdown & reboot the phone.
[Galaxy S II Original Android Development] Dr.Fix:
I can't download latest nightly from automatic updates, I keep getting a MD5 mismatch.

Strange, my connection works well and I have never had issues before (I update almost every day)
[Galaxy S II Original Android Development] zeitferne:
Okay, thank you for testing. Was worth a try *sigh*. I guess that wasn't it then.