yashsingh1/xdaforums huggingface dataset:
[Galaxy S II I9100G Android Development] McConnor:
Ok, after some time I ditched my 12.1 Installation on this phone again to test CM13 builds. As I dont need it regularily atm I can do this harmlessly. Many thanks to adxamg who still refines this precious phone-diamond of ours. So here are my findings:

a) I indeed got GPS Fix with this latest build - chapeau to our hex hacker adxamg. On the downside it tends to be a bit unstable because it only finds (for me) at max 5 Satellites, often only three or four. I double checked with my other phone at the exact location: it finds 20 Satellites (I am shure Glonass Sats are included but nonetheless I remember that at my test location 12.1 based roms tend to find about 10 Satellites stable). So definite improvement - Google Maps can locate you with "GPS only" but it tends to be unstable for me - I havent tested it while driving.

b) The audio humming is still present for me in all Media players using Headphones and Speakers. Audio FX deactivated. It is a humming/ringing in Upper Mids to lower Heights (like if you compressed an mp3 with too low sampling rate /bitrate). This has not been present in 12.1 Roms and is (to my ear) disturbing especially when listening to music. It is instantly audible and as soon as you want to digest serious music it kills the joy.... I suspect the phone is using a low quality codec when it should not...

c) Bluetooth connection is unstable. Sometimes it works good then it gets a hiccup und even switching of bluetooth and reenabling it does not help. Reboot is the way to go but that is time consuming and perhaps only helps for minutes.... (I already posted logcats earlier)

d) Camera works and does not loose connection after taking videos - curiously this is the case with the 12.1 backports (I had hoped the backported camera would cure this for me on 12.1 Roms but obiously there is more to it). So that works better here

e) Flashlight working

f) SELinux Status "moderate" - should it not be "enforcing" - but perhaps that is not possible?

g) Everything else I tested working very fine (did not test phone function but that has been reported to work many times now)

So in summary the audio / bluetooth issue could be a problem for people using the phone as music player or - like me - to listen to audio books especially via bluetooth - that is not really an option at the moment.

If any catlogs are needed please give me a description of the setting and I will try to reproduce and log it. Greetings!
[Galaxy S II I9100G Android Development] ThePhoenixII:
Sorry I don't have others bluetooth devices to test with.
[Galaxy S II I9100G Android Development] adxamg:
Thanks for your feedback!

SELinux rules are not up to date anymore. This needs to be checked and rewritten.

Bluetooth connection and sound distortions. Already on the 'not working list'. No solution in sight, so far.

Wow, 5 times the satellites than in earlier cm13 builds. Thats great! :D
[Galaxy S II I9100G Android Development] adxamg:
Test build cm13 20160901 is online.

Changed: Sound config : deep-buffer deactivated , submix added. cm full phone config.
[Galaxy S II I9100G Android Development] McConnor:
I am getting to it right after my workout...

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] McConnor:
Sound still the same but perhaps I found a clue as to where it comes from. When I try to activate the eq in black player it gives me an error I never had before: "error starting equalizer. No hardware support. Try to disable any existing equalizer". Perhaps cm 13 threw the equalizer libraries out of the loop?

Gesendet von meinem SM-G930F mit Tapatalk

---------- Post added at 07:47 PM ---------- Previous post was at 07:43 PM ----------

Sound is indeed sounding like clipped in a certain narrow banded frequency range - others sound perfectly well (e.g. voices). That would point to an equalizer problem...

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] ThePhoenixII:
Hello McConnor,

Did you already try to disable battery optimisation on your application (need reboot) ?

From my side, I disable battery optimisation for the built-in application music player (com.cyanogenmod.eleven) and I can now use my bluetooth speaker for hours without hiccups. I test it since yesterday so maybe it is not a valid long term workaround.

---------- Post added at 10:43 AM ---------- Previous post was at 10:38 AM ----------

May be it is not related but I notice that I don't have the sound problem (or it is not enough to notice it) when I use my external speaker. For instance, the notification when a mail arrive, is like in previous CM versions.
[Galaxy S II I9100G Android Development] McConnor:
You should notice it instantly when listening to music. I will try to upload a sample later to make sure we are talking about the same thing...

Ok, here you go:

https://dl.dropboxusercontent.com/u/1500968/Soundsample%20Distorted%20Audio%20i9100G%20CM13%20unofficial.mp3

No copyright infringement intentend - only for demonstration purposes.

The same ringing in this narrow band stays throughout the whole /any song. It is the same in all audio apps - e.g. youtube, blackplayer, listen audiobook player. It is always the same frequency (1-7 khz) which is why i suspect that indeed there is nothing wrong with a codec (sound is clear and good besides this) but with some eq-related issue...

You can hear it already via speakers but even more via Headphones...

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] ThePhoenixII:
Oh I hear it. I confirm that I have the same 'ringing' sound when I use my headphone.

When I use my speaker, maybe because it 'compensates' with more bass, I cannot hear it (it may still be present but I cannot hear it).
[Galaxy S II I9100G Android Development] adxamg:
What kind of battery optimisation you are talking about? You mean, bluetooth is working without problems?

Could you explain exactly what you did. Maybe [MENTION=5194378]McConnor[/MENTION] could test this.
[Galaxy S II I9100G Android Development] ThePhoenixII:
What I did :

- Go to the Parameters -> Batterie

- In the menu (the 3 dots in top right), choose Optimisation

- In the dropdown menu, choose all the applications

- then select your application (the default music player (com.cyanogenmod.eleven), in my case)

- finally, choose not to optimize

I am sorry but I use the french locale, so in english version, it may be slightly different.

In my case, I need a reboot to take this manip into account.

After that, I can play music for hours, turn off the bluetooth to use my phone for other stuff and then reconnect it to play music again without any hiccup (it's been 2 days now)

I did not test with any other bluetooth device because I don't any other one.
[Galaxy S II I9100G Android Development] Adrian-66:
Okay have check bluetooth Audio Transfer with my Car radio.

Works good and have no errors. I have at the last time errors with transfer over USB. 10 songs have upload on handy an 4 have cancel and the song is not completely.

which is a problem as far was no error message. (The Optimise App for Akku is off, the old S2 have no Hardware for this)
[Galaxy S II I9100G Android Development] JamesMars:
Wanted to try this out after the recent fixes. Booted into recovery to check my TWRP version but screen stays completely black after S2 logo. Battery removal is the only rescue. Regular boot into CM12 (the one from the other topic) doesn't work either anymore. Screen is black.

Only download mode works. So this means I am back to Odin??

How can a simple boot into recovery **** up the device like that?
[Galaxy S II I9100G Android Development] adxamg:
Flash TWRP 2.8.7.0 TAR with Odin. Then follow flash instructions.
[Galaxy S II I9100G Android Development] adxamg:
Build cm13 20160903 is online.

I re-added audio_effects.conf and moved audio_policy.conf to right dir. Buildin cm equalizer app, audio fx, is working now. You can try to play with different settings in order to reduce audio distortions.

I also updated first post FAQ/solutions (example bluetooth connection fix). Thank you [MENTION=7103894]ThePhoenixII[/MENTION] for sharing this information with us.
[Galaxy S II I9100G Android Development] ruudschmahinda:
Thank you very much again for your hard work! Unfortunately the high pitched ringing noise is still present when deep bass is being played. I experimented with different equalizer settings, unfortunately this persists.

Well, nothing is perfect, but still getting so much life out of this phone is great, thanks to you!

I have absolutely no idea how this works, but simply using the CM12.1 audio drivers wouldn't work easily, right?
[Galaxy S II I9100G Android Development] adxamg:
Google changes, adds and/or removes functions or changes how things work with every major release. First builds of cm13 (may 2016) used cm12.1 audio config and there where reports about sound distortions. After this there where some changes in audio config, but it did not solve the problem so far.
[Galaxy S II I9100G Android Development] JamesMars:
Did the whole procedure - everything is fine. Just that the CM wizard didn't ask for my Google account. So rom runs nicely, but I cannot add my account. Playstore force-closes immediately. Under Settings > Accounts, I can only add Exchange or POP/IMAP accounts.

What to do?

.gapps-config was in same folder as open_gapps-arm-6.0-stock-20160904.zip when I flashed it.
[Galaxy S II I9100G Android Development] McConnor:
I just flashed the recent update - thanks for releasing.

Audio Effects seem to work now - at least I think that I hear a discernable difference in sound when I change the presets

The ringing in the sound is indeed still there. BlackPlayer still shows me that there is "No hardware support" for the Equalizer - this has not been so under CM12. Settings in this app therefore have no effect and I take the message as indicator that even though something has been fixed by adxamg the "ringing-sound-culprit" still is on the loose for the moment....

If any special catlogs are needed I will reproduce the desired setting an upload the log. Thanks for this release...
[Galaxy S II I9100G Android Development] JamesMars:
So that's what I have to do too then, I presume? Or are you fixing this in a near update release?
[Galaxy S II I9100G Android Development] kalle12:
I didn't try that yet. But you could also do a quick fix like I did (look in post #425): Download the play services apk from apkmirror and install it in running cm-12.1.

Good luck :fingers-crossed:
[Galaxy S II I9100G Android Development] JamesMars:
What is the correct variant for the i9100g...?
[Galaxy S II I9100G Android Development] Le-Rouge:
same problem

i have the same probleme
[Galaxy S II I9100G Android Development] Adrian-66:
For what in the installation not in accordance with the Google asking acount. For me, the Google, whatsapp & Microsofte Excange email did not synchronizing. That's why I made a reset to factory setting and there comes the query after google acount!

just get all the apps again on my google acount. Hope that now everything goes.
[Galaxy S II I9100G Android Development] Le-Rouge:
did this but still have no ask for google account and google play still crashing.. any solution ?
[Galaxy S II I9100G Android Development] JamesMars:
I installed the play services APK after googling the correct variant - displays that play services must be updated after, which launches into Playstore, which then force closes......

I went down to second newest "cm-13.0-20160830-UNOFFICIAL-i9100g" release hoping this still had working play services. It doesn't. Exact same problem.

This is really frustrating. adxamg, please fix, or tell the last build with working play services from which to then update.
[Galaxy S II I9100G Android Development] adxamg:
I flashed latest cm13 coming from cm12.1 as described in first post. I think i did not format data, everything else like in first post and i had no problems with google account/play service/play store.
[Galaxy S II I9100G Android Development] McConnor:
It works for me too...

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] stryker09:
No problems here too
[Galaxy S II I9100G Android Development] JamesMars:
I did wipe data as your first post says so. Is this the problem?

