yashsingh1/xdaforums huggingface dataset:
[Galaxy S II I9100G Android Development] Diatomix98:
Try this guys.

Go to /system/usr/keylayout/sec_key.kl.

The last row which is HOME WAKE with key 102, try change it to key 172.
[Galaxy S II I9100G Android Development] adxamg:
I changed keylayout and home-button is working now. Wakeup, close apps, app history. Thank you, Diatomix for this useful hint!

Auto-rotation is also working now.

Build of new ROM is in progress. I will upload it in some minutes.
[Galaxy S II I9100G Android Development] eray0687:
cpu used 1,2 ghz or fixed this?
[Galaxy S II I9100G Android Development] xn0live:
any screenshots from the rom
[Galaxy S II I9100G Android Development] eray0687:
auto rotation not work any screenshots
[Galaxy S II I9100G Android Development] adxamg:
Auto rotation is working here on any screen. I did a clean flash with wiping all data (system, data, internal, cache).
[Galaxy S II I9100G Android Development] Fajib Sh AZ:
New ROM for our beloved S2G .

Tnx adxamg :)
[Galaxy S II I9100G Android Development] xn0live:
Thank you :D

And how is performence/battery
[Galaxy S II I9100G Android Development] eray0687:
the same other rom. :) much better than mokee, omni much fast.
[Galaxy S II I9100G Android Development] xn0live:
screenshot from battery life and screen on please

the light button not work or
[Galaxy S II I9100G Android Development] adxamg:
Of course i did not test this update path. But, yes, when you don't make a factory reset or format something, just clean cache/dalvik, your apps are still in internal memory, maybe omni specific apps are missing/not working. Of course, a clean flash is always the recommended and safest way when comming from another rom.
[Galaxy S II I9100G Android Development] adxamg:
A new build cm12.1 i9100g 20151209 is online.

It has android security patch level december 2015 with some important security fixes. It comes with TWRP Recovery. If you are already using cm12.1 20151207 you can just reboot into twrp and flash new rom. If you are using on older build than 20151207, flash twrp recovery first, reboot and then flash rom.
[Galaxy S II I9100G Android Development] McConnor:
Probably you have read this already concerning the flashlight?

http://xdaforums.com/showpost.php?p=63963804&postcount=999

I will perhaps try to flash CM12.1 this weekend. Unfortunately at least with Omnirom it is not possible to add Lockscreen widgets anymore (that is a lollipop restriction) so there it is not possible to access the flashlight other than to unlock and start an app /homescreen widget. Are you shure the Phone/Camera shortcuts are customizable in CM12.1 - at least in Omni they aren't. I hope you can fix the flashlight toggle after all....
[Galaxy S II I9100G Android Development] adxamg:
Phone/camera shortcut on lockscreen is customizable with cm12.1. You find this setting in "Screenlock" and "Screenlock-Shortcut". You will be asked if you want to set it to "nothing", "standard" or "choose app". With "choose app" you can asign any app, torch app, if you like. When you have set a screenlock, you will be asked to unlock it.
[Galaxy S II I9100G Android Development] McConnor:
Ok, so here is first post with running CM 12.1 on my i9100g. At first: Many thanks to adxamg for making this happen. You did a great job bringing this CM Rom to our phone... Now:

You CANNOT flash this rom over Omnirom - even with cleared cache and dalvik it won't work. Right at the lockscreen some Phone.blabla Process closes. After Factory reset it works good but of course all apps are cleared - well I did an complete nandroid backup first....

The phone in general runs very smooth.

The skipping / stuttering audio in bluetooth playback seems gone - no problem here until now.

Flashlight shortcut can be customized with an app - there is no preinstalled flashlight app probably because the quicktile is supposed to work :). You then can access the flashlight from the Lockscreen (tested). Unfortunately if the phone is locked a pin is needed to access the flashlight app which renders the whole thing a bit useless - After exiting the Flashlight app you are at the homescreen... Like this I could then also unlock the phone and hit the app on the lockscreen... Perhaps thats app dependant? Well in the end it boils down to hoping that this quicktile can be made to work by our awesome devs which would make any app unnecessary....

As to battery consumption after one day no valid verdict possible... will report later

There are settings that have no effect (unfortunately) in Settings - Display - Live Display. The Settings that can calibrate the screen color and transition e.g. at night are not functional (cannot test if the Battery save switch has an effect though) - if that is because the necessary hardware is missing in the i9100G (graphics processor) then those entries should not be shown... If those settings can be made to work it would be even better and would save me to install an app to calibrate the slightly greenish screen and also twighlight to warm the screen color at night.....

