[Upgrading, Modifying and Unlocking] msuki:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* We are 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 us for messing up your device, we will laugh at you.
*
*/

Based ROM: Elephone_P8Mini_20170914

10/14 - UPDATED: TWRP version added

This is recommended for people that want something like more pure like AOSP, and without malware.

- Launcher changed to Next Launcher.

Ps. This is same Port ROM that i already released in japanese site at 1st October 2017 https://egg.5ch.net/test/read.cgi/smartphone/1504178568/208-209

TWRP version:

- Download link: https://mega.nz/#!iRkxALgJ!kuIwBusd_F_TqYj93CmzY03Z67NhDDrjN_8tJGMqOtk

- Install TWRP (real source link https://4pda.ru/forum/index.php?s=&showtopic=847735&view=findpost&p=65694030) You can download too in https://androidfilehost.com/?fid=673791459329051837

- Boot to TWRP

- Wipe Dalvik / ART Cache

- Wipe System

- Wipe Cache

- Wipe Data

- Wipe Internal Storage

- Install Port ROM

- Wipe Cache & Dalvik

- Reboot to system

- Done.

SP Flash Tool Version (complicated method):

- Download link: https://mega.nz/#!fddnGaqT!067RI1iNJn5U14NWoXyCf6LY8Nj-jC31Tw3CAQohKlQ

Attention: My guide only for people with original state, doesn't with mofidication. If you installed TWRP or rooted so please doesn't follow guide below. Use TWRP version.

1 - Update firmware your S8 to latest.

1.1 - Factory Reset (make backup before to do this step)

2 - Extract file of link above.

3 - Install adb-setup-1.4.3.exe from Tools folder. This is included in Tools folder, but you can download here https://xdaforums.com/showthread.php?t=2588979

4 - Extract MT65xx USB VCOM DRIVERS.zip from Tools folder and install (use this guide if you don't know how install https://www.getdroidtips.com/install-mediatek-mt65xx-usb-vcom-drivers/)

5 - Extract SP_Flash_Tool_v5.1728.rar from Tools folder

6 - After extracted files of item 4, find flash_tool.exe and open.

7 - Click choose of Scatter-loading File and select MT6755_Android_scatter.txt from ROM folder that you extracted on item 1.

8 - Check if "Download Only" is selected, and only Recovery, Boot and System are selected like image below.

9 - Turn off the S8

10 - Click Download button of Smart Phone Flash Tool

11 - Wait for the process to complete

11.1 - Check if popup like below appear

12 - Disconnect your S8 from PC

13 - Turn on the S8

14 - Copy all files inside of Gapps folder that you extracted on item 1 to your smartphone (location doesn't import here)

15 - Turn ON USB Debugging Mode (use this guide if you don't know how to do https://www.kingoapp.com/root-tutorials/how-to-enable-usb-debugging-mode-on-android.htm Read the item 4 (4. Android 5.0 Lollipop))

16 - Connect your S8 to PC

17 - Use command below to reboot to recovery in CMD of your PC

adb reboot recovery

18 - If appear dialogue click Yes

19 - In CWM recovery

20.1 - Wipe Menu＞Wipe Data - Factory Reset

20.2 - Install G-Killer.zip that you copied to S8 in step 14 (This is included in the Gapps folder of item 13, but you can download here https://xdaforums.com/showthread.php?t=2588979)

20.3 - Check only itens below and remove gapps (if you do not do this step the google play doesn't work)

20.4 - Now install opengapps that you copied to S8 in step 14 (This is included in the Gapps folder of item 13, but you can download here http://opengapps.org/)

20. 5 - Optionally you can install Magisk that you copied to S8 in step 14 (This is included in the Gapps folder of item 13, but you can download here https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445)

20.6 - Before reboot Wipe Cache and Wipe Dalvik Cache

20.7 - No for "Root access is missing. Root device?"

21 - Done.