yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] rINanDO:
Hi,

Well... There are a lot of causes ;) You really need TWRP 3.3.1-1 because of emulated storage. And also you need the emulated storage pit. You'll find these in the OP. The ROM could fit in 1GB system partition, but you can't install pico OpenGApps.
[Galaxy S II Android Development] kalagani:
You are true, so I made new heimdall command flashing and using 3.3.1-1 recovery and your .pit

heimdall flash --repartition --pit i9100-LOS-16.0-Emulated-Storage.pit --RECOVERY recovery.img --no-reboot

then the adb sideload lineage-17.1-20200613-UNOFFICIAL-i9100.zip (after an adb reboot recovery)

And now, my phone is running with the Android 10 :+)

Thanks a lot rINanDO and also all developers that were working on this S2.
[Galaxy S II Android Development] kalagani:
SU replaced by magisk

Hello,

in fact, the previously lineage-15.1-20181010-UNOFFICIAL-i9100_SU_MicroG.zip did not embbeded GApps, only SU, so to replace,

like I understood just need to flash the ...boot_magisk.img instead of boot.img, so I made this

heimdall flash --KERNEL lineage-17.1-20200613-UNOFFICIAL-i9100_boot_magisk.img

But, now I do not find how set ADB or applis to root?
[Galaxy S II Android Development] ozbargainerforlife1:
stuck on boot

Hi,

I have followed through steps on my s2. After step 6, my ODIN says Pass. I shut the phone but when I try to boot into recovery mode, it is stuck on the boot screen.

Please help how do I go into recovery mode?
[Galaxy S II Android Development] kalagani:
Hello,

do you press together the 3 buttons volume up+home+power?

PS: I am under Linux, so I do not use Odin
[Galaxy S II Android Development] guest4711:
You should use Magisk Manager to allow root access for apps.
[Galaxy S II Android Development] kalagani:
How?

Thanks,

but how? Where find it?
[Galaxy S II Android Development] guest4711:
If not already installed, you should fetch it from GitHub. See https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445/post68966662
[Galaxy S II Android Development] hulahala:
i can not connect to WPA2 network. EAP-Method: PEAP; Phase 2-Authentication: MS-CHAP v2; CA-Certificate: do not validate.

It does not save the parameter for the CA-Certificate and changes back to :choose
[Galaxy S II Android Development] kalagani:
Magisk: su commands are NOK

Thanks,

on this S2, on an adb shell terminal, I see the magisk commands

$ magisk --list
su
resetprop
magiskhide
i9100:/ $

but the su commands are NOK

$ su -
Permission denied
13|i9100:/
su -l root
Permission denied
13|i9100:/
$ su --login root
Permission denied
13|i9100:/ $

So, something else to do or install?
[Galaxy S II Android Development] Linuxci:
Please help me to install stock rom from lineage 17.1

Hello riNando,

Can you please help me about the instructions to install stock rom ?

Thanks.
[Galaxy S II Android Development] guest4711:
It looks lije you have denied root access for your terminal app.

See Magisk Manager, SuperUser.

Sometimes you may miss the acess/deny prompt. So you may try MagiskManager-> Settings -> SuperUser Access (should be ADB and Apps) and -> Automatic Response (change it to Grant).
[Galaxy S II Android Development] w coast:
How to install with magisk?

I've sucessfully installed lineage-17.1-20200526-UNOFFICIAL-i9100.zip following to the great description. Now I want to add magisk. May I just install lineage-17.1-20200526-UNOFFICIAL-i9100_boot_magisk.img with TWRP? Do I have to chose "boot" or "recovery" partition for this installation?
[Galaxy S II Android Development] TriboDoP:
Yes and chose boot
[Galaxy S II Android Development] w coast:
Worked great - thank you so much!
[Galaxy S II Android Development] OllieW:
Small update: It seems that the SIM RIL racing condition behavior is different if I use another SIM card - my old Telefonica o2 Germany SIM (Full-SIM UMTS/GSM) makes much more problems that my new T-Mobile Germany SIM (Triple SIM). Unfortunately the WLAN connection is not very stable (disconnects often and reconnection can sometimes only be forced via WLAN settings menu - connections is also lost in standby and automatic reconnection doesn't work most of the time).

Everything else is running nice so far - LOS17.1 on i9100 is amazing! Thanks for this great piece of work.. ;)
[Galaxy S II Android Development] rINanDO:
New build is up!

During helping for i9300 LOS 16.0/17.1 I have seen the same crashing issues on our S2 like 9GAG (and other video related apps). So our S2 benefits also with these fixes.

Another fix I saw is that Bluetooth's firmware file wasn't loadedg on our S2 on boot but unlike the S3 it didn't need the firmware file to fully function. Hopefully there is positive effect now it loads the firmware properly. I don't experience any difference.

Finally I implemented the first stage mount properly so I can get rid of the second kernel configuration for Magisk builds.

Build #13 2020-07-13

Overall state: Stable

Android build: 10.0.0-r40

Required recovery: TWRP 3.3.1-1

Changes:

- Update sources

- Fixed 9GAG video playback

- Bluetooth firmware properly loaded

- Properly implemented first_stage_mount

Downloads

i9100-LOS-16.0-Emulated-Storage.pit

i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5

i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

lineage-17.1-20200713-UNOFFICIAL-i9100.zip

lineage-17.1-20200713-UNOFFICIAL-i9100_boot_magisk.img
[Galaxy S II Android Development] ze7zez:
But after installation there is a problem with reboot because:

No OS installed! Are you
sure you wish to reboot?

Manual flashing boot.img or lineage-17.1-20200713-UNOFFICIAL-i9100_boot_magisk.img doesn't help. :(

Previous versions install correctly.
[Galaxy S II Android Development] rINanDO:
Now I'm helping with i9300 with same kernel code I saw same issues there too. It seems the racing occurs often (not always) when network info has been changed. I will dig into this soon.
[Galaxy S II Android Development] rINanDO:
That is weird... I installed this build on my daily drive phone yesterday. Had bootloop but after formatting /system, installed gapps, and magisk.img it booted without loosing my data.

Please report if more people are having issues installing. I will check the upload tomorrow.
[Galaxy S II Android Development] rINanDO:
I've taken this build down and rebuilding it now. I've no idea what went wrong.
[Galaxy S II Android Development] bersem:
Had no reboot. But still sucessfully boot at second time. The second are like system UI reboot.
[Galaxy S II Android Development] rINanDO:
Build #13 is up again

I have no idea what caused this. Maybe faulty copy & paste on my side.

Build #13 2020-07-13

Overall state: Stable

Android build: 10.0.0-r40

Required recovery: TWRP 3.3.1-1

Changes:

- Update sources

- Fixed 9GAG video playback

- Bluetooth firmware properly loaded

- Properly implemented first_stage_mount

Downloads

i9100-LOS-16.0-Emulated-Storage.pit

i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5

i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

lineage-17.1-20200715-UNOFFICIAL-i9100.zip

lineage-17.1-20200715-UNOFFICIAL-i9100_boot_magisk.img
[Galaxy S II Android Development] xdalurker1:
Bug report - call fails with build #13

1. I did a dirty flash of the build #13 kernel over the build #12 and the phone boots normally for me. This was the case for both the 7-13 and the 7-15 versions of build #13

RIL issues with build #13 and build #12

2. However, using my SIM, build #13 (both versions) the phone cannot make outgoing calls and the phone freezes (so I cannot access logcat).

3. With build #12 once in a while, the phone goes from available service to 'no service' and the only way to restore carrier service is with a reboot.

4. with Lineage 16 (Pie) - this was not a problem.

THANKS for this amazing piece of work!
[Galaxy S II Android Development] ze7zez:
Fresh installation of ROM 07-13/15 using i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img is not possible.

Please change in the first post the information that ROM from July version can be installed for the first time only using TWRP 3.4.0-0.

