[13/06/2020] Haky86's LineageOS 14.1 Huawei P8 Lite 2017 PRA-LX1

Status
Not open for further replies.
Search This thread

psycop12

Member
Oct 3, 2017
5
0
Hi there,
Trying to build exacly as you said, using the same sources you have on the github description, but when im trying to apply the patch for lineageOS this happens...

Sources used to build
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="codeofhonor-dev/android_kernel_huawei_hi6250" path="kernel/huawei/hi6250" remote="github" revision="o-emui5"/>
<project name="codeofhonor-dev/android_device_huawei_hi6250" path="device/huawei/hi6250" remote="github" revision="o-emui5"/>
<project name="codeofhonor-dev/android_vendor_huawei_hi6250" path="vendor/huawei/hi6250" remote="github" revision="o-emui5"/>
<!--<project name="LineageOS/android_vendor_nxp-nfc_opensource_Nfc" path="vendor/nxp-nfc/opensource/Nfc" remote="github" revision="cm-14.1"/>
<project name="LineageOS/android_vendor_nxp-nfc_opensource_libnfc-nci" path="vendor/nxp-nfc/opensource/libnfc-nci" remote="github" revision="cm-14.1"/>
<project name="LineageOS/android_vendor_nxp-nfc_opensource_frameworks" path="vendor/nxp-nfc/opensource/frameworks" remote="github" revision="cm-14.1"/>-->
</manifest>

Patch error
Applying patch: cm - ./libcore/0001-Runtime-compat-don-t-for-absolute-path.patch
[patch.sh]: WARNING: PATCH FAILED!!! /device/huawei/hi6250/patches/cm/./libcore/0001-Runtime-compat-don-t-for-absolute-path.patch
Applying patch: cm - ./packages/apps/Camera2/0001-Camera2-Fix-photo-snap-delay-on-front-cam.patch
Applying patch: cm - ./packages/apps/Camera2/0001-Camera2-override-capture-support-level.patch
Applying patch: cm - ./packages/apps/Recorder/0001-screencast-config-to-use-google-avc-encoder.patch
[patch.sh]: WARNING: Skipping 0001-CodinalteParts-Integration-meticulus.patch: You are not Meticulus.
Applying patch: cm - ./packages/apps/Snap/0001-Snap-fix-FC-switching-to-front-cam-video-mode.patch
Applying patch: cm - ./packages/providers/MediaProvider/0001-fix_mtp.patch
Applying patch: cm - ./system/core/0001-init-vendor-stubs-boot-critical.patch
[patch.sh]: ERROR: PATCH FAILED!!! /device/huawei/hi6250/patches/cm/./system/core/0001-init-vendor-stubs-boot-critical.patch
[patch.sh]: : #############################################################################
[patch.sh]: : # ABORT: This ROM may not build or may not boot unless this patch is fixed. #
[patch.sh]: : #############################################################################
 
Last edited:
anybody else notice when phone is powered off, then u try to turn it on with power keys it will take long press for it to turn on? also when powered off, then plug charger? it almost scared away my life!

also using some hidden phone codes in phone dialer like *#*#44336#*#* will not give display of its use. especially i check my phone credits using my network provider's code, it will display but other stuff will not display like my phone's sim card balance or credit.
 
  • Like
Reactions: CrimsonBloodfang

Noel.89

Senior Member
anybody else notice when phone is powered off, then u try to turn it on with power keys it will take long press for it to turn on? also when powered off, then plug charger? it almost scared away my life!

also using some hidden phone codes in phone dialer like *#*#44336#*#* will not give display of its use. especially i check my phone credits using my network provider's code, it will display but other stuff will not display like my phone's sim card balance or credit.


Yup mine does that too
 

haky 86

