[Galaxy S II Android Development] linusdan:
Upgrade from Samsung stock ROM to latest build using ODIN 3.13.1

Also recommended for devices with Android 4.4 - 5+

Back up your files and make a full wipe before the procedure.

Files Required:

Stock ROM

Pit file by-the.gangster

Samsung USB Driver

Odin 3.13.1

Latest Pixel Experience

Pit file with Emulated Storage by rINanDO

TWRP Emulated Storage 3.3.1-1 by rINanDO

0) Install Stock ROM

0.1 After downloading the tools, install the Samsung USB Driver and unzip the file of the rom.

The original rom file is tar.md5

0.2a Boot your phone into Download-mode (Volume down + Power/Standby + Home and hold for 10 seconds).

0.2b Start Odin 3.13.1 in your PC.

0.2c Connect your phone via USB to your PC.

0.2d Press volume up on your phone, Odin should detect your phone.

0.3 In the pit tab on the left side, select the file "i9100_1.5gb-system_6gb-data_512mb-preload_by-the.gangster.pit"

0.4 In AP button, select the tar.md5 file. The Odin app will frozen for a few minutes but do not worry.

After this, select start button. Wait terminate, do not pull the cable

0.5 The device will restart. A message will appear stating that it is encrypted. Turn off your device and enter recovery mode (Volume up + Power/Standby + Home and hold for 10 seconds). Clear Cache and Dalvik / Cache. Restart.

0.6 A warning will appear in the status bar saying that the partition is corrupted. Format the partition. Verify that the partition succeeded in the device settings.

0.7 Charge the phone and follow the next instructions.

1) Prepare your phone

1.1 Copy the ROM to the Micro-SDCard before flashing.

1.2 Boot your phone into Download-mode (Volume down + Power/Standby + Home and hold for 10 seconds).

1.3 Start Odin 3.13.1 in your PC.

1.4 Connect your phone via USB to your PC.

1.5 Press volume up on your phone, Odin should detect your phone.

2) Odin

Auto Reboot : unchecked

Re-Partition: checked

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

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

Press Start.

3) After successful flash

Reboot phone into Recovery

Press Volume up + Power/Standby + Home and hold for 10 seconds.

The phone shuts down.

Repeat Press Volume up + Power/Standby + Home and hold for 10 seconds

Phone boots in recovery TWRP 3.3.1-1. Swipe to allow modifications.

4) TWRP

In TWRP 3.3.1-1 you need to format partitions

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

- Wipe -> Advanced Wipe -> Select:

Dalvik / ART Cache

Cache

System

Non-emulated Storage

-> Swipe to Wipe

5) Install Pixel Experience and boot system.

P.S: To prevent "Uncryption unsuccessful" error of GAPPS at first start:

- Reboot to recovery and Wipe -> Format Data -> Type [yes] again

Changelog

15072019 [EOL] - FINAL BUILD

* Android 8.1.0_r65

* Fix audio stereo recording

* GApps updated to the latest

* Add dummy keydisabler to allow navbar disabling

* Chromium webview: Updated to 75.0.3770.101 via LOS;

* Added Bluetooth SIM Access Profile support (not tested)

* Using the preload partition for compatibility with the new version of TWRP Emulated Storage by rINanDO

* Applied security updates from LineageOS (July 2019) because Google has not released a new tag for the Oreo

Important:

Update the TWRP before installation!

Files Required:

TWRP EMU 3.3.1-1 by rINanDO

1) Flash TWRP EMU 3.3.1-1 by rINanDO and reboot recovery.

2) Install the new update with dirty flash.

Changelog

04062019 [EOL]

* Android 8.1.0_r65

* GApps updated to the latest

* Fix ADB connection via FunctionFS

* Chromium webview: Updated to 72.0.3626.121 via LOS;

09042019 [EOL]

First PixelExperience ASB build

* Android 8.1.0_r63

* Increased heapsize to 360mb

* Support to multi user added

* GApps updated to the latest

* Performance enhancements

* Emulated storage implemented

* Ported FunctionFS to our kernel (credits goes to [MENTION=2222292]rINanDO[/MENTION])

24112018

* Updated sources;

* GApps updated to the latest

* Fix brightness button;

* Various bug fixes.

07112018

* Updated sources;

* GApps updated to the latest

13102018

* Enabled wifi powersave mode (credits goes to [MENTION=2222292]rINanDO[/MENTION])

* Chromium webview: Updated to 69.0.3497.109 through the lineageos repository;

* GApps updated to the latest

04102018

* Performance optimizations;

* Implementation of auto sleep through (battery drain has improved a lot!);

* GApps updated to the latest