• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM] Unofficial LineageOS 14.1 [NJH47F] for ZTE Blade S6 (P839F30)

lightwars

Senior Member
Oct 19, 2010
235
220
43
Wuppertal
Code:
[I]DISCLAIMER[/I]
All information and files — both in source and compiled form — are provided on an as is basis. No guarantees or warranties are given or implied. The user assumes all risks of any damages that may occur, including but not limited to loss of data, damages to hardware, or loss of business profits. Please use at your own risk. Note that unless explicitly allowed by the warranty covering your device, it should be assumed that any warranty accompanying your device will be voided if you tamper with either the system software or the hardware.
Introduction
This is my unofficial build of LineageOS 14.1 for the ZTE Blade S6 aka P839f30.
This is a beta release, so just some basic functions will be given.

I have tested this version with my AS variant device. Other variants have to be tested.
Features
working:
ril: calls, sms, data.
wifi: good.
sensors
gps
sound: clear and loud.
camera: rear and front.
torch
headphone detection
flash is working in new test builds.


not working:
We have to test to find more.
Installation instructions
It is best to have installed the latest stock rom beforehand, so modem and all other vendor stuff is up to date.
If you like you can use this mod to have a unified data partition, please proceed with caution.
You will need TWRP or any other custom recovery.
  • Reboot into recovery and do a nand backup.
  • Do a factory format.
  • Download Rom and put it on your phone or use adb sideload.
  • Install the rom and then clear cache and dalvik cache.
  • optional: install su and/or gapps.
  • optional: install your favourite kernel tool and set the cpu governor to interactive for example - do not use performance it will drain your battery, while you are using your device - not for the new test builds.
Changelog:
11.10.2018 - test build:
  • update los sources, security patch level 05.09.
04.03.2018:
  • make flashlight work.
  • integrate headphone detection.
  • update los sources, security patch level 05.02.

14.06.2018 - test build:
  • flashlight works also in stock camera.
  • governor are set by the system, no need to set them.
  • cores are managed by the system, shuting down and launching them one by one. This should save energy.
  • back and menu button can be toggled in the settings -> additional buttons.
  • Using stock venus files, video recording is working also hd playback should be fine.
  • Update sensor hub firmware to version 2.8.
  • update los sources, security patch level 05.06.
13.02.2018:
  • rebasing lots of things like kernel and device tree and using different vendor blobs.
  • Thus wifi signal is great and the microphone is better.
  • update los sources, security patch level 05.01.
22.11.2017:
  • reboot to recovery, download mode and power off should work fine now.
  • update los sources, security patch level 06.11.
19.10.2017:
  • device reboot fixed, no reboot if the device attempts to suspend.
  • wifi signal strength is better now.
  • 5GHz wifi support is activated - to be tested.
  • remove nfc things.
Downloads
test build - 11.10.2018:
Google Drive
beta version - 04.03.2018:
Google Drive

If you want root use the lineage addon package found here - download arm version.
Install it after flashing the rom or download your favourite root package and install it.

Sources
device
vendor
kernel
FAQ
Here you will find some answers to common question which could arise.
Q: How to give root access to an app or adb?
A: First install the su extra package from Lineage OS or any other su tool you like. Then go into settings and about device, click there multiple times on the build number until you unlocked the developer options. Go to developer options and look for root access.

Q: I thing I found an issue, what to do now?
A: Do a logcat or grab a dmesg while having the issue, otherwise we can't say what is happening. Report as much info as possible. Quote your stock rom your device shipped with or which device variant you possess.
XDA:DevDB Information
Unofficial LineageOS 14.1 [NJH47F] P839F30, ROM for all devices (see above for details)

Contributors
lightwars
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.10.x
Based On: LineageOS 14.1

Version Information
Status: Beta
Current Beta Version: NJH47F
Beta Release Date: 2018-10-11

Created 2017-09-21
Last Updated 2018-10-11
 
Last edited:

xris99

Member
Feb 14, 2006
5
2
0
Awesome, lightwars. Thank you for this Rom and the work you put into it.

