[ROM][11] DarkJoker360 AOSP 11 for Huawei P8 Lite 2017

Search This thread

xfim

Senior Member
Nov 26, 2012
516
98
I installed this on warsaw (P10 Lite) and it boots (I had to flash B326 stock firmware first tho) but wifi, bt and camera doesn't work. Also, the status bar and some other animations are laggy but thats secondary. How can I patch this rom to support wifi, bt and cameras on p10 lite?

EDIT: Reflashing stock rom fixed the issues. Works fine now. Still a bit stuttery tho but not too bad for an old phone.
 
Last edited:
  • Like
Reactions: Djiban
I installed this ROP following all the steps on the first and second post except the TWRP, i used the one builded by @DarkJoker360 because I couldn't find the pretoriano80 one. And now the phone is in a continuous bootloop with the android logo on screen. Is this due to the different TWRP used, in this case can anybody share with me the pretoriano80's twrp ? If not what can I do to solve this bootloop ?!
 
Flashing the rom I got this output:

$ fastboot flash system aosp-11_prague_20210406.img
target reported max download size of 471859200 bytes
Invalid sparse file format at header magic
sending sparse 'system' 1/4 (417881 KB)...
OKAY [ 11.517s]
writing 'system' 1/4...
OKAY [ 11.228s]
sending sparse 'system' 2/4 (460796 KB)...
OKAY [ 12.628s]
writing 'system' 2/4...
OKAY [ 10.559s]
sending sparse 'system' 3/4 (458901 KB)...
OKAY [ 12.600s]
writing 'system' 3/4...
OKAY [ 11.793s]
sending sparse 'system' 4/4 (380426 KB)...
OKAY [ 10.485s]
writing 'system' 4/4...
OKAY [ 9.934s]
finished. total time: 90.745s

It seems to have worked but at the end it sticks in a bootloop.
What does mean the second output line "Invalid sparse file format at header magic" ? The bootloop depends on that ?

Used this twrp version: TWRP_3.4.0-0-warsaw_DarkJoker360_20200611.img
 
Last edited:

olivi25

Member
Jan 10, 2014
19
1
I found this https://androidhost.ru/1iXD?downloa...f907fbae6a8ac7edf9f281dcb4853dc53f5b093d2487d today and installed it, but take care that it will relock the bootloader so, if you didn't save your bootloader code don't do it.

PS. I downloaded the firmware through wget because from firefox the download failed everytime near the end or in the middle

i tried to download but error message

Error
  • File can not be located, please try again later.
ERROR: No packages found, please contact the support team. (at least 1 package needs to have the option of 'On Upgrade Page' to 'Yes' with 'Package Type' of 'Paid')

you installed the image and after, you unlocked the bootloader ?
I save my bootloader code :)
 
i tried to download but error message

Error
  • File can not be located, please try again later.
ERROR: No packages found, please contact the support team. (at least 1 package needs to have the option of 'On Upgrade Page' to 'Yes' with 'Package Type' of 'Paid')

you installed the image and after, you unlocked the bootloader ?
I save my bootloader code :)
This should work ;)



I had the bootloader unlocked but when I installed this firmware it reset everything included the bootloader, thus I had to reunlock the bootloader and luckily I saved the bootloader code when I paid for it XD

Anyway, I tried to flash this rom over this firmware as suggested by @DarkJoker360 but the phone goes into bootloop... Maybe is the recovery version that cause the bootloop... I don't know.
If you got lucky and you are able to boot this rom, please say me what you used or done =)
 
Mar 13, 2021
16
4
I installed it on my P10 Lite by doing this:

1. I went to stock Oreo WAS-LX1 8.0.0.383(C432).
2. Flashed Pretoriano80's recovery from here using the command: "fastboot flash recovery_ramdisk <path to recovery>".
3. Used the command: "fastboot reboot".
4. After booting to the stock system I rebooted to recovery using: "adb reboot recovery".
5. In recovery i wiped these partitions:
- Dalvik / ART Cache
- Cache
- Cust
- Data
- Internal Storage
- System
6. I flashed the RR ROM. (not sure if that is what helped me boot AOSP 11)
7. After booting to RR ROM, I rebooted to recovery and wiped the same partitions above.
8. Rebooted to bootloader via TWRP.
9. I flashed the system using this command: "fastboot flash system <path to the system file>"
10. And i booted to AOSP 11 using: "fastboot reboot".
 
  • Like
