[ROM][UNOFFICIAL][harpia][9] LineageOS 16.0

Search This thread

reikaze

Member
May 2, 2011
10
1
Thank you for all the follow up @EtoileLabrie and @facuarmo
As Etoile said your work is very much appreciated and I'll keep checking up on this build later (the sync hogs my network and computer, quick tip: lower the threads with -j , it's set to a high number by default on the script).
I just bought a new battery last August so I'm truly glad about this

---- edit ----

The problem it was that I just didn't have git-lsf installed
I wasn't aware about this extension
It would help to check for this dependency on the script, since LineageOS build instructions don't need the git extension and it's not included on their build dependencies
 
Last edited:

reikaze

Member
May 2, 2011
10
1
cc1 ba executable format

I tried to reproduce your steps and I do NOT have this problem. I am on 64-bit Ubuntu 18.04. Here is what I do.

1) repo init -u https://github.com/LineageOS/android.git -b lineage-16.0
2) repo sync
3) make directory local_manifests in .repo
4) cd there, open your browser, point it to https://github.com/Harpia-development/los_harpia/blob/master/harpia.xml
5) cat > harpia-addon.xml, copy .xml file from browser, paste into terminal window, ^D
6) repo sync
7) this time, it will complaint that you must use --force-sync, so...
8) repo sync --force-sync (do not specify which particular repo, just do this command)
9) go back to the root of your source tree and build as usual (source build/envsetup.sh, breakfast harpia, mka bacon)

I did have problems with git-lfs, if you run into them, I will let you know how I solved it. You will see it if/when it complaints (during the actual build process) about running "cc1" saying something along the lines of "bad executable format".

/alex

Now I'm actually getting "bad executable format" on cc1

My architecture is x86_64 and from the path
Code:
/media/DriveExt4/los/prebuilts/gcc/linux-x86/arm/arm-linux-gnueabi-9.0
I'm guessing it downloads the 32bit version of gcc9.
How can I checkout the right arch? Or should I better stick with FacuM script?
(I have installed every dependency from the LineageOS build instructions and those include multilib compatibility libc6:i386 libncurses5:i386 libstdc++6:i386, etc)

Regarding FacuM script: Linux Mint 19.1 (Tessa) uses Dash-0.5.8-2.10 as sh
and it seems dash is incompatible with some variable substitutions on the script, I can make it work changing the shebang declaration directly to bash
 
Last edited:

reikaze

Member
May 2, 2011
10
1
Poweroff on suspend

I just read about the documentation we should bring fort on random reboots, so...

I was running out of memory, so I tried once again formatting as internal storage my sd card.
Wiped system, data, cache.
Even reinstalled the latest ROM from this thread "20190116"
Open Gapps, Magisk
Restored everything, checked that there was no random reboot even on lock screen or suspend.

Then formatted the sd card as internal storage, the problem of powering itself of or reboot on suspend began again.
Tried with "setenforce 0" and didn't even created the audit log.

Here are the logs available, it seems there's a kernel panic and a problem with e2fsck

Problem immediately disappeared when I formatted the sd card as portable storage
 

Attachments

  • logs.zip
    71.7 KB · Views: 8
  • Like
Reactions: andyy12
May 23, 2018
15
1
Now I'm actually getting "bad executable format" on cc1

If you look in the directory where cc1 file resides, you'll notice it is a very small file. You can open it as a text file and you will see one line that looks like md5 hash (or sha256 hash, I don't know). My gut feeling is that git-lfs is somehow supposed to "magically" find/download the actual "cc1" executable based on this hash when cc1 is actually called, but it does not happen.

So, here's what I did:
1) notice that cc1 is downloaded as part of Harpia-development/android_prebuilts_gcc_linux-x86_arm_arm-linux-gnueabi-9.0
2) go, in a normal web browser, to https://github.com/Harpia-development/android_prebuilts_gcc_linux-x86_arm_arm-linux-gnueabi-9.0
3) click on "libexec/gcc/arm-linux-gnueabi/9.0.0"
4) you see cc1 there; if you click on it, it says "executable file / 206 MB / Stored with Git LFS / View raw / (Sorry about that, but we can’t show files that are this big right now.)"
5) Click on "view raw". As a result, you will download the actual cc1. Save it somewhere.
6) Go back to your /media/DriveExt4/los/prebuilts/gcc/linux-x86/arm/arm-linux-gnueabi-9.0/.../wherever/is/your/fake/cc1 and replace the "fake" (less-than-one-kilobyte-long) cc1 with the actual cc1 you have downloaded in step 5.
7) Repeat steps 4-6 with "lto1" as well, it is also very short and not the actual executable.

/alex
 

hamelg

