yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] lallolu:
The issue was not caused by the backlight itself, it is the notification using the backlight as notification's light. This may not be very apparent in my earlier reply.

The solution was not to disable backlight but to disable notification using the "button light" as "notification light".

Try to be less rude in your replies.
[Galaxy S II Android Development] DevisG79:
Did you try kTool from Hellcat. It helped me a few times. You can also install stock rom. But remember to Install the 3 pieces stock firmware. It also worked for me.

Concerning the battery Problem. It must be gapps that are causing battery drain. I have no gapps installed.
[Galaxy S II Android Development] DevisG79:
Sorry for another post, but I don't know why I couldn't attach the image in the post before.
[Galaxy S II Android Development] vdhero:
The power menu can be fixed by pressing "* # 87976633 #" in the phone app. For god's sake, this phone contain tons of sh*t that will kill you or f*ck you up, that's also so disgusting.
[Galaxy S II Android Development] doctor-who:
Where to find 3 files stock? It's always 1 file, im on stock now

Thanks mate ill try, just to find where is phone, hidded from my sight just not to smash it
[Galaxy S II Android Development] DevisG79:
You can ask Google. I used updato.com
[Galaxy S II Android Development] doctor-who:
thanks man that only thing that worked

that ktool is in chinese dont understand what it says, can that fix lost imei?
[Galaxy S II Android Development] DevisG79:
If you made a Backup from your EFS then yes. There must also be one in English.

Before rooting a phone you have to understand easy things like this.
[Galaxy S II Android Development] doctor-who:
dont understand why big deal abt that backu, i have imei stored on back of my phone, and with xposed module i can write it again but i have issue with imei sv and basaband version
[Galaxy S II Android Development] the.gangster:
I referenced to the solution that worked for me already. Did you read the thread I had linked already or within the 6 minutes you took to reply?

Not meant to be offensive, but I doubt that. As it describes a few steps more than just flashing stock ROM 4.1.2. But on the other hand it might even work without having a backup prior to loosing IMEI. It's worth reading. I tried procedure also on custom ROM back then but it really only worked on stock.

In my case .nv_data.bin was 0 bytes. But it was not enough to simply copy .nv_data.bak without doing the rest. I really had to go through the whole process. But finally it worked.

I know, Mr Know-it-all (I think you named me before editing your post) understood the problem and the solution already.

It was not meant to be rude. But yes, my bad!, only first of the three answere was really pointing to your problem. That's why I gave you the hint on keyword BLN, which is also referenced in OP (as there was also a tool in place to control exactly that before its implementation got modified). Anyway, you fixed it.

And as there were posts regarding battery drain due to notification light, make sure you use static effects ('Steady' or 'Dimmed' in BLN_MOD/ should be 'Always on' in LOS 'notification light' settings menu) not to prevent deep sleep. See screenshot.
[Galaxy S II Android Development] aminya:
LineageOS - MicroG - i9100 (SII)

Dirty flashed (wiped System, Cach, Dalvik) the lineage-14.1-20180802-microG-i9100 alongside with lineageos-for-microg-keys-migration over lineage OS nightlies. However, I get the system UI stopped constantly. I can not flash the official lineage nightly anymore, and I get an error for that.