Reactions: Djiban

AltairFR

Member
Apr 22, 2021
8
0
Huawei P8lite/P8 Lite
New AOSP 11 update

  • Synced with latest AOSP 11 source code based on r34
  • Merged April 2021 security patches
  • Fixed animations lags and janks
  • Fixed wired headphones not being detected
  • Fixed gps
  • Fixed ril crashes for dual sim devices
  • Updated APN configs from LineageOS
  • Fixed ril crashes with some carriers
  • Fixed Netflix playback
  • Adjusted screen brightness
  • Fixed minimum brightness too high
  • Enabled Wifi Display
  • Improved Signal Strenght
  • Ignored RSSNR signal implementation, as our RIL is not using it
  • Completely disabled useless gnss_watchlssd_thirdparty service causing drains and logspams

Check OP for more infos and download !

Donations
Support Group
Good job DarkJoker. In my Huawei P8 Light 2017, the NFC patch does not work. I haven't found the exact problem yet, but it comes from the ZIP installer. To make the patch work, I had to copy the files one by one with adb, set the rights, and after wipe cache and dalvik.

I will try to make the ZIP installer with différent library
 

Passi36

Member
Oct 11, 2020
11
1
Hello,
my GPS does not seem to be fixed. It does not work properly. It does not find all the satellites and I have problems to determine my position.
Can I send anything to show this(logs screenshots)?
There are no problems with other roms.

thanks
 

NullWasTaken2

Senior Member
Jun 2, 2019
180
246
Hello,
my GPS does not seem to be fixed. It does not work properly. It does not find all the satellites and I have problems to determine my position.
Can I send anything to show this(logs screenshots)?
There are no problems with other roms.

thanks
Rename
/vendor/bin/gnss_watchlssd_thirdparty to "gnss_watchlssd_thirdparty.bak"
- reboot and check if GPS will start working.
If it doesn't, Try walking around or driving with a car for a while and see.
Also use GPS Test (info app) to see information about satellites etc. Hope, it helps. Tell us later, how it goes.
 

NullWasTaken2

Senior Member
Jun 2, 2019
180
246
I installed it on my P10 Lite by doing this:

1. I went to stock Oreo WAS-LX1 8.0.0.383(C432).
2. Flashed Pretoriano80's recovery from here using the command: "fastboot flash recovery_ramdisk <path to recovery>".
3. Used the command: "fastboot reboot".
4. After booting to the stock system I rebooted to recovery using: "adb reboot recovery".
5. In recovery i wiped these partitions:
- Dalvik / ART Cache
- Cache
- Cust
- Data
- Internal Storage
- System
6. I flashed the RR ROM. (not sure if that is what helped me boot AOSP 11)
7. After booting to RR ROM, I rebooted to recovery and wiped the same partitions above.
8. Rebooted to bootloader via TWRP.
9. I flashed the system using this command: "fastboot flash system <path to the system file>"
10. And i booted to AOSP 11 using: "fastboot reboot".
U shouldn't be wiping Cust partition because it can cause problems later. But good that you figured out how to make it boot. :)
 
  • Like
Reactions: LesterDMolester