Prabably SAR is the reason for this.
[Galaxy S II Android Development] rINanDO:
That is weird, I explicitly did a fresh install of 07-15 on TWRP3.3.1-1 on my Development S2. That worked fine. But now doing it again I see the "No OS installed" again at boot to system.... I'm chasing ghosts here....I will try 3.4.0-0. Thanks!
[Galaxy S II Android Development] rINanDO:
Thanks for your bugreport. I didn't noticed outgoing calls and receiving calls wasn't working anymore.... I will check this out ASAP since I use it as daily drive ;)

And build #13 is down again :(
[Galaxy S II Android Development] xdalurker1:
Confirming twrp 3.4.0-0 vs. twrp 3.3.1-1

I can confirm twrp 3.4.0-0 works where twrp 3.3.1-1 does not with fresh build #13 7-15 with the following steps:

Using odin - wiped phone with repartition pit, loading twrp 3.3.1-1 to kernel, booting into twrp and installing build #13 and corresponding magisk.

Result after boot: endless bootloop: does not pass initial 'Samsung Galaxy I9100' flash screen.

Using Heimdall - wiped phone with repartition pit, flashing into kernel twrp-3.4.0-0-i9100.img, booting into twrp and installing build #13 and corresponding magisk

Result after boot: a single bootloop, followed by normal boot into lineage 17.1
[Galaxy S II Android Development] kifni:
My S2 boot just fine with 3.3.1-1
[Galaxy S II Android Development] ThunderBolt_BR:
Same here. I could dirt install and boot the build from 15th over 13th with TWRP 3.3.1-1 with no issues.

I do not use gapps tought.

[]'s
[Galaxy S II Android Development] bersem:
Internal storage doesnt recognized by TWRP 3.4.0, 3.3.1 is fine
[Galaxy S II Android Development] xdalurker1:
Try fresh install: repit and install 3.3.1-1. The problem is with fresh install, not with a dirty flash. See post #335 https://xdaforums.com/showpost.php?p=83069877&postcount=335 confirming your finding
[Galaxy S II Android Development] slev!n:
Hi everyone. Thanks for this great development to get Android 10 on my old S2.

I came from LOS14.1 and TWRP 3.1.0. and tried to flash the emulated TWRP downloaded here via Odin. But it failed and after a restart of my phone I got the message that the firmware update encountered an issue. Flashing another recovery failed too. So I successfully flashed stock ROM but at the first restart stucking in bootlop now.

1. Why did flashing this emulated TWRP bricking my phone?

2. Why do I stuck in bootloop now?

Can anyone help me?
[Galaxy S II Android Development] ThunderBolt_BR:
Just to inform that I dirty flashed today's build with TWRP 3.4.0 provided by [MENTION=2222292]rINanDO[/MENTION] over 15's build and it all went fine.

Congratulations once more on your outstanding work for our beloved S2 and the S3 as well, that was reborn with your builds.
[Galaxy S II Android Development] TriboDoP:
Hi

Proper flashing of twrp should not be the reason for your problem, maybe you did something different as guided in op.

When flashing stockrom did you also repit/flash the stock pitfile?
[Galaxy S II Android Development] slev!n:
No I didn't repit because I already did it when installing LOS14.

But I probably forgot to check developer settings before going into the download mode. Could this be a reason?
[Galaxy S II Android Development] TriboDoP:
Hi

Repitting for LOS 14 means to me you flashed other pitfile than stock pitfile because latest custom roms needed more space for system and data.

So if you go back to stockrom i would also flash the stock pitfile together with stockrom. About developer setting/enabling usb debugging: without it you would not be able to connect device to pc/odin. So if connection works you are fine and should be able to flash stock fom and stock-pitfile.
[Galaxy S II Android Development] rINanDO:
New build is up!

Braking RIL was my own mistake. Sorry guys. From now on we must use TWRP 3.4.0.

Build #14 2020-07-19

Overall state: Stable

Android build: 10.0.0-r40