Recognized Contributor
  • Oct 5, 2012
    3,446
    7,480
    Hama (Syria)
    ** Note **

    **17/05/2018**
    • Security patch: 5 April 2018.

    **17/05/2018**
     

    Attachments

    • Screenshot_20180517-120459.png
      Screenshot_20180517-120459.png
      110 KB · Views: 705
    Last edited:

    polpettopoh

    Member
    Jan 6, 2018
    7
    1
    Agree, and considering that HUAWEI stock 7 and 8 rom just don't work with AA (random mute on music, black screen for waze, hang...) this is perfect.

    I am starting to think that AA is meant for AOSP and Nexuses only.
     
    Status
    Not open for further replies.

    Top Liked Posts

    • There are no posts matching your filters.
    • 58
      LineageOS is a free, community built, aftermarket firmware distribution of Android 7.1 (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. Lineage OS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

      Code:
       * Your warranty is now void.
       * We are not responsible for bricked devices, dead SD cards,
       * thermonuclear war, or you getting fired because the alarm app failed. Please
       * do some research if you have any concerns about features included in this ROM
       * before flashing it! YOU are choosing to make these modifications, and if
       * you point the finger at us for messing up your device, we will laugh at you.


      Compatible device?:
      Code:
      [LIST]
      [*]P8 Lite 2017.
      [*]P10 Lite.
      [/LIST]

      Mandatory:
      * hit thank buttons, it's free.
      * want more roms for P8 Lite 2017/P9 Lite 2017, simply bring me up beers by the following button.

      Requirements:
      • Unlocked bootloader.
      • Unlocked FRP.
      • vendor.img: you must be on stock one, so don't wipe it because with other custom vendor.img will never ever boot.
      • Emui 5.x B115 (Single Sim) or B170(Dual Sim)

      How to Install the ROM?
      * reboot to TWRP.
      * go to Wipe -> Advanced Wipe.
      * check Data -> Change file system -> select EXT4.
      * swipe the screen to wipe it ;) .

      How can I fix Sim?
      * go to Settings -> Extras -> disable "Sim Card Slot2 " and reboot.

      How can I enable Google Codecs
      * go to Settings -> Extras -> enable "Use Google H264" (it's a bit laggy but better than nothing).

      How to enable Double Touch To Wake?
      * go to Settings -> Extras -> enable "Double Touch to Wake"

      Should I reflash the vendor partition if come from other roms?
      * if you coming from Emui 5.x, the answer is no because the custom rom are based on Emui 5.0 source code, so all you
      have to is flashing your favorite custom rom ;)

      Audio and camera are not working?
      * bring up a logcat to help us, instead of writing useless comments.


      Gapps:

      Working Hardware:
      • Audio.
      • Bluetooth.
      • Browser.
      • Display.
      • GPS.
      • Graphics: only gralloc.
      • Lights.
      • RIL.
      • Sensors.
      • Storage: both internal & external storage.
      • Wifi.


      Bugs:
      • Tell me

      LineageOS 14.1:

      Downloads:


      Changelogs:
      • 30/07/2017:
        • Initial build.

      • 03/08/2017:
        • Testing hwcomposer, report us if the build boot and run games fine.
        • Camera will be fixed soon.

      • 21/08/2017:
        • fix random reboot.
        • fix some tethering issues.
        • wifi should be fixed (send me a logcat if not work) it was working on my own pra-lx1..

      • 25/08/2017:
        • fix sim.
        • fix hwcomposer (in theory, you should test games for that).
        • fix wifi..

      • 01/09/2017:
        • ril has beeb fixed by disable flags for dual sim, my device is single sim.
        • fix wifi (will try to fix saving password issue).

      • 01/09/2017:
        • Android 7.1.2 R29.
        • fix bootloop.
        • fix random reboot.
        • to fix lags: disable Ambient Display from Display settings.

      • 15/11/2017:
        • update HwComposer according to this patch.
        • Update permissions for Google Play.
        • Build is smooth and fast even with enabled ambient display

      • 21/12/2017:
        • fix minor bugs :)

      • 31/12/2017:
        • fix camera

      • 06/01/2018:
        • fix USB & memories.

      • 21/01/2018:
        • Fix error 7 by adding support for prague devices, so you must flash my latest twrp, the v2.5.
        • Fix ril on prague devices.
        • Fix ril crashes, I test the automated voice of ussd code for more than 30 seconds and didn't crash like before.
        • Note: this rom is only for the Huawei P8 Lite 2017 if you didn't get worked audio or camera on your hi6250 device isn't my fault, just flash my own vendor.img from unbrick guide, that's why I get everything works on my pra-lx1 like the following attached screenshot.

      • 25/01/2018:
        • Fix audio for P10 Lite
        • Add support for Vulkan libraries for all hi6250.
        • Fix camera on some prague devices.

      • 31/01/2018:
        • Fix Magisk 15.3
        • Security patches: January 2018 ;)

      • 19/02/2018:
        • security patches: Feb 2018

      • 02/05/2018:
        • fix call's sensor issue.
        • latest android 7.1.2 build.

      • 28/12/2019:
        • Fix Magisk
        • Fix RIL crash.
        • Security Patches: 5 Dec 2019

      • 11/06/2020:
        • New "Extra" thanks to dady8889 for the base (I'll clean up tomorrow)
        • Fix Mute in Call.
        • SPL: May 2020

      • 13/06/2020:
        • Fix Mute in Call.
        • Fix USSD. (thanks to flex1911 for his emui8 fixes)
        • Fix RIL Crash again.

      [/HIDE]
      Source Code:

      Credits
      @haky 86
      @Meticulus special thanks for immense work done in just few days for the hi6250 platform.

      Contributors
      @haky 86
      Source Code: https://github.com/hak86

      ROM Kernel: Linux 4.1.x
      ROM Firmware Required: EMUI 5.0 or newer
      Version Information

      Status: Beta
      Beta Release Date: 2017-07-30

      Created 2017-07-30
      Last Updated 2017-12-21
      18
      Oh, finally you did it ;)

      You can easy fix deep-sleep issue if you'll apply @XePeleato' patch for surfaceflinger , please take a look here , credit goes to @XePeleato !

      Second, you can also easly fix the "reboot to erecovery" issue, by applaying my patch for kernel, you should take a look here as well !

      I assume Hotspot isn't working, because you need more patches to kernel ... so you can cherry-pick almost all my commits, but as always you should keep authorship, as much as possible ;)

      About camera ?? - you can't enable camera so easy ... I'll let you to try , and if you do not succeed in a week, please let me to know and I'll help you :p

      Good luck !
      11
      Reserved

      **Downloads**

      • 21/08/2017:
        • fix random reboot.
        • fix some tethering issues.
        • wifi should be fixed (send me a logcat if not work) it was working on my own pra-lx1..

      Hit a thank if you love my works, no thanks no roms.
      10
      Reserved

      ROM stuck at animation boot?
      this because you must change the file system from F2FS to EXT4 to done boot process
      * reboot to TWRP.
      * go to Wipe -> Advanced Wipe.
      * check Data -> Change file system -> select EXT4.
      * swipe the screen to wipe it ;) .

      How can I fix Sim?
      * go to Settings -> Extras -> disable "Sim Card Slot2 " and reboot.

      How can I enable Google Codecs
      * go to Settings -> Extras -> enable "Use Google H264" (it's a bit laggy but better than nothing).

      How to enable Double Touch To Wake?
      * go to Settings -> Extras -> enable "Double Touch to Wake"

      Should I reflash the vendor partition if come from other roms?
      * if you coming from Emui 5.x, the answer is no because the custom rom are based on Emui 5.0 source code, so all you
      have to is flashing your favorite custom rom ;)

      Audio and camera are not working?
      * bring up a logcat to help us, instead of writing useless comments.

      I got error 7, how can I fix that?
      * use my own TWRP recovery. or you can simply remove the whole assert line in the updater-script file inside the META-INF folder save and re-flash.

      How can I fix RIL Crashes
      • flash root.
      • Copy the phone.prop into /system/vendor and /vendor.
      • reboot, now you should able to do calls for more than 2 minuts ;)

      Calls still crash even with fix SIM
      • Run adb shell and type the following command xxd /sys/firmware/devicetree/base/hisi,modem_id .
      • the result will be something like the following out ( for single sim devices):
      1|hi6250:/ $ xxd /sys/firmware/devicetree/base/hisi,modem_id
      00000000: xxxx x000 ;xx.
      • Search for your xxxxx000, and setup the following flags .
        ro.config.client_number=1
        ro.config.modem_number=1
        persist.dsds.enabled=false
        persist.radio.multisim.config=dsds (remove it properly)
      • for dual sim devices just edit these 2 flags:
        ro.config.client_number=1
        ro.config.modem_number=1
      • Save and reboot.
      9
      Is the camera issue only with stock camera app, or also with any other camera app?
      it's correct, is not work also with any other camera app due to missed libs, so i'm working on customized vendor.img from my own pra-lx1 that already boot successfully but need some adjustments to make audio, bluetooth and ril work again then will work on camera that got some interesting logs should help me to fix the issue easier, keep in touch. :eek: