yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] Lanchon:
hi [MENTION=6159291]Lysergic Acid[/MENTION]!

thanks for this :)

my experience updating from cm-11, 1GB system, 6GB data, vestigial preload:

-flashed cm-12.1-20150710-NIGHTLY-i9100, gapps... never-ending boot animation (neba)

-rm -r /system/*, flashed nightly... neba

-wipe data... neba

-figured wipe data wasnt working. it looks for something in /efs but: /efs folder for mount point doesnt exist; file it looks for in /efs doesnt exist in partition anyway.

-rm files in /data and /cache, rebooted, still waiting but looks like another... neba

EDIT: yep, its another neba

1) any help to make this work? (i understand the ext4 partition will be smaller than its space in the disk, i can take that hit for now.)

2) is there any way to make the stupid brain dead CM recovery behave like before? ie: flash unsigned files, show options that do interesting work such as mount options?

and btw, 3) how do i sign a zip so that the new recovery flashes it?

EDIT: 3) i asked this because i tried using jarsigner and CM recovery didnt accept the zip. maybe this is a solution:

http://www.londatiga.net/it/how-to-sign-apk-zip-files/

thanks again!!!
[Galaxy S II Original Android Development] nageswarswain:
I flashed the latest nightly....but as the recovery doesn't have any option for backup I flashed dorimanx kernel.... So on this condition may i be able to avail the ota update or have to use the stock cm kernel?

Another problem is that all the time I used recovery and when rebooting from there its asking for fix root.. So can I get rid of that
[Galaxy S II Original Android Development] nageswarswain:
Can some1 provide stock kernel for 11.07.15 build...its a liitle laggy with dorimanx kernel and I don't want to flash again all
[Galaxy S II Original Android Development] Sercan Ali:
Hi [MENTION=6159291]Lysergic Acid[/MENTION] my camera doesn't record video. It freezes. Is it same for you? Using stock kernel, 12072015 build...
[Galaxy S II Original Android Development] woekje:
Wipe/Factory reset

Hij guys, sorry tot bother, but I'm getting desperate...

I'm having some stability problems after a dirty install of cm12 nightly coming from cm11, so I want to wipe data. However, the cm recovery fails at that, as does the wipe from settings. So, I tried to flash a different recovery, but whichever image I try, it always fails to flash. Flashing via the terminal emulator also fails...

Do you guys know which fully functioning recovery can be flashed from cm recovery? Or is there another way to wipe data? From the terminal perhaps?

Thanks in advance,

Woek
[Galaxy S II Original Android Development] chrisXL:
Search this thread Philz kernel (signed). Reboot philz kernel, do all you need (wipe, format, ...). Then flash a kk compatible recovery, reboot in recovery, then flash cm12.1, supersu 2.46 (optional) and gapps (optional).
[Galaxy S II Original Android Development] ssanjy:
Haven't tried it personally but I hope this works. (At your own risk that is)

Extract boot.img from the stock zip and replace it with the one in the attachment and flash it....Hope it works...It used to work on kitkat but not ever tested in lollipop...Should be the same as it replaces the boot.img to correct partition in the device.... If you succeed please report....Good luck
[Galaxy S II Original Android Development] Ferretx:
12/07 nightly is causing freezes and lock ups, I rolled back to 11/07 build, anyone else experienced this?
[Galaxy S II Original Android Development] todonormal:
1. User Accounts don't work

2. I do Factory data reset personal data & apps and format sd card in Backup & reset settings. Restart, in CM recovery delete data and cache. Restart restart and don't delete personal data information... FACTORY DATA RESET don't work

3. Spirit FM 2 working wonderful

Thanks
[Galaxy S II Original Android Development] Sonar Killa:
Hello

I did the folowing. First copy latest unoficial and pico gapps to memory card.

Next reboot into cm recovery, flash latest unoficial. Reboot into recovery again(now you have CWM).

Wipe system/factory reset. Wipe cache partition, wipe Dalvik cache, install latest unoficial again, install gapps. Reboot. Done.
[Galaxy S II Original Android Development] woekje:
Thanks a lot, now running a fresh install!
[Galaxy S II Original Android Development] Sercan Ali:
For me camera video recording freezes some time...And it is not resolution related, it freezes even on 480p and below

---------- Post added at 02:40 PM ---------- Previous post was at 02:39 PM ----------

For me camera video recording freezes some time...And it is not resolution related, it freezes even on 480p and below
[Galaxy S II Original Android Development] jojobg:
Experiencing issues with apps moved to sd card. FC and lag with 12/07 and 11/07. Falled back to 10/07 in my case.
[Galaxy S II Original Android Development] valterweb:
Hello,

i have this problem:

i have download to my microsd memory card

- cm-12.1-20150712-NIGHTLY-i9100

- tk_gapps-modular-pico-5.1.1-20150705-signed

push pwr+volup+home

and i will be into the CYANOGEN Recovery

i made the:

- wipe data/factory reset

- wipe cache partition

but there is no wipe Dalvik cache option

after apply update for the cm-12.1-2015071

then i reboot the system and.....

.....push pwr+volup+home

and i will be into the CYANOGEN Recovery

i made the:

- wipe data/factory reset

- wipe cache partition

after apply update for the tk_gapps-modular-pico

booom

blu lines

'error incompatible gapps ....

help me:confused:
[Galaxy S II Original Android Development] Xanna:
this rom with each update is worse. fc and restarts
[Galaxy S II Original Android Development] daniu:
Hi

Die some1 try this?

Or is there any other kernel+recovery (I mean recovery - not what cm is trying to give us) close to stock cm?

Regards
[Galaxy S II Original Android Development] Lanchon:
cm recovery is crap. we need a flash-to-run zip with a capable recovery
[Galaxy S II Original Android Development] Lysergic Acid:
Hi mate, well wipe data isn't working because of the emmc superbrick patch, any wipe command sent by the recovery is denied (you can see that hint in the recovery log).

Not sure why it isn't working for you, in theory you just need to wipe data, flash the rom zip & gapps and should be fine. It takes time to boot sometimes, you could check what's going on with adb if it's available.

And it is possible to allow unsigned zips to be flashed, but the patch wasn't accepted in CM for some reason, I don't remember why exactly, but for now that's what they want us to use :(

You can still mount partitions and backup through adb too, but it's not so convenient.
[Galaxy S II Original Android Development] daniu:
Ah yeah ...:

Lanchon: booting can take really long: don't think after 5 or 6 minutes nothing happens anymore ... I would stop hoping only after 20 or 30 ...

Regards
[Galaxy S II Original Android Development] jabarel:
This is total out of topic ! If some one can help me (i didn`t know where to write a topic and i have s2 too) i whant to try something i have a phone which don`t vibrate at the back button and meniu etc. ! i just root it and edit qwerty.kl now is vibrating just on long press on home button and meniu button ! The back button don`t vibrate ! My question where can i edit to vibrate at each touch not on long press ! I whant to make that back button to vibrate too ! The phone don`t have in meniu to set it ! Any ideea ? Any suggestion? Thanks a lot ! Btw good job LA for what you do for s2 community! cheers

key 158 BACK VIRTUAL

key 230 SOFT_RIGHT WAKE

key 60 SOFT_RIGHT WAKE

key 107 POWER WAKE_DROPPED

key 62 ENDCALL WAKE_DROPPED

key 229 MENU VIRTUAL

key 139 MENU VIRTUAL

key 59 MENU VIRTUAL

key 127 SEARCH WAKE_DROPPED

key 217 SEARCH WAKE_DROPPED
[Galaxy S II Original Android Development] hboa:
Tried your directions, but no luck:crying: Latest nightly (cm-12.-20150712-NIGHTLY) and tk-gapps-modular-pico-5.1.1-20150705-signed. The funny thing, though wiping the phone and wiping the cache, the phone starts up as nothing has happend, same Google account and a trebuchet, that does not work properly (changes to the home screens does not save) and all apps, that has been moved to SD does not appear anymore :(
[Galaxy S II Original Android Development] Sonar Killa:
I am sorry about your situation, but in my post i am refering to the unofficial(6/17) rom made by LS, not to cyanogenmod nightly file you installed.

Anyway you should try the method i mentioned, but using the files in the thread below.

http://xdaforums.com/galaxy-s2/development-derivatives/rom-cyanogenmod-12-t2955551

I had the same problem, but resolved it by manually installing the cyanogenmod nightly and some old 5.1 gapps file from may that i have in my extsd. Now i am using the cm updater, and i have to say that allis running pretty good, a bit slower than before,but stable.

Good luck man.
[Galaxy S II Original Android Development] Lanchon:
hi!

1) nope, factory reset isnt working because of something else. the suppressed emmc wipe command is entirely optional. after the optional emmc wipe comes formatting of the partition, which is what actually creates the empty /data partition. (not the emmc wipe! the emmc wipe is not an ext4 format.) this is the same as always has been for the i9100, and format always worked (of course).

but here the format is not attempted at all, because factory reset fails before the format command. again, factory reset is trying read /efs. my guess is it is trying to make some kind of backup of some /efs files inside /data (i can personally assure you some nexus phones do that).

anyway /efs is not mounted, and the file it tries to access doesnt exist in the partition anyway, so the factory reset fails

2) ive tried flashing many times. remember im using a 1GB /system. i will try one more time and leave it there booting for 30 minutes.

3) no, i cant see what is happening via adb during boot. /data is wiped and adb is not enabled nor my PC authorized.

4) no, i cant use adb in recovery either: it is enabled but says not authorized.

---------- Post added at 10:42 PM ---------- Previous post was at 10:21 PM ----------

also, regarding:

3) how do i sign a zip so that the new recovery flashes it?

-i tried signing with jarsigner and no go.

-i tried using signapk.jar from january CM prebuilts, no go either.

also gustavo's and dorminax kernels don't flash either (though they are signed).

but gapps do flash!

does CM whitelist a set of signatures from known developers to support gapps???!!!!

or am i doing something wrong?

EDIT: this is explained here...

http://nelenkov.blogspot.com.ar/2013/04/android-code-signing.html
[Galaxy S II Original Android Development] cherryb8844:
Use custom recovery (what you used for installing cm-12.1-20150712-NIGHTLY-i9100 )for installing gapps new cyanogen recovery not allow to install any zip
[Galaxy S II Original Android Development] kostelo:
List of signed flashable kernels

I see that many people have trouble signing their zips so that they can be flashed in cyanogen recovery. So I tried myself signing some zips using Sign-em by [MENTION=4576707]Ryuinferno[/MENTION]. They worked like a charm.

I am attaching two kernels for LL roms (latest Apolo official and latest Dorimanx by [MENTION=5811506]gsstudios[/MENTION]) as well as latest unofficial xposed framework flashable zip. I 've tried all of them and they can be successfully flashed in cyanogen recovery. Credits and thanks go to all the developers. :)
[Galaxy S II Original Android Development] jojobg:
App2SD functionality regressed with unidentified patch from 11/07 use build from 10/07. CM recovery wipe functionality does not work at the moment as explained by Lysergic Acid, you need to flash custom recovery to do wipe.
[Galaxy S II Original Android Development] Lanchon:
could you please point me to that cherry?
[Galaxy S II Original Android Development] TheLuggageFollows:
Thanks for those, [MENTION=4025190]kostelo[/MENTION]!!

Two questions: don't you experience heavy lags when running xposed with latest cm 12.1 stock kernel or dorimanx? Do you by any chance also use xprivacy module without performance issues?

Cheers,

Luggage
[Galaxy S II Original Android Development] rINanDO:
Hi LA,

I was digging in some sources on github for ambient display. I found sources which uses the proxymity sensor to activate the doze via a service and listener. I tested this weekend on my phone and seems to work fine. Although the proximity sensor is active during sleep, i did not noticed extra battery drain. (You can (de)activate via settings ->Gestures)

Digging around in the sources of our exynos_camera i noticed the coninuous focus mode isnt used at all. So I set the focusmode at recording_start method. Also updates the preview resolution.

I made a pull request on the /cyanogenmod/Android_device_samsung_galaxys2-common repository.

Can you checkout the sources? I'm not very experienced in Android-code but i can understand some sources.

Hopefully we can merge this :):):)
[Galaxy S II Original Android Development] Dr.Fix:
Just installed 13/07 build. I installed all the nighitlies, day by day, from the first to the last.

Everything went fine, but after 10 minutes that phone was running it automatically rebooted (I suppose!), and I found it stuck on boot animation.

The animation wasn't running, it was blocked.

I turned the phone off, after restart, which took a while, it is now optizimizing applications again... like if it didn't write that operation was correctly completed before... strange behaviour.

I'll wait for optimization to complete and I'll go for a reboot, let's see if this will make it start in a clean situation..
[Galaxy S II Original Android Development] Lanchon:
just let it boot for 30 minutes, animation still playing, never started to optimize apps. doesnt work!

has someone been able to boot this using a repartitioned phone?
[Galaxy S II Original Android Development] ajislav:
Is your /preload formatted?

For some reason CM tries to mount it.. And fails, if not formatted
[Galaxy S II Original Android Development] daniu:
Hi

I did repartition my phone but ... yes - I also gained grey hair with choosing a nice pit-file. In the end I took the one from the first link in la's initial post of lollipop for s2 unofficial. I formatted everything quite some times - so I am pretty sure I also formatted the preload partition ...

Regards
[Galaxy S II Original Android Development] Lanchon:
i think it isnt. but it never was a problem for cm11.
[Galaxy S II Original Android Development] valterweb:
hi cherry,

i have update from 11 to 12 "by the phone"

but now i put on sdcard the two files recovery-clockwork-4.0.1.5-galaxys2 and recovery-clockwork-touch-5.8.1.5-galaxys2 and none works

please have you a recovery to suggest me?
[Galaxy S II Original Android Development] p3dboard:
Just a few posts back there is some posts with signed kernel's like apolo 8 beta 9 cm, i would give that a try, it will provide you with twrp recovery which you can then use those to reflash the new rom and gapps package
[Galaxy S II Original Android Development] Ferretx:
Nice one man :good:
[Galaxy S II Original Android Development] Spyr0s:
You can also add Lanchon's trim capable kernel

kernel-Lanchon-TRIM-FPBug-20150713-cm-12.1-i9100.zip
[Galaxy S II Original Android Development] xhoster:
Hey Lanchon,

I indeed got it running with a repartitioned phone.

My procedure (I don't know if anything is needed, but it took me so long to get it running that I didn't want to try it again):

- flash a 3 part original Samsung rom via Odin

- start it

- flash a KK (or LP I guess) Kernel (.tar) via Odin

- from recovery flash the cm12.1 rom and let it boot (again took some time, but not 20-30 minutes)

- flash a pit file via Odin (I'll attach the ZIP-file with one of the PIT-files I used. I didn't create those, but can't remember the thread I found them in! USE WITH CAUTION! I don't know if all of them work, so it would be better to search in the forum)

- from recovery flash CM12.1 and gapps and boot

This worked for me. I think some of these steps are optional, but better to write everthing down ;)

(my guess would be flashing the Samsung ROM did the trick)

(If it is not ok for me to attach the PIT files, please msg me about it)

[IMG="DiskInfo"]http://i.imgur.com/Uup5N4P.png[/IMG]
[Galaxy S II Original Android Development] Ferretx:
After flashing dorinmax kernel I lose internal memory, any ideas what I'm doing wrong.
[Galaxy S II Original Android Development] oscarlamyf:
Anyone manage to use aroma file manager in cm recovery? I just want to delete data/dalvik_cache/arm/.booting in case of bootloop.
[Galaxy S II Original Android Development] xhoster:
Dorimanx from gsstudios? It doesn't support ext4 on internal SD, yet. CM12.1 formats the internal SD as ext4.

So reformat the internal SD using another fileformat (vfat, etc.) or you have to use another kernel :)
[Galaxy S II Original Android Development] Ferretx:
Thanks for enlightening me Bro ;)
[Galaxy S II Original Android Development] Lanchon:
ok, i see, thank you.

but:

-the phone is partitioned and i want to avoid repartitioning it again.

-your PITs give you a standard size /system, while im using a 1GB /system. it is clear that the new crappy imaging update thingy will work on that partition given that it is stock.

-your scheme wouldn't work for me because on resizing /system you must reformat all partitions.

thanks! :)
[Galaxy S II Original Android Development] xhoster:
I see. Didn't pay attention to this...

Sorry for OT, but is there a benefit from having a bigger /system partition even when the ROM and nano gapps fit?

I read somewhere that ART runtime needs more space, hence the advice for a bigger system partition.

But it seems to fit (31MB free).

Is it somehow limited in it's performance?
[Galaxy S II Original Android Development] disaster2009:
hi ppl, its normal my s2 dont have now cmw recovery and appear a black screen cyanogen recovery with some menus ??? :crying:
[Galaxy S II Original Android Development] xhoster:
Yes.

If you need another kernel, read some pages back.

The new cyanogenmod recovery is very "lightweight".
[Galaxy S II Original Android Development] Gluco:
Anyone has issue to switch back from Charging mode back to MTP or other USB mode (CM 12.1-20150713-Nightly-i9100)? :confused::confused:

I got "USB is now disconnected" from Storage -> USB computer connection option even I plug in the USB cable. Confirmed from Battery option, charging is on via USB. And also can't turn on any Debugging option from Developer option menu.
[Galaxy S II Original Android Development] Spyr0s:
Im using your kernel on repartitiond phone 1GB/4GB no preload, sometimes it happens to me also. What i need to do from preventing to happen after eg. flashing a nightly is to

flash philz kernel

flash nightly

flash gapps (in my case tk full modular)

flash your trim capable kernel

clear cache/davlik

reboot recovery

clear cache again

reboot system

key is rebooting one more time to recovery before rebooting to system, don't know why, it just works...

edit: one more thing, cm doesn't like 6GB data partitions
[Galaxy S II Original Android Development] disaster2009:
the problem i think with some update i dont know i have install other cmw recovery and this dont let me install the normal programs ... just change kernel ?
[Galaxy S II Original Android Development] daniu:
Hi

It might be off topic but:

my phone automatically turns mobile data on when I turn wifi off in lollipop ...

I want to do all this with tasker (e. g. turn off wifi when display is off)

So the question is: how to turn that behaviour off?

Regards
[Galaxy S II Original Android Development] xhoster:
Check System profiles under settings, there are some triggers which will activate and deactivate data and stuff.

Just deactivate the wi-fi triggers.
[Galaxy S II Original Android Development] Lanchon:
no it isnt. little free space causes slow writes and fragmentation, but only on read-write file systems. during read-only operation (ie: not in recovery) free space does not impact speed at all, and fragmentation should be very, very low given that 99.99% of /system is written once and left alone until an upgrade (which reformats the file system anyway, so again there is no fragmentation).

---------- Post added at 02:45 PM ---------- Previous post was at 02:43 PM ----------

thanks!

hmmm... what do you mean by "cm doesn't like 6GB data partitions"? and yes, this phone has 6GB /data.
[Galaxy S II Original Android Development] daniu:
Hi

Don't see how this might help ...

The profiles that were there do not have any triggers so I assume it would always stay at default.

Plus - even when I turn off these profiles completely the behavior stays the same ...

Regards
[Galaxy S II Original Android Development] Spyr0s:
there was some problems in earlier versions with it but maybe it was just the pit file, if it works then leave it as it is.
[Galaxy S II Original Android Development] krhkki:
The most likely reason for touching /efs during factory reset is to wipe /efs/metadata, the file that contains encryption metadata (aka "crypto footer") in case the /data partition is encrypted (the file won't exist if it's not). The Galaxy S2 uses a standard file on a standard filesystem for storing the crypto footer, and it might be the CM recovery doesn't know how to handle this configuration properly (many devices use either a dedicated partition or space dedicated at the end of the encrypted partition to store the crypto footer).
[Galaxy S II Original Android Development] Lysergic Acid:
I don't know if you still want it, but I just found the commit: http://review.cyanogenmod.org/#/c/81797/

I tried to port a proximity sensor listener, but it was waking the phone randomly sometimes, and I didn't touch it anymore. Buit indeed that's the return of ambient display. For the camera, I'll look your commit in a couple hours, thanks.
[Galaxy S II Original Android Development] Lanchon:
yes, out of the back of my mind, i think /efs/metadata was the file it was looking for.

so yes this is a bug on the s2. but maybe that fails safely and some other thing is failing later.

i dont know much about android encryption. i though there was a separate partition or a footer (but a footer means no in-place block level encryption given that it implies a reduction of the fs size). never knew some stored metadata in /efs! where does CM for S2 store it? what file in what fs? thanks!

---------- Post added at 04:36 PM ---------- Previous post was at 04:33 PM ----------

yes, thanks! i ran out of "thank yous" today :(
[Galaxy S II Original Android Development] daniu:
Hi,

to close this: actually mobile data was on all the time - I just did not see that because wifi was also on. Now I use the app toggle mobile lollipop available here on xda somewhere and exchange the functions in tasker with them (the app has a plugin for tasker)

Now everything is fine

regards
[Galaxy S II Original Android Development] ringen00:
A bit off topic but maybe soemone experienced the same?

Used CyanDelta Updater to flash the newest nighly - now stuck in booting ... :(

Will have to flash a complete zip again...
[Galaxy S II Original Android Development] eltonada:
just some feedback:

I have been on this official, since nightlie 2015.07.07, Cm gapps, stock kernel, NO xposed, doing OTA updates

everyday.

And everything is still working fine, and fast enough for a daily S2... could be faster in some stuff/apps, but its an S2, i'm not really expecting a miracle.

Before officials, I used to have xposed and some other stuff, i just dumped everything and im trying to use the S2 only with stock nightlie functions, and seems to be working well for now.

I just miss Ambient display and Enter key on keyboard for Messaging app. (xposed had modules for this)

Thanks for all your work [MENTION=6159291]Lysergic Acid[/MENTION] :) ;) my S2 its making shame of some s4 and s5 (stock "bloatwared" roms) from my friends.

sorry for my english, I'm portuguese.
[Galaxy S II Original Android Development] snow:
[MENTION=6159291]Lysergic Acid[/MENTION] any news about root issue? It's frustrating that I cannot edit or change many files :(