Required recovery: TWRP 3.4.0-i9100 for Android 10

Changes:

- Update sources

- Fixed 9GAG video playback

- Bluetooth firmware properly loaded

- Properly implemented first_stage_mount

Downloads

i9100-LOS-16.0-Emulated-Storage.pit

TWRP-3.4.0-i9100-Android-10.img

lineage-17.1-20200719-UNOFFICIAL-i9100.zip

lineage-17.1-20200719-UNOFFICIAL-i9100_boot_magisk.img
[Galaxy S II Android Development] DevisG79:
Thanks for this new build. Will make a clean flash now. Is the twrp official twrp or is it for emulated storage? However. I'm sure it will work.
[Galaxy S II Android Development] ran000:
New build looks well here after dirty flash TWRP-3.4.0-i9100-Android-10.img and dirty flash lineage-17.1-20200719-UNOFFICIAL-i9100.zip

Thanks for you efforts
[Galaxy S II Android Development] bersem:
internal storage recognized by new twrp 3.4.0 for android 10. thanks
[Galaxy S II Android Development] slev!n:
You are right, I did it again together with the pit file the latest build and recovery of today and it worked!

Just one thing: my screen looks "dirty" compared to yesterday on LOS14.1 seems like some drivers are not installed? Maybe the firmware was not correctly installed while my failed stock ROM flashing?

What happened?
[Galaxy S II Android Development] ze7zez:
.

Since TWRP 3.4, repairing via fix_rootfs_label.zip no longer works.

.

However, the old method is still working:

after restoring your system by TWRP 3.4 you need to reinstall the same system you had installed via the corresponding ROM.zip file.

.

Please, find another place for problems not related to this ROM.
[Galaxy S II Android Development] slev!n:
Sry I don't know if this is related to this ROM / Recovery or not. Maybe someone else has got the same issue when flashing this ROM. If not I'm very sorry.
[Galaxy S II Android Development] xdalurker1:
RIL works with build #14!

So far so good! Unlike build #12 and #13 , which had a serious RIL issue, with build #14 so far I haven't experienced a RIL issue.

NOTE: - the OP describes flashing twrp 3.4.0 using ODIN 3.0.7 - but the latter accepts only .tar/.md5/.smd/.gz/.tgz file types, not the .img file type twrp-3.4.0 is linked to. So the only way to flash twrp 3.4.0 is either through a previous twrp version using install to recovery, or heimdall.

Still outstanding bug on my device: spirit2/spiritF, the FM air app that sets our beloved galaxy S2 apart, never worked under android 10 for me. I suspect this is maybe related to SELINUX/SAR? I suspect its driver Si4709_driver.ko isn't in the right place and can't be moved even under root, from my experience.

Under pie I used to run a script that took care of the driver:

tsudo
/system/bin/mount-o remount,rw /system
mkdir /system/lib/modules
cp /vendor/lib/modules/Si4709_driver.so /system/lib/modules
/system/bin/mount -o remount,ro /system

But some obscure permission and different directories prevent this, resulting in Spirit2 not finding its Si4709_driver

Thanks again for this amazing work!
[Galaxy S II Android Development] rINanDO:
It is not official. I build it like TWRP 3.3.1-1 for emulated storage.
[Galaxy S II Android Development] rINanDO:
Thanks, I forgot to make a tar for TWRP 3.4.0. About spiritF is should work with Magisk without any scripts.
[Galaxy S II Android Development] Sir Charles82:
Hey,

just discovered that for my beloves i9100 a port to LOS 17 exists. Great job.

So, I'm still on the last build of LOS 14.1 (Android 7.1.2, LOS-Version 14.1-20181116-nightly), what is the best way to push LOS 17 on my device? I think, I have already repartitioned it for LOS 14.1 (Lancheon?), is more space needed?

Oddly enough, I thought there was TWRP installed as recovery but rebooting into recovery leads to a very basic looking "Android Recovery" which is controlled just by Volume keys and Power button...

