[ROM][OFFICIAL][berkeley][9] LineageOS 16.0

Search This thread

hansiohne

Member
May 25, 2016
18
2
Doesn't want to be rude towards the dev, but try any of the gsi which doesn't require twrp. And check whether it boots.

Can you suggest one? The stock rom from getdroidtips gives me Error 9.

---------- Post added 16th October 2019 at 12:32 AM ---------- Previous post was 15th October 2019 at 11:53 PM ----------

I could install AICP via TWRP. But as it boots, it boots into fastboot mode for some reason (without pressing any buttons).
 
  • Like
Reactions: hansiohne

hansiohne

Member
May 25, 2016
18
2
To specify my issue here are two logs:
When trying to install LOS 16, TWRP says:
Code:
E3000: This package expects the value "_a" for "ro.boot.slot_suffix"; this has value "".
Updater process ended with Error: 7
Error installing zip file '/external_sd/lineage-16.0-20191013-nighly-berkeley-signed.zip'
When booting, it gets me into fastboot mode. Fastboot says:
Code:
Android reboot reason:
bootloader 1
no
NA
reboot_enter_fastboot_common_func
I have no actually clue but my error 7 differs a bit from John Paden's.
I'm wondering if the data encryption issue (why TWRP gets stuck formatting) and my procedure of getting the bootloader unlock mode has something to do with that.
 
Hi @hansiohne

https://forum.xda-developers.com/showpost.php?p=80516815&postcount=175

In order for over come this issue follow this hack:
Open zip and change META-INF\com\google\android\updater-script
delete this line
getprop("ro.boot.slot_suffix") == "_a" || abort("E3000: This package expects the value "_a" for "ro.boot.slot_suffix"; this has value "" + getprop("ro.boot.slot_suffix") + "".");
store it as lineage-16.0-20191012-nightly-berkeley-signed-2.zip
as I have layed out here:
https://forum.xda-developers.com/showpost.php?p=80516815&postcount=175

I do get an error 7 even after that hack.

Please test yourself and let me know.
 

hansiohne

Member
May 25, 2016
18
2
Hi @hansiohne

https://forum.xda-developers.com/showpost.php?p=80516815&postcount=175

In order for over come this issue follow this hack:
Open zip and change META-INF\com\google\android\updater-script
delete this line
getprop("ro.boot.slot_suffix") == "_a" || abort("E3000: This package expects the value "_a" for "ro.boot.slot_suffix"; this has value "" + getprop("ro.boot.slot_suffix") + "".");
store it as lineage-16.0-20191012-nightly-berkeley-signed-2.zip
as I have layed out here:
https://forum.xda-developers.com/showpost.php?p=80516815&postcount=175

I do get an error 7 even after that hack.

Please test yourself and let me know.

I deleted the line and could install LOS. Unfortunately it only boots into fastboot with

Code:
Android reboot reason:
bootloader 1
no
NA
reboot_enter_fastboot_common_func
, same case as with AICP.
 
@hansiohne,
may I ask to wlk through this approach https://forum.xda-developers.com/showpost.php?p=79644338&postcount=158 just with the latest EMUI 9.1.0.329 ?
And please write down every little step and add to my script. I am so curious why it works with your phone and not with mine?

The problem
>> deleted the line and could install LOS. Unfortunately it only boots into fastboot with
I did fix by
----------
reboot to bootloader/fastboot
fastboot flash kernel kernel.img
fastboot flash recovery_ramdisk RECOVERY_RAMDIS.img
fastboot reboot

Plug USB out
Press Vol Up then Power -> EMUI recovery
Wipe data / factory reset yes
Reboot System now -> should work now.
-------
 
Last edited:

hansiohne

Member
May 25, 2016
18
2
@hansiohne,
And please write down every little step
-------
So what I did:
Installed Firmware Finder, download of 2.0.0.159 (there was no 233) but the version I could download didn't have an update.app and the other one didn't download for some reason so I downloaded the ZIP
extracted kernel.img and recovery_ramdis.img
deleted the line in the LOS zip as described
downloaded mindthegapps arm64
went into erecovery, update says: Getting package info failed (as described before)
couldn't write down anything because no update was working so skipped this
device is still booting into fastboot
terminal: fastboot devices: shows device
fastboot flash recovery_ramdisk twrp-3.3.1-0-berkeley.img
target reported max download size of 471859200 bytes
sending 'recovery_ramdisk' (10642 KB)...
OKAY [ 0.442s]
writing 'recovery_ramdisk'...
OKAY [ 0.051s]
finished. total time: 0.494s
installed patched LOS
installed mindthegapps
rebooted to bootloader/fastboot