I installed it on my EU Blade S6 and can confirm your points on working / non-working.

A couple additional points I discovered so far:

- phone reboots regulary after a couple of minutes (I did a couple of tests cycles with phone going to standby after 1 m inute and switching the phone "off"):
- reboots after 1.5, 2 and 3 minutes with phone going to standby after 1 minute
- reboots after 8.5 and 9 minutes if phone is switched off (standby)
- not able to turn phone off, shutdown and reboot both trigger reboot (with shutdown phone seems to stay "off" a little bit longer than with reboot)
- Wifi has weak signal, but works.
- Wifi only available for 2.4 Ghz, I haven't used the phone for a while, but believe it Supports 5 Ghz as well. Maybe that is connected to the weak 2.4 Ghz signal as well.
- could not get any GPS lock, even location using WLAN and mobile broadcast did not work.
- Screen Mirroring not working, I believe connected to the Wifi issues as well.
- NFC is shown in Settings, but not possible to activate (does the S6 even has NFC?)

Apart from that everything it working great. The phone feels way faster than in stock Rom, videos play smoothly in 720p, 3d performance seemed ok (only tried Google earth, that was way better than in stock rom).

Only issue preventing me from using the phone are the reboots.

Again thank you very much for your great work. Please let me know, if I can help with anything.
 
  • Like
Reactions: Degenerate76

lightwars

Senior Member
Oct 19, 2010
235
220
43
Wuppertal
I installed it on my EU Blade S6 and can confirm your points on working / non-working.

A couple additional points I discovered so far:

- phone reboots regulary after a couple of minutes (I did a couple of tests cycles with phone going to standby after 1 m inute and switching the phone "off"):
- reboots after 1.5, 2 and 3 minutes with phone going to standby after 1 minute
- reboots after 8.5 and 9 minutes if phone is switched off (standby)
- not able to turn phone off, shutdown and reboot both trigger reboot (with shutdown phone seems to stay "off" a little bit longer than with reboot)
- Wifi has weak signal, but works.
- Wifi only available for 2.4 Ghz, I haven't used the phone for a while, but believe it Supports 5 Ghz as well. Maybe that is connected to the weak 2.4 Ghz signal as well.
- could not get any GPS lock, even location using WLAN and mobile broadcast did not work.
- Screen Mirroring not working, I believe connected to the Wifi issues as well.
- NFC is shown in Settings, but not possible to activate (does the S6 even has NFC?)
It's good to hear, that this rom also work for the EU variant. Before,we have used different kernels...
Sadly I had discovered the reboots also. Thanks for doing some more testing.:good:

Will get some logs to see,if we could do something easily about it. Thought that it coul be related to just some kernel config mismatches, but it don't have to...

NFC is just left over from the starting point... It will be removed, but a little bit curious, that some variants have NFC support activated in the kernel config...
 
  • Like
Reactions: Degenerate76

MattSqu

Member
May 12, 2017
7
2
0
Out of curiousity, have you checked the GPS.conf? I've always had trouble with GPS on this phone but have got it mostly working after lots of fiddling, so I could post if that would be helpful.

Awesome, lightwars. Thank you for this Rom and the work you put into it.

I installed it on my EU Blade S6 and can confirm your points on working / non-working.

A couple additional points I discovered so far:

- phone reboots regulary after a couple of minutes (I did a couple of tests cycles with phone going to standby after 1 m inute and switching the phone "off"):
- reboots after 1.5, 2 and 3 minutes with phone going to standby after 1 minute
- reboots after 8.5 and 9 minutes if phone is switched off (standby)
- not able to turn phone off, shutdown and reboot both trigger reboot (with shutdown phone seems to stay "off" a little bit longer than with reboot)
- Wifi has weak signal, but works.
- Wifi only available for 2.4 Ghz, I haven't used the phone for a while, but believe it Supports 5 Ghz as well. Maybe that is connected to the weak 2.4 Ghz signal as well.
- could not get any GPS lock, even location using WLAN and mobile broadcast did not work.
- Screen Mirroring not working, I believe connected to the Wifi issues as well.
- NFC is shown in Settings, but not possible to activate (does the S6 even has NFC?)