in the first post just switching from Stock ROM is mentioned, so any help is highly appreciated :)
[Galaxy S II Android Development] rINanDO:
Hi,

Make sure you applied the pit in OP. There are many PITs around there which could give unpredictable issues.

I think you have the good old recovery which is not compatible anymore for LOS15.1 and higher. You need to use ODIN and initially use the old build and old twrp to get LOS 17.1 installed. Then upgrade to the latest version and twrp.
[Galaxy S II Android Development] Sir Charles82:
Hi rINanDO,

thank you for the fast answer. Then I will try this way. Just a question, in the OP is reading "Micro SD-card before flashing." - I guess it means I should remove it?

thanks
[Galaxy S II Android Development] mpit88:
I want to do the same, i have 14.1 installed.

I do not understand this

"initially use the old build and old twrp to get LOS 17.1 installed, then upgrade..."

Why not just installing the new version?
[Galaxy S II Android Development] rINanDO:
I don't retest the full upgrade instruction after releasing a new build. It could just work without any problems. But I just don't know for sure.
[Galaxy S II Android Development] bersem:
does the PIT file from OP wipe everything ?
[Galaxy S II Android Development] rINanDO:
The PIT itself is not wiping everything technically. It repartitions your internal mmc and needs formatting those changed partition in order to use them. Backup everything before applying a PIT.
[Galaxy S II Android Development] Mike60:
Hi rINanDO and thank you. I installed yesterday your last firmware + TWRP for Android 10.

It works but I have a question for you :

When and how to manage with " root device " ?

I tried with magisk image but still nothing. Maybe was not installed in good order or maybe I make a mistake ?

Thank you in advance

Mike
[Galaxy S II Android Development] TriboDoP:
And you flashed the boot.magisk.img (from the op) to the boot section?
[Galaxy S II Android Development] OllieW:
I've done the test and can confirm: Full wipe of all partitions with new TWRP4.0.0-i9100 and fresh install of the 20200719 LOS17.1 build (no magisk) and OpenGapps Pico works flawlessly!

One small bug: The 4G option (should only be 2G and/or 3G) is back again under mobile network!

Now I'm checking the SIM RIL fix with my Telefonica o2 card (switches between "o2-de" and "o2-de+" mobile networks after E-Plus and o2 become one network which seems to force the RIL racing condition).. ;)
[Galaxy S II Android Development] S_HASH:
where screenshot!!!??????
[Galaxy S II Android Development] micnad:
---------- Post added at 12:07 PM ---------- Previous post was at 12:00 PM ----------

[/COLOR]Quote:

Originally Posted by Mike60

Hi rINanDO and thank you. I installed yesterday your last firmware + TWRP for Android 10.

It works but I have a question for you :

When and how to manage with " root device " ?

I tried with magisk image but still nothing. Maybe was not installed in good order or maybe I make a mistake ?

Thank you in advance

Mike

Hello.

I have the same question. installed in the boot. It's not correct ? thank you
[Galaxy S II Android Development] rINanDO:
Hi,

