[Android General] awl14:
[LineageOS 12.1] [Stable] Updated ROM build for P6000 Pro w/ latest security patches

Hello P6000 Pro users,

I don't know whether [MENTION=722204]blahmartinblah[/MENTION] still maintains the ROM link collection at the beginning of this thread, but wanted to announce it publicly anyway:

I have created an update build of Deepflex's CM12.1 ROM for the P6000 Pro, based on the cm12-amami effort on GitHub including latest Android Security Bulletin Security Patches:

Deepflex's 2016.06.10 CM 12.1 build

[LineageOS 12.1] [Stable] [P6000 Pro] Updated CM12.1 build for P6000 Pro with current 2018.12.05 security patches

The build is available for download from here:

LineageOS 12.1 [AOSP 5.1.1] for Elephone P6000 Pro (K01TS-A) with 2018-12-05 security patches

Here is the README file:

This is the README file for:

====================================================================================
LineageOS 12.1 (aka CyanogenMod 12.1) for the Elephone P6000 Pro based on AOSP 5.1.1
------------------------------------------------------------------------------------
- including current AOSP security patches -
- based on ASB level 2018-12-05 of the GitHub "cm12-amami" effort -
- to be installed from any custom recovery (TWRP or others) -
====================================================================================

As I have only plugged this release build together from existing parts and fixed
some "rough edges", first of all I would like to give credits to those whose major
efforts I have built on:

Credits:
--------

* Deepflex
- deserves all credits for creating the initial CM 12.1 ROM build for the
P6000 Pro back in 2016 (great job!)
https://bbs.elephone.hk/thread-9850-1-1.html
- for providing his latest device and vendor trees (not available from public
GitHub, please contact Deepflex directly if you need/want to build from source)
- for his help during the ROM update/bugfixing process