Apart from that everything it working great. The phone feels way faster than in stock Rom, videos play smoothly in 720p, 3d performance seemed ok (only tried Google earth, that was way better than in stock rom).

Only issue preventing me from using the phone are the reboots.

Again thank you very much for your great work. Please let me know, if I can help with anything.
 
  • Like
Reactions: Degenerate76

Degenerate76

Member
Jul 28, 2013
9
2
0
Willing you on for success with this.

I have an EU model which I'd like to install this on once it's functional enough (my regular daily phone).

I also have an old AS model that I may be able to revive for testing purposes (backlight failing intermittently after I dropped it, possibly a loose connection).
 

lagos911

Senior Member
Jan 25, 2009
179
16
18
Ok guys i want to install this rom but i cant. I cant find a tutorial here how to root the device. I try to install the recovery [RECOVERY][p839f30 / ZTE Blade S6] UNOFFICIAL TWRP [3.1.0-0] first but i failed too. There is a full guide how to do this? And if I install this there is a way back to the stock rom. Thanks.
 

lagos911

Senior Member
Jan 25, 2009
179
16
18
i install the rom at my phone (eu version) I get black screen after the install for 3 minites and then the device is shuting down.
What I do wrong? I wipe the device and I install the rom from my external sdcard.
 

lightwars

Senior Member
Oct 19, 2010
235
220
43
Wuppertal
i install the rom at my phone (eu version) I get black screen after the install for 3 minites and then the device is shuting down.
What I do wrong? I wipe the device and I install the rom from my external sdcard.
After installing the rom and you push reboot system, if the black screen (download mode probably) appears, hold the power button until the phone vibrates and reboots.
Now the ZTE splash screen should come up and the phone should boot hopefully.
 

lagos911

Senior Member
Jan 25, 2009
179
16
18
After installing the rom and you push reboot system, if the black screen (download mode probably) appears, hold the power button until the phone vibrates and reboots.
Now the ZTE splash screen should come up and the phone should boot hopefully.
Yes I do that some times from the second time and after because i didnt want to wait. But black screen continues to appear.
I rewipe (all king of wipes) and reinstall the rom 5 times but nothing happend.
I install the old rom because i was needed the phone. Phone start to loop reboot when I found out the bootfix and now its OK.
Maybe I try lineageOS 14.1 again at the weekend.
 

lagos911

Senior Member
Jan 25, 2009
179
16
18
So I try to install the rom yesterday. I keep get the black screen after the I reboot the phone. This time I install the fix boot EU from the cyanogen rom. I reboot the phone and I saw the animation boot logo. I think I did it but the animation never go away. I let the phone for 30 minites but i never saw the menu of the new android. :(
 

lightwars

Senior Member
Oct 19, 2010
235
220
43
Wuppertal
So I try to install the rom yesterday. I keep get the black screen after the I reboot the phone. This time I install the fix boot EU from the cyanogen rom. I reboot the phone and I saw the animation boot logo. I think I did it but the animation never go away. I let the phone for 30 minites but i never saw the menu of the new android. :(
Ok, so we've got some problems with EU devices... maybe there are more variants, I'm think of EU, DE, UK, ES, PT and who knows... Could be small differences have an impact here...

To say it clearly to install the boot EU fix from the CM-12.1 thread has installed an other boot image for your phone which have kernel which will not work with nougat.

But anyway I believe I know why the device reboots itself, cause it can't suspend itself in the right manner. Let me show you a kernel log, how it should be:
Code:
<6>[  189.766084] PM: suspend entry 2017-10-13 04:49:15.725432575 UTC
<6>[  189.767479] mmc1: Starting deferred resume
<6>[  189.767983] mmc0: Starting deferred resume
<6>[  189.861591] mmc0: Deferred resume completed
<6>[  189.907006] mmc1: Deferred resume completed
<6>[  189.766118] PM: Syncing filesystems ... done.
<3>[  189.999154] Error: returning -512 value
<6>[  189.998043] Freezing user space processes ... (elapsed 0.008 seconds) done.
<6>[  190.006568] Freezing remaining freezable tasks ... (elapsed 0.005 seconds) done.
<6>[  190.011790] Suspending console(s) (use no_console_suspend to debug)
<6>[  190.018262] 	[AK4375] ak4375_suspend(1402)
<6>[  190.025845] [TP:CORE]Enter fb_notifier_callback.
<6>[  190.025845] 
<6>[  190.025892] [TP:CORE]Enter fb_notifier_callback.
<6>[  190.025892] 
<7>[  190.034218] --CWMCU--CWMCU_suspend
<6>[  190.046580] PM: suspend of devices complete after 33.038 msecs
<6>[  190.048343] PM: late suspend of devices complete after 1.737 msecs
<6>[  190.053764] PM: noirq suspend of devices complete after 5.409 msecs
<6>[  190.053774] Disabling non-boot CPUs ...
<6>[  190.081114] CPU0:msm_cpu_pm_enter_sleep mode:3 during suspend
...
<6>[  400.663545] Enabling non-boot CPUs ...
<6>[  400.664692] CPU1 is up
<6>[  400.665735] CPU2 is up
<6>[  400.666779] CPU3 is up
<6>[  400.668230] CPU4 is up
<6>[  400.669120] CPU5 is up
<6>[  400.670027] CPU6 is up
<6>[  400.670974] CPU7 is up
<6>[  400.671561] PM: noirq resume of devices complete after 0.570 msecs
<6>[  400.672983] PM: early resume of devices complete after 0.796 msecs
<7>[  400.679137] --CWMCU--CWMCU_resume
<6>[  400.689515] PM: resume of devices complete after 16.510 msecs
<6>[  400.690769] runin_work:BatteryTestStatus_enable = 0 chip->usb_present = 0 
<6>[  400.690573] Restarting tasks ... done.
<6>[  400.696613] PM: suspend exit 2017-10-13 05:59:11.279104088 UTC
But at the moment the device hangs up while trying to freeze the user space processes and fails.
I found that there is a problem with the device tree image of the kernel, so using the stock one everything is well.
I will make changes and a new version will appear soon.
In the meantime please try out flashing this bootimages after installing LOS-14.1:
Boot - LOS-14.1 standard image(AS)
Boot EU -LOS-14.1

Hopefully one of these works and the reboot issue shouldn't happen also.
 
Last edited:

lagos911

Senior Member
Jan 25, 2009
179
16
18
Ok, so we've got some problems with EU devices... maybe there are more variants, I'm think of EU, DE, UK, ES, PT and who knows... Could be small differences have an impact here...

To say it clearly to install the boot EU fix from the CM-12.1 thread has installed an other boot image for your phone which have kernel which will not work with nougat.

But anyway I believe I know why the device reboots itself, cause it can't suspend itself in the right manner. Let me show you a kernel log, how it should be:
Code:
<6>[  189.766084] PM: suspend entry 2017-10-13 04:49:15.725432575 UTC
<6>[  189.767479] mmc1: Starting deferred resume
<6>[  189.767983] mmc0: Starting deferred resume
<6>[  189.861591] mmc0: Deferred resume completed
<6>[  189.907006] mmc1: Deferred resume completed
<6>[  189.766118] PM: Syncing filesystems ... done.
<3>[  189.999154] Error: returning -512 value
<6>[  189.998043] Freezing user space processes ... (elapsed 0.008 seconds) done.
<6>[  190.006568] Freezing remaining freezable tasks ... (elapsed 0.005 seconds) done.
<6>[  190.011790] Suspending console(s) (use no_console_suspend to debug)
<6>[  190.018262] 	[AK4375] ak4375_suspend(1402)
<6>[  190.025845] [TP:CORE]Enter fb_notifier_callback.
<6>[  190.025845] 
<6>[  190.025892] [TP:CORE]Enter fb_notifier_callback.
<6>[  190.025892] 
<7>[  190.034218] --CWMCU--CWMCU_suspend
<6>[  190.046580] PM: suspend of devices complete after 33.038 msecs
<6>[  190.048343] PM: late suspend of devices complete after 1.737 msecs
<6>[  190.053764] PM: noirq suspend of devices complete after 5.409 msecs
<6>[  190.053774] Disabling non-boot CPUs ...
<6>[  190.081114] CPU0:msm_cpu_pm_enter_sleep mode:3 during suspend
...
<6>[  400.663545] Enabling non-boot CPUs ...
<6>[  400.664692] CPU1 is up
<6>[  400.665735] CPU2 is up
<6>[  400.666779] CPU3 is up
<6>[  400.668230] CPU4 is up
<6>[  400.669120] CPU5 is up
<6>[  400.670027] CPU6 is up
<6>[  400.670974] CPU7 is up
<6>[  400.671561] PM: noirq resume of devices complete after 0.570 msecs
<6>[  400.672983] PM: early resume of devices complete after 0.796 msecs
<7>[  400.679137] --CWMCU--CWMCU_resume
<6>[  400.689515] PM: resume of devices complete after 16.510 msecs
<6>[  400.690769] runin_work:BatteryTestStatus_enable = 0 chip->usb_present = 0 
<6>[  400.690573] Restarting tasks ... done.
<6>[  400.696613] PM: suspend exit 2017-10-13 05:59:11.279104088 UTC
But at the moment the device hangs up while trying to freeze the user space processes and fails.
I found that there is a problem with the device tree image of the kernel, so using the stock one everything is well.
I will make changes and a new version will appear soon.
In the meantime please try out flashing this bootimages after installing LOS-14.1:
Boot - LOS-14.1 standard image(AS)
Boot EU -LOS-14.1

Hopefully one of these works and the reboot issue shouldn't happen also.
I try to install the boot but file is corrupted
 

lagos911

Senior Member
Jan 25, 2009
179
16
18
I downloaded both files and they install just fine.
You have to switch from ZIP installing to image installing at the install dialog from twrp the button at the bottom right.
Yea i didnt know that with the image flashing. Thanks.
Actually I did it and I install the rom with your boot EU fix. No big diffrents at the interface from the 12.1 cm.
I dont working a lot with lineageOS but many thinks dont work. I enable wifi and disable automatic. Flashlight and some other thinks.
I hope you build a stable rom.

P.S. Now i have install the CM12.1 and when I try to enter the bootloader the device stuck.
Also I try to delete some system apps with ES explorer PRO and I get that my device its not rooted.
I have done something wrong with the rooting?
 

lightwars

Senior Member
Oct 19, 2010
235
220
43
Wuppertal
P.S. Now i have install the CM12.1 and when I try to enter the bootloader the device stuck.
Also I try to delete some system apps with ES explorer PRO and I get that my device its not rooted.
I have done something wrong with the rooting?
I am not sure I can follow your description... What means stuck? bootloader displays just a black screen.

Normally you can activate root in the developer settings, which are displayed after clicking serveral times on the build number. There you will find an option to enable/disable root for apps and adb.
Or if you prefer other tools like supersu install it first, then try again.
Remember to ask question for CM12.1 inside the appropriate thread.
 
  • Like
Reactions: lagos911

lagos911

Senior Member
Jan 25, 2009
179
16
18
Sorry for the wrong topic. I didint know that the bootloader appearing a black screen. Usually they have a menu.
I forgot to mention that the option for root explorer at ES explorer PRO you can activated from here.
 
Last edited:

6833pus

New member
Nov 21, 2015
4
0
0
Please help :/

I've installed this onto my zte blade s6 but my internet doesn't turn on on the phone and I flashed the eu fix by lightwars on my recovery so now i don't have a recovery and my phone isn't rooted. PLEASE HELP.