yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] makix13:
First answer : kernel adiutor

Second answer: the trim kernel has CM recovery. You can flash it with your current twrp, but you will lost it, because the trim kernel it's bundle with CM recovery.

Regards

S2 Cyanogenmod 5.1.1 [official nightly] - Xposed [official framework] - Viper4Android
[Galaxy S II Original Android Development] BenjyTec:
Just root it, flash a kitkat-compatible recovery, wipe and flash ROM and Gapps through it. Read the OP for more information.
[Galaxy S II Original Android Development] n3m3sis:
Power Drain!

I have noticed since updating from 20151226 to 20160105 that the battery on my phone is drawing far more rapidly than before.... within a couple of hours. I have had to return to 20151226 as my charging socket no longer works and I have to charge batteries externally. The power drain is like crazy fast. Any Ideas?
[Galaxy S II Original Android Development] Naudiz:
Lanchon built a CM11 freezefixed Kernel as well which could potentially work with other KK roms (if they are CM based) too.
[Galaxy S II Original Android Development] ajislav:
The kernel has the same governors as standard stock CM kernel, including pegasusq. Lanchon explicitly named this governor to draw attention to the fact that it is buggy, i.e. may lead to freezes.

So go ahead and use the kernel, just dont use peqasusq with it

---------- Post added at 01:51 PM ---------- Previous post was at 01:46 PM ----------

@Lysergic Acid

Seems there is some codec problems in latest CM12.1.

screenrecord --verbose --bit-rate 1000000 --time-limit 2 /storage/sdcard1/test.mp4

results in

Main display is 480x800 @60.00fps (orientation=0)
Configuring recorder for 480x800 video/avc at 1.00Mbps
Content area is 480x800 at offset x=0 y=0

with no stopping after the 2s timeout, 0 bytes in the test.mp4 output file and most importantly a hung UI on the phone (have to adb shell pkill surfaceflinger to restart it)

the following is in the logcat

I/OMXClient( 8793): Using client-side OMX mux.

W/ACodec ( 8793): do not know color format 0x7f000001 = 2130706433

W/ACodec ( 8793): do not know color format 0x7f000002 = 2130706434

W/ACodec ( 8793): do not know color format 0x7fc00002 = 2143289346

W/ACodec ( 8793): do not know color format 0x7f000003 = 2130706435

W/ACodec ( 8793): do not know color format 0x7f000789 = 2130708361

I/ACodec ( 8793): [OMX.SEC.AVC.Encoder] setupVideoEncoder succeeded

W/ACodec ( 8793): do not know color format 0x7f000789 = 2130708361

could it be due to the latest mali changes?

anybody has success running screenrecord? (or Vysor)
[Galaxy S II Original Android Development] Dr.Fix:
Hi, I'm going to update to latest build (which is compiling right now), which includes this patch: http://review.cyanogenmod.org/#/c/126784/

It is not clear to me if I need to switch governor (with default kernel) using kernel adiutor or I can leave the default one (is the default on demand or pegasusq?)

Thanks

EDIT: I answer myself, I checked with kernel adiutor that default governor is ondemand, so I think I don't have to touch anything.

If anyone have different suggestions please inform me

Thanks again
[Galaxy S II Original Android Development] makix13:
Only to confirm this kernel with ondemand setting and latest nightly works great[emoji106] [emoji6]

S2 Cyanogenmod 5.1.1 [official nightly] - Xposed [official framework] - Viper4Android
[Galaxy S II Original Android Development] Saftpresse99:
Hi,

any chance to get the patches for our device? Google reported some security issues: https://source.android.com/security/bulletin/2016-01-01.html

Thanks
[Galaxy S II Original Android Development] ajislav:
they are already included since 20160105

see http://www.cmxlog.com/12.1/i9100/