Senior Member
So, here's what I did:
1) notice that cc1 is downloaded as part of Harpia-development/android_prebuilts_gcc_linux-x86_arm_arm-linux-gnueabi-9.0
2) go, in a normal web browser, to https://github.com/Harpia-development/android_prebuilts_gcc_linux-x86_arm_arm-linux-gnueabi-9.0
3) click on "libexec/gcc/arm-linux-gnueabi/9.0.0"
4) you see cc1 there; if you click on it, it says "executable file / 206 MB / Stored with Git LFS / View raw / (Sorry about that, but we can’t show files that are this big right now.)"
5) Click on "view raw". As a result, you will download the actual cc1. Save it somewhere.
6) Go back to your /media/DriveExt4/los/prebuilts/gcc/linux-x86/arm/arm-linux-gnueabi-9.0/.../wherever/is/your/fake/cc1 and replace the "fake" (less-than-one-kilobyte-long) cc1 with the actual cc1 you have downloaded in step 5.
7) Repeat steps 4-6 with "lto1" as well, it is also very short and not the actual executable.
/alex

For any projects that have LFS objects, git lfs pull must be executed.
To solve it, just execute this command :
Code:
repo forall -j$(nproc --all) -c git lfs pull

Also, I had to install the libisl v15 (http://isl.gforge.inria.fr/), cc1 needs it.
 

newinnov

Senior Member
Sep 11, 2012
231
53

Top Liked Posts

  • There are no posts matching your filters.
  • 26
    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.

    Instructions :
    • Download the latest build and gapps
    • Boot to recovery
    • Flash the latest build
    • Boot to recovery again
    • Flash gapps
    • Reboot
    Downloads :
    • Builds :
      • Expect builds to be published per-post.
    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:

    Thanks @Luk1337 for this thread template.

    XDA:DevDB Information
    LineagOS 16.0 for Moto G4 Play, ROM for the Moto G4 Play

    Contributors
    facuarmo, @ki, Razhor, Squid2, SubhrajyotiSen, AOSP, LineageOS community and all the testers involved.
    Source Code: https://github.com/Harpia-development/los_harpia

    ROM OS Version: 9.x Pie

    Version Information
    Status: Stable

    Created 2018-10-13
    Last Updated 2018-10-13
    12
    Build from November 8th, 2018

    Download: lineage-16.0-20181107-UNOFFICIAL-harpia.zip

    MD5:
    Code:
    da213808e3a0dfff5600833d37817e43

    SHA256:
    Code:
    d90e911a48ad54594989e28ab624184436b9071df3aac311d2b4b2754920ceed

    Release notes:

    • Updated init process.
    • Replaced the whole way in that we handle denials for vendor modules, both private and public allow rules have been put together to make them easier to maintain.
    • Removed obsolete and unnecessary flags.
    • Brought back old kernel page shrink API as it wasn't compatible with our version of kgsl (causing GPU lags and crashes during first boot).
    • Fixed PowerHAL SELinux denials which caused zygote to crash whenever you plugged an USB cable (not seen by users, happened during test builds).
    • Reverted all patches related to power saving as they didn't play well with this device.
    • Added and fixed FM Radio support.
    • Ported some configs and properties from cedric.
    • General performance improvements (thread selection for dexpreopt).
    • Decrease GPS logging.
    • Enable smart battery (experimental).
    • Use lzma to build recovery imge.
    • Disable vulkan.
    • Setup zram during init: use lz4 algorithm, decrease disk size to 256 MB instead of 512 MB, use 4 compression threads.
    • General performance improvements for text fields and window renders.
    • Increased media volume and voice call steps to 60 and 7, respectively.
    • Fixed HALs issues with FM Radio.
    • Disabled OEM unlock toggle.
    • Shorten shutdown time.
    • Enable sustained performance mode.
    • Increase media and voice call volume steps to 60 and 7 respectively.
    • Compiled SnapDragon Camera.
    • Improve performance and stability on: EXT4, sdcardfs, timing, networking: tcp/diag, encryption, scheduling, ALSA, ksm, generic atomic reads for arm.
    • Pass new clocks for both CPU and GPU: 1.36 GHz and 465 MHz, respectively.
    • Fixed kernel issues.
    • Improved display default colour set (KCAL).
    • Improved responsiveness.
    • Force enter deep sleep.
    • Fixed CPU hotplugging.
    • Fixed input lag.
    • Fixed several UI crashes.
    • Fixed UI overlay errors.
    • Fixed all kernel bugs related to sdcardfs permissions (causing random kernel panics/reboots).
    • Added UKSM!
    8
    Does anyone have a working link for downloading this?

    Don't worry, I'll provide a new build ASAP, it's just that I'm quite busy with some school projects.
    8
    That's good to hear, Do you have any plans to support the harpia whenever lineage on Q drops?

    For sure, I still didn't take a look at the new source, if it only supports x64 builds, there's gonna be a lot of work, but I'll do my best! :cowboy:
    7
    Build from October 13th, 2018

    Download: lineage-16.0-20181013-UNOFFICIAL-harpia.zip

    MD5:
    Code:
    483fc73a9d871e8284d84d21e0559535

    SHA256:
    Code:
    cb55307e4155babf63344649ca85dcc1c0ccb2cd1514abbfe57503ef38a6f415

    Release notes: Rolled back to Pixys common tree, please test. You should be able to flash this build on top of the previously working one without any issues.