yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] JacobsMess:
Sorry, seems I've misunderstood, so the files from the .md5 file (containing the recovery and zimage files is not required?

Just so I have things right... Can you confirm the below is correct

Heimdall requires the PIT file, then the Magisk Boot (Kernel partition) and TWRP Recovery (Recovery partition)

Then, flash the rom file in TWRP after performing wipe & formatting

The files in the OP are the following, can you confirm I have the correct files being used in the correct places....?

Downloads

i9100-LOS-16.0-Emulated-Storage.pit (PIT file)

i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5 (not needed?)

i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img (Recovery Partition)

Download LineageOS 16.0 SU (arm) addon/removal here (not needed)

lineage-16.0-20200320-UNOFFICIAL-i9100.zip (Rom File)

lineage-16.0-20200320-UNOFFICIAL-i9100_boot_magisk.img (Kernel Partition)

Thanks for the help

Edit:

Just to clarify, the extracted files are the ones from the MD5 file listed above for the kernel & recovery, this is used as the PDA file for Odin, which is what I am using in Heimdall (after extracting the two files)
[Galaxy S II Android Development] bersem:
You need two files: Pit to repit the partition table and emulated storage twrp .img file. Flash both file at same time.

After repit and flashing emulated TWRP boot into emulated TWRP, wipe everything according OP and then flash ROM + gapps...

I bet u have somewhere an extSDcard so use it to flash rom+gapps...

Sorry never used heimdall

Regards !
[Galaxy S II Android Development] TriboDoP:
Hi

Look up to my post how to flash using linux heimdall command line:

In this post

emulated.pit = i9100-LOS-16.0-emulated-storage.pit

boot.img = the boot.img which i got from the i9100.zip (rom) which i unzipped because i flashed the magisk-boot.img later in twrp.

emulated recovery.img = i9100-LOS-16.0-emulated-storage-twrp-3.3.1-1.img

So you need to flash only this 3 files.

Then boot into twrp 3.3.1-1 and do the wiping /formating exactly according to op.

Then flash in twrp the i9100.zip (rom).
[Galaxy S II Android Development] JacobsMess:
Ah yes, it finally booted! thanks, Heimdell from command line and the boot file from the Zip is what did it.

Not rooted yet, can I just flash the Magisk Boot image to the boot partition to get root access?

I'll do a backup and try anyway, but just wondering, Thanks for the help
[Galaxy S II Android Development] bersem:
Just flash addonsu to root your device.

Regards !
[Galaxy S II Android Development] TriboDoP:
Hi

I am not sure if addonsu works on this rom as some people reported it does'nt and they advised to flash magisk-boot.img (probably thats why rINanDo created it)
[Galaxy S II Android Development] JacobsMess:
Yes, I flashed the Magisk Boot image in TWRP to the Boot partition and this gained root access.

I have Pico Gapps and the whole thing is running incredibly smoothly, little lags here and there, and I suspect if I'm running a few apps it may suffer but we'll see. Biggest issue I have is adapting to this from Android 6 (I was running it on my Doogee X5, which is a much newer, but in comparison, no greater phone)
[Galaxy S II Android Development] bersem:
Ir worked for me on LOS 16.
[Galaxy S II Android Development] JacobsMess:
Only issues Im experiencing are...

Recent apps doesnt work... not too bad, but means I cannot fully exit apps.

Bluetooth address on about phone is unavailable and in a testing app, it said BT was unable to be tested, however, it does work with my garmin watch and BT headset just fine.
[Galaxy S II Android Development] JacobsMess:
Also noticed the battery is quick to drain and GPS/maps is quite slow. I'm going to try to downregulation of the voltage on the kernal mentioned before to try and help the battery issue as the phone definitely runs hot.

Is it OK to install a different kernal without redoing the whole ROM? Also I cannot update magisk, is the latest build being patched to the ROM or is there a way around this?
[Galaxy S II Android Development] JacobsMess:
Another update, suddenly, I cannot mount my device on a computer when connecting it (tried with 2 computers and used known data cables with other phones that work) and, data has been lost, several videos filmed yesterday have disappeared...