or check Settings / About phone
[Galaxy S II Original Android Development] Lanchon:
yes! here is one: get a USB flex connector from ebay for $1.50 shipping included and fix that thing!
[Galaxy S II Original Android Development] makix13:
[MENTION=5948587]zeitferne[/MENTION] it's your fix finally in today's nightly? : http://review.cyanogenmod.org/#/c/126784/

If so, congratulations you are our hero[emoji122] [emoji122] [emoji122]

S2 Cyanogenmod 5.1.1 [official nightly] - Xposed [official framework] - Viper4Android
[Galaxy S II Original Android Development] Andrea900:
Yes, there is a problem due to codecs, as explained by an user working on a Note 2 time ago, in this thread. There are libs that have to be replaced. Let's wait until [MENTION=6159291]Lysergic Acid[/MENTION] may fixes this problem. Btw I'm experiencing the same issue using the Screencast app built-in the capps package (UI freeze only).

Play Games screen recorder also fails to start recording.
[Galaxy S II Original Android Development] SaZoN:
You can keep track of it myself http://www.cmxlog.com/12.1/i9100
[Galaxy S II Original Android Development] makix13:
yeah,

It's the same info, it was only to confirm that Christian is [MENTION=5948587]zeitferne[/MENTION] [emoji6]

S2 Cyanogenmod 5.1.1 [official nightly] - Xposed [official framework] - Viper4Android
[Galaxy S II Original Android Development] kudos1uk:
One and the same person :good:
[Galaxy S II Original Android Development] lukss12:
Yes as I said some kernels work for different ROMs same android version, kernel posted here is only for 12.1 and he was asking about stock and NeatRom so I don't think CM11 kernel works :sly:
[Galaxy S II Original Android Development] KickerTom:
Just got a kernel oops, using latest Lanchon's trim enabled kernel. Probably unrelated to the recent freeze fix. Interesting lines are:

<2>[19310.723392] c1 kernel BUG at ../../../../../../kernel/samsung/smdk4412/mm/shmem.c:728!

<1>[19310.723556] c1 Unable to handle kernel NULL pointer dereference at virtual address 00000000

The phone was active (screen on), but idle at that moment. Full log attached.
[Galaxy S II Original Android Development] Naudiz:
Ooh, I thought, he talked about AOSPNeatRom, which is 4.4 KitKat, so I thought that CM11 freezefixed Kernel might work...
[Galaxy S II Original Android Development] xxLeoxx93:
Hey all, I've a problem with the cyanogenmod recovery that comes with this rom. I can't wipe or reset anything, so the data from 5.1 is still there and so many apps aren't working. So I tried to install the TWRP, but the cyanogenmod recovery doesn't find any zip files and sideloading doesn't work either. Any ideas?
[Galaxy S II Original Android Development] ringen00:
I'm curious how you guys make a Nandroid... if ever :)

I'm on Lanchon's freezefix.
[Galaxy S II Original Android Development] the.gangster:
[MENTION=5191331]xxLeoxx93[/MENTION]

My CM-Recovery can still flash zips from internalSd. They only need to be signed to install. Only trying to access external SD (64gb) throws the android on it's back. But nothing new.
[Galaxy S II Original Android Development] Drx86:
Flash LA's TWRP-1020, reboot, make your backup and then flash again Lanchon's kernel.

Remember to flash the right kernel after restoring backups.
[Galaxy S II Original Android Development] IceB:
I had the same issue. Though I do not use SD. I had to download the CM11 and to install it in order to clean the system from the previous recovery. Then I made fresh CM12.1 nightly 30/12 installation with the fix by zeitferne and the PICO GA. Hope this info helps or maybe someone else has more elegant solution.
[Galaxy S II Original Android Development] chrisXL:
To install the LA TWRP just choose "apply update" from CM revovery (a signed kernel needed). After reboot in twrp recovery you can do all (wipes, flash, nandroid backup, ...).
[Galaxy S II Original Android Development] Kevin3014:
Hey guys, I see the freezebug has been fixed, congrats!

