yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] Badger50:
Greetings to all, and I certainly hope everyone is doing well. I dropped in for a little thread cleaning since things were getting a bit off topic. As a friendly reminder, if you are having difficulties with a particular rom or kernel, please report them in a respectful, and informative way, without impugning the integrity of this, or any developer on XDA, with things you may have experienced in the past.

Furthermore, we would be most appreciative if members would just report potential problems, rather than replying in a confrontational manner, which usually leads to piling on, and the inevitable flame war. So let us please keep things civil and respectful going forward shall we. I thank you all for your cooperation, and have a pleasant day.

-Best regards: Badger50 FSM
[Galaxy S II Android Development] jo-so:
After some days of usage, I can confirm that this helps. I've disabled the Ambient display and saw no crashes any more.
[Galaxy S II Android Development] rINanDO:
Nice! My dirty fix and logging for troubleshooting this issue still leads in rare crashes. The message to display driver is corrupt, causing hangs or null references and reboots. But if my dirty fix is triggered, it crashes the next driver... I saw wifi and touchscreen crash. It always happens (when it happens) when pressing power button to set the phone to sleep. At least after few weeks I never had a white corrupted 'broken' display screen. :)

I will try this workaround and investigate how this actually prevents these crashes.

This helps, thanks guys!
[Galaxy S II Android Development] ol1ver:
Also, I installed micro-g via fdroid (microg repo) and signature spoofing enablement as per OP fails?

regardless of reboot, root etc.

edit: Scrap the above; I think this is a copy/paste thing on the start-post; I see that [1/2] was only merged yesterday :) https://github.com/rINanDO/android_frameworks_base/commit/aaa5bcf5ed39f585000572640de65c965cc7a8aa so most definitely not part of the 2020 release from the first-post.

Gah, the opening post isn't updated with the latest links :) https://xdaforums.com/t/rom-unofficial-11-0-0-r43-i9100-lineageos-18-1.4199759/post-85625999 is the latest zip post :)
[Galaxy S II Android Development] Chicko24:
I took open gapps pico that works great
[Galaxy S II Android Development] ol1ver:
Heh, I could; but i'd prefer to remain google free :)

but with the more recent 18.1 build microg can be granted permissions again; not sure how that matches the github from yesterday; maybe some rendering bug :p
[Galaxy S II Android Development] mirhl:
As with all battery problems, install BBS and check from there?

Sigh.. That sounds like the bug I have been trying to report for almost 10 years.

https://xdaforums.com/t/rom-unofficial-10-0-0-r41-i9100-lineageos-17-1.4022733/page-15#post-82839457

The kernel explodes whenever it doesn't like mounting a partition.
[Galaxy S II Android Development] ol1ver:
I'll also look into the battery stuff; I notice that the battery drain is quite high. One thing I noticed, it might be related to the relative high frequency during 'sleep'. It's currently running at 100Mhz at its slowest, while I'm quite certain that my note2 runs at something much slower. If we can get it to 10 - 25MHz; that's another win there (if we can also scale the voltage down a bit; that's even a bigger win.

As for the bug; yeah the kernel should not explode on mount failures. I think this is some really weird kernel behavior; that's specific to this android build.
[Galaxy S II Android Development] SIRBOJ:
Can you please, port rom for tecno phantom 6 plus?
[Galaxy S II Android Development] ol1ver:
Pretty sure this thread is only about the Samsung Galaxy S2 i9100 :)
[Galaxy S II Android Development] ol1ver:
I would expect that the best work-around is to ensure that twrp/recovery don't auto-mount the partitions, the user can mount them via a click on the UI; update scripts should do this already anyway, and it ensures we still have a recovery shell we can access to manually fix things. I'm not sure however who makes this policy 'twrp shall automount everything from fstab'. I believe we do have a specific recovery fstab already anyway, and so having the 'no-auto' flag there is an easy work-around.
[Galaxy S II Android Development] ol1ver:
I haven't run logcat yet, but I tried to save an attachment from k9, which kept crashing (creating a 0 byte file, so storage access was working) on internal/external storage; Using the 'SimpleMail' app something similar happened.

Also I noticed 'sometimes' the phone just hard-locks, but always 'while' doing something, and you have to force-reboot.