Turns out my SD card got corrupt, I've no idea how this happened though as all that had happened was i had turned off my hone at night, then turned it on in the morning, there had been some significant battery drain suggesting, something was going on whilst it was off.....
[Galaxy S II Android Development] TriboDoP:
Hi

Would dirty flash of rom again via twrp (and magisk boot only from rInando) trying to update could have messed it up , so i would not do this)
[Galaxy S II Android Development] JacobsMess:
sorry, my previous comment was misleading, I was updating my situation, the rom is running on build 21.

I've found out though that my SD card has become corrupt, hence not being able to access the videos mentioned above. When I try the sd card in other devices it says I need to format even to use as portable storage. I will try to recover it somehow but seems that the sd card became corrupt over night, when all I had done was turn off and then turn on my phone....
[Galaxy S II Android Development] JacobsMess:
So this has completely messed up my phone.

List of events...

Corrupted my SD Card overnight

In trying to access my SD Card I wiped my Dalvik/Cache in TWRP this sent the device into a never ending boot, cannot access phone.

I tried to mount the internal storage directly to flash a rom in TWRP but when I try to mount internal storage in TWRP it will not mount, I've tried reformatting & repairing in the wipe section but nothing seems to help, also tried with 4 computers running 3 different operating systems and 2 USB cables that have worked with other phones.

Heimdall does not detect the phone when in Download mode and adb/fastboot also don't work.

Any suggestions?
[Galaxy S II Android Development] TriboDoP:
Hi

From your posts i cannot tell when/why it went wrong. Concerning sd card (external micro sd card): if you put such a card into device you could be asked wether to use it as internal or removeable storage. For my purpose i always choose removable storage by ticking on it. No other formatting to do.

For using micro sd card you may have to grant permission to apps. I never had a corrupt micro sd card but many cases when lacking permission. So yours might not even be corrupted.

If you put the card into pc (using adapter) can you read/write it? And did everything (rom and recovery ) work as it should before all this happened suddenly according to you. Did you try to flash a rom also from micro sd card storage?
[Galaxy S II Android Development] JacobsMess:
It fails if I try to format the card in anything (Android as internal or Portable, TWRP, my action camera, Mac disk utility, command line etc...) It is not recognised in windows, and the same in mac (won't mount when plugged in, does not show when trying to view external devices in command line/terminal etc.)

It clearly isn't a ok, and is definitely corrupted.

I had used the phone the day before and managed to write some video files to the SD Card and replay them, however, it failed over night. I had originally (about 2 weeks to a month ago) managed to flash lineage 16 from the SD Card in TWRP as described in the first post and it has been running fine (except for the unexplained power loss when phone is off).
[Galaxy S II Android Development] TriboDoP:
Agree totally your sd card is dead.

So you have a running rom (which drains battery) but your twrp recovery is not working in order to flash another rom even when formatting like you did at first installing.. And device cannot connect to pc even when usb debugging is enabled. Both is strange.
[Galaxy S II Android Development] JacobsMess:
No, I had a working ROM, in trying to access the SD Card I lost access to the ROM and now it will not load. I also cannot mount my internal storage through TWRP to flash another rom, all I can access at the moment is TWRP and download mode which is unresponsive to requests from heimdall.
[Galaxy S II Android Development] TriboDoP:
Mmmh

If there is no way to get the rom running and no way to flash via pc i have at the moment no more ideas than putting all files (maybe 2 or 3 different roms) on another sd card via pc or other mobile device and then use twrp to format and flash from micro sd storage.

Sorry and regards
[Galaxy S II Android Development] JacobsMess:
How can I transfer from one android to another in TWRP?

Ignore that, I realise what you mean now, I have a replacement SD Card on its way, thanks
[Galaxy S II Android Development] JacobsMess:
So i got my rom working again via a new sdcard.

Only thing is, I've not installed Gapps and its running much nicer BUT i cannot get any GPS signal on apps like OSMAND or Maps (or Go) and no GPS fixers work without google play services.

Managed to get the GPS to work using GPS Locker via play store (installed via aurora)
[Galaxy S II Android Development] Kootee83:
Same here. It's a pity I can't use this fantastic ROM because of this one issue. :crying:
[Galaxy S II Android Development] JacobsMess:
How do I get my recent apps list or browser tabs? Holding down the home button does nothing, nor does double tapping it...

I'm using Evie launcher (not sure if that's he problem) but pretty sure I had the same issue before I restored Evie.
[Galaxy S II Android Development] JacobsMess:
How well does the official lineage 14 release run compared to this? I'm tempted to downgrade as its having a few issues. Or even lineage 17?