fastboot flash kernel KERNEL.img
target reported max download size of 471859200 bytes
sending 'kernel' (24576 KB)...
OKAY [ 1.032s]
writing 'kernel'...
OKAY [ 0.319s]
finished. total time: 1.352s

fastboot flash recovery_ramdis RECOVERY_RAMDIS.img
target reported max download size of 471859200 bytes
sending 'recovery_ramdis' (32768 KB)...
OKAY [ 1.385s]
writing 'recovery_ramdis'...
FAILED (remote: partition length get error)
finished. total time: 1.392s

fastboot reboot
USB out
power up brought me to twrp again
So I pressed power, then 3sec up->erecovery, wipe data, reboot.
It got me to TWRP again and I didn't expect it to work but I then rebooted into system and...
it finally showed the LOS bootscreen and IT WORKED
2 things failed (emui update and flash 2nd recovery) but I finally managed to boot LOS. wtf.
I really don't know what I did else, I guess your workflow did it.
Thanks you so much. I hope you'll get yours to run... I'll try to reinstall without google and with the line now.

PS: The unpatched version still gets me an Error 7. I reinstalled LOS without gapps and I had to take the same steps again:
install LOS
reboot into bootloader/fastboot
flash kernel
reboot 1-2-3 press vol up 3sec -> erecovery
wipe data
reboot goes to twrp
reboot system
done

PPS: I only managed to boot once/with gapps. With the new installtion without gapps it boots for some minutes, restarts then. Every time it restarts it boots into TWRP first.
 
Last edited:
Current status:
Within TWRP
install lineage lineage-16.0-20190525-nightly-berkeley-signed-2.zip [patched version!]

could not detect filesystem for /dev/block/bootdevice/by-name/system, assuming ext4
mount:failed to mount /dev/block/bootdevice/by-name/system at /system: Invalid argument
Failed to unmount /system: No such volume
script aborted (no error message)
Updater process ended with ERROR: 7

After a TWRP/Wipe/Advanced Wipe - system - change File system to ext4

install lineage lineage-16.0-20190525-nightly-berkeley-signed-2.zip [patched version!]
Error: detected file system ext4 for /dev/block/bootdevice/by-name/system
Patching system image unconditionally
E1001: Failed to update system image.

How to find out whats going on, is there a log that is not encrypted??

---Edit----
Looks like the root cause is than /system can not be mounted:
lineage-16.0-20191012-nightly-berkeley-signed-2.zip\META-INF\com\google\android\META-INF\com\google\android\updater-script

This line throws the error:
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");


Any help appreciated.
 
Last edited:

JJ2017

Senior Member
Jan 7, 2017
79
48
Huawei P20 Pro
Just a quick note to explain steps on how I've managed to install this official LOS on a View 10 (as it was not easy!):
- Bootloader Unlocked
- Use HiSuite (Windows PC) to roll back from EMUI 9.1 to 9.0 (if someone can get it working on 9.1 please tell me 'cause I got myself into right mess trying it!)
- Use Huawei Extractor Tool - mentioned many-a-time in this thread to get 'RECOVERY_RAMDIS.img' for the firmware you've rolled back to
- Follow @depl0y guide for main installation - it's written for p20 Pro but the process is essentially the same - it's clear and concise :good:- https://depl0y.com/posts/P20-Pro-LineageOS-Guide/#Getting-RECOVERY-RAMDIS-IMG Note.... used '@John Paden' guide "V2 summary installation LOS 16 ........" https://forum.xda-developers.com/showpost.php?p=79644338&postcount=158 to make the 'patched version' adjustments to both ROM and MindtheGapps (don't know if latter was essential)
- WHATEVER YOU DO: Don't just follow the official installation instructions @ https://wiki.lineageos.org/devices/berkeley/install or you will get into trouble!!!

Hope this helps someone.... :)

EDIT: need to re-flash 'KERNEL.img' after LOS install / update to allow reboot - otherwise will get stuck in fastboot (don't need to flash 'RECOVERY_RAMDIS.img' as mentioned above)
 
Last edited:
  • Like
Reactions: breversa
Hey @JJ2017 and every other still active user of LOS16 on the HV10, can you please check if you have issues with the mute feature, too? After going back to V9.0.0.x I reinstalled LOS16 and it again works fine.
But I need to be able to mute a call!
I tried with bluetooth devices - does not work.
I tried even with a headphone cable that has a micro mute button - but the the phone switches on the build in phone instead of muting.
Any help / any idea?
 

JJ2017

Senior Member
Jan 7, 2017
79
48
Huawei P20 Pro
Hey @JJ2017 and every other still active user of LOS16 on the HV10, can you please check if you have issues with the mute feature, too? ..................

No longer a LOS user as I installed AOSiP ROM onto phone earlier today!
I checked your query on AOSiP: same problem - no mute on phone call working - press mute during call but not activated. :confused:

BTW: Reason I've switched ROM is that Dolphin Emulator runs terribly on LOS but looks fine using AOSiP - don't know why.
Such a shame that V10 not getting much attention from Dev's these days - although these ROMs still great improvement on EMUI (great hardware - [email protected] stock OS)
 

JJ2017

Senior Member
Jan 7, 2017
79
48
Huawei P20 Pro
Hi guys,
Any chance to keep the IA Camera App from Huawei?

I think I can help on this although I'm not sure what you mean by 'IA'.

As I mention above (#195) there's a helpful guide by @Deploy explaining lineage install on p20 pro AND includes instructions on restoring Huawei Camera app - just follow that guide and you should be fine (https://depl0y.com/posts/P20-Pro-Lin...ERY-RAMDIS-IMG)

However, I'm a bit unimpressed with the camera in View 10 which is a shame as the rest of it is great. Also, I've got Dolphin Emulator running really nicely now (some tips: https://forum.xda-developers.com/huawei-p20-pro/how-to/guide-dolphin-emulator-best-settings-t3903263)

After all the faffing about I'm pretty happy with the set-up on this phone - many thanks to the Lineage Dev's :good:
 

Joker2a1

Member
Sep 27, 2019
5
0
I think I can help on this although I'm not sure what you mean by 'IA'.

As I mention above (#195) there's a helpful guide by @Deploy explaining lineage install on p20 pro AND includes instructions on restoring Huawei Camera app - just follow that guide and you should be fine (https://depl0y.com/posts/P20-Pro-Lin...ERY-RAMDIS-IMG)

However, I'm a bit unimpressed with the camera in View 10 which is a shame as the rest of it is great. Also, I've got Dolphin Emulator running really nicely now (some tips: https://forum.xda-developers.com/hu...uide-dolphin-emulator-best-settings-t3903263)

After all the faffing about I'm pretty happy with the set-up on this phone - many thanks to the Lineage Dev's :good:


https://depl0y.com/posts/P20-Pro-Lin...ERY-RAMDIS-IMG DEAD LINK :(
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    2okPze5.png


    LineageOS is a free, community built, aftermarket firmware distribution of Android 9 (Pie), 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. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

    What's not working :
    Instructions :
    • Download the latest build and gapps
    • Reboot to recovery
    • Flash the latest build and gapps
    • Reboot
    Downloads :
    Reporting Bugs
    • DO NOT Report bugs if you're running a custom kernel or you installed Xposed
    • Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
    • If it is a random reboot, grab /sys/fs/pstore/console-ramoops and /sys/fs/pstore/dmesg-ramoops-0. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
    • If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log
    Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.

    Code:
    What is your--
    LineageOS version:
    LineageOS Download url:
    Gapps version:
     
    Did you--
    wipe:
     restore with titanium backup:
    reboot after having the issue:
     
    Are you using--
    a task killer:
    a non-stock kernel:
    other modifications:
     
    Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:

    XDA:DevDB Information
    [ROM][OFFICIAL][berkeley][9] LineageOS 16.0, ROM for the Honor View 10

    Contributors
    LuK1337
    Source Code: https://github.com/LineageOS

    ROM OS Version: Windows 8 Mobile

    Version Information
    Status: Testing

    Created 2018-12-07
    Last Updated 2019-03-01
    4
    NOTE: These builds require EMUI 9 firmware, they will not boot on EMUI 8 devices.
    4
    hint: Now you can get HwCamera2 here ~ https://forum.xda-developers.com/showpost.php?p=78501579&postcount=89
    protip: It won't work on any builds prior to lineage-16.0-20181223_225012-UNOFFICIAL-berkeley.zip so if you're running older build you got to update.
    3
    It'd be nice to have a working Flex's Huawei camera port too (Click), i tried it but at least on my build the app doesn't save photos (although it seems working well and even saves recorded videos).

    I managed to include the libraries Flex has modified into the APK and pushed as a pre-built here: https://github.com/berkeley-pie/pro...mmit/960649f1ea4b118ecc4ddc7cbd521e95a24745f2

    Edit: it even saved portrait images on my BKL-L04 with EMUI 8 vendor and video stabilization works too
    3
    Funny to see Huawei releasing proper vendor with EMUI 9 for BKL-L09, while dev units like mine are still waiting for update for the BKL-L04 :/

    Anyway, looking forward to a less messy work! (oh boy, is that even possible with Huawei?)
    I wouldn't say it's proper but it's definitely better than 8.x. Still the most annoying phone I've worked on so far.