Other than that I have not found anything not working - no force closes or the likes. Is there a task manager like Omniswitch in CM with pinnable favourite apps or display of free memory?
[Galaxy S II I9100G Android Development] adxamg:
Thanks for your feedback and clearing up, that a clean flash is required, when coming from omnirom.

Good, bluetooth playback seems to work well.

Flashlight, well, when someone finds a solution i will implement it also in this rom, of course.

Live Display i did not use so far. Setting seems to have no influence on i9100g. Is it working on other roms?
[Galaxy S II I9100G Android Development] McConnor:
I think it will work on the non g version of our phone since it has another graphics processor. Even in stock firmware there you can set a screen color temperature - a feature that is missing on our phone. It would be so cool to have it work here too but I think that is wishful thinking. Could the non functional menu be greyed out and Made inaccessible?

Gesendet von meinem GT-I9100G mit Tapatalk

---------- Post added at 04:42 PM ---------- Previous post was at 04:40 PM ----------

Since the manual network selection is supposed to work in OmniROM could you take it from there?

Gesendet von meinem GT-I9100G mit Tapatalk
[Galaxy S II I9100G Android Development] adxamg:
Are you sure, manual network selection is working on omnirom 5.1? Configuration in device trees of both roms is nearly the same.

I will check the live display feature when i find time for it.
[Galaxy S II I9100G Android Development] McConnor:
Well to be honest I didn't try it but it was not listed as remaining bug.I can post a question in the OmniROM thread as I momentarily can't test it because I am on cm12.1 ....

Gesendet von meinem GT-I9100G mit Tapatalk
[Galaxy S II I9100G Android Development] McConnor:
Just tested several times with cm camera and Google camera: recording works fine but upon changing the recording mode from video to camera after having recorded a clip the camera app crashes... It also happens just by waiting after a video clip has been recorded with the viewer on. Luckily the recorded clips seem to bee fine. Is it only me or is it a (hopefully fixable) bug?

Gesendet von meinem GT-I9100G mit Tapatalk
[Galaxy S II I9100G Android Development] McConnor:
Ok, to help resolve the issue I flashed back my nandroid image of OmniROM.I tested the manual selection off network carrier and the camera. both of them seem to work just fine so probably those parts of the ROM could be used as a reference point. If you need more info feel free to contact me. I will stay on OmniROM for some time to get you what you need...

Gesendet von meinem GT-I9100G mit Tapatalk
[Galaxy S II I9100G Android Development] McConnor:
Small addition of facts: I installed crDroid (latest release) which is based on CM 12.1 - Here the Camera also works normal. As the two firmwares have the same base that might help resolve the issue. Unfortunately on crDroid I have no SD-Card so I rolled back to this firmware.

Theoretically all errors seem to be fixable by using already released roms: that would be a candidate for a christmas release...:angel: - only the flashlight toggle seems to need intervention from a dev... I hope Jiangyi manages to throw in a fix...
[Galaxy S II I9100G Android Development] pokksu:
can you set the brightness more low..?? tq
[Galaxy S II I9100G Android Development] dago:
Hello

Thanks for your builds. Very useful.

But, just after pressing the power button, the screen turns back on briefly and turns off.

Am I the only one?
[Galaxy S II I9100G Android Development] TheNazarok:
we have this issue too, install xposed and screen off animation plugin, choose lollipop animation and it will be without laggs
[Galaxy S II I9100G Android Development] adxamg:
Thank you! Happy New Year to you too!

Had some minutes today, i built a cm-13.0-20160101-unofficial-i9100g-alpha.zip :D

Did not test it so far. I expect, even when it's booting successfully, not all will work (camera for example). Any volunteers?

Update: Not good, it's not booting. cyanogen recovery not working :(
[Galaxy S II I9100G Android Development] eray0687:
happy new years. ı wanna test :)
[Galaxy S II I9100G Android Development] McConnor:
That sounds promising...

As to your current cm 12.1: Do you have a solution for the camera problem I described earlier? Probably you can replicate that on your device too. For me at the moment that is the only important bug at the moment aside from the flashlight toggle....

Gesendet von meinem GT-I9100G mit Tapatalk

---------- Post added at 09:20 PM ---------- Previous post was at 08:48 PM ----------