* the "cm12-amami" team on XDA/GitHub: MSe1969, Micha_Btz, hahnjo, derfelot
- for providing an updated LineageOS 12.1 repository with latest security patches
https://xdaforums.com/sony-xperia-z1-compact/orig-development/lineageos-12-1-z1c-current-sec-patches-t3614936
https://github.com/cm12-amami
- for putting a huge lot of effort into staying recent and continuously improving
security patch completeness and quality
(see https://github.com/cm12-amami/discussion/issues)
- for organising the cm12-amami repository in a way that device and vendor
subtrees can very easily and seamlessly be replaced to support other devices

* visi0nary
- for maintaining the Elephone P8000/P6000 Pro kernel sources
https://github.com/visi0nary/android_kernel_elephone_p8000
(note: even for CM12.1 and P6000 Pro, GitHub branch "cm-13.0" is required for
proper offline charging)

* Jemmini
- for providing the best (and most recent) TWRP 3.1.0 build for the P6000 Pro
that I am aware of - used to be availabe from
https://mega.nz/#!hfgwWBpC!YP2FmcKuhGuBeVfw5qgOq04ySuaYyMeqvDoXfCmSYzI
but (as of 2018-10-03) is no longer, so I have made it available again in the
same folder as my LineageOS builds

Date of LineageOS build: 2019-01-05
Android Security Bulletin (ASB) Level: 2018-12-05
(see https://source.android.com/security/bulletin/2018)
Status: stable; updates as time permits, depending on subsequent cm12-amami cycles
Release: to be installed through custom recovery

Changelog (compared to Deepflex's 2016-06-10 build):
- (2019-01-05) Fixed German E-Plus (262-03)/O2 (262-07) roaming issues:
No national roaming detected any more (data roaming may be disabled now)
- (2019-01-05) Fixed display of SIM vs. network carrier names
- (2019-01-05) Fixed operatorConsideredNonRoaming for second SIM card
- Fully fixed switched-off/offline charging through USB
- Fixed USB mode switching (MTP, PTP, charging only, UMS)
- Improved battery life by removing remains of unneeded stock services:
sn, auditd, fuelgauged
- Overhauled kernel configuration to be equivalent to P8000
- Improved GPU throughput by reintroducing debug filesystems into kernel
(Elephone's proprietary stock MALI driver uses ion debugging)
- Proper device serial number is now shown in Settings UI

Bugs/Features:
* A large number of ASB security level kernel patches are missing (due to the use
of visi0nary's Elephone kernel vs. the cm12-amami Sony kernel)
* No other known issues/bugs at this time
* From the respective detector app results, this build is NOT vulnerable to
- Stagefright
- Quadrooter
- Blueborne
- KrackAttack
(Note: the most recent stock ROM is vulnerable to all of them!)
* AnTuTu score is up to 39,266 (from somewhere between 36,000 and 37,000)

Installation:
-------------

Standard disclaimer:
====================================================================================
= When following these instructions, YOUR PHONE'S WARRANTY IS NOW VOID!!! =
= Use at your own risk. =
= In other words: It is your own choice to make use of these files. =
= I am not responsible for any damage or problems you may run into/have! =
====================================================================================

* Make a full backup of all data/pictures/media/audio/... on your phone (from both
internal storage and external SD) that you wish/need to keep!
(YOU HAVE BEEN WARNED ONE MORE TIME!!!)

* Download the following to external SD card:
- Download a "custom recovery" IMG (such as TWRP, see above for a link to a
recent TWRP version for P6000 Pro)
- Download the main LineageOS build ROM ZIP (from here)
- Download Google apps ("GApps") ZIP of your choice from http://opengapps.org
(see https://github.com/opengapps/opengapps/wiki/Package-Comparison for
what is contained in the different editions) to external SD card:
Select ARM64, Android 5.1, and at least "nano" (I typically use "stock")

* Flash custom recovery (TWRP or other) into recovery partition through Mediatek's
"SP Flash Tool": http://spflashtools.com/
- Detailed instructions how to do so can e.g. be found on YouTube
. Disconnect the USB cable and switch off your phone completely
(removing the battery should not be needed!)
. Use the P6000 Pro MT6753 scatter file from the latest Elephone stock ROM
(K01TS-A.A.vA0S.E1.160428)
https://www.needrom.com/category/elephone/serial-p-elephone/p6000-pro/
. Select "Download Only" mode
. Make sure that only the recovery partition is ticked, and point to your custom
recovery IMG in the rightmost column
. Click on the green Download button
. Simply connect the USB cable back to your phone (no need to press any other key)
. Wait until recovery upload is complete and the green tick is displayed
- Directly boot into recovery mode after flashing, because booting into the stock
ROM normally will immediately overwrite the custom recovery by the stock version,
and you will need to start over again

* Boot into custom recovery mode:
When the phone is off after flashing recovery has completed, first disconnect the
USB cable. Then press and hold both Power-On and Volume-Up until a very small text
"Select Boot Mode" appears, now press Volume-Up until "[Recovery Mode]" is selected
by the small arrow "<<==" and confirm by pressing Volume-Down

* From the recovery, wipe all data from your phone (in TWRP, everything except
External storage/SD card and USB-OTG)
- Cache
- Data
- Dalvik / ART Cache
- System (if possible from your recovery)
- Internal storage (if possible from your recovery)

* From the recovery, install the main ROM ZIP: lineage-12.1-YYYYMMDD-UNOFFICIAL-p6000_pro.zip

* From the recovery, install the GApps Zip of your choice

* Reboot your phone from the recovery to normal mode and wait for the LineageOS boot logo
to appear. The first boot optimizes all apps and will take 5-10 minutes to complete,
depending on the size of your GApps distribution.

* Update install over a previous version:
- Make a full backup (you have been warned)
- Put this ROM's ZIP (plus optionally Magisk ZIP onto your SD card
- Use your recovery of choice to install the ROM ZIP over your existing install
- In case you have Magisk (and MagiskHide Props Config) installed, install both of
them from the recovery immediately after the ROM ZIP (i.e., before rebooting)
- Before rebooting, delete Cache and Dalvik partitions
- Reboot will now take 5-10 minutes to complete (and re-optimize all apps)

Enjoy & have fun :)

awl14