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

Search This thread

NullWasTaken2

Senior Member
Jun 2, 2019
199
257
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!
 

DarkJoker360

Recognized Developer / Recognized Contributor
Oct 20, 2015
2,620
3,638
18
Aradeo
Booted a new kernel.
It will be updated with latest stuff and patches for R compatibility.
 

Attachments

  • photo_2021-04-26_17-52-31.jpg
    photo_2021-04-26_17-52-31.jpg
    24.9 KB · Views: 42

DarkJoker360

Recognized Developer / Recognized Contributor
Oct 20, 2015
2,620
3,638
18
Aradeo
Nice bro, maybe it's a lot to ask but can you please build LineageOS 18.1 for this device?
I already answered you many times and the answer is still no because I am focusing on performances and stability of the device instead of losing time and dealing with Huawei selinux conflicts with LineageOS sepolicies !
 
  • Like
Reactions: NullWasTaken2
Mar 13, 2021
29
7
I already answered you many times and the answer is still no because I am focusing on performances and stability of the device instead of losing time and dealing with Huawei selinux conflicts with LineageOS sepolicies !
I'm sorry but you actually never answered me, all you answered me was that you broke your P10 Lite and that's why you won't release any rom's for it.
 

DarkJoker360

Recognized Developer / Recognized Contributor
Oct 20, 2015
2,620
3,638
18
Aradeo
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
 
Last edited:

Passi36

Member
Oct 11, 2020
11
1
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.

Thanks my GPS is working now!!

Very Thanks for this fix.
 
  • Like
Reactions: NullWasTaken2

AltairFR

Member
Apr 22, 2021
33
13
Huawei P8lite/P8 Lite
Hi
I make a lot of tests with my phone (PRA-LX1), I found 2 problems:
- The cast broadcast does not work (the phone will reboot when I activate it), i have test with an androidtv and with a Windows 10 (same problem)
- I can't activate VoLTE (no options in the setting menu)
Everything else seems to work (I have a doubt about the GPS which I do not find very sensitive)


Does anyone have some solutions ?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Try this:
    Flash the fstab.hi250b.zip while using this recovery.
    Reboot to recovery again.
    Wipe Cache, Cache/Dalvik, Data and Internal Storage.
    Reboot to bootloader and flash the new recovery that DarkJoker360 made.
    Go back to recovery and wipe those same partitions. (THIS TIME WIPE THE SYSTEM PARTITION TOO)
    And flash the system.img via TWRP.


    Thanks, I could not flash the system.img via TWRP because it asked the following

    select partition to flash image

    and it gave plenty of options and I did not knew what to choose.
    I flashed using fastboot and it is working ... THANKS A LOT, you really helped me out! I took me soooo many hours trying and this did the trick.

    So the following steps I did to get it working (for anyone else who is a noob like me)

    - Boot stock rom (download correct rom version for your device for downgrade from here PRA-LX1 8.0.0.360 til 8.0.0.400). Use dload to downgrade. Afterwards reboot system.
    - Log in to Google/Huawei services (else you can not enable OEM unlock)
    - enable developer options
    - in developer options enable USB Debugging + OEM unlock
    - boot to bootloader holding volume down + start button
    - in fastboot ADB console type the following : fastboot oem unlock (+ the unlocking code)
    - in fastboot console type fastboot reboot
    - system restarts and does a factory reset
    - boot into bootloader
    - install this recovery by typing in ADB fastboot console fastboot flash recovery_ramdisk twrp.img
    (rename the file you downloaded to twrp.img)

    - in fastboot console type fastboot reboot
    -
    while system is starting hold volume up + down at the same time + start button when
    release buttons when boot menu from Huawei is starting warning the device is no longer safe
    and hold again buttons volume up + down to enter TWRP menu
    - flash this fstab.hi250b.zip
    - reboot and go enter again TWRP menu
    - Wipe Cache, Cache/Dalvik, Data and Internal Storage
    - reboot (in TWRP MENU choose bootloader)
    - in fastboot ADB console install this recovery using ADB fastboot by typing fastboot flash recovery_ramdisk twrp.img (rename the file you downloaded to twrp.img)
    - in fastboot console type fastboot reboot

    - Go back into TWRP recovery and wipe Cache, Cache/Dalvik, Data, Internal Storage + system
    - reboot (in TWRP MENU choose bootloader)
    - in fastboot console install the system
    - Reboot into recovery TWRP menu and in wipe resize system partition
    - install from TWRP menu NFC_fix.zip and the VoLTE-FIX
    - install opengapps
    reboot system

    Thanks everyone, I just got a new working smartphone
    2
    hello, first of all, I would like to say that the rom is very nice and fluent, but the camera gives an error to insert sd card and no files can be downloaded from the internet
    Hi.

    I have already signal this bug and post the workaround , in a Lineage 18 post, see :


    So after format data you must set the right permission and owner on /data/media/0 subfolder or (/data/media)

    Just open a terminal in TWRP and type

    cd /data/media
    chown media_rw:media_rw 0
    chmod 770 0
    1
    I downgraded and did everything accordingly but no matter how many times I try this roms start and keeps hanging in boot.

    I think it is to do with decrypt which seems very hard to follow how to do.

    Do I assume correct that after flashing TWRP I format Data and run fstab.hi6250b.zip and reboot for running fastboot install system ... of do I need to do something else for decrypt?
    If you are able to reproduce steps I described in this post, you shouldn't have any problems.
    1
    I downgraded and did everything accordingly but no matter how many times I try this roms start and keeps hanging in boot.

    I think it is to do with decrypt which seems very hard to follow how to do.

    Do I assume correct that after flashing TWRP I format Data and run fstab.hi6250b.zip and reboot for running fastboot install system ... of do I need to do something else for decrypt?
    The correct sequence is
    run fstab.hi250b.zip , reboot and format data
    1
    I downgraded and did everything accordingly but no matter how many times I try this roms start and keeps hanging in boot.

    I think it is to do with decrypt which seems very hard to follow how to do.

    Do I assume correct that after flashing TWRP I format Data and run fstab.hi6250b.zip and reboot for running fastboot install system ... of do I need to do something else for decrypt?
    Try this:
    Flash the fstab.hi250b.zip while using this recovery.
    Reboot to recovery again.
    Wipe Cache, Cache/Dalvik, Data and Internal Storage.
    Reboot to bootloader and flash the new recovery that DarkJoker360 made.
    Go back to recovery and wipe those same partitions. (THIS TIME WIPE THE SYSTEM PARTITION TOO)
    And flash the system.img via TWRP.
  • 11
    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
    * format data
    * reboot to TWRP again
    * do a full wipe (system, data, 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 !!!​


    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
    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.
    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
    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