• 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][8.1.0][nx549j] LineageOS 15.1 for Nubia z11 mini s [21/10/2018]

highwaystar_ru

Senior Member
Sep 17, 2016
332
2,306
93


Code:
/*
 * I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...). 
 * Please do some research if you have any concerns about features included in the products you find here 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. 
 * Your warranty will be void if you tamper with any part of your device / software.
 * Same statement for XDA.
 */

LineageOS is a free, community built, aftermarket firmware distribution of Android 7 (nougat), which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.


What works:
Calls/SMS/Mobile data
Wifi
Bluetooth
GPS
Camera (Photo/Video/Flashlight/HAL3)
Audio
Fingerprint sensor
DT2W
Keydisabler
Notification LED
Torchlight
NFC
Broken
You tell me

Source code:
device tree: https://github.com/HighwayStar/android_device_nubia_nx549j
device-common: https://github.com/HighwayStar/android_device_nubia_msm8953-common
kernel: https://github.com/HighwayStar/android_kernel_nubia_msm8953
vendor: https://github.com/HighwayStar/android_vendor_nubia

Clean code with kernel rebased on top of latest caf oreo msm8953 tag.

Download
2018-10-21
Updated kernel
Update Lineage code

mailru: lineage-15.1-20181021-UNOFFICIAL-nx549j.zip
gdrive: lineage-15.1-20181021-UNOFFICIAL-nx549j.zip

Previous versions:
2018-10-03
Added ability to power on device when alarm set

mailru: lineage-15.1-20181003-UNOFFICIAL-nx549j.zip
gdrive: lineage-15.1-20181003-UNOFFICIAL-nx549j.zip

2018-10-02
Added FM radio
Ambient display (power on display on notification recieved)

mailru: lineage-15.1-20181001-UNOFFICIAL-nx549j.zip
gdrive: lineage-15.1-20181001-UNOFFICIAL-nx549j.zip

2018-09-25
Updated audio configs
Added sepolicy rules,selinux in enforcing mode now
Added stock thermal config
Fixed LiveDisplay

mailru: lineage-15.1-20180925-UNOFFICIAL-nx549j.zip
gdrive: lineage-15.1-20180925-UNOFFICIAL-nx549j.zip

2018-09-16
  • Added exfat sdcard support
  • Updated mount option for /data partition. It should provide more performance and longer flash ROM live.
  • Fixed calls recording.
  • Added missing perfromance profiles config file (powerhint.xml). This should result in better powersave when idle and better performance on demanding tasks.
  • Made LED config same as was in 14.1.
  • Default screen brightness set to match stock rom (lower than was in previous version).
  • Added kernel config options recommended for oreo builds. Now battery stats should calc better apps use. Added BFQ IO scheduler.
mailru: lineage-15.1-20180916-UNOFFICIAL-nx549j.zip
gdrive: lineage-15.1-20180916-UNOFFICIAL-nx549j.zip

2018-09-15
* Initial release
gdrive: lineage-15.1-20180915-UNOFFICIAL-nx549j.zip
mailru: lineage-15.1-20180915-UNOFFICIAL-nx549j.zip

To install this you have to install TWRP first. I can recommend this version, built with same kernel as ROM. nx549-twrp-3.2.1.img

If you want to use google apps use ARM64 Android 8.1 opengapps package https://opengapps.org/.

If you need root use Lineage addonsu or Magisk

This rom supports Google camera mods. You can get HDR+ working with one of version from here https://www.celsoazevedo.com/files/android/google-camera/ One of known working version is MGC_5.1.018.177624777-41364271.apk. to make HDR+ avaliable you have to select model Nexus 6P in settings and restart app (this means swipe it from recent apps or reboot).

XDA:DevDB Information
[ROM][UNOFFICIAL][8.1.0][nx549j] LineageOS 15.1 for Nubia z11 mini s [21/10/2018], ROM for all devices (see above for details)

Contributors
highwaystar_ru
Source Code: https://github.com/HighwayStar/android_kernel_nubia_msm8953

ROM OS Version: 8.x Oreo
ROM Kernel: Linux 3.10.x
Based On: LineageOs

Version Information
Status: Testing

Created 2018-09-15
Last Updated 2018-10-21
 

rtgiskard

Member
Sep 19, 2018
8
1
0
have persist partition wiped, how to recover

I like the rom, but before flash the rom, I wiped data, system, cache, persist partition with the twrp recovery, and find:
1. wifi and blutooth is unusable (no mac for bluetooth, wifi mac becomes 02:00:00...)
2. nearly all the sensors are not usable now, but phone call and message is still ok

tried:
1, wipe and flash the official rom v3.09 from fast boot: nubia emergency recovery, not work
2, wipe and with nubia emergency tool v1.16, flash the recovery in fastboot nubia emergency download mode, no backup file and not work
3, tried QPST_2.7.474, but it stops to work frequently, and can hardly do anything

now I'm just using the phone without wifi and most sensors, is there any tidy method to recover all the functions of my nubia z11 mini s,
or could you please backup the persist partition, and tell how to modify the it to make it recover?

Thanks very much!
 

Znooper

Member
Aug 11, 2017
5
1
0
I like the rom, but before flash the rom, I wiped data, system, cache, persist partition with the twrp recovery, and find:
1. wifi and blutooth is unusable (no mac for bluetooth, wifi mac becomes 02:00:00...)
2. nearly all the sensors are not usable now, but phone call and message is still ok

tried:
1, wipe and flash the official rom v3.09 from fast boot: nubia emergency recovery, not work
2, wipe and with nubia emergency tool v1.16, flash the recovery in fastboot nubia emergency download mode, no backup file and not work
3, tried QPST_2.7.474, but it stops to work frequently, and can hardly do anything

now I'm just using the phone without wifi and most sensors, is there any tidy method to recover all the functions of my nubia z11 mini s,
or could you please backup the persist partition, and tell how to modify the it to make it recover?

Thanks very much!

Did you backup params of the device,
If yes then use it with nubia emergency recovery tool if you didn't then you can get persist img if you search in temporary folder of windows while running nubia emergency recovery tool but you have to manually change mac addresses.
 
Last edited:

rtgiskard

Member
Sep 19, 2018
8
1
0
Did you backup params of the device,
If yes then use it with nubia emergency recovery tool if you didn't then you can get persist img if you search in temporary folder of windows while running nubia emergency recovery tool but you have to manually change mac addresses.

thank you so much! by default where is the persist.img file and does this file only exist during the flsh process?
and how to maunually change the mac address?:fingers-crossed:
--

it's in %USER%\AppData\Roaming\Nbrt\000ECB4A ... and is kept after the flash done.
the image extracted there is android sparse image, it can be converted to raw image with the tool here:
android-simg2img in github (no links allowed for me now)

there is only several file in the initial persist image, confirmed that wifi works so long as the three file copied back to /persist, and to change the mac addr, modify Intf0MacAddress in WCNSS_qcom_cfg.ini

Now, it's flashing the official rom, to check if all the function are recovered, especially the sensors ... later to report
 
Last edited:

Znooper

Member
Aug 11, 2017
5
1
0
thank you so much! by default where is the persist.img file and does this file only exist during the flsh process?
and how to maunually change the mac address?:fingers-crossed:
So sorry but I'm not able to get that location (am away from my device) but you can find it in temporary folder after selecting recovery option in emergency tool.
Changing mac address is a easy task you can google it up and find many articles on it.
Or https://beebom.com/how-change-mac-address-android/
Go here .
 
  • Like
Reactions: rtgiskard

rtgiskard

Member
Sep 19, 2018
8
1
0
thank you so much! by default where is the persist.img file and does this file only exist during the flsh process?
and how to maunually change the mac address?:fingers-crossed:
--

it's in %USER%\AppData\Roaming\Nbrt\000ECB4A ... and is kept after the flash done.
the image extracted there is android sparse image, it can be converted to raw image with the tool here:
android-simg2img in github (no links allowed for me now)

there is only several file in the initial persist image, confirmed that wifi works so long as the three file copied back to /persist, and to change the mac addr, modify Intf0MacAddress in WCNSS_qcom_cfg.ini

Now, it's flashing the official rom, to check if all the function are recovered, especially the sensors ... later to report

confirmed! now all sensors works, at leasdt for the vendor rom! I can flash lineageos finally!
but seems that for the vendor rom, the mac address is regenerated from other info rather than get from the WCNSS_qcom_cfg.ini ...
 

rtgiskard

Member
Sep 19, 2018
8
1
0
about the persist partition

for now, I flashed this rom, and before flash, I wiped the persist image and copied back some file from the initial persist.img, but after system boot, most sensors does not work still, should I replace the persist partition with the one which works well for the official rom.

the question is:
1. should the persist partition be wiped before flash the rom
2, may I wipe the persist partiton and copy back some initial file from persist.img after the rom boot several times
3, may I replace the whole persist partition with a working one after the rom booted several times
 

rtgiskard

Member
Sep 19, 2018
8
1
0
few sensors does not work for sometime

the step I flash the rom:
  1. flash the twrp from the link here
  2. wipe everything I can wipe(including the persist partition)
  3. reflash the official boot.img, recover official persist.img got from the nubia emergency tool
  4. flash the offcial rom with only the first assertion in the zip deleted(as the ro.product.name is NX549J and can not modify it in the twrp recovery)
  5. wipe all cache and reboot the official rom
  6. confirm that everything works fine and reboot to twrp recovery
  7. backup the persist partition
  8. wipe all cache, system, data, internal storage, sdcard, do not touch persist partition this time
  9. flash this lineageos rom, gapps nano, su plugin
  10. wipe all cache and reboot

on the fisrt reboot, seems that evrything works except for the four sensors:
  • gravity
  • linear acceleration
  • rotation
  • orientation

and the second or third reboot after installed many apps, they comback to life, but on the other reboot, they are not usable again, with the official rom, every sensor works on each reboot.

question:
  1. why the four sensor is special compared to the other sensors?
  2. why it worked once and how to recover them completely

thanks very much!
 

rtgiskard

Member
Sep 19, 2018
8
1
0
more feedback

the step I flash the rom:
  1. flash the twrp from the link here
  2. wipe everything I can wipe(including the persist partition)
  3. reflash the official boot.img, recover official persist.img got from the nubia emergency tool
  4. flash the offcial rom with only the first assertion in the zip deleted(as the ro.product.name is NX549J and can not modify it in the twrp recovery)
  5. wipe all cache and reboot the official rom
  6. confirm that everything works fine and reboot to twrp recovery
  7. backup the persist partition
  8. wipe all cache, system, data, internal storage, sdcard, do not touch persist partition this time
  9. flash this lineageos rom, gapps nano, su plugin
  10. wipe all cache and reboot

on the fisrt reboot, seems that evrything works except for the four sensors:
  • gravity
  • linear acceleration
  • rotation
  • orientation

and the second or third reboot after installed many apps, they comback to life, but on the other reboot, they are not usable again, with the official rom, every sensor works on each reboot.

question:
  1. why the four sensor is special compared to the other sensors?
  2. why it worked once and how to recover them completely

thanks very much!
seems that it's related to the service bootup sequence or maybe, this problem appears in random on boot,
and I found once only the gravity sensor not working.

another problem:
if enabled adb on usb, it's better to have the service delayed on boot or there may be big chances that the adb device id is not initialized to ro.serialno.
 
  • Like
Reactions: Cypressblunts

Cypressblunts

New member
Oct 8, 2016
1
0
0
Twrp doesnt work please fix it . The best ROM for nubia z11 mini s until done.

:cool::)
seems that it's related to the service bootup sequence or maybe, this problem appears in random on boot,
and I found once only the gravity sensor not working.

another problem:
if enabled adb on usb, it's better to have the service delayed on boot or there may be big chances that the adb device id is not initialized to ro.serialno.
 

trol_sg

Senior Member
Oct 22, 2014
114
31
0
Thanks for your great work.
Installed and testing.
So far, not working: FM radio, which is missing.

Would be great to have Nubia camera working for this build as well.

Cheers!
 
Last edited:

ampoking

Member
Aug 28, 2009
17
3
0
Pilsen
Can't flash this ROM :(

Hello I'm really happy when someone still making new roms for this luxury device. Got lineage 14.1 as last perfect fitted ROM. I'm waiting really long time for Android 8.1 and when I was found it..just can't flash it successfully :( I'm using TWRP Nubia Style and flashing from internal memory. Never had any problem with this option of flashing and with this ROM (Lineage 15.1) I just getting a red message after start installation about something like: "Error code 7, This rom is for device: nx549j and your device is..." And nothing. Tried to keep system readable only and tried too check allowing modifies,but still no effect. Can you please teach me what I'm doing wrong? (Flashed every other rom before without any problems. Like Mokee, Lineage,CrDroid,RR and etc..) BTW. Ofc my phone is Nubia z11 mini s (nx549j). And got a next special question.. Is really hard to integrate to lineage ROMs things which are implemented in original Nubia ROM? Like: Nubia Camera (with that luxury quality - Google camera is broken),Good audio sound - speaker,Qualcomm Izat function and etc? Why to not add it to rom when this is only for this model? Thanks for the response ;)