This means the solution is I have to flash to latest v12.1 and then update this rom without wiping data?
[Galaxy S II I9100G Android Development] McConnor:
No. I Flashed gapps directly with cm13...

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] JamesMars:
Which version?

What worries me is that even the cm12.1 had the same issue for someone, so it seems to be a more established problem.

EDIT: I found a solution. I used an outdated gapps stock package from the date on which adxamg last edited the opening post - 20 May. I also created a dedicated folder on my the sd card for the config file and the gapps.zip, with just these two files. They had absolutely been in the same directory when I tried before though, just with other files in there as well. I suppose something in the config file must be updated to work with current gapps release, or else play services are omitted. I also saw the phone working quite long on "preparing play services" this time on first boot, which it hadn't done before.
[Galaxy S II I9100G Android Development] adxamg:
Try this updated open gapps config file. It's configured to install OpenGApps Pico, a very slim package. AOSP keyboard is replaced with google keyboard.

Download OpenGApps Stock and this config file. Rename file to .gapps-config without '.txt' and copy it to your phone into same folder as opengapps (or just copy text of this file into your .gapps-config). Clean flash cm-13.0, then opengapps stock.

Edit: Some packages where removed, which are inside config-file in first post. For example DialerGoogle, FaceDetect, FaceUnlock, PrintServiceGoogle, Speech, VRService. Feedback about dialer/phone app would be helpful. Maybe i have to add DialerGoogle again.
[Galaxy S II I9100G Android Development] EvsanDlg:
Does this ROM|Kernel support f2fs?
[Galaxy S II I9100G Android Development] adxamg:
I implemented f2fs support into this kernel.

Current cm13 rom: system & data are mounted as ext4. sdcard0 & sdcard1 (internal and external sdcards) are mounted with "auto"-setting, so it should detect your filesystem automatically.

