• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[WIP] [ROM] [8.1.x] LineageOS 15.1 [Sumire]

Search This thread

threader

Senior Member
May 31, 2010
206
135
I'm posting this now and hope in doing so some new input can be reached. Due to recent new and old exploits we need this, I have hardened the kernel some, from CopperheadOS, and put in place full "Harden usercopy", updated it to 3.10.108, and before I go any further in breaking the kernel i release this WIP. I refer to this post ( https://forum.xda-developers.com/showpost.php?p=80265757&postcount=50 ) for the current state of mobile calls etc.

Fastboot images:
190919: https://drive.google.com/open?id=1OAzYc_D_FHbbmIyFiSVtGLolB2EfiE40
290819: https://drive.google.com/open?id=1d8FNiFlMN6Bey6xD606pBomqBgSiZ-MO

Features:
OS Version: 8.1.0 Oreo
Kernel: Linux 3.10.108

Important informations:
You should be familiar with general installation of custom roms.
Required for installation: fastboot
This ROM needs a clean install, old /data may cause problems!

Working:
WIFI
Bluetooth
OTG-USB
NFC

These things are NOT working.
Camera; is not included due to inconsistency in the build currently. But failed to connect to the camera last time it did.
GSM; this will require reworking some android code, making some progress i think.
Code:
Abort message: 'CANNOT LINK EXECUTABLE "/system/bin/netmgrd": cannot locate symbol "_ZN6google8protobuf8internal20RepeatedPtrFieldBase4SwapEPS2_" referenced by "/system/vendor/lib64/libcneapiclient.so"...'
FM-Radio (not included)
GPS

Bugs:
Installing apps freeze the phone for a while.

Basically, this release needs help.

Source:
https://github.com/threader/local_manifests
https://github.com/threader/kernel
https://github.com/threader/android_device_sony_sumire
https://github.com/threader/android_device_sony_kitakami-common
Patch for external/protobuf attached to this thread.
Modified libcneapiclient.so attached.