Top Liked Posts

  • 2
    Hello,
    As I was advicsed here to try this rom I would like to confirm that this rom and newest TWRP from the @DarkJoker360 are working fine on my RNE-L21 Huawei Mate p10 Lite.
    Battery life is good, phone is charging as expected.
    BT, WIFI, GPS, USB debug all are working fine.
    Since my device doesn't have NFC I haven't installed the fix for it.
    Root with supersu app works (didn't try the Magisk)

    My phone got a new life.
    Thank you very much, @DarkJoker360, for your hard work.
    P.
    1
    Edit:
    Forgot to mention,
    if you follow with RNE-21L with this rom, to have offline charging working (without reboot to recovery) you should download a zip file from this thread:


    extract the 1080x2160 folder and place it in /system/etc/charger.

    I think it is needed since P8 Lite 2017, which for this rom was crafted, has different screen size than my RNE.
    Thanks,
    P.
    I believe I forgot to backport full charge images like I did on official lineage for anne, will fix in next update !
  • 5
    Huawei P8 Lite 2017 kernel released

    This is a stock-ish huawei kernel with huawei useless services disabled and some security updates. It will be updated with eventual fixes and stuff needed for Android 11.

    Changelog
    * Initial build
    * Disabled huawei selinux additions
    * Added usb security patch
    * Enabled selinux security develop
    * Removed Huawei DUBAI and other Huawei log services
    * Disabled Huawei root checks

    Check OP for more info and downloads.

    NOTE: It will probably works for other Android versions too !

    Catuva21 magisk module is needed for having calls working on all vendor builds.

    Kernel
    Donations
    Sources
    3
    New AOSP 11 update

    • Synced with latest AOSP 11 source code based on r36
    • Merged May 2021 security patches
    • Restored Android 10 signal indicator behavior

    Check OP for more infos and download !

    Donations
    Support Group
    3
    Released an unofficial version of TWRP with full Android 11 compatibility, this will now be the recommended TWRP to use for AOSP 11 !

    Also I reworked NFC fix mount logic, thanks to @AltairFR for the help !

    Download
    Donations
    3
    Restored Q signal strength behavior !

    It's not perfect but now 2,3,4 bars are kinda working like Q.
    Still better than nothing i believe.
    2
    Flashing the rom I got this output:

    $ fastboot flash system aosp-11_prague_20210406.img
    target reported max download size of 471859200 bytes
    Invalid sparse file format at header magic
    sending sparse 'system' 1/4 (417881 KB)...
    OKAY [ 11.517s]
    writing 'system' 1/4...
    OKAY [ 11.228s]
    sending sparse 'system' 2/4 (460796 KB)...
    OKAY [ 12.628s]
    writing 'system' 2/4...
    OKAY [ 10.559s]
    sending sparse 'system' 3/4 (458901 KB)...
    OKAY [ 12.600s]
    writing 'system' 3/4...
    OKAY [ 11.793s]
    sending sparse 'system' 4/4 (380426 KB)...
    OKAY [ 10.485s]
    writing 'system' 4/4...
    OKAY [ 9.934s]
    finished. total time: 90.745s

    It seems to have worked but at the end it sticks in a bootloop.
    What does mean the second output line "Invalid sparse file format at header magic" ? The bootloop depends on that ?

    Used this twrp version: TWRP_3.4.0-0-warsaw_DarkJoker360_20200611.img
    "What does mean the second output line "Invalid sparse file format at header magic" ? The bootloop depends on that ?" Ignore it. No, it doesn't depend on that. You probably forgot to decrypt ur data. Use the guide below.

    The complete way to boot gsis a11 on emui8
    Coming from stock emui8

    Step 1
    1- Install twrp 0.5 test
    2- Flash fstab.hi6250b zip (you can find it in hi6260 community telegram group) to decrypt data and format data
    3- Boot to emui and check if data is decrypted in settings security , if yes
    Make twrp backup ( all available partitions )

    Step 2
    1- Wipe system data cache
    2- Flash system img in system image partition with "twrp" or you can use "fastboot flash"
    3- Go to mount menu , uncheck then check again system
    4- Resize system via advanced wipe menu
    5- Flash aio v2.4.1
    6- Flash Nikgapps gapps
    ( optional )
    7- Install magisk apk
    8- Go to twrp & flash MAGISKA11-a-only
    9- Flash Magisk-v22-canary-phh
    10- Reboot and enjoy

    PS: - search in this group using /notes all required files
    - For aosp a11 by Darkjoker360 ignore step 5 , and flash NFC fix instead

    Thanks @Hami_Do for this guide!
  • 10
    Hi,

    1566531179-9526.jpg


    DarkJoker360 AOSP 11 for Huawei P8 Lite 2017

    *** Stable Version ***

    About
    Android is an open source software stack for mobile devices and a corresponding open source project led by Google. This site and the Android Open Source Project (AOSP) repository offer the information and source code needed to create custom variants of the Android stack, port devices and accessories to the Android platform, and ensure devices meet the compatibility requirements that keep the Android ecosystem a healthy and stable environment for millions of users.



    Working
    * Touchscreen
    * Audio
    * Boot
    * Bluethoot
    * Internal/External storage
    * Mtp / Adb
    * Sensors
    * Wifi
    * RIL
    * Camera
    * NFC
    * FP gestures​


    Not Working
    * You tell me


    NOTE: The signal icon is buggy due to Huawei weird ril implementation, I am still looking to fix it over the new Android 10-11 telephony changes.

    Installation
    * you must have TWRP installed, use this one (make sure to have the unofficial Android 11 one ! )
    WARNING: You must be decrypted before installing it otherwise it won't boot. (Read second post.)
    * go to TWRP and do a full wipe (system, data, cache, dalvik/art cache) !
    * format data
    * reboot to bootloader
    * extract AOSP 11
    * run: fastboot flash system <drag system.img here>
    * reboot to TWRP
    * resize system
    * flash gapps (optional)
    * flash NFC.zip
    NOTE: this zip is needed for having working NFC. DO NOT IGNORE IT !
    * reboot to System
    * Enjoy !!!​


    Update
    * reboot to TWRP and do a wipe cache, dalvik/art cache
    * reboot to bootloader
    * extract AOSP 11
    * run: fastboot flash system <drag system.img here>
    * reboot to TWRP
    * resize system
    * flash gapps (optional)
    * flash NFC.zip
    NOTE: this zip is needed for having working NFC. DO NOT IGNORE IT !
    * reboot to System
    * Enjoy !!!​


    If you are getting Error 70 while flashing gapps just resize system from TWRP !
    If gapps are giving network errors or other kind of errors install them after first boot !

    Download



    Please support my work, it's very important! Thanks
    DONATIONS

    Regards !
    9
    New AOSP 11 update

    * Synced with latest AOSP 11 source code based on r32
    * Merged March 2021 security patches
    * Fixed bootloop in some cases
    * Fixed ADB
    * Removed useless overlays
    * More build info fixes
    * Fixed AOSP ScreenRecorder
    * Performance improvements
    * Decreased system partition usage (now AOSP will just take 1,3gb)
    * Fixed a gnss service crashing since A10, resulting in costant wakelocks, logspams and gps failures
    * Added dark theme on Dialer and Messaging apps

    NOTE: Clean flash is recommended

    Check OP for more infos and download !

    Donations
    Support Group
    7
    NOTES
    * For root method read this post, for rooting with magisk read this instead.
    * If you face corrupted storage issues you need to go back on emui and re-install the rom.
    * I recommend NikGapps core with SetupWizard add-on.
    * Use 8.0.0.360 or maximum .400 firmware for booting the rom.
    * Gapps can may give "Uncertified device" error and abort the google account login, use this guide to fix it (thanks to @latviandude )
    * If you want VoLTE/Wifi Calling working flash this zip

    ** You must be decrypted for booting this rom **
    Before following the installation steps format data and flash this file via TWRP.
    6
    New AOSP 11 update

    • Synced with latest AOSP 11 source code based on r34
    • Merged April 2021 security patches
    • Fixed animations lags and janks
    • Fixed wired headphones not being detected
    • Fixed gps
    • Fixed ril crashes for dual sim devices
    • Updated APN configs from LineageOS
    • Fixed ril crashes with some carriers
    • Fixed Netflix playback
    • Adjusted screen brightness
    • Fixed minimum brightness too high
    • Enabled Wifi Display
    • Improved Signal Strenght
    • Ignored RSSNR signal implementation, as our RIL is not using it
    • Completely disabled useless gnss_watchlssd_thirdparty service causing drains and logspams

    Check OP for more infos and download !

    Donations
    Support Group
    6
    Magisk-phh v22.0 is now working !

    Only the linked version will work.

    1- Install magisk apk
    2- Go to twrp & flash MAGISKA11-a-only
    3- Flash Magisk-v22-canary-phh
    4- Reboot and enjoy

    Download

    Thanks to @Hami_Do
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone