yashsingh1/xdaforums huggingface dataset:
[Galaxy S II I9100G Android Development] pokorny17:
Audio is the same as at the beginning

Audio is still distorted, trying turn off and rename AudioFX.apk to AudioFX.apk2 and installed ViPER4ANDROID, and still the same...

I'm using mp3's 44100 kHz, 320kbps, 128kbps, 192kbps and 254kbps... GPS is unfunctional, Compass fast settings tile stands in this place without any move... :(

But very smooth ROM, tweaked with Kernel Adiutor app and it's very fast :D

Thank for your big work, i will stay in touch ! :)

PS.: try with stock drivers, it's may work :p
[Galaxy S II I9100G Android Development] stryker09:
[MENTION=5813522]adxamg[/MENTION] - I'm not sure if you are aware, but https://github.com/Unlegacy-Android + https://github.com/Unlegacy-Android/android_hardware_ti_omap4 they seem to have done some work on OMAP4 which is our CPU, however unsure of any work exactly towards i9100g / OMAP4430, just thought I'd share :)
[Galaxy S II I9100G Android Development] adxamg:
Thanks for sharing this. I use cyanogenmod/android_hardware_ti_omap4 for this rom with slightly modifications to get camera working. This repo is still maintained.

Repo unlegacy-android seems to have some additional changes, especially for android 7.0. Without comparing it in detail, i can't say if it would improve something.

android_kernel_omap4_common seems to be a newer kernel for omap4 devices, which is interesting. But i guess someone would need to invest 'some' hours in it, to get it working for i9100g.
[Galaxy S II I9100G Android Development] hamed.stereo:
Please fix the battery saver. CPU frequency limit until after the election. In other devices I've seen this feature. Which helps to optimize battery.
[Galaxy S II I9100G Android Development] mohmedxpmpa:
yes i need that Battery brain too fast :good:

- make a option like CM11 to control the CPU clock frequency

- make a logo of battery in status bar ( when it charge show electronic logo or any animation )
[Galaxy S II I9100G Android Development] ThePhoenixII:
Hello,

I did a clean flash using f2fs for data and cache (format using TWPR). Installation ran smoothly. Re-installation of my apps also went without any problem. Everything works fine so far (the known problems are still present).

For my use, I don't see any enhancement yet. I will not do any benchmark (waste of time).

Just a weird thing though : I also formated system using f2fs but after flashing CM13, it returned to ext4.
[Galaxy S II I9100G Android Development] stryker09:
So it isn't really running on f2fs if that's the case?
[Galaxy S II I9100G Android Development] ThePhoenixII:
I saw from here and there that data and cache are generally the partitions to switch to f2fs to see improvements.

Moreover, that is the feature asked to adxamg in a previous post.

To me, it is running f2fs (TWRP states that these 2 partitions are formatted with f2fs).

I just wanted to switch system to f2fs because I thought it will improve overall performance as well.

I was surprised that TWRP stated it was switch back to ext4. So I reported that.
[Galaxy S II I9100G Android Development] adxamg:
Thanks for your positive feedback about f2fs and proving it's working as expected.

I don't expect big performance improvements from f2fs. You may notice little higher io-rates when copying files for example.

[MENTION=4183606]stryker09[/MENTION]: f2fs on system partition is not supported on most old devices (Samsung S2, S3, Galaxy Tab...).
[Galaxy S II I9100G Android Development] stryker09:
Yeah I must've misunderstood that twrp didn't like data on f2fs, I'll give data/cache a whirl soon... When I get the chance, thanks for trying to keep things afloat!
[Galaxy S II I9100G Android Development] adxamg:
cm-13.0/android 6.0 changed handling of performance profiles. This is not compatible with old code used currently.

I updated this part last days. Tests are not finished yet.

With this change it's possible to select three different performance profiles in settings/battery: energy saving, normal and performance boost. It's also available as quick setting icon. There is also a new option to auto-select best performance profile for different apps.
[Galaxy S II I9100G Android Development] Adrian-66:
I have a prolem with my S2. If I go into contacts and select there a crash the mobile phone or system crash and makes a warm start. Since after it recognizes my Sim-card no more. Must restart the phone and as soon as I go into contacts again the game starts from the front.

Have the last update install.
[Galaxy S II I9100G Android Development] McConnor:
A similar behavior can be seen with the phone app if you don't follow the install procedure precisely and forget to set the default phone app. Did you check after reboot that there is a contacts app set in the settings? Perhaps you screwed that setting somehow?

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] Adrian-66:
No I did nothing at the installation.

Okay make a company reset
[Galaxy S II I9100G Android Development] adxamg:
i9100g cm-13.0 20161019 is online:

- power hal update to support android 6.0 power profiles: balanced, energy safe & performance; activate it under settings/battery or with quickicon; additional option to auto-select best performance profile for different apps

- security updates: android security patch level: 01.10.2016

- display brightness improved in automatic mode
[Galaxy S II I9100G Android Development] stryker09:
Thanks for the continued support [MENTION=5813522]adxamg[/MENTION], did you get a chance to look at the Unlegacy sources or were you not planning to?
[Galaxy S II I9100G Android Development] hamed.stereo:
Thank you dear friend, I saw new changes in the settings but after applying battery power saving mode, I did not see any reduction in the frequency CPU!

Are you the option to reduce the frequency in the power saving mode were considered?
[Galaxy S II I9100G Android Development] adxamg:
How did you test this? Maybe your phone needs this frequency to function properly. Maybe because android 6.0 os needs it or special features like zram compression.

Don't forget you are using an old phone with an low end cpu and not much ram with an os designed for newer phones with quad or octa core 2 ghz cpu with up to 6 gb ram.

Beside from this, balanced mode should be the same than before. Performance mode is using more often full cpu frequency. Energy safe should use less high cpu frequencies, but when phone needs it, it will take it.
[Galaxy S II I9100G Android Development] hamed.stereo:
I saw my cpu-z & kernel toolkit software in different modes, particularly power saving mode if there is no change on the frequency that I have seen in other android 6.0.1 after the power saving mode, CPU frequency fell to 800Mhz. However I think you have three modes for CPU frequency, consider: (power saving: 800Mhz lock and balaced: 300 to 1200Mhz Auto factory default mode. And performace: 1200Mhz frequency is locked on. With these items very optimal battery will be more.
[Galaxy S II I9100G Android Development] adxamg:
Energy safe mode is working good. Phone battery stats say after 12 hours of standby with some wake ups about 2 days left. Not to bad, for a nearly 5 years old battery. Ha!

cpu frequency is reduced, syncing is reduced, vibration is switched off in this battery mode. All as expected. A lot better than before.
[Galaxy S II I9100G Android Development] hamed.stereo:
If you reduce the frequency you see, I am again flash ROM?:confused:

In the case of restricted frequency for you is it? (Even with heavy activity programs)

Thank you.

Please see the screenshot below.
[Galaxy S II I9100G Android Development] Adrian-66:
I have check this on my Phone (CPU Z App.)

power saving Mode: only 300 Mhz

balaced Mode: 300 to 1200 Mhz

Performace Mode: only 1200 Mhz

Can it be that your display of the CPU speed is no longer updated?
[Galaxy S II I9100G Android Development] hamed.stereo:
No, to rapidly fluctuate
[Galaxy S II I9100G Android Development] adxamg:
After 30 hours in energy safe mode, 2 days left in battery stats. Some wake ups. It's working good as it is.

No need to limit cpu frequency. When you limit cpu it will take longer to solve the task. I will not change it.
[Galaxy S II I9100G Android Development] hamed.stereo:
I hope you reconsider. I saw all the Nexus devices with the operating system default. Frequency in power saving mode for better storage battery was reduced. The slowdown also power saving mode after selecting the Nexus and other devices talcous is quite natural. Also now in a state of continuous use on the web only lasts 5 hours battery if the frequency is more limited circumstances of this situation will be better still. If you are listed at 800 Mhz or 1080 Mhz frequencies on, you'll be seeing a little slow. If Snapdragons you see, you'll see that when processing very high (in games) due to a rise in temperature after a while CPU frequency automatically comes down. This would increase the efficiency and reduce the temperature and save the battery better. However, if you still intend to continue the current circumstances, it is best option to control your CPU frequency. Thanks:)
[Galaxy S II I9100G Android Development] adxamg:
Currently cpu frequency is limited only when screen is off. When you activate powersafe, syncing is reduced/switched off, vibration is switched off. I see, you want to limit cpu frequency when phone is doing some task with heavy load. And heavy load will be reached early on this old device.

edit:

hardware_samsung source would expect hispeed_freq here:

/sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq

But our device uses a different path. I will check this.
[Galaxy S II I9100G Android Development] hamed.stereo:
What software do I do with this? Now after the change, error and could not be saved.

Do not change the file after reboot will not return to normal operation? Because the software kernel toolkit when I apply the settings after rebooting, everything goes back to normal operation! The change in frequency is applied even for a while!

As mentioned, I would only be applied in power saving mode frequency variation Is this possible?
[Galaxy S II I9100G Android Development] Adrian-66:
I have looked with a terminal program. Have not found directory or file "interactive"

It would be easier if you could mount the system directory and I could access the pc via USB, how is the full command?

With the editor vim I get the crisis :rolleyes:
[Galaxy S II I9100G Android Development] adxamg:
I will test a different approach. Tuning interactive governor. Something like this:

When screen is off, it will limit cpu frequency to 600 mhz.

When screen is switched on, it will go to 800 mhz first. When there is no demand it will go back to 600/300 mhz. When there is full cpu load, it will increase frequency.
[Galaxy S II I9100G Android Development] McConnor:
There is so much cool stuff added here it is a pity the culprit for the sound distortions/GPS weakness/BT connect problems is not nailed yet... Listening to music/ audio books via BT a lot this is for me a reason to stay with 12.1 even otherwise I think this ROM here is superior... If probable fixes are coming in future releases (new libraries or the like) I will gladly test them... Thanks for still supporting this precious gem of ours...

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] adxamg:
Support...just my personal playground for experiments :D

Did you try bluetooth fix, described earlier in this thread?
[Galaxy S II I9100G Android Development] McConnor:
ATM I am on 12.1

To be honest I tested so much I don't remember for sure if I tested this fix also.

But as soon as I install a cm13 room again for some more testing I will try again. Even more serious weighs the sound distortions problem otherwise one could also listen via cable headset...

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] mohmedxpmpa:
security issue

for security issue the status bar shouldn't available in screen lock :confused:

[IMG="android 6 - I9100G"]https://i37.servimg.com/u/f37/14/22/78/68/14914911.jpg[/IMG]
[Galaxy S II I9100G Android Development] adxamg:
Not an issue. When screen is locked, you should only see a reduced set of quickicons, which are not security relevant.

Notifications can be additionally set to 'not readable when screen is locked' or 'disabled'.
[Galaxy S II I9100G Android Development] mohmedxpmpa:
i need to un-read or scroll quick icons when screen lock

how to do that ?
[Galaxy S II I9100G Android Development] adxamg:
I tested gps with an internal test build. I got a gps fix within minutes. It found 8 satellites. Solution is, to build external libstlport from source and replace proprietary file with it.

Now the bad news. As soon as i build stlport from source and replace proprietary file, sim card is not detected any longer.
[Galaxy S II I9100G Android Development] McConnor:
O No, hopefully you will make to work around that slight problem... Is it due to permissions?

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] adxamg:
It's more like trying to use an driver written for winxp under win10 :D
[Galaxy S II I9100G Android Development] gokhanacaar:
Thank you very much. I used nano gapps. ^ Config file ^ I did not understand it completely.
[Galaxy S II I9100G Android Development] adxamg:
When it's working for you, no problem. But when you're running into problems with force closing keyboard etc. try to unzip opengapps-config.zip on sdcard and use opengapps stock.
[Galaxy S II I9100G Android Development] freecaster:
Last weekend I have installed successfully this ROM, and I have to say a big thank you to the maintainer! It runs good and I do not problems yet. But what will happen, when there is security patch? Will be it dowloaded and installed by update manager on the phone's CM 13 or should I install it on myself from .zip file? What will happen with my apps and their settings? I do not want to lose them.:eek:
[Galaxy S II I9100G Android Development] adxamg:
Just follow update instructions in first post. Since this in not an official build, we can't use official update mechanism. Download updated rom zip to your sdcard, reboot into recovery and install it. All your settings/apps will stay untouched.
[Galaxy S II I9100G Android Development] freecaster:
It sounds good! Thank you very much for your responce! :) Is there any hope to get the ROM to official?
[Galaxy S II I9100G Android Development] Web_Monster:
I installed latest build with opengapps stock and .gapps-conf but it installs only keyboard, no play store available?
[Galaxy S II I9100G Android Development] HieuVi:
No play store for me too, I installed latest build with latest opengapps stock and the config file.
[Galaxy S II I9100G Android Development] adxamg:
Try older builds of opengapps. It was working when i tested it.
[Galaxy S II I9100G Android Development] ze7zez:
That's right!

With every newer version of the applications store google and google services occupy more and more space and bring more and more features.
[Galaxy S II I9100G Android Development] zaidim:
Which version of opengapps? I tried the August build, the Play Store keeps force closed.
[Galaxy S II I9100G Android Development] ze7zez:
Start with a very early version.

Change the date in the following link on the date you want.

[B]https://github.com/opengapps/arm/releases?after=[COLOR="Red"]20160105[/COLOR][/B]
[Galaxy S II I9100G Android Development] adxamg:
I uploaded build i9100g cm-13.0 20161120.

- security fixes

- small changes in sound config (testing)

I did not test it so far. Feedback welcome.
[Galaxy S II I9100G Android Development] Adrian-66:
is this a mistake?

Charge the phone on the computer via USB. Wanted to shut down for an update and then disconnect from the computer to boot for installation. The phone is restarted after shutdown. Only after disconnecting from the USB it has remained down when driving down. ???

phone update is running.
[Galaxy S II I9100G Android Development] ThePhoenixII:
I just updated it from previous release: everything went well. I will post back if I notice something wrong.

What kind of changes did you perform on the sound config ? I did not notice any changes.
[Galaxy S II I9100G Android Development] ThePhoenixII:
Humm.. When connecting to my computer using USB cable, it is not recognize anymore, even if I change the USB configuration in the dev. options.

EDIT : Forget about it. After a reboot, the problem disappear.
[Galaxy S II I9100G Android Development] orb1t:
Hey,

I just got this phone today, I really have to thank you [MENTION=5813522]adxamg[/MENTION] for your rom.

But my post shouldn't be just a "thanks"-post, so I wanted to let you

all know, I repartitioned the system partition to 1GB and data partition

to 4GB with lanchon repit tool.

to install the newest gapps and I have to say, it worked flawlessly, I

even added some with the config like e.g. Chrome.

I heard there were some issues with this tool and XDA so I'm not sure

if I can openly post what I did to get it work so that you can install

whatever gapps package and version you want. But I'm sure I can tell

you guys per PM, so if needed just PM me. (It's very simple for every

chosen partition size.)

Have a great day.
[Galaxy S II I9100G Android Development] adxamg:
I started some experiments with lineage on i9100g.

When i was at it, i built lineage 14.1, based on Android 7.1. I solved all build errors and a flashable rom file was produced finally.

Unfortunately this android 7.1 rom is currently not booting completely and restarting...
[Galaxy S II I9100G Android Development] McConnor:
Man, you are a piece work work... ATM my i9100g runs on the cm12.1 ROM but as soon as you get it booting I will test the ROM same as I did with cm 13... Very excited to see how well the phone performs...

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] ThePhoenixII:
So will I, as I did with the previous.
[Galaxy S II I9100G Android Development] McConnor:
Just got curious how far the i9100 crew got so far - there seem to be some minor hiccup here and there but all in all the lineage OS seems up and running. So unfortunate that adoption of their achievements to our phone is not totally trivial...

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] ThePhoenixII:
I test a I9100 and a I9100P under LineageOS since about a month now, thanks to the hard work of SerenityS and his team.

Both perform really well. But as you mention it, there are slight hiccups (like standard camera does not work everytime on I9100P but it might be my hardware that is faulty).

That's why I really hope Adxamg will have the time to take up the challenge on the I9100G ;)
[Galaxy S II I9100G Android Development] adxamg:
t1 kernel is not up to date anymore. It would need an update for android-7.1 compatibility.

Of course it would be possible to get it running on this device, somehow. But for what? :D

By the way, current problem with rebooting device is an error in selinux init.
[Galaxy S II I9100G Android Development] McConnor:
For what? Just to prove a point...[emoji23] well, with lollipop running the phone is still very usable. Still I would volunteer to test any booting upcoming ROM....

I guess as long as the known bugs from cm 13 are not solved they would prevail in the nougat ROM as well...

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] sonic_ear:
I hope i9100g could run Lineage 7.0 and it would be a legend smartphone?
[Galaxy S II I9100G Android Development] Web_Monster:
Can you make a guide for how to build rom?
[Galaxy S II I9100G Android Development] adxamg:
Yes, i use cm-12.1 on this phone and it's running fine. Unfortunately android security patches are not integrated in lineage android 5.1 branch.