Anyway, I'm going to flash CM12.1 on my S2 from stock 4.1.2. My doubt is, are the OTA updates as big as the ROM (i.e. 226MB), like do I have to download 226 MB every time there's an OTA update?

I'm asking since I've only got a limited internet connection right now.
[Galaxy S II Original Android Development] chrisXL:
No, in cmupdater you can see if an update is available and then you can choose if and when download it.

Otherwise you can try "cyandelta" app from play store that let you download only a small additional package (few Mb) for update (but for me sometimes it fails).
[Galaxy S II Original Android Development] Kevin3014:
I sent the .apk files from another phone to my S2 (using Xender) running CM 12.1 and when I try to install it, it shows "App not installed". Tried to install Facebook and Messenger. Help?

Edit: Used another phone to send the apps, worked somehow.
[Galaxy S II Original Android Development] ringen00:
[MENTION=6530935]Drx86[/MENTION] [MENTION=5028189]chrisXL[/MENTION]

I flashed LA's latest TWRP (1120) coming from Lanchon's latest without wiping:

"Backing up Data. . .

E: createTarFork( ) process ended with ERROR=225

Backup Failed."

There should be enough space on external SD...
[Galaxy S II Original Android Development] xxLeoxx93:
Thanks! But how did you get back to CM11? Right now I can't sideload, cant install any zip from SD/internaln (it only displays two folders: "0" and "obb" with nothing in it.
[Galaxy S II Original Android Development] chrisXL:
Once you installed twrp you can flash every recovery with a working backup option to do a nandroid backup (not needed a signed one).

Then reflash a kk compatible (LA Twrp) recovery to do the rest.
[Galaxy S II Original Android Development] the.gangster:
You are not describing the CM-recovery of this ROM, but the CM-recovery of the CM13 ROM with emulated storage!

If so, you should better read in that thread: http://xdaforums.com/showthread.php?t=3223808

Copy a signed zip (e.g. the twrp-recovery) to /data/media/obb to make it appear in the recovery.
[Galaxy S II Original Android Development] Drx86:
I don't know, I've never seen that error. :confused:
[Galaxy S II Original Android Development] ringen00:
I tried to flash Philz CWM (which I used successfully before to make Nandroid) but somehow the installation process aborts!

TWRP sort of quick reboots the recovery - no log.
[Galaxy S II Original Android Development] xxLeoxx93:
Oh, sorry. Your absolutly right. I've posted it in thr wrong thread. Sorry & Thanks!
[Galaxy S II Original Android Development] Lanchon:
hi [MENTION=6159291]Lysergic Acid[/MENTION],

is there going to be a new CM12.1 snapshot?

now that freezes are fixed, do you want to fix trim on official 12.1 once and for all?

it'd be great if there was finally an all-good official snapshot for this device; there hasn't been one in ages.

if you want i can make the change on gerrit. i just need some info:

-which devices you control (to change only those)? i9100 and i777?

-how do i #ifdef to detect those devices?

lets fix this, im tired of pushing silly trivial kernels out

thanks!!!
[Galaxy S II Original Android Development] Spyr0s:
undoubtedly yes :good:
[Galaxy S II Original Android Development] effgee:
Slightly off topic, but can someone point me to a way to create a new recovery/kernel combo with TWRP/CWM and this recent fixed kernel... Signed or unsigned, doesn't matter. I'm not used to a device that I can't update them separately and NEED nandroid backup available and therefore have no idea how to start...
[Galaxy S II Original Android Development] the.gangster:
Maybe you couldn't tag my name because you dropped a 'g' in the middle.

Trying it wouldn't waste much time, as [MENTION=4881398]PolishVodka[/MENTION] provided a modified kernel as well as all needed files. It's really just creating a folder in /preload, dropping files in it, checking access rights, flashing the kernel.

Typing this post already took longer. ;)