I have no information about, if/how f2fs is working on internal/sdcard.
[Galaxy S II I9100G Android Development] EvsanDlg:
Sorry, I didn't get what you mean.. So, do you say that i can use f2fs at system & data?
[Galaxy S II I9100G Android Development] stryker09:
He says that code necessary is already in place but it is not tested.. feel free to have at it but it's at your own risk bruh
[Galaxy S II I9100G Android Development] EvsanDlg:
Thanks!

So, has anyone already tested f2fs at this device? If anyone can share this experience, please, tell us
[Galaxy S II I9100G Android Development] axiomes:
I'm flash Rom and install app " ROEHSOFT RAM-EXPANDER " use memory sdcard to increase ram , but kernel not support !

Can u help me ?
[Galaxy S II I9100G Android Development] Adrian-66:
Have unfortunately no SD card slot on the home computer. I need first a Live DVD sheetDownload for Nothebook to an SD card with f2fs format. Then I can test the on cell phone if it works or not.

Sorry can not format f2fs the sd-card make error.

format ext4 and check on the cell phone. Not work the cell phone say the sd-card have error and format sd-card. The format from cell phone say error allways and format on the nothebook.

as it may looks android no other format.

check sd-card and return all.

ext4 not work. The Cell phone have change the partition and no format the sd-card. brings an error message but unfortunately much too short to read.
[Galaxy S II I9100G Android Development] McConnor:
Go for Gold...

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] EvsanDlg:
Ok, i tried f2fs for /cache and /data partitions with clean flash of CM13 and gapps after that. Loading failed: it just stuck at blue CM head sign and blinked over and over again. No changes after 20 minutes..

I had to return ext4, everything works with it.

So, my experience says that this ROM does not support f2fs.

P.S. /cache formated using twrp_isorec_i9100g_20160612: advanced wipe -> cache -> change filesystem to f2fs

/data formated using lanchon-repit-20160723 tool like this: lanchon-repit-20160723-system=2.0+wipe-data=same+wipe+f2fs-sdcard=max+wipe+vfat-preload=min+wipe-i9100g.zip
[Galaxy S II I9100G Android Development] stryker09:
Thanks for testing, I wondered if it would have yielded better performance like it did the Nexus 7
[Galaxy S II I9100G Android Development] adxamg:
So, in my experience, [MENTION=7382019]EvsanDlg[/MENTION] test was a waste of time. Very smart to tell the dev, what his rom does support or not.

Once again, kernel does support f2fs, but data and cache are mounted as ext4 only at the moment. internal and external sdcard with setting auto.
[Galaxy S II I9100G Android Development] McConnor:
Would a Problem arise to Mount those Partition also as Auto?

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] adxamg:
Not in 'auto' mode, but by adding another fstab entry for f2fs mounting. When there will be an update for this rom, i could add those lines.
[Galaxy S II I9100G Android Development] EvsanDlg:
I just said that my attempt to format data and cache to f2fs resulted in fail of loading the system - what means for me it does not support this feature. Of course, not my job to tell you about technical issues, but i tested practicle usage.

Your words"data and cache are mounted as ext4 only at the moment. internal and external sdcard with setting auto" not enough clear for me because of my bad english or being noob..
[Galaxy S II I9100G Android Development] McConnor:
At least he tried this potentiality harmful procedure - chapeau!

Other phones had 20 and more percent increase in read write performance. This could come in handy if the phone fully supports it one day...

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] adxamg:
20%? Not too bad. I just edited fstab. It should support ext4 AND f2fs now also on data/cache partition. Will check if ext4 is still working normally. f2fs test is up to you then.
[Galaxy S II I9100G Android Development] EvsanDlg:
So, I finally understood, why such usefull ability as f2fs-supporting (in practice) wasn't introduced by you for so long - you just didn't know about its benefits:D Yeah, it could be significatly helpfull for our rather outdated smartphone..

[MENTION=5194378]McConnor[/MENTION], I tested "this potentiality harmful procedure" trying to move this problem (f2fs support by this ROM) from dead point. And, guess, I managed to do this)) Not so afraid of bricking because progress is everything!)