If I do a TWRP backup can I just downgrade and then restore the data?
[Galaxy S II Android Development] JacobsMess:
Any planned updates on this? Still unable to get the recent apps up. Battery isn't too bad but phone does crash sometimes, not sure why. I'm running it on MicroG. Also, the lineage snap camera images don't show in gallery if stored to SD Card, this is a known issue in lineage. You have to manually browse to the files folder to access images taken with Snap.
[Galaxy S II Android Development] JPCastillo2000:
Hi. I've been using the lastest build for a while, and in performs rather well. I have a problem, though: Magisk modules don't install, and they ask for a 20.0 version to install, which I have. How can I resolve this issue?
[Galaxy S II Android Development] danny3458:
It's working but you've got to install magisk in a certain order all at once...

Installing LOS will encrypt your internal memeory by default.

But if you flash, first, the LOS image, after that magisk module AND after that gapps, without cleaning ANYTHING, becouse you can't do that anyway after flashing LOS (becouse the internal memory is allready encrypted), magisk and gapps will install without any problem... I don't know how, but it will work.
[Galaxy S II Android Development] M0RT3ZA:
Hey I've installed latest build(21) with pico gapps but wifi has no internet
[Galaxy S II Android Development] fargh123:
For me full wipe and flashing rom and latest gapps solved the problem
[Galaxy S II Android Development] jasmin811:
Nice one
[Galaxy S II Android Development] Czeh:
after install Lineage 16.0 how can I back to official ROM 4.1.2 ?
[Galaxy S II Android Development] MaddogIT:
First you have to repit to old sizes and then reflash the official rom with Odin.
[Galaxy S II Android Development] Czeh:
yes, of corse. But how can I do --> repit to old sizes ?. Please help with instruction
[Galaxy S II Android Development] MaddogIT:
You can star reading here http://xdaforums.com/galaxy-s2/development-derivatives/mod-increase-partition-size-t3011162 in pit_files.zip you can find the STOCK pit file and instructions to use it with odin
[Galaxy S II Android Development] Czeh:
many thanks.

And what size should I make ? I don't know what the old size was.
[Galaxy S II Android Development] MaddogIT:
As I wrote in the previous post, the one with STOCK in the name. That is the original, the other are changes for the newer developed roms.
[Galaxy S II Android Development] Bl4ckMatrix:
I've used Heimdall on Linux and flashed your provided PIT and the TWRP. Everything is working fine. Thank you. Can I update to the official TWRP 3.5 when I flash it inside your TWRP 3.3.1-1 or will this cause any problems? I want my device encrypted as well. Is that possible?

I want to use this device as an air gapped device without any internet connection. Always flight mode turned on. Any advices for this? Which of your ROMs should I use? Does it matter? Should I leave the TWRP as read only (as asked when I enter the recovery) for this?

Which package installer should I use? I think I am not able to install APKs without one (not using GAPPS or F-Droid).

Many questions :)

Thanks for your help.
[Galaxy S II Android Development] MaddogIT:
Hi,

unfortunately I'm not a developer but can try to answer on a couple of questions.

TWRP change may or may not work correctly, I have 3.4.0 on my S2 but with LOS 17.1, still didn't change to 3.5.0. You have to which one is the last tested with the rom you want to use.

Roms can work even without a sim or with an not active one, keep it simple, just set flight mode once powered up.

You don't need GAPPS or F-Droid, you can just search the rom (with file manager) and install. Play store or other are just repository, of course you have to download apk on a PC and copy it to micro sd.
[Galaxy S II Android Development] Bl4ckMatrix:
I realized that I can install APK yesterday. Didn't know why it just opened the ZIP archive on the first run instead of installing it.

Thanks for your help.

Have you managed to encrypt your device? I got it to work one time yesterday but I wasn't really sure if it is really working. The process just didn't took any time but I was asked for the unlock password when I started the phone. I coulnd't imaging that it is working, so I was opening TWRP and I thought if it work it should ask me for password there also. But it didn't but it also didn't show me any files on my storage. So I was still unsure, did it work maybe?