The white snow screen I've also seen twice now. Interestingly enough; the OS seems to be still functional. I could push the menu/back button and got haptic feedback. I didn't have time to poke-around to see If I could get any useful logs however ...
[Galaxy S II Android Development] dark$hadow:
Does anyone know whether triangle-away still works with this + magisk?
[Galaxy S II Android Development] Chicko24:
as far as I've read this, it doesn't go away
[Galaxy S II Android Development] NikkBann:
Hello, I've run into a bit of a problem. So the phone was lying around for some years and I decided to upgrade it to test it out. I was on stock samsung ROM and followed the steps in the post from 1. to 7. and got thread complete and succed 1 (see ss). But when try to go into recovery mode by pressing vol up + home + power, it boots to samsung logo with a yellow warning triangle and is stuck there.

Edit: I think it was due to kies being installed in the pc....Also used battery pull after download got completed and everything went fine accordingly and now I'm running android 11 on s2.....kudos to the developer for keeping the legacy of s2 alive :)
[Galaxy S II Android Development] dark$hadow:
also make sure you press vol up + home + power in the right order, it seems to somehow matter, releasing only power once you see the logo then the rest of the keys when recovery mode starts.
[Galaxy S II Android Development] 2021redmi2fans:
HI everyones:

Is also ok if it is update directly from android version 2.3.3 ? There seems to be a distincted between the European version, the Asia-Pacific version and the Korean version of this machine. . . . . .As long as the model is I9100, can it be used?
[Galaxy S II Android Development] tomasz86:
You can make the other versions appear as i9100, but there are caveats.

For instance, in case of the Korean version, it can be repitted into i9100, but all custom ROMs require a patch in order for SMS to work. I've only managed to find instructions on how to patch Android files up to 7.1. In newer versions, the files have changed greatly, and no sources in the Internet seem to have any information on how to patch the newer Android versions.

Because of the above, if you've got the Korean version, please be aware that SMS will likely not work in LineageOS 8 or newer. Of course, this is true if you're going to use the device with a Korean carrier. I've got no idea whether SMS on such a converted device works in other, non-Korean networks.
[Galaxy S II Android Development] 2021redmi2fans:
Bro, thank you for your reply first! Will it be a problem to use this rom to upgrade directly from version 2.3.3? Is it no need to upgrade the stock of s2 to the latest version first?
[Galaxy S II Android Development] 1victor:
Hi rINanDO, first, thx for your hard work mentaining this 10y old device alive, very good job man, its like 3 weeks sience i f***d up my galaxy s9, and i am using my first phone, the galaxy s2 as daily driver. I am fking surprised man. Except tiktok, all the apps i was using on the s9 kinda works on the s2:)) I am using it at 1400mhz with pegasusq governor, it random reboots sometimes, but its stable enough for daily use. I can t wait to see your builds on los 19 for this phone! Keep up the great work and sorry for my bad english!

Writing this from my galaxy s2 btw
[Galaxy S II Android Development] ronFenomeno:
Hi, I have just tried to update my lineage to the lastest version. I have installed the twrp 3.3.1 version through twrp. It does installing but I find some difficulties on installing lineage and gapps. It throws error

"E1001: Failed to update system image.

Updater process ended with ERROR: 1

Error installing zip file '/sdcard/lineage-18.1-20210912-UNOFFICIAL-i9100.zip'"

I have done wiping data, system, dalvik cache. However, it still gives the same error.

One more thing, when I try wiping cache (not dalvik cache), it also throws error, "mkfs.f2fs -t 0 /dev/block/mmcblk0p7 process ended with ERROR: 255

Unable to wipe Cache"

May I have some advices on it?
[Galaxy S II Android Development] Chicko24:
perhaps you try open gapps pico that works great
[Galaxy S II Android Development] blue whale:
hi

i have lineage-microg 14 installed on my SII i9100, should I repit the phone to install LOS 18 ?
[Galaxy S II Android Development] Chicko24:
if i were you i would do it works great but install the PICO gapps
[Galaxy S II Android Development] blue whale:
also I seek more details on the ''10. Install LOS-18 ( + optionally Gapps or MicroG)'' from the OP

to me I always installed microG from https://download.lineage.microg.org/s2/, so as a full ROM. But I do not know what ''gapps or microG'' means. Is micro-g also an APK or a flash-able zip? if so, where do I get it ?
[Galaxy S II Android Development] Chicko24:
they are all zip

https://xdaforums.com/t/custom-gapps-bitgapps-for-android.4012165/#post-81060605
[Galaxy S II Android Development] Chicko24:
tried both of them did NOT work for me so I took Pico GApps from here

OpenGApps - Browse /arm/20211008 at SourceForge.net

OpenGApps daily releases

sourceforge.net
[Galaxy S II Android Development] blue whale:
by the way, which modem driver do you use ? I seek one for western europe.
[Galaxy S II Android Development] blue whale:
yes i like pico gapps if micro-g is not available. thanks for bitgapps, i will test it first.
[Galaxy S II Android Development] Chicko24:
@blue whale

and now what happen with your Phone
[Galaxy S II Android Development] strann0:
I don't own the SII, but I love the meme still going 😂
[Galaxy S II Android Development] js-xda:
Following up on my previously reported issue:

While I was about to go for the suggestion of @mirhl (see below - thank you again), I found a simple workaround which indicates to me that it should be linked to being stuck somewhere (sleep state?): If I activate in Vinyl the option to stop only after finishing the current song, I have no issues anymore (it stops and no battery drain over night). Makes me think that the trigger loading the next song wakes up the phone avoiding the issues I had. And yes, one could describe it in more technical terms - whoever wants to do so, feel free to add.
[Galaxy S II Android Development] Sebastian323:
Hello,

I have instaled the latest version 2021-09-12 and nano-gapps. The battery is going down to fast, halve in 5:30 H without using it. I tryed bbs statistic, the log-file is attached. It seems, as it doesnt sleep the hole time. I didn't turn on the screen during this time. Is something I can do? Or should I wate for the next update, is someone in planing?

Best regards

Sebastian
[Galaxy S II Android Development] JaLoou:
Thank you so much for your useful honest report!
[Galaxy S II Android Development] js-xda:
Thank you for sharing your experience. Is this just the case after the first boot where still a lot things are happening in the background (building Dalvik & Art) or also after recharging and running the ROM for a bit longer? If the latter, I had also issues in the past (see earlier post here) and could link it to a specific app where I don't want to judge whether a fault of the app or the ROM. Since fixing the setting in the app, I can run for several days again.
[Galaxy S II Android Development] Sebastian323:
Hello js-xda,

it is not the first start after flashing. I restarted it some times, some apps are installed. in the settings/battery is now special app mentioned, that needs to mutch battery. It says, everything is OK. But the battery is emty so fast.

Regards

Sebastian
[Galaxy S II Android Development] js-xda:
Same was here the case but I was able to pinpoint it to the one non-system app that I used. Silly question but just to be sure: On stock, the battery was lasting longer? On the aspect to minimize "consumers", have you tried OpenGAPPS pico or without GAPPS?

Again, I don't want to judge without deeper knowledge whether it's the ROM or some other apps but sharing my experience (without GAPPS by the way) ... just as a disclaimer to stop certain people to jump on it.
[Galaxy S II Android Development] mirhl:
You didn't grant the app all the right permissions, and you have no wakelock information.
[Galaxy S II Android Development] Sebastian323:
Hello,

how do I give the right Permissions to the app? I think it needs root, but how should I give this?

I have installed Gapps Nano, because I need the dictation-Option.

Best regards

Sebastian
[Galaxy S II Android Development] JaLoou:
Thank you again! Please, continue your reports here about issues in this firmware. It is very useful to us.
[Galaxy S II Android Development] JaLoou:
I was trying to use your LOS 14.1 firmware on my GT-I9100 with a 128 GB microSD card almost full of pictures, videous and other stuff.

And one among many other issues of your firmware, was that it often creating giantic database files by sizes of few gigabytes at '/storage/sdcard0/DCIM/.thumbnails/'

in my smartphone wasting its CPU, its internal storage and draining its battery quickly.

While Samsung's latest official firmware is creating also similar files on my smartphone but rarely and by a much smaller size even now with an inserted 256GB microSD memory card also almost full of various videous, pictures and etc.

I was not using your LOS 18.1 firmware due to worse feelings after my bad experience with your LOS 14.1 but I guess that one of the main issues (the battery draining, CPU wasting and the smartphone overheating) of your LOS 18.1 now is same like it was before in your LOS 14.1 for Galaxy S2: extensively often creating excessively giantic database files for no clear reason.
[Galaxy S II Android Development] zpunout:
Which gallery app are you using? The one included in LineageOS? I consider this device to be a trophy phone now as it is 10 years old, so I think modern style tasks running on old hardware would indeed be more cpu intensive compared to old versions of software. Also, the battery is only 1650mAh in capacity which is tiny compared to more modern phones of similar size such as a Sony XZ2 Compact, Pixel 4 or Galaxy S10e. Which are all close to the 3000mAh capacity.