My result with the TWRP variant was, that it didn't load that alternative 2nd recovery. But at least the CM-recovery still worked as usual (so no risk to get back to stock or kernel of choice).

I looked at several files, but as I never built a kernel with recovery so far, I am not the right one for troubleshooting what was wrong.

Anyway it would make sense to have someone else test it. Just to erase the possibility, that I already made errors (me?? No way!! ) on the implementation.

That would be cool. Even better, if that one also had the skills to examine, why it fails to do it's job (if it still failed).
[Galaxy S II Original Android Development] lukss12:
It's easy, just become a kernel dev :sly:.

As far as I know there is not a kernel with TWRP + freefix...

Your options are:

-You can download CM git sources for our device apply zeitferne fix and port TWRP to your branch as Lysergic did in his. So:

1- learn to build the kernel

2- learn to port TWRP to it

-Help PolishVodka with his aproach to load a secondary recovery from preload and ask him to add zeitferne patch to his modified kernel.
[Galaxy S II Original Android Development] Dark1Angel:
[MENTION=4141005]Lanchon[/MENTION] after i flash your freezefix kernel in cm recovery can i flash twrp(i think cm is necessary just for flashing)?
[Galaxy S II Original Android Development] Drx86:
Yes, but you will lose TRIM capability (unless you flash again Lanchon's kernel, but then you will lose TWRP...). :D

If you want a kernel with TRIM, fixed freezebug and TWRP, then there's no such kernel at the moment. :(
[Galaxy S II Original Android Development] lukss12:
I know it has been a time from this post hehe. I got the same results...it's weird because CM Recovery is launched, it means that the verification of existence for the .cpio image in /preload is failing...
[Galaxy S II Original Android Development] Dark1Angel:
what type of nand backup should i make:cwm or twrp? does cm recovery recognise any of these backup types? with "Online nandroid backup" i can make either of them. does it matter which one as long as i restore with nand manager even if i don't have any of cwm or twrp installed?
[Galaxy S II Original Android Development] the.gangster:
[MENTION=5361265]lukss12[/MENTION]

So you finally tried it yourself? Thx!

Yes, as you had the same result it obviously already fails detecting the recovery.cpio.

But why? Any idea?

[MENTION=3413722]effgee[/MENTION]

To extend the list:

3- wait until [MENTION=6159291]Lysergic Acid[/MENTION] releases an updated TWRPified kernel

[MENTION=6559665]Dark1Angel[/MENTION]

Simply flash the TWRP to make the backup and flash back again. You won't backup daily, will you?
[Galaxy S II Original Android Development] Dark1Angel:
but that would be dirty flash. i tried once and entered bootloop and since then i always make backup, wipe system, data, cache, dalvik then restore. If i flash freezefix then i loose twrp so i can't restore with twrp. if i flash twrp just for restore, then after i have to wipe again everything to flash freezefix so it doesn't help. i updated my question if you could help.
[Galaxy S II Original Android Development] the.gangster:
Damn, so much effort to update to a newer nightly?

I only do that if I switch between CM12.1 & 13.
[Galaxy S II Original Android Development] daniu:
Hi

Afaik online nandroid can only do a nandroid backup if your recovery can. That's why so far I assumed that online nandroid won't work with cm recovery.

CM recovery cannot handle any backup ...

Regards

---------- Post added at 09:05 AM ---------- Previous post was at 08:59 AM ----------

I read his post like he wanted to go for that option that's why I liked the post.

Go for it - ppl will love you since many people are waiting for that for quite some time! (Even before that freezebug story you gotta choose between trim and twrp)

Honestly: isn't that second recovery idea much more difficult than just creating a good kernel/recovery package with: trim, freezefix, twrp?

Regards
[Galaxy S II Original Android Development] Ham1do:
Meantime >flash 20/10 twrp>make backup>wipe all>test any thing you want>if you want back , wipe all>restore with twrp>reboot>then flash lanchon kernel with freezefix &trim
[Galaxy S II Original Android Development] effgee:
Hehe, well I have built quite a few kernels, but mostly for linux x86 before. Basically, I was hoping to explode both the TWRP image and the newest fixed Kernel, and frankenstein them together. No need for signing if I am in TWRP and flashing it from there. Thanks.

---------- Post added at 01:12 PM ---------- Previous post was at 01:07 PM ----------

Would love to at some point, but my current dev machine is a bit ****ed. Aka, reboots 3-4 times a day randomly. Sigh. Unless I can explode the existing recovery / kernels and piecemeal them together, wont be able to do it for some time. I am unfamiliar with how they are combined and checksummed (or whatever.) Was actually hoping there was a thread with pertinent info but I didnt find anything in my searching yesterday. heh
[Galaxy S II Original Android Development] Boolian:
"fun fact: freezefix bug and fpbug were both introduced by samsung in the exact same piece of code..." That explains a lot! I thought I was going mental :)