Yes that is correct. After this you need to install magisk manager 7.5.1.manually. This manages the permission popup to allow apps su permission when they try it.
[Galaxy S II Android Development] OllieW:
Bad news: SIM RIL problems still existing - no network after some hours und high battery drain...:(
[Galaxy S II Android Development] micnad:
Message written with google translator. Perfect. My smartphone is working fine. With all my thanks for your work.
[Galaxy S II Android Development] Linuxci:
Please help me to return custom rom

Dear friends,

I was able to install lineage 17.1 on my mom's i9100 phone but i have to return to stock beacuse of she use 3G video calls, i wrote it before here on the forum but no one answered, i will be so happy if anyone can instruct me to flash stock rom back to the phone. Please for the sake of God, help me about that specifying correct installation files and sequence and settings via odin.

Thanks,
[Galaxy S II Android Development] tonymonaghan0:
Just want to confirm that I am getting the same problem with my vodafone SIM. Works OK for a few hours and then network is not available. i have to restart or switch off to get the network back.

Thanks for all the great work!
[Galaxy S II Android Development] rickmar:
Back to stock

Hi, to get back to stock is very easy. Just download and flash the stock Samsung ROM with the stock PIT file (I9100_STOCK-System_2GB-Data_512MB-Preload.pit) at the same time, with ODIN, and you're done :)

Congrats.

Ricardo
[Galaxy S II Android Development] rINanDO:
Thanks, I still have no solution for this :(. Binder issues, racing... I'm still trying to solve by updating kernel binder code. You can check the detected racing issues by using logcat and search for "somehow". Most of the times my hack prevents crashing.
[Galaxy S II Android Development] rINanDO:
The racing condition occurs mostly on GetOperator RIL request. It makes sense. But why this occurs is unclear. My i9300 builds have the same issues, so it must be kernel related for LOS 17.1.
[Galaxy S II Android Development] Linuxci:
Back to stock

Thank you so much Ricardo,

Where can i find this I9100_STOCK-System_2GB-Data_512MB-Preload.pit PIT file, i searched pit files on google but not found a matching file with full name?
[Galaxy S II Android Development] ran000:
Congratulations!
[Galaxy S II Android Development] bersem:
Congratulations !!
[Galaxy S II Android Development] rINanDO:
Congratulations! Enjoy your beautiful moments! I hope everything is fine with your wife and son!
[Galaxy S II Android Development] Oxydeme:
Thanks guys,

mom and I sleep badly but we've got so much love to give him, anyway your messages reached our hearts ?

Born the 15 at 04.38, what a night it was, and the next ones x)

if I understood correctly, we're gonna get back home for Monday, it´s lasting and we want to get home as soon as possible,

so many things to check, for the security of mom and son, so ..

thanks you one more time :)

sorry for off topic,

I really appreciate the work you put in each of your builds,

won't have time in the next weeks unfortunately but be sure i'll be checking Xda, in order to stay up to date with what have been posted since.

If any of you knows the Walking Dead series;

got a little game for you guys but please try to avoid as much as possible the off topic thing,

Can you try to guess his name? :)

We have a clue for you, it's a king :D

Previous build, wifi was partly working, if I read right, much better right now,

Wondering how you managed to learn that things [MENTION=2222292]rINanDO[/MENTION], can't afford for lessons or things like that, every code, mod, modelisation, xml or java I have done in my life has been done in autolearning,

travelling from forums to forums, in quest of things that would get in my brain x)

as for flashing, repairing, using softs and so on.

How did you make your way exactly,

are you a soft enginner? a passionate? just curious?

Have a good night bros!
[Galaxy S II Android Development] knut2002:
I've downloaded the new build for 3 times and every time it says zip file is corrupt
[Galaxy S II Android Development] ran000:
The download resource presents md5 sum for you. Please, check before flashing.

Download

lineage-17.1-20200111-UNOFFICIAL-i9100.zip

for the Samsung Galaxy S2, by rINanDO

No wait time for you! Download right away.

Download Information

54 Downloads

382.8MB Size

aca13a9d7bd03dd423717e66298de030 MD5

Jan 12, 2020 | 07:33PM
[Galaxy S II Android Development] rINanDO:
I'm a software engineer in Microsoft tech as profession. I like to build software. So building web applications is what I do. I'm just interested in software development in general. Not only Microsoft, so why not android on my old phone. And understand the concepts and design of an OS.
[Galaxy S II Android Development] Oxydeme:
Quite interresting, you can clearly be proud of you bro,

I'm just a passionate , no cursus cause no exams..

I would really love to work as a software dev, but have to improve myself first,

Best regards,

Oxydeme
[Galaxy S II Android Development] Oxydeme:
Hi guys,

so just flashed the Rom onto the phone,

currently booting,

I unfortunately cant flash Gapps, rom version is recognized as 5.1.1 so Android 10 Gapps refuses to flash, any clues?

Thanks in advance,

Oxydeme