[Galaxy Ace II Android Development] :
If you can see this text clearly, then you are probably viewing this thread in AMP mode or mobile app. It's fine, but please consider viewing in the normal mode (no mobile app or AMP) for easier reading!!

[IMG="LineageOS Logo"]https://imageshack.com/a/img924/3204/EAXgKk.png[/IMG]

SAMSUNG Galaxy Ace II GT-I8160/P/L LineageOS 15.1 with Android 8.1​

Introduction (Must read first):

Hi there!

I would like to share another LineageOS 15.1 ROM, but from [MENTION=1508790]SergeyL[/MENTION].

I'm not a developer of this ROM.

So that, if you want to install this ROM, please be warned, that:

/*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

But don't worry, all the things below are from my tests and [MENTION=1508790]SergeyL[/MENTION]'s informations, so if you are going to problems, I will help you. :)

GLOBAL INFORMATION:

Starting from 2018/06/29 version, [MENTION=1508790]SergeyL[/MENTION] said it's better to use this ZIP to repartition your phone: CWM_ReParted_SY920_CA30_DA1800_SD1000.zip

Else for who want to swap storage can use this ZIP: CWM_ReParted_SY920_CA30_DA2800_SD100.zip

Informations for newest stable version (2018/07/27):

What's working: Everything except in not working list

What's not working: Video recording

Informations for newest preview version (2018/05/28):

Closed.

Downloads (Newest stable/preview version):

Preview:

Closed.

Stable:

Yadisk link

Google Drive link

MD5SUM (ROM): 36b6396d185878a22a13e91e96b3950d

Kernel (for swap storage) (Yadisk)

Older versions (Stable only):

2018/06/29:

From this version, the ROM is odexed.

Yadisk link

Google Drive link

MD5SUM (ROM): 2e054bdc7d0c2e600a6cdf272d9abe8a

Kernel (for swap storage) (Yadisk)

2018/06/18:

This is the last version which deodexed. Newer versions are odexed.

Yadisk link

Google Drive link

MD5SUM (ROM): 9fdf2a869791109e4966f274002a435f

Kernel (for swap storage) (Yadisk)

2018/05/31:

Yadisk link

Google Drive link

MD5SUM (ROM): 60715cc0b04ebb0c8bb521ce0e3866f3

Kernel (for swap storage) (Yadisk)

Deleted versions by [MENTION=1508790]SergeyL[/MENTION]:

- 2018/05/16

- 2018/04/20

- 2018/04/12

- 2018/03/24

- 2018/03/14

- 2018/03/06

- 2018/02/26

- 2018/02/20

Tools:

- Temp CWM

- A2N Kernel

- ChronoKernel

- Gapps (Select ARM, 8.1, Pico -> Download :)

- Older reparted ZIP for older deodexed ROMs version which you have to swap storage..

- Newer version of reparted ZIP that you DON'T HAVE to swap storage.

- Newer version of reparted ZIP that you HAVE to swap storage.

How to install:

Step0: Make sure you are in at least Android 4.1.2. Otherwise, upgrade to the latest Samsung 4.1.2.

Step to upgrade:

Download needed Files for Windows (for other OS, please search the Web):

Samsung USB Driver for Mobile Phones and ODIN v3 Offline flasher:

http://www.xda.mister-freeze.eu/XDA-files/ace2nutzer/GT-I8160/General/

Stock ROM:

http://www.xda.mister-freeze.eu/XDA-files/ace2nutzer/GT-I8160/Stock_ROM/

For the GT-I8160 you need:

I8160XXMB4.zip (3-parted)

and

ONE-I8160XXNF2-20140930142454.zip (Latest Stock ROM)

(FLASH BOTH IN THAT ORDER !)

For the GT-I8160P you need:

CODE_GT-I8160P_I8160PXXLK2_CL1211774_REV00_user_SEC_KEY_XLK2_4G.zip (3-parted)

and

CODE_GT-I8160P_I8160PXXME1_DBT_1106830_REV00_user_low_ship.zip (3-parted)

and

DBT-I8160PXXMG2-20130820164646.zip (Latest Stock ROM)

(FLASH THEM ALL IN THAT ORDER !)

For the GT-I8160L you need:

GT-I8160L-3parted.zip (3-parted)

and

PGU-I8160LUBMK2-20140603151522.zip (Latest Stock ROM)

(FLASH BOTH IN THAT ORDER !)

After u've downloaded the needed Files and u've unpacked and installed the Samsung USB Driver, u can proceed wit the upgrade.

Note: All your data will be deleted, so it's recommended to backup some important files to your Computer, including the content of your sdcard.

First of all, export all your Contacts to your ext-sdcard. Later you will need this File in order to import your Contacts into the new ROM because the new ROM CM11 has a small issue that it can't read SIM-Contacts.

Now copy the file of contacts to your PC and then format the sdcard as FAT32 if u can, if u don't know how to do that, it's also (for now) enough to simply delete all files and folders from the sdcard.

Unpack Odin3_v3.07.zip and open the Program inside, it's: Odin3 v3.07.exe

Unpack the ROM, for example we unpack the ROM: I8160XXMB4.zip for the GT-I8160 which is a 3-parted Stock ROM.

Well, now Power OFF the Phone and remove the sdcard.

Press and hold at the same time Home + Volume UP + power button until it'll vibrate.

select now "wipe data" and confirm with home button.

select now "reboot system" and when the Screen is black, press and hold at the same time: Volume down + Home + Power Button.

The Phone will boot directly to "Download Mode"

Connect the Phone with your PC with the original USB Cable (important: during flashing don't turn off your pc or phone, also don't touch the Phone and the USB Cable!)

Your Phone should be recognized by ODIN .. u can see this in "ID:COM"

Don't change the check boxes !!!

The Field: "Bootloader" and "PHONE" remains empty!

Nos load the *.tar.md5 files as following into ODIN:

PDA = HOME OR CODE (*.tar.md5)

CSC = CSC (*.tar.md5)

PIT = *.pit File (the checkbox Re-Partition is now checked :))

Wait until the MD5 Check is done and proceed by adding the next package in ODIN.

Before u press "Start", make sure everything looks like this:

For 3-parted Stock ROM:

http://www.xda.mister-freeze.eu/XDA-files/ace2nutzer/GT-I8160/General/odin_3parted.png

For latest Stock ROM:

http://www.xda.mister-freeze.eu/XDA-files/ace2nutzer/GT-I8160/General/odin.png

Finally press "Start" - Wait patiently ... this takes around 7 Minutes.

The Phone will reboot several times. When u see the pad for entering the SIM PIN ... then the upgrade is complete and u can now remove the USB Cable and reset ODIN and u should flash the next ROM with ODIN.

Step1: Download everything on

Step2: Extract kernel for swap storage ZIP (you will found boot.img file) then copy everything you downloaded to your phone.

Step3: Boot to recovery:

- Power off your phone.

- Hold Power + Home + Volume up button for 5 seconds

- When your screen lights up with boot logo, release Power button BUT keep holding Home + Volume up button until your recovery boots up.

(If you are upgrading from older version, do this for a dirty install):

Step4: Flash ROM, Gapps

Step5: (If you use the reparted ZIP that for swap storage):

Go to Install -> Flash Image -> Choose boot.img you copied -> Choose Boot -> Choose Flash

Step6: Wipe /cache, Dalvik cache (Wipe -> Advanced Wipe -> Tick /cache, Dalvik Cache -> Swipe to Wipe)

Or if you want to do a clean install, continue:

Step4: Flash temp CWM

Step5: Flash A2N Kernel

Step6: Reboot to recovery

Step7: Flash the reparted ZIP

Step8: Reboot to recovery again

Step9: Format /system, /data, /cache, /sdcard0

Step10: Flash ChronoKernel

Step11: Reboot recovery again

Step12: Format /ramdisk as EXT2

How to do it in TWRP: Go to Wipe -> Advanced Wipe -> Tick ramdisk -> Repair or Change File System -> Change File System -> EXT2 -> Swipe :)

Step13: Flash ROM, Gapps

Step14: (If you use the reparted ZIP that for swap storage):

Go to Install -> Flash Image -> Choose boot.img you copied -> Choose Boot -> Choose Flash

Step optional: Flash Xposed below

Step15: Reboot and see the LineageOS logo appear!!

If your phone auto reboots to recovery again (a bug on most phones), just go to Reboot menu -> System and wait for it boots.

It takes around ~15 - 20 minutes to boot, so please wait!

Misc tweaks:

- Root:

HOW TO OBTAIN ROOT:

-Go to "About Phone"

-Tap on "Build Number" seven (7) times to enable dev options

-Go to "Developer Options"

-Look for "Root Access"

-It will say "Apps" so go ahead and disable it

-After disabling it, set it to "Apps" again

-You get root

-Yay

Also, if you find Root access not granted to some apps -Aptoide, Link2sd, App2sd

SpiritFM or some others-, you can additionally flash by Recovery this Chainfire zip:

https://download.chainfire.eu/743/supersu

- Xposed:

Download here

Remember to download latest version!

Also, if you install Xposed, I will not support you about problems caused when you use this ROM.

- MicroG:

Here is the MicroG for LineageOS 15.1

In the newest version, the ZIP is universal which mean you can flash it in Android 6.0.1, Android 7.1.2, Android 8.1 and this ROM.

Main components:

- microG Services Core v.0.2.4-111 - Modded by Merovingian111

+ microG Services Framework Proxy v.0.1.0

+ Nominatim Geocoder Backend 1.2.2

+ Google Maps API v.1-0.1.0

+ PlayStore v.7.8.74.P-all (Mods By Aeronliru)

+ BlankStore v.0.7.5;

+ FakeStore v.0.0.2.

+ GoogleCalendarSyncAdapter

+ GoogleContactsSyncAdapter

Downloads:

Newest version:

MicroG universal version 0.1

Older versions:

MicroG:

From v4 and above, there's no need to flash Google Sync fix again, as it is added in the MicroG.

v4d

v4b

v4

v3

v2

Google Sync:

v2

v1

A version which allows Google Play Store to auto update:Here

Miscellaneous informations:

1. To use the newer version of Google Play Store, take here (in Russian) and replace it in the archive.

2. If the RH-01 error appears in the microG settings when opening Google Play Store, enable push messages for Play Store (Google Cloud Messaging). And reboot the device.

Credits:

- [MENTION=1508790]SergeyL[/MENTION] for his ROM and MicroG

- [MENTION=5840412]ace2nutzer[/MENTION], [MENTION=5695278]ChronoMonochrome[/MENTION] for their kernel

- [MENTION=5840412]ace2nutzer[/MENTION] for his instructions and files for upgrading to Samsung 4.1.2 ROM

- [MENTION=4060849]Shaaan[/MENTION] for his temp CWM

- [MENTION=6542205]Culateralligator[/MENTION] for updating Gapps link, Xposed, how to activate root and reparted ZIP

- OpenGapps team for Gapps

- And everyone who have contributed to this ROM!

- If I forgot to mention anyone, please PM me and I will update OP.