I have another slight issue - perhaps it's only me. it seems that the device shuts off Wi-Fi during sleep even if otherwise specified in the extended settings of Wi-Fi (keep always on). every time I wake the device I see the sign for mobile data connection in the status bar even when I am at home near my Wi-Fi router. normally there should be the Wi-Fi sign. is there anything to be done about that? The constant switching to mobile data might impact battery life and my data quota quite a bit...

Gesendet von meinem GT-I9100G mit Tapatalk
[Galaxy S II I9100G Android Development] jsbeyond:
I build cm13.0,but boot failed???
[Galaxy S II I9100G Android Development] eray0687:
the same. not boot and not working recovery. I9100GXXLA1 bootloader have a 2,3,6? ı think change this maybe wiil boot.
[Galaxy S II I9100G Android Development] jsbeyond:
i built cm13.0（http://d-h.st/80lo）,not boot,but twrp recovery working,who can give me a logcal?
[Galaxy S II I9100G Android Development] micropizza:
12.1 seems to be running well on my i9100 thanks! Any way to get BLN Control for softkey notifications working on this rom?

:)

edit: tried updating to 20151209 from 20151116 by downloading the TWRP Recovery "TWRP_2.8.7.0_Recovery_Only_signed.zip" from the link first but it wont install in Cyanogen Recovery, just says "Signature verification failed"
[Galaxy S II I9100G Android Development] adxamg:
Use "TWRP 2.8.4.0 Recovery Only" then.
[Galaxy S II I9100G Android Development] toppits:
Well do you have the I9100, as you wrote, or the I9100G?

This subforum is ONLY for the I9100G, you risk bricking your device if you flash any of the files on another phone.
[Galaxy S II I9100G Android Development] micropizza:
apologies, posted in the wrong forum!
[Galaxy S II I9100G Android Development] adxamg:
Google released another security bulletin with several fixes (5 critical, 2 high priority). Expect an updated cm12.1 rom next days.
[Galaxy S II I9100G Android Development] jsbeyond:
hope you build cm13.0
[Galaxy S II I9100G Android Development] McConnor:
Thanks a lot. Can you replicate the described Camera Problem (crash /disconnect from camera after video recording) or is that only me? As described I havent seen this on other 5.1.1 Roms so I was hoping you could propose a fix for that...

Other than that. The rom runs pretty smooth. I am seeing a bit higher energy consumption than on KK but that might be related to apps / respectivly force close and restart of apps - e.g. Twighlight has this behaviour as some other apps that alter screen color. I uninstalled those now - lets see what that does.
[Galaxy S II I9100G Android Development] adxamg:
I noticed this message appears sometimes, when you shoot photos, switch to video mode, record and switch back to photo. When you close camera app between photo and video sessions you should have no problem.
[Galaxy S II I9100G Android Development] adxamg:
I prefer a pretty good cm12.1 rom with latest security fixes, a currently not booting cm13 :D
[Galaxy S II I9100G Android Development] McConnor:
Yes, thats my workaround for the moment too. Works most of the time although you have to be quick exiting the app - as soon as the preview icon of the recorded clip appears in the screen the camera app freezes...

As e.g. Crdroid or cos12.1 do not have this problem I had hoped along with the catalog files I managed to acquire you might be able to find how to fix it altogether. As the other roms also are cm 12.1 based I would suspect it can only be a minor problem causing this....

Gesendet von meinem GT-I9100G mit Tapatalk

---------- Post added at 01:53 PM ---------- Previous post was at 01:38 PM ----------

Sorry, forgot the catalog...

https://www.dropbox.com/s/f4m8k6tv6zdhbfe/2016-01-05-camera-crash-after-video-recording.txt?dl=0

Gesendet von meinem GT-I9100G mit Tapatalk

---------- Post added at 02:00 PM ---------- Previous post was at 01:53 PM ----------

By the way - could you manage to keep Wi-Fi on while sleeping? I always get the sign for mobile data in the status bar when I wake the device and just then I can see it connect to my Wi-Fi. I set the settings otherwise though...

Gesendet von meinem GT-I9100G mit Tapatalk

---------- Post added at 02:21 PM ---------- Previous post was at 02:00 PM ----------

Just tested the camera again:

In Photo mode - no problem at all taking as many photos as you like...