Any suggestion other than wiping data? :(

Update: finally wiped data, there was no other way. I am just restoring my data by extracting from the Twrp backup I took after crashes.
[Galaxy S II Android Development] Midaa:
I just discovered that my previous battery drain problem was caused by the stock music app keeping my cpu awake during hours and hours even though I don't even listen to music. I disabled it, and only lost 2% in 8 hours :D
[Galaxy S II Android Development] Konni62:
Lineage OS 14.1 and Samsung S2 GT I9100 no update possible

I installed Lineage 14.1 lineage-14.1-20180726-nightly-i9100 on my old Galaxy S2, which worked great. Partition is 2GB system 6 GB Data.

If I start to update with TWRP (tried with older and latest version of TWRP, I mean flash latest build - but wiping dalvik and cache before) immediately this error message appears :

Have flashed the device several times with the original stock firmeware and tried various partition sizes , the installation always succeeds but later updates runs again on the error mentioned.

regards Konni

.....

sysutil: mmap(299374828, R, PRIVATE, 20, 0) failed: Out of memory

sysutil: Map of '/sdcard0/Lineage_Downloader/lineage-14.1-20180809-nightly-i9100-signed.zip' failed

Failed to map file '/sdcard0/Lineage_Downloader/lineage-14.1-20180809-nightly-i9100-signed.zip'

Error installing zip file '/sdcard0/Lineage_Downloader/lineage-14.1-20180809-nightly-i9100-signed.zip'

Updating partition details...

I:Unable to mount '/usbotg'

I:Actual block device: '', current file system: 'vfat'
[Galaxy S II Android Development] Seffundoos:
<3

I am currently using lineage-14.1-20180809-nightly-i9100 and it has completely transformed my phone. Excellent build. Everything works astonishingly well. Battery life is exceptional with a few tweaks (extended battery case still comes in handy though).

Cannot recommend highly enough - this OS makes the 7-year-old S2 viable in 2018.

TIPS -

DON'T FORGET TO REPARTITION

*I am using *

TWRP Version - twrp-3.0.2-1-i9100 (Had major/catastrophic issues with newer TWRP versions)

Lineage OS Build - lineage-14.1-20180809-nightly-i9100-signed

GAPPS build - open_gapps-arm-7.1-nano-20180812

Initial boot time after Lineage OS installation can be up to 30 minutes. The build I am using was around 10-15 minutes I think.

When you boot into Lineage OS for the first time and the systems asks you to format the SD Card FORMAT IT AS REMOVABLE STORAGE!!!! This seems to provide the best results - (No negative disk space sizes, application file access errors, launch failures, etc)

You may encounter MTP Service issues. Go into Settings -> Apps -> Tap Menu in top right corner -> Select 'Show System' -> Scroll down to 'MTP Host' and select it -> Disable -> Restart Phone. This should eliminate the annoying error and boost battery life. Doesn't seem to effect anything day-to-day. This has been a long-time issue with LineageOS and the i9100 and it doesn't seem to be going away any time soon.

May also be worth disabling the default music application in settings to increase battery life.

Leave LiveDisplay enabled and 'Reduce Power Consumption' option selected for better battery performance.

Install Facebook Lite & Messenger lite - Facebook is a whore.

Puffin Web Browser seems to offer the best browsing experience in my opinion. Chrome seems a little choppy when loading/scrolling.
[Galaxy S II Android Development] Buratei:
Installed the latest version on my borrowed SHW-M250S (korean skt ver.) - everything works, at least the stuff I need.

The only thing I've noticed is a possible orientation bug: chrome and nav app turns sideways (horizontal) at the slightest flick, but never returns to the portrait mode. This is even when I made sure auto rotation is turned off (both in display and accessibility IIRC). Since I am using this for a dedicated GPS nav duty, I keep getting the screen stuck in the wrong orientation whenever I take a corner a little too fast. Backing out to desktop fixes it without a fail, so I keep repeating the process (show desktop -> relaunch the nav app)
[Galaxy S II Android Development] philippe734:
Works fine on my old i9100, but GUI slower than my previous rom used: CM 11
[Galaxy S II Android Development] vdhero:
This bug only appear on m250 variants. There are no fixes for now and may be will never
[Galaxy S II Android Development] K.D.A:
Help me please. Periodically, the cellular signal disappears. For some unknown reason, the cellular signal completely disappears, switching to flight mode does not help. Only reboot. I guess it's all about fast dormancy, but I'm not sure.

Is there anyone who has encountered a similar problem? Replacing the modem also does not help. I tried xxms3 and xxms4
[Galaxy S II Android Development] andreoide:
My S2 with this release becomes more and more slow and irresponsive .

Maybe its time to day goodbye?

I use it as spare phone but mainly to stream YouTube to.my Bluetooth UltimateEars speakers. But even that is only possible with the greatest patient and difficulty and waiting for a response to get things to work every time :(
[Galaxy S II Android Development] MikiGry:
[MENTION=5156684]andreoide[/MENTION]

Install fstrim from Google Play and run in on all partitions. It's going to take a very long time to trim all of them but after that Your SII should be good as new :)
[Galaxy S II Android Development] joskoolen2103:
I have run fstrim and it take's no more than 3 seconds....
[Galaxy S II Android Development] MikiGry:
[MENTION=6679714]joskoolen2103[/MENTION]

If You trim regularly, than yes. But if You don't , it's going to take a lot of time to trim everything

---------- Post added at 10:24 PM ---------- Previous post was at 10:00 PM ----------

[/COLOR [MENTION=6679714]joskoolen2103[/MENTION]

If You trim regularly, than yes. But if You don't , it's going to take a lot of time to trim everything

---------- Post added at 10:25 PM ---------- Previous post was at 10:24 PM ----------

[/COLOR [MENTION=6679714]joskoolen2103[/MENTION]

If You trim regularly, than yes. But if You don't , it's going to take a lot of time to trim everything
[Galaxy S II Android Development] andreoide:
I wish .... I already used that app... No result zo far :-S
[Galaxy S II Android Development] Sub_Zero2:
I recommend to disable all the background processes/apps/services that you don't need, to free up some RAM (memory) (I think you can find it in developer options). It will improve performance aswell.
[Galaxy S II Android Development] Coaster750:
A Few Issues I Could Do With Help On

I’ve run LineageOS 14.1 now for a few weeks, including updates when they come out. Overall, I’m very impressed. It seems pretty stable to me even though the screen “freezes” for a few seconds every now and then and it occasionally goes “dead” on me. A few things though I would like help/comments on:

1.	It seems battery heavy. For example, if I use the TomTom Go App in my Brodit active car dock, the battery level constantly drops. In other words, the charger can’t keep up. Is this something others have experienced? When the phone was running stock 4.1.2, the charger could keep up OK. Any ideas on how to keep my phone operating for more than a couple of hours from a full (new, Duracell) battery when Go is running?

The same is true when running my music player (Rocket Player). Even with a clip on battery pack, it loses charge and runs out within 4 hours or so. Again it didn’t do this with 4.1.2.

2.	I sync my Playcounts with iTunes using iSyncr but have found that this is not working in LineageOS unless I delete the xml file every time. Not found another solution for this yet on the iSyncr website. Again, it didn’t behave like this with stock rom.

3.	The phone doesn’t “remember” some settings. E.g. the Home app (Trebuchet etc) has to be set every time the phone is restarted even though I select “always” when asked to choose a home app. Another example is the battery saving option. It just switches off, frequently.

4.	I can’t get the phone to reliably connect (by Bluetooth) to my Parrot Mk9200 car kit. I have to switch Bluetooth off then on again on the phone and manually connect the two devices from the Parrot menu. A bit of a faff every time. I have installed Bluetooth Auto Connect but this is very sporadic in whether it works or not. It quite often crashes too.

5.	Even when I get the phone to connect to the Parrot, I cannot use voice dialling or select contacts to dial from the Parrot device. The Parrot just says “Phonebook is busy …..”

6.	When I put the phone onto its desktop PC sync dock, by default, it only charges. I have to manually set it to Transfer Files mode every time. This is different from the behaviour when it was on 4.1.2. Anyone know how to change this please?

7.	Several apps frequently stop working. MTP for one but a fair few come up now and again. Anyone else getting these and found a solution please?

8.	Answering a phone call is a challenge if I want to know who is calling first. My watch vibrates for several seconds (>5 secs) before the phone rings but the screen does not turn on for about 10 seconds and then generally doesn’t tell me who is calling until after the call ends. Any clues anyone please? I can answer every call by pressing the power button but that means I answer every call – including those nice folk trying to scam me. If I can see the number calling, I tend to turn those callers off. At present, I can’t do this.

9.	Wireless and Bluetooth seem to switch off at times. No idea what the pattern is yet but I don’t think I have any battery saving parameters set.
[Galaxy S II Android Development] vdhero:
Seem like you got a heavy use on your phone. There are lots of changed things through every android version so some functions like auto connect to computer to transfer file is not anymore. MTP is a known bug in this ROM and it exists on other LOS 14.1 based ROM as well, it can't be fixed. The bug number 3 appears to be some problem with data and cache. I would recommend to switch to some other ROMs like LOS 15.1 and Dot OS oreo for example. There is no MTP bug in thoose ROM, you just need to tweak the scanning a little bit and it's good. The only problem in 8.x ROMs are Vsync which is Video and Camera related, and V-sync is not a big deal because it just some line going from this side to the other side for less than a second.
[Galaxy S II Android Development] Coaster750:
Many thanks for the prompt reply. Dot OS Oreo does not seem to be for the Galaxy S2. Please advise if I have misread this. I have tried 15.1 before but encountered loads of problems with the installation - boot loops etc. I'll have another go now I know a fair bit more about what I am doing. Just doing a backup but will leave it till tonight to have a go at installing. As for the heavy battery use, I have uninstalled pretty much everything and it is still a pain. I have tried another new (supposedly) genuine Samsung battery but still no good. Maybe 15.1 will work for me.

Thanks again for the helpful suggestions. I was starting to tear my remaining hair out.
[Galaxy S II Android Development] vdhero:
You can get DotOS oreo for s2 here. You should make a clean flash for safety. You should use TWRP 3.1.1-0 as it is the most stable TWRP for the S2 to install that.
[Galaxy S II Android Development] xTerraH:
Any idea on what kernel I can run in conjunction with this rom to achieve an overclock of 1.4-1.5ghz?

Cheers
[Galaxy S II Android Development] guest4711:
No one. It would burn your fingers (or anything you put your phone onto).
[Galaxy S II Android Development] evo_tr:
A rom that lasts a week
[Galaxy S II Android Development] guest4711:
Any special settings? Greenify? KernelAdIutor?
[Galaxy S II Android Development] evo_tr:
No nothing:)

Just removed or freezed all the apps and services which i don't use. No gapps installed. Only installed apks chrome and instagram and using for 15-20 min. per day with wi-fi. Rest of the week the phone is at standby waiting with wifi off.
[Galaxy S II Android Development] :
Not really. I have been using my "home-compiled" kernel where I added overclocking support, and the phone runs stable at 1.4 GHz. I also increased the thermal throttling temperature from 61 to 78 °C to keep the higher clock speeds longer. Yes, the phone does run hotter, but so what? As long as everything operates stable, I do not think that there is any problem with that. I had other phones (like the Galaxy Nexus) which would run crazy hot - much hotter than this one - and still there were no issues ;).

Everything above 1.4 GHz will eventually lead to freezes though, at least on my phone. Higher voltages are probably needed, but I have not experimented with that yet.

Just for the record, this is my current CPU frequency distribution:

The 800 MHz time is so high only because I have input boost set to this frequency. There are too many dropped frames and choppy scrolling without it.
[Galaxy S II Android Development] sajjads24:
hi

i am can not update lineage 14.1 on i9100 via twrp and show this error massage !?:

how fix error and update lineage 14.1 ?
[Galaxy S II Android Development] sajjads24:
so it's good overclock :good:

please insert download link "home-compiled" kernel for test ?
[Galaxy S II Android Development] vdhero:
Here's a tip to keep it cooler: install a DIY cooling system, I'll guide you through all of the steps

You'll need :

-Thermal Compound, you should get the Silicon one, it's cheaper and safer than liquid metal which can break the phone

-Copper Tape or alluminium foil, both of them work just fine

-screwdrivers to open the phone

-a galaxy S2 LOL

.First step is to open the phone up, remove all screws and unplug all cables, then remove the motherboard of the phone

Then locate the Cpu, it's the biggest one in the back of the motherboard.

Stick some copper tape on it and the place when it's going to contact with on the screen

put some thermal compound on that copper tape and carefully install every components back to the phone

After this, your phone should reduce heats. I've done this to my S2 and it worked greatly. just need to be careful
[Galaxy S II Android Development] :
Well, I did not really intend to share it but if you are interested, the kernel is available at https://github.com/tomasz1986/android_kernel_samsung_smdk4412. Just go to Releases, download the newest zImage.img and flash it with TWRP as boot image. Remember to make a backup of your current kernel / ROM before doing anything!

Please keep in mind that I am not a professional programmer or anything like that. This is just a hobby and the kernel was created purely for my personal use. The main premise is to get maximum performance out of this old device. Do not expect any sophisticated or advanced features. In fact, I have actually removed some of the options present in the original LineageOS kernel. If you want details, just check the commit history at https://github.com/tomasz1986/android_kernel_samsung_smdk4412/commits/. I always try to add descriptive message to all my commits so they should be understandable even for someone who knows nothing about coding.

At the moment I still need to modify the ramdisk to set some of the settings on boot. If you do decide to flash the kernel, then I would suggest to install Kernel Adiutor (https://f-droid.org/packages/com.nhellfire.kerneladiutor/), go to CPU governor settings and change freq_up_step and freq_down_step to 100000 (from 70000) for better performance. I personally also set input boost to 800 MHz on both cores, and input interval to 1280 ms for less UI lag. The CPU is overclocked to 1400 MHz by default, but feel free to set it lower if you experience any instabilities. Please also let me know how the kernel works ;).

Next I am planning to add Magisk support to the kernel, but doing so requires backporting of several upstream kernel patches which gets complicated at times. The single patch mentioned under "Notes & Troubleshoots" in the Magisk thread (https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445) in our case is not enough.
[Galaxy S II Android Development] i9100xxx:
Hello.

I need help. Does this ROM have only 3G network in settings? I would like to use 2G network. I only have 3G in options. On the original stock ROM I coud choose 2G, 3G and other options.

I know that "Toggle network type 5.0 (root) apk" allows to switch between networks but requires root.

I do not want to have root because bank applications do not work.

The "Magisk" application should hide root, but it does not work on i9100 LOS 14.1.

Has anyone managed to run Magisk? I would like to hide root, some banking applications do not work when they detect root.

Any ideas?
[Galaxy S II Android Development] :
Could you open the *#*#4636#*#* hidden menu (https://xda-developers.com/codes-hidden-android/) and check what network is set up there? On my phone, I can switch between 2G and 3G (even though the carrier itself has no 2G towers :p).
[Galaxy S II Android Development] guest4711:
Did you read the post one above yours?

And I tried to explain it in another threat: https://xdaforums.com/galaxy-s2/development-derivatives/rom-lineageos-15-0-t3674567/post77635644
[Galaxy S II Android Development] i9100xxx:
I only have the "3G" option in the menu: Mobile network settings -> Preffered network type.

There are many options in the hidden menu. There are options I'm looking for. Unfortunately, they only work until the restart. After restarting, the option "Global auto (PRL)" returns. I would like to set "GSM only" permanently, not only until the phone is restarted.

It is a pity that Magisk does not work on i9100 :(
[Galaxy S II Android Development] :
Has it always been like that in this ROM? I am not sure what the reason may be, but you could try either reinstalling the ROM or trying our other ROMs (after doing a full backup of your current one) and see if you have 2G there. This is the easiest method to check if this is related strictly to this LinageOS 14.1 ROM or not. Otherwise you would have to dig into the ROM's source code to find out what exactly decides which options are present there.

Mine is also set to "Global auto (PRL)" but both 2G and 3G are present in the network settings, so I guess that something else must be going on in your case.
[Galaxy S II Android Development] i9100xxx:
I found information on the internet describing the problem.

"With the introduction of the new version of the Android operating system "Android 4.4 Kit Kat", some users have found that when using giffgaff, O2 or Tesco SIM cards they no longer have access to the "2G ONLY" mode (found in Settings > Mobile Networks > Network Mode), but instead only have the "4G" and "3G" options.

We've found that the "2G ONLY" mode DOES appear if using other networks' SIM cards so the issue seems to be restricted to Android 4.4 on the O2 Mobile Network."

The problem has existed since Kitkat. On the Jelly Bean ROM all options are available. I checked it.
[Galaxy S II Android Development] sajjads24:
hi

can i use it :

https://download.msm8916.com/ZRAM/

for change zram space after install lineage 14.1 on i9100 ?
[Galaxy S II Android Development] :
The script only edits the /system/build.prop file adding these lines:

ro.config.zram.enabled=true
ro.config.zram.size=x

where x is 128/256/384.

As such, it should work on any Android device with ZRAM support in the kernel. I personally disable ZRAM all together (and KSM too, for that matter). This CPU is not powerful enough to deal with memory compression, as it is already maxed out even when performing normal system operations.
[Galaxy S II Android Development] Solpero:
Large memory usage by System

Hello, isnatlled Lienage OS14.1 and Gapps Mini and used 8,39 GM of my memory.

After repartition to GB with new PIT it doesn't see the memory clearly. It states SD card demounted but still detects 14 GB so not splitted but impossible to see .

Start again with new installation?

What is the best PIT?

Should I clean Dalvik and Cache?
[Galaxy S II Android Development] TriboDoP:
use the app disc info from playstore to to see the real size of partitions.

any pitfile with 1 GB for system and at least 4 GB for data will be fine (there is no best)

if you used odin for repitting it is important to make a proper wipe.

if you used the lanchon repit tool/zip wiping should be included.

clean install of rom is always advised (wipe system, data, dalvik, cache)