Git Product home page Git Product logo

Comments (27)

MagnusAlm avatar MagnusAlm commented on August 28, 2024 1

'#' Updated* (instructions taken from https://github.com/Pablito2020/pablito-scripts mm.sh and install-everything.sh the guide was there all along ;-))

'#' For building 13.0 on Ubuntu 17.10
'#' For building 14.1 replace 13.0 with 14.1
'#' Install libraries needed for compiling

sudo apt-get install -y git ccache automake lzop bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 g++-multilib python-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng maven

sudo apt update
sudo apt upgrade -y
sudo apt-get install -y openjdk-8-jdk

mkdir lineage13.0
cd lineage13.0

# Check if the repo tool is installed, if it isn't installed then install it.
if ! [ -f /bin/repo ]; then
mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod 760 ~/bin/repo
fi

'#' if building 14.1 you must add a user name and email berfore "repo init", not needed on 13.0.
git config --global user.email "Your email @ here"
git config --global user.name "Your name here"

repo init -u git://github.com/LineageOS/android.git -b cm-13.0
repo sync --force-sync

git clone https://github.com/Pablito2020/android_device_bq_krillin.git -b cm-13.0 device/bq/krillin
git clone https://github.com/Pablito2020/android_kernel_bq_krillin.git -b cm-13.0 kernel/bq/krillin
git clone https://github.com/Pablito2020/android_vendor_bq_krillin.git -b cm-13.0 vendor/bq/krillin
git clone https://github.com/LineageOS/android_external_stlport.git -b cm-13.0 external/stlport

'#' I you need "su" on 13.0, edit "device/bq/krillin/device.mk" and add at the end:

# Superuser
WITH_SU := true

'#' The minimum change to make 14.1 build, is to remove the following line from "device/bq/krillin/Boardconfig.mk"

BOARD_WLAN_DEVICE := MediaTek

'#' Start build

. build/envsetup.sh
brunch lineage_krillin-userdebug

from android_device_bq_krillin.

tc-gd avatar tc-gd commented on August 28, 2024

It seems to be to this known issue:
https://gitlab.com/fdroid/fdroiddata/issues/979

from android_device_bq_krillin.

tc-gd avatar tc-gd commented on August 28, 2024

this could be required fix:
https://git.replicant.us/replicant/frameworks_base/commit/?id=953d2a3493aaceb3209afc7eef1ff1e7f7242908

from android_device_bq_krillin.

MagnusAlm avatar MagnusAlm commented on August 28, 2024

Thanks for pointing to this fix/workaround, I can now use Spotify with my Aquaris E4.5 and Lineage 13.0 and a couple other apps that sent my phone into a bootloop.

from android_device_bq_krillin.

tc-gd avatar tc-gd commented on August 28, 2024

You're welcome. Problem is that I am still fighting with ROM compilation myself and build instructions are not much clear on this. Could you please help me with #14 in return?

Thanks in advance.

from android_device_bq_krillin.

MagnusAlm avatar MagnusAlm commented on August 28, 2024

As for building 14.1, compile completes but after flashing it nothing happens after reboot.
It won't even show the battery charging animation in off mode.

from android_device_bq_krillin.

tc-gd avatar tc-gd commented on August 28, 2024

Thanks! This was exactly the piece of information I was missing!

from android_device_bq_krillin.

sleep-walker avatar sleep-walker commented on August 28, 2024

It got me further, but I ended soon with:

cts/tests/core/runner/Android.mk:18: *** BUILD_CTSCORE_PACKAGE must be defined.  Stop.
make: Leaving directory '/Devel/krillin/custom_rom'

#### make failed to build some targets (5 seconds) ####

from android_device_bq_krillin.

MagnusAlm avatar MagnusAlm commented on August 28, 2024

@sleep-walker You get this error when building krillin for lineage 13 or 14.1?

from android_device_bq_krillin.

sleep-walker avatar sleep-walker commented on August 28, 2024

This was from 13 - following your guide literally.

from android_device_bq_krillin.

MagnusAlm avatar MagnusAlm commented on August 28, 2024

I might have missed something essential then, I'll test it on another machine tonite.

from android_device_bq_krillin.

sleep-walker avatar sleep-walker commented on August 28, 2024

Thank you! I'll try to fix README after.

from android_device_bq_krillin.

MagnusAlm avatar MagnusAlm commented on August 28, 2024

These seems to be missing from the guide I made:

I think those make it worse, I removed that ........

(I've not tested if this is the cause of Sleep-Walkers compiling problem.)

from android_device_bq_krillin.

MagnusAlm avatar MagnusAlm commented on August 28, 2024

I haven't managed to reproduce Sleep-Walkers error but got some random crashes and lockups in a virtualbox machine I've setup tonite, probably because I forgot to install VBoxLinuxAdditions.run.

I'll know in the morning if that helped.

(It didn't, note to my self, don't use hard drives with faulty sectors...)

from android_device_bq_krillin.

sleep-walker avatar sleep-walker commented on August 28, 2024

Well, thanks that you have tried. I'm afraid that this is still something stupid but unrelated to system or installed build time dependencies.

$ cat .repo/local_manifests/bq_krillin.xml
<manifest>
    <!-- Device -->
    <!-- 13.0 -->
    <project path="device/bq/krillin" name="Pablito2020/android_device_bq_krillin" remote="github" revision="cm-13.0"/>
    <project path="kernel/bq/krillin" name="Pablito2020/android_kernel_bq_krillin" remote="github" revision="cm-13.0"/>
    <project path="vendor/bq/krillin" name="Pablito2020/android_vendor_bq_krillin" remote="github" revision="cm-13.0"/>

    <!-- 14.0
    <project path="device/bq/krillin" name="Pablito2020/android_device_bq_krillin" remote="github" revision="cm-14.0"/>
    <project path="kernel/bq/krillin" name="Pablito2020/android_kernel_bq_krillin" remote="github" revision="cm-14.1"/>
    <project path="vendor/bq/krillin" name="Pablito2020/android_vendor_bq_krillin" remote="github" revision="cm-14.1"/>
     -->
</manifest>

It leads to this output.txt.

This string is present only in:

  • cts/tests/core/runner/Android.mk
  • cts/tests/core/libcore/*/Android.mk

Googling doesn't help. I'll try to install Ubuntu in container to build it but I'm afraid this is something implicit I miss.

from android_device_bq_krillin.

MagnusAlm avatar MagnusAlm commented on August 28, 2024

@sleep-walker
From your output.txt this doesn't look like standard Ubuntu 16.04:
HOST_OS_EXTRA=Linux-4.13.12-1-default-x86_64-with-glibc2.2.5

Had a second try with a fresh virtualbox installation with Ubuntu 16.04, it worked.

from android_device_bq_krillin.

sleep-walker avatar sleep-walker commented on August 28, 2024

I am preparing my Ubuntu 16.04 chroot for try right now. My distro is openSUSE Tumbleweed, I installed matching packages. The build shouldn't be distribution specific...

from android_device_bq_krillin.

MagnusAlm avatar MagnusAlm commented on August 28, 2024

No it shouldn't but what libraries that works changes sometimes.

If you whan't to use a rom that I built, you can find it here:

https://drive.google.com/file/d/1tcz2pE_vM-CW5hxH5jTB0ul60_l7OYiB/view?usp=sharing

from android_device_bq_krillin.

tc-gd avatar tc-gd commented on August 28, 2024

It seems that building in Ubuntu chroot works. I can't identify the difference to my environment. Thanks for your patience.

There was also missing rsync and maybe others but I am building.

Thanks for your build - it will be useful for others for sure but I'd like to play more.

It seems that there are still power users of this phone but noone is maintaining any ROM from security perspective or other known problems.

I'd like to add also blueborne fix (https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e860d2c904d1a9f38a24eb44c9f34b8f915a6ea3), adjust speaker volume, etc.

(@tc-gd == @sleep-walker)

from android_device_bq_krillin.

MagnusAlm avatar MagnusAlm commented on August 28, 2024

@sleep-walker Had any luck with building the rom?

I've made a blueborne patch for krillin kernel 13.0, it's on the google drive link a few post up, the file "bb_patch" if you'ld like to test it.

Used this as a template:
KonstaT/android_kernel_huawei_msm8909@c779e2e

I'm building with it now, so I don't know yet if it works.

Update: It doesn't seem to break anything ;-p

from android_device_bq_krillin.

sleep-walker avatar sleep-walker commented on August 28, 2024

I finished the build of CM13 but my ROM build has problem with ADB (cannot authenticate fingerprint), cannot format SD card as internal and for some reason cannot install SuperSU for LineageOS. Besides that it is working well and seems to be faster.

from android_device_bq_krillin.

MagnusAlm avatar MagnusAlm commented on August 28, 2024

Congratulations :-D

I've so far not used ADB, SuperSU or tried to use SD card as internal, but I could look into it if you could provide some more details. I have two of these phones, got the second one for testing stuff.

from android_device_bq_krillin.

sleep-walker avatar sleep-walker commented on August 28, 2024

Thanks!

I compared your ROM with mine and at least we have the same list of files - that is good start.

  • adb - you need to enable Developers settings and then enable debugging over USB
  • SD card as internal - put SD card, visit storage setting, click on external card, format it as internal - it fails for me when it tries first time to move some data on it

BTW. do you know what is status of CM14?

from android_device_bq_krillin.

MagnusAlm avatar MagnusAlm commented on August 28, 2024

I've actually just a few minutes ago managed to boot a Frankenstein build, with some QnD patches to overcome the miss match of vendor 14.1 and device 14.1:

Pablito2020/android_device_bq_krillin cm-14.1
Pablito2020/android_kernel_bq_krillin cm-14.1
Pablito2020/android_vendor_bq_krillin cm-14.1

Buggy as hell tho, but you can make phone calls, send SMS, surf with wifi.

Not tested the install with gapps.

Sim data is of cource broken since vendor cm14.1 is missing bits and pieces for that with device 14.1.
It reboots when you connect it to a pc with usb cable, but it pops up as a device in explorer after reboot..
No off mode battery animation, instead it boots up after charger is inserted.

Was built on a fresh Xubuntu 17.10 install with just the stuff from "pablito-scripts/install-everything.sh".
The script in it self didn't work but I installed what it was supposed to install manually.

from android_device_bq_krillin.

MagnusAlm avatar MagnusAlm commented on August 28, 2024

There was a patch for bootlooping apps added to cm-13.0 the twelfth of December last year.

https://review.lineageos.org/#/c/197386/

from android_device_bq_krillin.

MagnusAlm avatar MagnusAlm commented on August 28, 2024

And I think I found the cause to the "off mode charging" bug on kernel cm-14.1.

Pablito2020/android_kernel_bq_krillin#2

from android_device_bq_krillin.

tc-gd avatar tc-gd commented on August 28, 2024

WITH_SU fixes me both ADB access and gaining root right.

from android_device_bq_krillin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.