I've been comparing JB 4.12 with stock kernel, Chhapil's FP fixed kernel and this Rom ( latest nightly CM kernel) and was tearing my hair out looking at what I thought was the same error.

I can almost sleep now, cheers! :)

xdaforums.com/showpost.php?p=64658730&postcount=896
[Galaxy S II Original Android Development] lukss12:
I think kernel image could be unpacked but I don't know how offsets are managed when recovery is buil-in so no idea how to merge. As far as I can see in init the recovery is a .cpio image just as boot.

EDIT: Did you take a look at this http://xdaforums.com/showthread.php?t=2073775 ?

---------- Post added at 01:21 PM ---------- Previous post was at 01:15 PM ----------

Indeed it's not, you only need to patch some init files and a recovery image from an S2 TWRPfied kernel.

Porting TWRP to a kernel seems to be more difficult but clearly "much more" isn't the case wathever choice you compare.
[Galaxy S II Original Android Development] LeBourrin:
I use the Lanchon‘s kernel with Zeitfern patch for 4 days and I have no problem for now.

I noticed something. I feel that my GPS works better. Before, I often had satellites losses. I drop down to 0 satellites for one second then it re-fix them. Since I installed the 150Mhz patch, I have fewer drops down. Il always happen but not so often :)
[Galaxy S II Original Android Development] makix13:
Same in my case, no freezes at all during 4 days, GPS works in only device mode without problems with Google Maps, in my case when battery fall before 10 my s2 freeze, with the new kernel freezefix doesn't happens during this 4 days. Good ??. Thanks to all developers ?

S2 Cyanogenmod 5.1.1 [official nightly] - Xposed [official framework] - Viper4Android
[Galaxy S II Original Android Development] phixth:
Hi guys,

First of all, thanks for this amazing ROM! I had few random reboots with the "release" version, so I upgraded to the latest nightly. Hopefully it will be more stable :).

My first question is regarding the Gapps. I wasn't able to install it once I installed the ROM. I noticed there is a "Google Play" pre-installed in this ROM, so it's actually OK (I was about to install pico version anyway). I just want to know if it's normal. I tried many times, all caches wiped.

My other questions are related to the Cyanogen recovery.

1/ It replaced my CWM recovery without any notification or confirmal. Is there any way to prevent this? I was quite happy with CWM.

2/ I cannot find my internal storage using adb when I'm in the Cyanogen recovery. In CWM recovery there was /storage/sdcard0/ where I could "adb push" things.

Which device should I mount?
[Galaxy S II Original Android Development] ringen00:
At freenode #twrp they said error 225

means corrupt data.

Tried to delete 'app_webview' in

'/data/data/com.cyanogenmod.account/app_webview' but it doesn't show up!

How can I delete the data of that app

if it's greyed out?

Tried to delete the data with titanium...

What would probably happen if I would just delete the /data/data/com.cyanogenmod.account folder?

How can I get back cm account app?

