• 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][7.1.2] LineageOS 14.1 for Elephone Trunk

ottmi

Senior Member
Mar 3, 2016
232
364
0
Munich
This is a genuine 64bit LineageOS 14.1 ROM for the Elephone Trunk. It's the follow up to my previous CM13.1 ROM as discussed here:
https://forum.xda-developers.com/android/development/rom-cyanogenmod-13-0-elephone-trunk-t3394060

It can be used as a daily driver, all important features seem to be working, including:
  • Voice
  • Mobile Data
  • Audio
  • Bluetooth
  • Camera
  • WiFi
  • GPS
Please feel free to post any bug reports here.

XDA:DevDB Information
LineageOS 14.1 for Elephone Trunk, ROM for all devices (see above for details)

Contributors
ottmi
Source Code: https://github.com/ottmi/android_device_elephone_trunk

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

Version Information
Status: Snapshot
Current Stable Version: 20180114
Stable Release Date: 2018-01-14

Created 2017-02-10
Last Updated 2018-01-14
 
Last edited:

ottmi

Senior Member
Mar 3, 2016
232
364
0
Munich
Changelog

20180114
  • Upstream LineageOS changes, including December 2017 security patches
  • Fix camera recordings

20170811
  • Upstream LineageOS changes, including August 2017 security patches
  • Remove libwvm and use Crackling Widevine blobs instead

20170430
  • Upstream LineageOS changes

20170419
  • Update to latest LineageOS Upstream, including Android 7.1.2 merge & April Security Patches
  • Enable F2FS
  • Get rid of annoying selinux denials for setsched
  • Enable Pinner Service to pin key files in memory

20170409
  • Return to Crackling camera blobs to fix issues re-enable higher camera resolution
  • Disable backlight dimming in thermal-engine
  • Fix random reboots due to qcom subsystem crashes

20170314
  • Replace netmgrd by proper binary from ASUS Z00T
  • Pull camera blobs (mostly) from Google Seed

20170224
  • Fix crashes of the WCNSS subsystem

20170221
  • Fix GPS

20170220
  • Fix torchlight tile
  • Fix netmgrd crashes that caused mobile data to stop working
  • Remove ZRAM, LZ4, and Swap
  • Remove F2FS support
  • Replace Camera with Snap
  • Replace Browser with Gello

20170210
  • First beta
 
Last edited:

josoft86

Member
Mar 9, 2015
30
15
0
Reggio di Calabria
20170210
  • First beta

@ottmi
Thanks for your work we were expecting. Installed the new rom L_OS 14.1 without difficulty using "TWRP-3.0.2-20161108-trunk.img" + open_gapps-arm64-7.1-pico-20170210.zip + SuperSU-v2.79-201612051815.zip. so far also works updating of installed apps after a thorough tour will let you know any bugs.
Thanks again and good work.:eek::eek::eek:
 

Sampierdarena

Member
Feb 1, 2015
19
3
0
Genova
This afternoon I installed the new ROM.
@ottmi first thank you, a job well done. the first impression is really good, I believe that from this foundation will do a wonderful job.
bug:
- The flashlight does not work.
- Some animations are jerky.

Considerations:
The general flow is good, Wi-Fi reception OK
GPS OK
Camera improvements, noisy photos. The 8 megapixel resolution is not selectable.
Battery: I do not know, it takes time to understand.
 
Last edited:

josoft86

Member
Mar 9, 2015
30
15
0
Reggio di Calabria
@ottmi
after using for a couple of days the first version of the Rom L_OS 14.1 I consider still to be improved especially the battery life, the management of the status bar and especially the lack of advanced configurations. All this by referring to the Rom "RR-N-v5.8.0-20170115-peach" I have used for nearly a month without any problems and with several customization options although 32Bit. It would be interesting on your part to verify the basis of http://www.resurrectionremix.com/ development for our Trunk 64Bit. Thanks anyway for the wonderful work you are doing.
I'm sorry for my english. :eek::eek:
 
  • Like
Reactions: marcachas

ottmi

Senior Member
Mar 3, 2016
232
364
0
Munich
Guys, you have to be more specific than that if you want me to fix problems: @Sampierdarena:
Which animations are jerky? Is this still the case after the 2nd reboot?
Was the 8MP selection available with CM13.1? I think this is a feature of the camera apk..
@josoft86:
What's wrong with the status bar?
Which advanced configuration options are you missing?

I know about the flashlight, this has been a problem already in CM13.1 and I never found a way to fix it properly.
Also there seem to be some issues with the 2nd SIM slot. I sometimes don't get a data connection with the 2nd SIM - the status shows LTE or HSDPA and connected but I don't get an IP address. This doesn't seem to be a problem with the 1st SIM card. Did anybody else witness this problem?
 
  • Like