I have a couple of ideas which might help.

1. Try a different gallery app from F-Droid such as Simple Gallery. You might find an alternative which has thumbnail settings to be less cpu intensive.

2. Try an aftermarket oversized battery. I don't know what's it's like to use, so I'd love to hear back about this. Here's one example which is 3500mAh and comes with a custom sized back cover. Link
[Galaxy S II Android Development] JaLoou:
I was just returned to Samsung's latest official firmware with Android 4.1.2 for Galaxy S2 and almost all problems are gone away. So, I'm happy with it.

It is not the ideal firmware but much more useful according my experience.

I'm still watching to custom firmwares announcements for Samsung Galaxy S2 but now become very cautious about it after my personal strongly disappointing experience with LOS 14.1 and based on it RR 5.8.3-5.8.4.

As an ordinary smartphone user I do not found a worth reason for flashing the risky custom firmware instead of reliable using the official original firmware for Galaxy S2.
[Galaxy S II Android Development] zpunout:
Yes. I think if you use Google Services, then the stock firmware is usually the best option unless you want a newer version of Android or MicroG.

If you want to avoid Google services for privacy reasons, then I think a custom OS vanilla build such as this one in the OP is a good option. I often install vanilla custom OSs on friends phones such as the Galaxy SII and my own phone for privacy reasons.
[Galaxy S II Android Development] DevisG79:
Then what are you doing here if you think this firmware is risky. Then stick with the original Samsung firmware. No one is forcing you to. Above all, no one is forcing you to lie here.

BTW...The Galaxy S II can be used with microSD™ or microSDHC™ memory cards with a maximum capacity of 32 GB. I have a 64 GB micro SDXC Class 10 card in it and everything works. So I wouldn't recommend inserting cards with an even larger capacity.
[Galaxy S II Android Development] JaLoou:
I hope custom firmwares can be better: less risky, more reliable and convenient for its users. Here I'm trying to help with it by my tips, by my honest warnings to people (include firmware developers).
[Galaxy S II Android Development] JaLoou:
I have opposite opinion based on my successful experience:

I recommend to use Samsung Galaxy S2 with microSD cards up to 256GB of storage because modern fast microSD cards can slightly increase the performance of the old smartphone and yet adding more storage space. So, I recommend really to choose only a firmware which works with such memory cards reliable without a battery drain.
[Galaxy S II Android Development] zpunout:
I'm curious if it's possible to get this working on an i9100T. I read here that I just need to use the right modem firmware.
[Galaxy S II Android Development] tomasz86:
Thank you very much for keeping realising new builds for the old device :).

I just wanted to mention that disk encryption seems to be broken in the ROM. If you try to enable encryption, the ROM reboots, but it goes straight to the desktop with no actual encryption taking place.

I've found https://gitlab.com/LineageOS/issues/android/-/issues/1027, which describes similar symptoms. I've tried to manually resize the data partition as described there, but the furthest I can ever get to is an encryption screen that is stuck at 0% with "00:00" time remaining. There is no progress though, and the actual encryption still doesn't happen.

My newbie guess would be that the issue may have something to do with the emulated storage and the partition table.
[Galaxy S II Android Development] comishi:
Hi! Does OTG work on this rom?

Thanks in advance
[Galaxy S II Android Development] rINanDO:
I gave it a try to fix this, but I don't have the knowledge to fix this :(.
[Galaxy S II Android Development] rINanDO:
I don't know. I haven't done anything with OTG, so if it works in this rom, we are lucky :)
[Galaxy S II Android Development] rINanDO:
I just released the first Android 12 ROM for S2 :)

https://xdaforums.com/t/rom-unofficial-12-0-0-r18-i9100-lineageos-19-0-alpha.4380641/
[Galaxy S II Android Development] 1victor:
it works i used it many times
[Galaxy S II Android Development] grlzz:
Hi,

thanks for sharing.

Would you mind telling me how did you install it, using heimdall?

I run

heimdall flash --KERNEL boot.img

but did not work