Update: can't delete folder com.cyanogenmod.account

Doesn't work through TWRP also.

Tried fsck: error 4

Finally I've been able to delete via adb!
[Galaxy S II Original Android Development] Dark1Angel:
In Settings in Developer options you have "Update Cyanogen recovery". Disable it!
[Galaxy S II Original Android Development] Jleoz:
System Storage

Hi guys,

I have tried doing a search in this thread and I get an error 111.

After doing a clean installation of the latest build I get a warning:

"Storage space running out - Not enough storage for the system. Make sure you have 250MB of free space and restart."

As I did a clean installation, my internal storage has a total space of 1.97GB and Available 1.88 and the other internal storage of 11.50GB and 10.39 Available.

What can I do to fix that? Should I repartition the phone? If so, what is the recommended size?

Thanks,

Jleoz.
[Galaxy S II Original Android Development] the.gangster:
Sorry, but that's nonsense.

You still didn't get it.

There is no way. ROM will always overwrite kernel and it's recovery.
[Galaxy S II Original Android Development] daniu:
The warning talks about system space not internal. If you never want to get this kind of warning again you need to repartition with odin - search for that and expect having to read quite a lot before being able to start.

Other option is to flash a smaller gapps package. Don't know why most people recommend something else but I recommend delta gapps. I would install all other apps via playstore - that's a big advantage if they get updated (updated system apps use double space - updating with titanium or sdlink very often fails!)

Regards
[Galaxy S II Original Android Development] Jleoz:
Thanks,

I already partitioned it so its all good now.

Thanks,

Jleoz.
[Galaxy S II Original Android Development] biascoblix:
I'm having a weird issue... Looks like the system is not reading the storage correctly... I repartitioned my internal storage a long time ago.

It's now reading the system storage as 2GB only, but it should be 4GB.. The weird thing is diskinfo is reading everything properly..

I'm running stock Jan7 build and it was a clean install.
[Galaxy S II Original Android Development] Sercan Ali:
After opening some apps like YouTube, periscope even if the battery is full the phone closes suddenly . And whether I try to reopen it opens but again closes... Anyone else facing this???
[Galaxy S II Original Android Development] Dark1Angel:
well, then he has to flash a kernel with cmw included every time. I don't know why I suggested that. It popped into my mind and just said it
[Galaxy S II Original Android Development] Lanchon:
due to popular demand....

TRIM + FreezeFix + TWRP kernels ! :)
[Galaxy S II Original Android Development] good8life:
An tu tu

Kernel from 09.01 nightly.

With TRIM ?
[Galaxy S II Original Android Development] phixth:
Thanks for clarification.

How about my second question? If I you can solve this one out, I can keep Cyanogen recovery....

2/ I cannot find my internal storage using adb when I'm in the Cyanogen recovery. In CWM recovery there was /storage/sdcard0/ where I could "adb push" things.

Which device should I mount?

Thanks

---------- Post added at 08:56 PM ---------- Previous post was at 08:11 PM ----------

1 / How do I know if the kernel was installed successfully? I see kernel version 3.0.64-CM-gc96e5eb-dirty rod@rod-latitute #2.

2/ Recovery has been changed to TWRP, which is great, but I have a strange problem now. Windows doesn't know the driver when it's in "sideload" mode. Please see this screenshot: http://picpaste.com/Capture-N5iWqpOs.PNG

When I'm running the system and I'm in the debug mode, the driver is OK and adb works...... :-/
[Galaxy S II Original Android Development] ajislav:
1/ this is Lanchon's kernel so you are good.
[Galaxy S II Original Android Development] the.gangster:
If I knew that without trying, I would have answered that already. Most of the times I used 'adb push' while system was up and running. And although I used it already with recovery, I don't know which recovery I was running back then. That's, why I didn't reply to that, as I simply rather don't post at all than to post something wrong.

I might try it next time when I am at my computer.