Reactions: marcachas

Sampierdarena

Member
Feb 1, 2015
19
3
0
Genova
@ottmi
I try to be more precise:
The animations are jerky affect the output from applications. I partially solved with the trim.
The camera: using CameraFV5 you can choose 8 megapixels, I think you're right, the problem is the camera application stock.
The battery with this release has a shorter duration than 10%, I think it is normal with Android 7.1

Thanks again for your work.
 

josoft86

Member
Mar 9, 2015
30
15
0
Reggio di Calabria
@ottmi
perhaps you interpreted my little appropriate proposals, but I did not remotely affect your work but address it on what I thought was perhaps valid for your own product development. I enclose the examples on the configuration and status bar that I used with the Rom RR. Thanks for your work always appreciated and I hope that more and more continuous.
 

Attachments

karabassssss

Member
Feb 15, 2017
44
3
8
Guys, I'm about to donate my dead elephone trunk if anyone needs it.
it was in great condition but one day it just won't turn on anymore.
it showing charging process once connected to charger, but doesn't react on power button.

case and some other accessories such as spare new back cover can also be donated :).
And thanks Ottmi and all other guys for this great rom that extending life of this device!
 

josoft86

Member
Mar 9, 2015
30
15
0
Reggio di Calabria
@ottmi
I do not know if you might be interested in helping you develop your wonderful work for our Trunk:
Reference: https://plus.google.com/communities/109352646351468373340
"Resurrection Remix (official)
ROM Release │ DEVS ONLY-DO NOT POST HERE

İmportant announcement & some good news

So a few days back we came to an important decision , and we went ahead and decided to merge Full OMS Support.

Yes many users will be happy , some will be upset but honestly it has been too long waiting for Lineage Theme Engine .

Anyhow the manifests will be updated soon and maintainers can push oms builds as official .

Thank you for being patient with us.
Now You can enjoy full OMS supported themes and themers can now officially support our ROM .

PS: users please wait for your maintainers to upload your builds
NO ETA.

If coming from a 5.8.0 build , please clean flash .You will run into issues with dirty flashes and help will not be provided in that scenario
Read before posting

https://plus.google.com/101154841950858558748/posts/RAuHneppoKa

Thank you for understanding

Happy flashing..

Sincerely
RR Team"
 

ottmi

Senior Member
Mar 3, 2016
232
364
0
Munich
@ottmi
I try to be more precise:
The animations are jerky affect the output from applications. I partially solved with the trim.
The camera: using CameraFV5 you can choose 8 megapixels, I think you're right, the problem is the camera application stock.
The battery with this release has a shorter duration than 10%, I think it is normal with Android 7.1
Can you name an application that shows the video problems?

Regarding the camera: the next ROM will ship with the new Snap app as stock camera that allows for setting the resolution to 7.7MP. I'm not sure thought whether that is native or will be interpolated from 13MP..

I can't really comment on battery life as I'm currently using the phone more intensive than usual and connect it to the computer very often, so the battery will recharge quite often..

@ josoft86:
Since the Ark RR ROM seems to be working fine for you, why don't you just this? I personally have no interest in porting another ROM. I don't even use half the features LineageOS offers on top of stock Android. My focus is on creating a stable ROM and being able to regularly pull upstream security fixes. That being said, all my work is published on my Github account, so anybody who's interested can pick it up and use it as a stepping stone for any other ROM.
 
Last edited:

ottmi

Senior Member
Mar 3, 2016
232
364
0
Munich
New ROM 20170220

There's a new ROM available in the download section. Main improvements are fixing of the disappearing torchlight tile (thanks to the good people working on the Redmi2) and fixing of non-operational mobile data after disconnecting from WiFi. Also, I removed support for ZRAM, LZ4, swap, and F2FS. I don't think we need this (other msm8916 devices are living without it) and removing this brings the kernel closer to the stock kernel and hence improve long-term maintainability. I'm using this now as a daily driver and from my point of view it's quite stable.

EDIT: I messed up the GPS blobs in yesterday's release. There's a new ROM now in the download section that should have workiong GPS. Sorry for the inconvenience..


For those who are interested in details and for documentation purposes: on some msm8916 devices on Android 7, mobile data stops working after disconnecting from WiFi. There a few bug reports on LineageOS's jira on this:
https://jira.lineageos.org/projects/BUGBASH/issues/BUGBASH-72
https://jira.lineageos.org/browse/BUGBASH-129