I just restarted the process of flashing with the PIT provided here and the TWRP 3.3.1-1 but I never got it to work again. The encryption just starts and never finished. I am searching now for a ROM where it works because that's my most important requirement to the phone. I don't need phone calls, bluetooth or a fast phone.
[Galaxy S II Android Development] MaddogIT:
Unfortunately, I can't help with encryption, I never used it. Maybe you can find info searching in this forum.

But I'm pretty sure that this can be done on every LOS for our S2. In this case, you have just to get the ROM you like more. From my point of view newer is better but this means also that needs more space and power, so phone becomes a bit slower.
[Galaxy S II Android Development] Bl4ckMatrix:
Thanks for your help. I have tried several ROMs now with different TWRP versions but all I get when I press "encrypt phone" button is an Android robot for one second or two and then the phone just restarts :(
[Galaxy S II Android Development] Czeh:
Samsung Galaxy S2

after install Lineage 16.0, the phone began to slow down very much,

I decided to return to Android 4.1.2 made a marking based on the stock PIT file

Then I got the official ROM, but ... However, most of the program does not work,

and At the same time, the message explains that there is not enough free space,

It is proposed to remove unnecessary files ..

What other files ??? I only put the system .. there was nothing superfluous.

I thought it was a jamb firmware. Now I got an other custom Rom and again the same problem.

Help me if you know.
[Galaxy S II Android Development] robertkoa:
I thought you guys said that IF there was a thermonuclear war - you had some type of revision that would make it like it never happened except cats that glow in the dark ?
[Galaxy S II Android Development] williamtavares:
im running some really old custom KK rom on my gt-i9100, i'm really lost with all those files, can anyone point me the right files and method to flash this rom? thanks.
[Galaxy S II Android Development] TriboDoP:
Hi

on the first page of the thread there is a step by step guide how to do it and all files are mentioned there

In short: using odin flash pitfile (emulated storage.pit) and recovery (emulated storage twrp.tar). Do not forget to check repartition in odin.

Then reboot this recovery and do the wipe according to the guide.

After the wiping install the rom using twrp.
[Galaxy S II Android Development] mirhl:
Is this in anyway related?

Add support for legacy ARM32 zImage by chaosmaster · Pull Request #4526 · topjohnwu/Magisk

This will only work if the recompressed kernel is <= the original gzip. If that fails it will fall back to using the original kernel (Essentially what Magisk is doing currently). While this will wo...

github.com

It just shipped into the last canary.
[Galaxy S II Android Development] OllieW:
I also installed the fresh LOS19.0 "no magisk" alpha on my i9100 after a full wipe together with the "open_gapps-arm-12.0-pico-20211218-UNOFFICIAL_MOD.zip" test version. Here are my results:

- Install wizard starts up with an "Google Speech recognition error" (seems to be an OpenGApps problem because fresh install of official LOS18.1 on Galaxy A5 2017 with latest OpenGApps 11 Pico has the same behaviour) and before SIM card is initialised resulting in an Wi-Fi only startup. After finishing install wizard the SIM card starts up and connects to mobile network.

- Camera problem is exactly the opposite on my phone: First startup of camera app works perfectly with rear cam and after switching to front cam the app crashes and I can't start it up any more.

- The battery settings doesn't offer the "power save / balanced / performance" options. With OpenGApps the phone is much slower now than before with performance mode. Some moderate overclocking options would be nice.

Happy new year to all!
[Galaxy S II Android Development] Nokia N9 rulez the world:
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img​

i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img | by rINanDO for Galaxy S2

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com

OOPS!

no mirrors found.
[Galaxy S II Android Development] puerto69:
Good evening, first I apologize because I made a mess since I have 1 Galaxy i9100, 1 Galaxy i9105, 1 i9505 and 1 Note 3 (N9005) and I got confused in my explanation... In my i9100 I had the Rom Euphoria OS ( 5.1.1) with Recovery TWRP 3.0.2.1, when trying to update to TWRP 3.3.1-1 .img (to install this Rom) I was left without Recovery and without System. I have inserted MS3 base from scratch and it only lets me install TWRP 2.8.7 through Odin (all later recovery give me an error), I cannot update the recovery either through Odin or through recovery (.img). I would be very grateful if someone guides me how to update my recovery to install this Rom. Thank you very much in advance... I apologize for my mistake and for my bad English.
[Galaxy S II Android Development] delstam:
Hello, I’ve been trying to enable the Notification access option, but so far no luck. Installed magisk from provided link, as well as the Magisk module Low-RAM Property Patcher, but it still displays “This feature is not available on this device.” Any ideas?
[Galaxy S II Android Development] Brikker:
i9100-LOS-16.0-Emulated-Storage.pit

OOPS!

no mirrors found.
[Galaxy S II Android Development] mirhl:
A quick google revealed OP re-uploaded this(?) a few days ago

i9100-LOS-16.0-Emulated-Storage.pit | by rINanDO for Galaxy S2

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com
[Galaxy S II Android Development] apalacka:
Hello everyone, unfortunately the download link for the PIT "i9100-LOS-19.0-Emulated-Storage.pit" file is down! Can you please reactivate it? Many thanks in advance!
[Galaxy S II Android Development] Kurosude:
Hey there, so i'm having a quite funny issue i dont know how to fix

I have managed to get it to work, but the Wi-Fi just wont turn on.

After a bit i noticed the MAC Address said "Not available", so i reflashed the stock firmware and it works on there. Does anyone have an idea on why this might happen? Is it a kernel issue? Am i doing anything wrong? Is there a fix for it?
[Galaxy S II Android Development] Lanchon:
use Lanchon REPIT instead, much simpler.
[Galaxy S II Android Development] Lanchon:
first you need to backup the partitions where your IMEI, MACs, etc are stored. if you loose them you killed the phone. you should then make sure your phone is running the latest frimware, google for i9100 firmware collection. the you should flash you ROM.
[Galaxy S II Android Development] Kurosude:
Which partitions are these?
[Galaxy S II Android Development] Lanchon:
the ones where your IMEI, MACs, etc are stored :) google is your friend. just know that they are device-dependent.
[Galaxy S II Android Development] onliiterliit:
does it work on galaxy s2 mini?
[Galaxy S II Android Development] Darkstriker:
It won't. Completely different devices.
[Galaxy S II Android Development] Recentbeam:
Is there any way You could port this to the S2 plus (GT-I9105p) ?
[Galaxy S II Android Development] kokogo:
Follow the method below to successfully install and run Android 9.

However, the Gapps app cannot be installed successfully and fails.

How can I successfully install Gapps?

—————————————————————-

1、In ODIN:

Auto Reboot : unchecked

Re-Partition: checked

PIT : i9100-LOS-16.0-Emulated-Storage.pit

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

2、Wipe -> Format Data -> Type [yes]

3、Wipe -> Advanced Wipe -> Select:

* Davik / ART Cache

* Cache

* System

* Non-emulated Storage

-> Swipe to Wipe

4、Install LOS-16.0 + Gapps
[Galaxy S II Android Development] julian2412:
Amigo, donde puedo conseguir ese archivo para poder instalar esta nueva version en mi galaxy s2 i9100. Gracias
[Galaxy S II Android Development] ran000:
I have success with this one:

https://drive.google.com/file/d/13IwaHY3VBmmLk2z1SJm07Ef67rw1L-E_/view?usp=sharing

You can find the link at page2 of thread.

Please, use English.
[Galaxy S II Android Development] LeddaZ:
Nice ROM, there's only one big problem: every time I try to take a screenshot with power menu or button combo I get an error saying "screenshots may be restricted by the app or organization" and it happens everywhere, lockscreen, home, settings etc. This also happens with Pixel Experience 9.0 for i9100
[Galaxy S II Android Development] rINanDO:
I'm working on it ;) It is quite hard to figure out how to fix this and the other graphical glitches.
[Galaxy S II Android Development] rINanDO:
New build is up!!

Build #4 2018-12-15

Overall state: Stable-ish

Android build: 9.0.0-r21

Updated sources

Fixed screenshot and Colorfade animation

Updated pinnerService, which caused excessive lags and battery drain

Known issues:

Graphical glitches and crashes

Download here: lineage-16.0-20181215-UNOFFICIAL-i9100.zip