In Video mode (also when already started in video mode and NOT changing the mode): after EVERY recorded clip freeze of the camera app (a few seconds after you press stop - the preview then comes up...) and floating notification "No connection to camera" (in German though...). Next time you fire up the app you can again record exactly ONE clip.
[Galaxy S II I9100G Android Development] adxamg:
You can set wifi behaviour in settings/wifi/expanded/"wifi activated while in sleep mode". Set it to "always". It's working normal here.

I started 3 video records (some seconds) in a row without problems. You are using latest gapps? you did a clean flash? You wrote that you are using backup software. It could cause problems too.
[Galaxy S II I9100G Android Development] McConnor:
I have already set WiFi like you said but it's not working as advertised. I have the tk gapps instead of the open gapps - could that be it? I did a very clean flash! Is it possible to flash another gapps over an already installed one?

As to the camera - it is true: as long as you don't wait too long you can record multiple videos. If you wait too long and the thumbnail of your recorded video comes up the app freezes... Still that is a problem only in this Rom. Perhaps someone you get it sorted out - until then we just have to be quick...

Gesendet von meinem GT-I9100G mit Tapatalk
[Galaxy S II I9100G Android Development] adxamg:
I did a clean install today, with opengapps. wifi is not switching off while phone is sleeping.

I experimented with cm13 build today. But it's not booting (bootloop).
[Galaxy S II I9100G Android Development] McConnor:
Do you know if I could flash open gapps over mine while not losing all my apps and config?

Gesendet von meinem GT-I9100G mit Tapatalk
[Galaxy S II I9100G Android Development] adxamg:
I tried this on another device and i think flashing aborted with a message that it's not possible to flash opengapps over another gapps package.

I did a clean flash with formating system, data, cache, dalvik. I did not get any force close while phone setup. It was reported earlier "google partner setup" crashed. On my phone it was working normally. I think some of problems reported could be avoided by doing a clean flash as posted in op.
[Galaxy S II I9100G Android Development] adxamg:
Build I9100G CM12.1 20160106 is online.

It comes with latest google security fixes. Android security patch level January 2016. You should update as soon as possible, several security issues were fixed.
[Galaxy S II I9100G Android Development] McConnor:
Because I constantly have to push apps to sd which is annoying I plan on giving it another go with a clean install (again) after partitioning the phone to a 4GB Data space. To go on from there a Kernel / Recovery in TAR Format is needed. I kindly ask if it is possible for you to make us a Odin-flashable Kernel / Recovery TWRP 2.8.7.0 derived from your latest rom that can be used e.g. for such undertakings. I dont have the expertise to make that myself from your provided TWRP 2.8.4.0 ZIP in the OP.

Then, by following the PIT MOD Thread it would give me a bigger DATA Partition but System would stay the same? So I would still need to to with Nano GApps because those are installed in System? Am I thinking correct here? Has anyone increased System and Data?
[Galaxy S II I9100G Android Development] adxamg:
I think you are right. These pit files increase data (app) storage and reduce internal sd space. I used the 4 GB pit file. It's working perfect. I have many apps installed and still more than 1 GB free without any app moved to sd.

You could use ClockworkMod Recovery TAR when repartitioning, reboot into CWM Recovery and flash TWRP 2.8.4.0. Reboot into TWRP recovery. Format system, internal, data... flash a new rom and opengapps.
[Galaxy S II I9100G Android Development] McConnor:
Ok, thats a good suggestion. One thing though: do you know if the CWM Recovery can access external SD Card? There I have all my flashable ZIPs and I wouldnt know how to put something on internal SD Card without a booting ROM already on it....
[Galaxy S II I9100G Android Development] adxamg:
As far as i remember, yes.
[Galaxy S II I9100G Android Development] toppits:
1. Gapps: You can change the Gapps package without a full wipe. Just format system, flash rom, flash new gapp package, wipe dalvik & cache, reboot. (source: "7. I'd like to switch to TK GApps from another GApps provider. What do I need to do?")

2. Pit files: I made a German Guide to the pit files on android hilfe, check the "flashen mit odin" thread (@mcconnor)

3. Recovery and flashing: You don't need to flash a Recovery with Odin, you can just use the Recovery provided here

So after you flashed the pit-file and formatted your memory you reboot to stock recovery, flash the twrp recovery from your external sd-card, reboot to twrp, flash rom/gapps/do your wipe/etc and you are done.