It seems that netmgrd occasionally crashes and leaves the RIL in an undefined state that doesn't allow for new mobile data connections to be established. The crashes are due to netmgrd freeing non-allocated memory (which jemalloc intercepts and causes the process to abort). As netmgrd is a proprietary Qualcom binary, there is no way to fix this in source. I've tried to use the netmgrd binary from other devices but that didn't help. So I ended up patching the binary and replacing the respective calls to the free function by NOPs. Obviously, this introduced a memory leak and we will have to watch this carefully over time. But at least for now this seems to fix the problem and the memory leak seems to be small.
 
Last edited:

siljaer

Senior Member
Jun 12, 2016
212
123
0
Distopia
It seems that netmgrd occasionally crashes and leaves the RIL in an undefined state that doesn't allow for new mobile data connections to be established. The crashes are due to netmgrd freeing non-allocated memory (which jemalloc intercepts and causes the process to abort). As netmgrd is a proprietary Qualcom binary, there is no way to fix this in source. I've tried to use the netmgrd binary from other devices but that didn't help. So I ended up patching the binary and replacing the respective calls to the free function by NOPs. Obviously, this introduced a memory leak and we will have to watch this carefully over time. But at least for now this seems to fix the problem and the memory leak seems to be small.
Maybe it's a silly question, but where is that netmgrd binary from? Would it be possible to use the netmgrd binary from the 32 bits version of Nougat for the google seed?

Meanwhile, my attempts with [email protected] are failing: wifi and ril cannot even start. I will try some change looking at your tree :)

Sorry for not having tried your rom yet, but I am spoiled with your great CM13 :)
 

ottmi

Senior Member
Mar 3, 2016
232
364
0
Munich
Maybe it's a silly question, but where is that netmgrd binary from? Would it be possible to use the netmgrd binary from the 32 bits version of Nougat for the google seed?
It's the 64bit binary from Crackling. I thought about trying the 32bit netmgrd from Seed, but it has quite a few dependencies in terms of libraries. I would probably have to replace the libraries as well which would mean that the version numbers of the 32bit and 64bit libraries would be different. I'm not sure whether that would contribute towards a more stable ROM :confused:
Anyway, the patched version seems to work fine for now. I didn't notice any growth in memory consumption of the netmgrd process, so the leakage is probably small..
 

jan_100

New member
Feb 25, 2017
4
1
0
Hi ottmi,
gorgeous work! I just got this device, therefore i did not do excessive testing yet. In comparison to cm-13.0-20160902, the 14.1-20170221 seems to work better (e.g. camera is not crashing). I do have only one question: At least on my device, root can be only set to 'ADB' or 'disabled'. Is this a restriction of LineageOS?
Best Regards,
Jan
 

siljaer

Senior Member
Jun 12, 2016
212
123
0
Distopia
Hi ottmi,
gorgeous work! I just got this device, therefore i did not do excessive testing yet. In comparison to cm-13.0-20160902, the 14.1-20170221 seems to work better (e.g. camera is not crashing). I do have only one question: At least on my device, root can be only set to 'ADB' or 'disabled'. Is this a restriction of LineageOS?
Best Regards,
Jan
LineageOS requires rooting. It can be done in several ways, I chose to use the addon provided by them in the "extras" download section on the LineageOS website.

---------- Post added at 10:56 ---------- Previous post was at 10:50 ----------

It's the 64bit binary from Crackling. I thought about trying the 32bit netmgrd from Seed, but it has quite a few dependencies in terms of libraries. I would probably have to replace the libraries as well which would mean that the version numbers of the 32bit and 64bit libraries would be different. I'm not sure whether that would contribute towards a more stable ROM :confused:
Anyway, the patched version seems to work fine for now. I didn't notice any growth in memory consumption of the netmgrd process, so the leakage is probably small..
I've read that Lenovo is planning to officially release Nougat for msm8916 G4... I hope they can provide updated BSP too...

Meanwhile, I switched to your new ROM. It's been a short time, but it looks even better than CM13 :D

Thanks for your great work!
 

ve66

Member
Feb 27, 2017
14
4
0
Firenze
Guys, I'm about to donate my dead elephone trunk if anyone needs it.
it was in great condition but one day it just won't turn on anymore.
it showing charging process once connected to charger, but doesn't react on power button.

case and some other accessories such as spare new back cover can also be donated :).
And thanks Ottmi and all other guys for this great rom that extending life of this device!
Hi karabassssss, I will appreciate so much if you could donate me your Trunk.

I need a new case and, more, I've broken it and the camera glass too but I don't reach to contact any assistance to do this work.
I live in Italy, close to Florence and logically I will pay for the shipping of the package. Please let me know, thanks :)

PS Many many thanks to @ottmi for your previous CM13 rom, in a couple days I will flash your new one too