[MENTION=5813522]adxamg[/MENTION], thanks! Waiting for update
[Galaxy S II I9100G Android Development] McConnor:
Let's wait for the comprehensive guide of [MENTION=7382019]EvsanDlg[/MENTION] on how to change the file system to f2fs...

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] EvsanDlg:
haha, sarcasm is appropriate.. don't think so
[Galaxy S II I9100G Android Development] McConnor:
That was not sarcasm but optimism...[emoji106]

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] adxamg:
At least you brought some life back into this more or less dead thread/device haha.
[Galaxy S II I9100G Android Development] McConnor:
[MENTION=5813522]adxamg[/MENTION]: By the way - how do you hex edit the GPS library? Do you have to hard code every satellite by hand? I just ask because it seems not to be a "works/works not" issue... First no satellite, then some satellites and so on?

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] adxamg:
No, i did not hardcode satellites. One function needed to be renamed in this file with hex editing. Final solution seems to be to switch on some kind of 'compatibilty mode' for this (and other) proprietary file(s).
[Galaxy S II I9100G Android Development] McConnor:
Like a wrapper... There used to be one for the camera...

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] hamed.stereo:
Hi After several try this ROM: After a while Bluetooth is not on. Despite install the drivers on Windows, mobile phone is not connected to the computer.

Root mode also stops working after some time and despite being active.It does not give the software access.

The camera also has a problem and after putting out on video mode and gives error (force stop).

After a Battery Saver enable must reduce the CPU frequency, but this does not happen.

And when you select "Setup Your SD card" is selected, and then click the "Use as internal storage" comes out and external memory card will be hidden and will not do any special event and not as a single memory.

In "Live Display" and select the "Color temperature" is also not done any special event.

Thanks, please check.
[Galaxy S II I9100G Android Development] McConnor:
Bluetooth: disabling energy saving mode for your audio player is supposed to cure this. Not tested.

MTP mode works fine here

Root works here

Camera problem the same here. But only with cm12.1 roms

SD card works fine here

Live display and color temperature is from i9100 - without G - and is non functional

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] hamed.stereo:
My mobile phone is gt i9100g

In addition to the cases mentioned that happen. After a while the first few hours after flashing no problem!
[Galaxy S II I9100G Android Development] McConnor:
It must be a i9100g - otherwise it would be a brick by now... [emoji3]

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] JamesMars:
Been running this rom for a week now. The moment I place or receive calls the phone reboots. Is there anything I could try to remedy this?
[Galaxy S II I9100G Android Development] rajuchacharuk:
Nice work [emoji4]
[Galaxy S II I9100G Android Development] McConnor:
Be sure to reread the installation procedure in the OP...

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] adxamg:
I uploaded i9100g cm-13.0 20160916.

- security fixes; it has android security patch level 01.09.2016

- added fstab entries for f2fs

I did not test f2fs. I did a clean flash and it's working normally. When you get force closes i recommend to do a clean flash.
[Galaxy S II I9100G Android Development] ruudschmahinda:
Updates without a hitch. Thank you!

Though I wanted to encrypt my device this time, and it just restarts the device with a very short display of the wire frame android.
[Galaxy S II I9100G Android Development] stryker09:
Wonder if anyone managed to try out f2fs yet? Else I'll probably do it sometime today or tomorrow
[Galaxy S II I9100G Android Development] sonic_ear:
Im new,what is f2fs mean?
[Galaxy S II I9100G Android Development] adxamg:
Just read a comment in galaxy note 10.1 thread from user DirkStorck about f2fs: "It (f2fs) was causing issues on all my devices... And I never could feel any improvement or benefit".

Still someones wants to try it? :D
[Galaxy S II I9100G Android Development] TheNazarok:
tested is, very good rom as i think, but this sound distortion makes me cry, cant use it((((
[Galaxy S II I9100G Android Development] adxamg:
By the way, 6 weeks ago cm canceled all weekly builds for devices with cm11.

So, devices which have cm11 as latest official build, like i9100g, will not get regularly official updates any more.

"After market firmware" for s2g is end of life. :rolleyes:
[Galaxy S II I9100G Android Development] RedShift1:
Never mind, didn't follow instructions.