I'm sure there are more problems than this selinux init error when i would continue fixing lineage 14.1 for this device.
[Galaxy S II I9100G Android Development] McConnor:
We will see if somehow you get the beast tamed nonetheless...

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] snapper87:
[MENTION=5813522]adxamg[/MENTION] Seems like you still develop for i9100g? cm-13.0 branch active in your sources. planning to release lineage v13 for i9100g?
[Galaxy S II I9100G Android Development] adxamg:
I was experimenting with android 7.1 build based on lineage earlier, but phone did not boot completely and rebooted into recovery.

Some days ago i built lineage 6.0 for i9100g. But this build did also not boot.

It could be a problem that i did not clean build environment and just migrated to lineage repo. I will clean build environment, redownload all sources and start a new build. Maybe this will improve something, maybe not.

edit: Clean build did not help. But cm-12.1 is working very well on this device ;)
[Galaxy S II I9100G Android Development] Web_Monster:
Are you gave up or continue building the rom?
[Galaxy S II I9100G Android Development] McConnor:
I guess that he still has a real life and therefore building a new version of the ROM just takes time - his spare time! I might be wrong though...

Gesendet von meinem SM-G930F mit Tapatalk
[Galaxy S II I9100G Android Development] adxamg:
There are some lineage source changes (android 7.1) last two weeks which breaks i9100g build.

Have to solve this first. Then i could continue analyzing boot problem.

Also need to check if device is supporting kernel compression with lzma properly. I had to activate it, because bootimage was too big for this device under android 7.1.

After this, i would expect ril, camera and gps could be a problem. Maybe some more.

So, any volunteers?! :rolleyes: :D
[Galaxy S II I9100G Android Development] ThePhoenixII:
I now use a i9100 with Lineage0S 14.1

So, my i9100G is available for some testing. Next week I will have some spare time.

Do you think that the guys building the image for i9100 have the same kernel size problem ?
[Galaxy S II I9100G Android Development] adxamg:
Compression was activated for many devices last time. Also for smdk4412 kernel, which is used by many devices, for example i9100. But this kernel is well maintained.
[Galaxy S II I9100G Android Development] adxamg:
Documentation of CameraHal problem:

CameraHal Errors:

05-26 15:54:53.249 210 210 E CameraHal: [901944] (40163b44) hardware/ti/omap4/camera/CameraHal.cpp:659 setParameters - ERROR: Invalid picture format: jpeg
05-26 15:54:53.250 210 210 E CameraHal: [901946] (40163b44) hardware/ti/omap4/camera/CameraHal.cpp:1379 setParameters - Failed to restart Preview
05-26 15:54:53.251 210 210 E CameraHal: [901946] (40163b44) hardware/ti/omap4/camera/CameraHal.cpp:4279 initialize - Failed to set default parameters?!

CameraHal.cpp, part which causing error 'invalid picture format'

if ( (valstr = params.getPictureFormat()) != NULL ) {
if (isParameterValid(valstr,mCameraProperties->get(CameraProperties::SUPPORTED_PICTURE_FORMATS))) {
if ((strcmp(valstr, android::CameraParameters::PIXEL_FORMAT_BAYER_RGGB) == 0) &&
mCameraProperties->get(CameraProperties::MAX_PICTURE_WIDTH) &&
mCameraProperties->get(CameraProperties::MAX_PICTURE_HEIGHT)) {
unsigned int width = 0, height = 0;
// Set picture size to full frame for raw bayer capture
width = atoi(mCameraProperties->get(CameraProperties::MAX_PICTURE_WIDTH));
height = atoi(mCameraProperties->get(CameraProperties::MAX_PICTURE_HEIGHT));
mParameters.setPictureSize(width,height);
}
mParameters.setPictureFormat(valstr);
} else {
CAMHAL_LOGEB("ERROR: Invalid picture format: %s",valstr);
ret = BAD_VALUE;
}
}

Complete CamerHal Debug Log:

https://www.androidfilehost.com/?fid=24566454284190034
[Galaxy S II I9100G Android Development] donduckt:
logcat log is original Cam after the crash

I don't have the whatsapp
[Galaxy S II I9100G Android Development] adxamg:
New build cm13 20160528 is online.

Internal/stock/snap camera is fixed and should work now. Some parameters are hard coded.

Taking photos with snap is working in good quality, also taking photos in whatsapp.