edit: since I already posted here anyway I want to say THANKS to adxamg. I've been a silent user of your great ROM. I love it and besides all the thx button clicking here I have the opportunity to say it in words without spamming ;) rock stable and if it weren't for our hardware limitations (1gb RAM =( ) I'd use the S2 for another couple years I guess :) I hope you find the time to give us some more security updates for a little while longer =) <3 no homo ;)
[Galaxy S II I9100G Android Development] adxamg:
My pleasure! But without great work of former devs it would not be like it is.

When my small contribution helps some s2g phones not to be trashed, i will continue building updates for it. :D

I plan at least monthly updates with android security fixes, first week of month.
[Galaxy S II I9100G Android Development] McConnor:
Right, thats the spirit! Thank you for that! Lets see for how long that awesome device can still survive. Just bought me another battery. Perhaps sometime CM13 will be stable enough or/and Jiangyi pulls off something... This phone is definitly worth it.
[Galaxy S II I9100G Android Development] McConnor:
Can anyone Check and Report how much wakeups you get from com.google.android.gms , please

I get 3/min which I attribute my relatively high battery (3-5 percent per hour) drain to.... I have even less apps than on other roms...

Gesendet von meinem GT-I9100G mit Tapatalk
[Galaxy S II I9100G Android Development] McConnor:
Ok, while I was at it I finally repartitioned my i9100g and restarted from scratch with

1) latest Version of this ROM

2) latest Open GApps

Everything runs very smooth and with 4 GB Data Space installing was so fun - no moving to SD-Card anymore

I ran "Trimmer" and that made the phone even more responsive!

All in all very, very fine - that phone won't give up! But unfortunately the Camera error (at least I have) with this ROM stays the same - more "from scratch" than I did now with repartioning and all one can't possibly do - isn't there something you can do about that in the hopefully next release? As e.g. crDroid 5.1.1 does not have this problem as does not Omnirom 5.1.1 there should be some glitch here that could be patchable...

Even now great and very responsive lollipop app. All in all after now quite some testing I find no remaining bugs than

1) Torch from quicksettings (all ROMs for the i9100g have that unfortunately)

2) for me (and obviously also adxamg at times) the Camera freezes shortly after stopping a video recording stating "No connection to camera"

Thanks again to adxamg for this excellent daily driver ROM!
[Galaxy S II I9100G Android Development] adxamg:
About wifi disconnect while phone is sleeping. When this still occurs, try to set wifi automatic frequency selection not to 'automatic'. set it to 2.4 ghz or 5 ghz. I noticed my phone has sometimes problems connecting to 5 ghz wifi. When i set it to 2.4 ghz it's working normal.
[Galaxy S II I9100G Android Development] McConnor:
Right Now it seems to work out of the box , thank you...

Gesendet von meinem GT-I9100G mit Tapatalk

---------- Post added at 09:37 AM ---------- Previous post was at 09:21 AM ----------

I did as in the english guide but flashed a self cooked up TWRP 2.8.7.0 Recovery TAR under PDA - worked out of the box. To get the internal storage formatted I had to mount it to USB under TWRP Recovery. I then formatted it via Windows. TWRP is just a nice recovery. If there is interest in this TWRP 2.8.7.0 TAR (made it with a script here from XDA and the linked ZIP in the OP of this thread http://xdaforums.com/galaxy-s2/development-derivatives/convert-kernel-zip-to-tar-t2994381 so credits go to the dev there...) I could send a link to adxamg to get it in the OP too. It should be tested though by someone with expertise - it worked for me but I am no expert in this....
[Galaxy S II I9100G Android Development] adxamg:
I am using an updated camerawrapper for cm12.1. But it should improve things... :o

I will remove those changes and upload a test build.
[Galaxy S II I9100G Android Development] McConnor:
I will gladly test it and report back!

Do you have influence on the "Low memory killer"? It seems that sometimes the CM-Launcher is kicked out of memory. After exiting an app it takes sometimes to display the homescreen again. Perhaps the Launcher could be excluded from measures to free up memory?

Gesendet von meinem GT-I9100G mit Tapatalk

---------- Post added at 10:42 AM ---------- Previous post was at 10:23 AM ----------

@adxamg: Found this concerning the launcher redraws: Seems very closely related even though its concerning the Moto G... https://www.reddit.com/r/MotoG/comments/2rd1l2/constant_launcher_redraws_fix_here_root_required/
[Galaxy S II I9100G Android Development] adxamg:
Which 'constant launcher redraw' problem we need to solve here on i9100g? You could test it by simply editing this file as desribed.

When CM-Launcher needs some time it's more a lack of RAM problem.