Credits:
Everyone involved with the Sony-msm8994 project ( https://github.com/sony-msm8994/android_device_sony_kitakami-common/commits/lineage-15.1 )
Mr. Open devices "jerpelea", for actually answering some of my stupid questions I should have realized myself.
Berni-0815 for trying to do this for the z5c and leaving useful resources.
And everyone posting and following the Guide to port to Lineage-16.0 thread by algui91 (https://forum.xda-developers.com/xperia-z5/general/guide-to-port-to-lineage-16-0-t3931428) and willing to participate, this is a community effort after all.

Please don't quote this thread, I will edit it as I release new builds and make progress.

I was unsuccessful in building a flashable zip image first time I tried some moons ago, I don't know if this was due to the need of a TWRP update or just my half arsed attempt, I would appreciate if someone could direct me to correctly doing so.

Cheers
 

Attachments

  • protobuf_for_old_vendor_libs-1.patch
    13.2 KB · Views: 41
  • system-vendor-lib-libcneapiclient-2.tar.bz2
    181.6 KB · Views: 34
Last edited:

threader

Senior Member
May 31, 2010
206
135

let me think on that, but there are two things that's needed, a libcneapiclient.so that is msm8996 perhaps and for Android 8.x, maybe we can decompile and figure out the differences. And a Qualcomm trust zone from from maybe 8996 to hack and plug the holes. I'm still reading up.on this though but if you Google "chipsec Qualcomm trust zone" or indeed just the first results for " Qualcomm trust zone" you certainly see the problem ( https://blog.quarkslab.com/introduction-to-trusted-execution-environment-arms-trustzone.html , https://www.blackhat.com/docs/us-14/materials/us-14-Rosenberg-Reflections-on-Trusting-TrustZone.pdf )

I'm re-working the external/protobuf modifications just now as I think that is why the bug i listes occurred.

Edit:
Right, great, after unhacking the hacks and returning the protobuf API to its original state I'm stuck an error before the quite impossible error i had earlier, so this is not going as quickly as i thought, either.
Code:
Abort message: 'CANNOT LINK EXECUTABLE "/system/bin/netmgrd": cannot locate symbol "_ZN6google8protobuf2io17CodedOutputStream13WriteVarint32Ej" referenced by "/system/vendor/lib64/libcneapiclient.so"..
This is a clearly defined symbol already but perhaps not behaving as intended and an error my previous attempt somehow worked around.

The following might be the reason it hangs during package install though;
Code:
09-16 18:46:55.875   865   956 W SchedPolicy: add_tid_to_cgroup failed to write '1947' (Permission denied); fd=3
09-16 18:46:38.393   865  1126 W NativeCrashListener: Couldn't find ProcessRecord for pid 2958
 
Last edited:

TALUAtXDA

Senior Member
Nov 8, 2018
384
692
Is this project dead? Seeing a newer version of LOS on this device would be nice.

Sent from my SM-T580 using XDA Labs
 

threader

Senior Member
May 31, 2010
206
135
Is this project dead? Seeing a newer version of LOS on this device would be nice.

Sent from my SM-T580 using XDA Labs

It's resting... My life up ended and screwed my peace and tranquility, I simply have not had the time to look at it, I'm having a look now as long as the peace lasts.

I see there is a 10.0 now, with some collaboration maybe we can get this all working, I argued a lot with the vendor libs, i just need to get a grip on what's going on there with the other project. As far as i can tell quickly looking at it I can merge some of those changes to the unified kernel 3.10.108 I'm using and see how things go, It will take a some time to get going again. As far as the kernel goes I ought get it up to 3.12, there are some pagetable ioslation patches that are required for safe operation etc, but I paused kernel work until i could get Android in shape, then life happened....
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    I'm posting this now and hope in doing so some new input can be reached. Due to recent new and old exploits we need this, I have hardened the kernel some, from CopperheadOS, and put in place full "Harden usercopy", updated it to 3.10.108, and before I go any further in breaking the kernel i release this WIP. I refer to this post ( https://forum.xda-developers.com/showpost.php?p=80265757&postcount=50 ) for the current state of mobile calls etc.

    Fastboot images:
    190919: https://drive.google.com/open?id=1OAzYc_D_FHbbmIyFiSVtGLolB2EfiE40
    290819: https://drive.google.com/open?id=1d8FNiFlMN6Bey6xD606pBomqBgSiZ-MO

    Features:
    OS Version: 8.1.0 Oreo
    Kernel: Linux 3.10.108

    Important informations:
    You should be familiar with general installation of custom roms.
    Required for installation: fastboot
    This ROM needs a clean install, old /data may cause problems!

    Working:
    WIFI
    Bluetooth
    OTG-USB
    NFC

    These things are NOT working.
    Camera; is not included due to inconsistency in the build currently. But failed to connect to the camera last time it did.
    GSM; this will require reworking some android code, making some progress i think.
    Code:
    Abort message: 'CANNOT LINK EXECUTABLE "/system/bin/netmgrd": cannot locate symbol "_ZN6google8protobuf8internal20RepeatedPtrFieldBase4SwapEPS2_" referenced by "/system/vendor/lib64/libcneapiclient.so"...'
    FM-Radio (not included)
    GPS

    Bugs:
    Installing apps freeze the phone for a while.

    Basically, this release needs help.

    Source:
    https://github.com/threader/local_manifests
    https://github.com/threader/kernel
    https://github.com/threader/android_device_sony_sumire
    https://github.com/threader/android_device_sony_kitakami-common
    Patch for external/protobuf attached to this thread.
    Modified libcneapiclient.so attached.

    Credits:
    Everyone involved with the Sony-msm8994 project ( https://github.com/sony-msm8994/android_device_sony_kitakami-common/commits/lineage-15.1 )
    Mr. Open devices "jerpelea", for actually answering some of my stupid questions I should have realized myself.
    Berni-0815 for trying to do this for the z5c and leaving useful resources.
    And everyone posting and following the Guide to port to Lineage-16.0 thread by algui91 (https://forum.xda-developers.com/xperia-z5/general/guide-to-port-to-lineage-16-0-t3931428) and willing to participate, this is a community effort after all.

    Please don't quote this thread, I will edit it as I release new builds and make progress.

    I was unsuccessful in building a flashable zip image first time I tried some moons ago, I don't know if this was due to the need of a TWRP update or just my half arsed attempt, I would appreciate if someone could direct me to correctly doing so.

    Cheers
    4
    Is this project dead? Seeing a newer version of LOS on this device would be nice.

    Sent from my SM-T580 using XDA Labs

    It's resting... My life up ended and screwed my peace and tranquility, I simply have not had the time to look at it, I'm having a look now as long as the peace lasts.

    I see there is a 10.0 now, with some collaboration maybe we can get this all working, I argued a lot with the vendor libs, i just need to get a grip on what's going on there with the other project. As far as i can tell quickly looking at it I can merge some of those changes to the unified kernel 3.10.108 I'm using and see how things go, It will take a some time to get going again. As far as the kernel goes I ought get it up to 3.12, there are some pagetable ioslation patches that are required for safe operation etc, but I paused kernel work until i could get Android in shape, then life happened....