thanks in advance!
[Galaxy S II Android Development] grlzz:
( I have been trying with another LOS too, but I got issues... https://android.stackexchange.com/questions/244656/adb-sideload-stuck-at-36 )
[Galaxy S II Android Development] uig200:
Unfortunately, I won't be able to tell you until February because only then I will have access to my old Arch Linux computer that I use for developing purposes.
[Galaxy S II Android Development] grlzz:
ok thanks anyway -- but, could you tell me if the command you run looks more or less like this one?

https://www.reddit.com/r/LineageOS/comments/5yvv35/_/dew4qxl

thanks :)
[Galaxy S II Android Development] grlzz:
Hi,

thanks for the ROM!

premise: I am new to Android dev and I am on ubuntu

I am trying to flash it using heimdall, using

heimdall flash --repartition --pit i9100-LOS-16.0-Emulated-Storage.pit --KERNEL boot.img --RECOVERY twrp-3.2.3-0-i9100.img

but I still did not get there...

My phone is stuck on the initial screen, with the yellow warning sign at the bottom

any help would be very appreciated

thanks!
[Galaxy S II Android Development] hillbillie:
Have you tried deleting that directory and then create a file of the same name... '/storage/sdcard0/DCIM/.thumbnails/' ?

I've found it useful on various fones with different OS/Android versions.
[Galaxy S II Android Development] JaLoou:
No, due to proper picture thumbnails are needful sometimes for some programs on a smartphone.

Instead I just found and did flashed an one of the latest Samsung's official firmwares for Galaxy S2 and become happy with it: it is fast, it is reliable, it is energy efficient creating only relatively small databases even with inserted a 256GB microSD card almost full of photos and videous (the screenshots attached) and yet with an active auto phone call audio recording and all it with a not new non-original battery!

So, this Samsung's official firmware is a good example for custom firmware developers.
[Galaxy S II Android Development] hillbillie:
Which version of stock, just popped LOS (latest in the thread, about ten minutes ago!

Which stock rom (version etc)? Just popped the latest - from this thread.

Where's the cpu governor.....? - 20 minutes back!
[Galaxy S II Android Development] MaddogIT:
An outdated official firmware is NOT a solution.
[Galaxy S II Android Development] hillbillie:
Ran into the same problem, then realised ODIN version number (page 1) is NOT the latest.

Read the line .... "Upgrade from Samsung stock ROM using ODIN 3.07"

Downloaded the recommended version , as per page one, completely different screen (as in PIT and PDA filename on the first screen), worked fine. (didnt try heimdall, why bother if it works!?
[Galaxy S II Android Development] JaLoou:
I did attached the screenshot one of the latest Samsung's official firmware for Galaxy S2, which I use now successfully. As I little bit know there is yet more newer version(s) of Samsung's official firmware for Galaxy S2.

So, they are the feasible firmwares to choose if the smartphone users want to break with custom firmwares.
[Galaxy S II Android Development] JaLoou:
Is not a solution for what?

According to my personal experience a Samsung's latest official firmware for Galaxy S2 is the best firmware for use the smartphone everyday even now being happy with it actually.
[Galaxy S II Android Development] zpunout:
I'm interested in buying a Galaxy S2 for $7 on ebay just to have as a trophy phone to run Android 12 on. Why? Because I think that is so cool! Imagine pulling an S2 out of your pocket at a party today or years from now and see the amazement as people gaze at the really old phone running Android 12 with apps which require an API of 31.

As a daily driver? For me, I'd probably get an aftermarket oversized battery with modified back cover to get me through the day. My main reason for using a custom OS is to be rid of the privacy invasive Google Services Framework, so yeah, different solutions for different requirements.
[Galaxy S II Android Development] MaddogIT:
Yeah... with tons of known security holes, not compatible with most apps, really the "best" choice.

You can of course try to recover the sources of proprietary binary code... Without that code, this custom firmware is the best you can have.

As many of us already said, sources are available, you can check, compile or even improve
[Galaxy S II Android Development] hillbillie:
Definitely agree, my daughter just gave me 7 (some broken-some not!) Phones,

First out of the bag an S2!

Bang, xda, ooh, android 11!

Slapped it on, but serious response and battery problems.

(Needless to say it's cute)

Any idea how the other versions (11 > 6) compare as "A daily driver"? I'd like to try.

Thanks
[Galaxy S II Android Development] zpunout:
Dunno, I handed back the SII I installed Android 11 onto back to my friend. I'll see if he'll give it to me again as I want to install Android 12 and see what it's like.