yashsingh1/xdaforums huggingface dataset:
[Android] misco55:
Help S4 mini i9195 serranoltexx

Hi, my device is a Samsung S4 mini (i9195) and the codename is serranoltexx.

my repo is: //github.com/LineageOS/android.git -b cm-14.1

I make $ source build / envsetup.sh and perfect, but $ breakfast serranoltexx I get this error: build / core / product_config.mk: 254: *** _nic.PRODUCTS. [[Device / samsung / serranoltexx / lineage.mk]] : "vendor / samsung / serrano-common / serrano-common-vendor.mk" does not exist. High.

build / core / product_config.mk: 254: *** _nic.PRODUCTS. [[device / samsung / serranoltexx / lineage.mk]]: "vendor / samsung / serrano-common / serrano-common-vendor.mk" does not exist High.

** Do not have a product spec for: 'lineage_serranoltexx'

** Do you have the right repo manifest?

Jump to the option: Extracting proprietary blobs from block-based OTAs, I assemble the image well, I position myself in the directory where are the sources of my device:

~ / android / lineage / device / samsung / serranoltexx #, I enter the command ./extract-files.sh ~ / android / system_dump / and I get this error: db: error: remote object '/ system / bin / btnvtool' does not exist

I check the remote object and if it exists.

Can you give me a hand to give me light in the matter?

Thank you.
[Android] FSadino:
Add repo blobs directly into manifest.

Search here https://github.com/TheMuppets
[Android] zogthegreat:
OK, I took a big step back, wiped my hard drive and reinstalled Ubuntu 16.04. After that, I was able to successfully build LineageOS 14.1 for my Samsung S5.

I then ran "make clobber" and reinitialized my my build tree with:

repo init -u https://github.com/LineageOS/android.git -b lineage-15.1

However when I try to sync my repo, I get the following error:

Syncing work tree: 78% (512/656) error: Your local changes to the following files would be overwritten by checkout:

res/xml/device_info_settings.xml

Please, commit your changes or stash them before you can switch branches.

Aborting

Syncing work tree: 100% (656/656), done.

packages/apps/Settings/: discarding 858 commits

error: packages/apps/Settings/: LineageOS/android_packages_apps_Settings checkout b9634cdec5784b2bc341712865172b8910828d03

I've tried to add "<project name="LineageOS/android_packages_apps_Settings" path="vendor/samsung" remote="github" />" to my roomservice.xml, but I still get the same error.

Does anyone have any suggestions?

Thanks!

zog
[Android] FSadino:
make clobber is not enough if you want to sync entirely new branches.

I recommend you create new working directory for 15.1 branch
[Android] zogthegreat:
Thanks FSadino!

#### build completed successfully (06:19:38 (hh:mm:ss)) ####

That did the trick!
[Android] zogthegreat:
After building LineageOS Oreo, I made a new directory and I tried to compile LineageOS Pie. When I tried to start jack server, I encountered a java error:

zog@x220:~/work/pie$ export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx6g"

zog@x220:~/work/pie$ ./prebuilts/sdk/tools/jack-admin start-server

Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx6g -cp /home/zog/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher

Jack server failed to (re)start, try 'jack-diagnose' or see Jack server log

zog@x220:~/work/pie$ ./prebuilts/sdk/tools/jack-diagnose

/home/zog/work/pie/prebuilts/jdk/jdk9/linux-x86/bin/java': Failed to parse version, please ensure you're running a supported java

zog@x220:~/work/pie$ java -version

openjdk version "9"

OpenJDK Runtime Environment (build 9+181-android4627429)

OpenJDK 64-Bit Server VM (build 9+181-android4627429, mixed mode)

Which version of java do I need for Android Pie?
[Android] FSadino:
Really don't know, try to update to latest stable
[Android] tripLr:
How do I add exfat SD card support for the Kernel?
[Android] FSadino:
Maybe this will help you: https://github.com/flar2/ElementalX-N5/tree/cbee9fe45b9860417ff5cbad6918d5ac5349b775/fs/exfat
[Android] tripLr:
Thanks [MENTION=6005084]ripee[/MENTION] and I thank you both. He Got a build working for the sm-t710 but its SD card is vfat only no other formats. Awesome
[Android] sevenrock:
https://source.android.com/setup/build/jack

Try openjdk-8.

https://source.android.com/setup/build/requirements.html#jdk mentions only Android up to Oreo

but Sony still suggests openjdk-8 for pie

https://developer.sony.com/develop/...build-instructions/build-aosp-android-p-9-0-0
[Android] ADB100:
ROM builds sucessfully but device has no audio or RIL?

I have been attempting to build Lineage 15.1 for samsung S6 edge (zeroltexx) and S6 (zerofltexx) for a couple of weeks on and off now and I am getting the same issues every time. I have two phones - a S6 and a S6 Edge. The S6 Edge has a cracked screen so this is the one I am testing with. The S6 is my daily phone so this is still running Official Lineage 14.1 downloaded from the official sources.

I have a couple of spare Dell PC's - an i7 machine with 24GB RAM and 2 * 1TB disks and a Core2 Quad with 16GB RAM and 2 * 640GB disks. I have wiped and installed Ubuntu 18.04, followed the procedure to the letter for configuring the environment, installing the prerequisites and downloading the repositories. This is the guide I have followed - https://wiki.lineageos.org/devices/zeroltexx/build

I changed the repo init command to download lineage-15.1 rather than cm-14.1 and I have added the zero.xml from here - https://github.com/Exynos7420/local_manifests to the /.repo/local_manifests/ folder. Everything seems to sync OK when I do a repo sync. The samsung bits get added to the /device/, /vendor/, /hardware/ & /kernel folders. The ROM seems to build OK, I transfer it to the zeroltexx, boot to TWRP, perform a full wipe and then install the ROM and OpenGApps. When the device boots there is no RIL (mobile network or data), no audio and no GPS. WiFi works, Bluetooth works, NFC works, screen works, vibration works, camera works, fingerprint sensor works and its a fairly smooth UI.

I have wiped and rebuilt the Ubuntu system and rebuilt the environment so many times I can't remember. I have also tried building within Windows 10 Insider Preview with WSL enabled using the guide on XDA. I have even just tried it within ESXi 6.0 and using Ubuntu 16.04, however the resulting ROMs all suffer from the same issue with RIL, Audio and GPS not working.

I am obviously missing something and its the same thing each time.

Any idea what I am doing wrong?
[Android] waza123:
Hi, after i change something in .java code in LineageOS, how can I fast rebuild ? (I tried "make clean" && brunch jfltexx" but its full rebuild and its very long)
[Android] misco55:
Learn how to modify the defconfig file to add VLAN support and much more.

Hello, I have already compiled the kernel and installed the boot.img file in my s4 mini. The repo I use is lineage-15.1

I have been modifying the samsung_serrano_defconfig file for several days to add otg support, vlan support and a fast 2.0 usb 2.0 ethernet adapter from the Edimax brand. The last thing I modified in the defconfig file was:

CONFIG_VLAN_8021Q = y

CONFIG_VETH = y

CONFIG_USB_OTG = y

CONFIG_AX88796 = y (in the manual the driver is called AX88772)

I get the boot.img file, but when I install it on my mobile, the wifi adapter does not work, it's off, I turn it on and off instantly.

Can you help me configure the defconfig file to get a functional boot.img file?

Thank you very much for the knowledge I am acquiring and the support you are giving me in this great forum.

A hug.
[Android] firezblade:
How to view the changes relating to lineage android 7.1.2 r8? When I look under lineage/android github commits, it states a change from r2 to r8 but I can't find the code changes. Thanks
[Android] sinholueiro:
I'm building LOS15.1 to Xiaomi Redmi 5 Plus (Vince). I'm getting this error: https://pastebin.com/XsEQaTeT saying that libinit_msm8953 is missing. If I set ALLOW_MISSING_DEPENDENCIES=true, I get this error: https://pastebin.com/4mukFF9z. Does anyone know how to solve it or has some guess?
[Android] kegang:
I followed this guide and this: https://youtu.be/cWNaMgyrVGM

I set Ubuntu 16.04 on Google Cloud Platform, and I downloaded all the packages to make LOS 15.1(Resurrection Remix Oreo) for leEco, every time I try to build a ROM, it keeps saying

What should I do for this? Thank you for your advice.!
[Android] zogthegreat:
Hey kegang,

It looks like that you have the wrong sources listed in your .repo. That's why it's trying to build for the S2 and not LeEco. Try runnig the following commands to clean up your build directory and restart your build clean:

cd ~/rr // (Or whatever your working directory is)

make clobber

make clean

mkdir -p ~/bin

PATH=~/bin:$PATH

curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

chmod a+x ~/bin/repo

cd ~/rr // (Or whatever your working directory is)

repo init -u https://github.com/ResurrectionRemix/platform_manifest.git -b oreo

repo sync -f --force-sync --no-clone-bundle --no-tags -j8 -c

export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx60g" /// set your memory here. My build machine has 64gb of memory, so I set mine to 60gb. If your running 8gb, try setting it to around 6gb.

./prebuilts/sdk/tools/jack-admin start-server

. build/envsetup.sh

breakfast THE NAME CODE OF YOUR DEVICE HERE (there seems to be different code names for your device)

repo sync -f --force-sync -j8 -c

brunch THE NAME CODE OF YOUR DEVICE HERE

If your still having problems with your sources, let us know. You might have to add extra source repositories from github.

Good luck!
[Android] tobit_67:
hey there, i'm pretty new to lineage os, but a quite good linux user. the device i'm using is a Samsung Galaxy A3 2016 (a3xelte) currently running with lineageos 15.1.

As i could find out, lineageos16 doesnt support my device anymore. what are the dependencies of "supporting" the device? im interested in building lineageos by myself.

i found this: github.com/Exynos7580/android_device_samsung_a3xeltexx

i assume that this repo wont work for lineageos 16, am i right? what would be necessary to change for making it work? do you know any lecture/guides i can read about this?

thank you in advance
[Android] Zjh0094:
You have to rewrite the device tree
[Android] tripLr:
You need to do some digging. And found out why your device is not being supported. Was it ever official. If it was you might find the build info in the lineageos build tree at github.com/lineageos and switch the build to your own fork
[Android] Phoenix09:
I'm attempting to build LineageTWRP for my tablet and getting this error:

ninja: error: 'bionic/libc/zoneinfo/tzdata', needed by '/home/android-build/lineagetwrp/out/target/product/tb_8704x/recovery/root/system/usr/share/zoneinfo/tzdata', missing and no known rule to make it

anyone got any ideas?
[Android] ziatnine:
Is there an option to build the image without connecting my device? The thing is, the server I have for building is quite not here and there's no usb cables couple thousands miles long available out there... ?*♂️
[Android] FSadino:
Yes, you can build without connecting your device. Search here for proprietary blobs and add it to your local manifest

https://github.com/TheMuppets
[Android] commonsenseused:
pastebin.com/NH4nbKRY Any help here is appreciated. No zip or img output in $out.
[Android] FSadino:
Updated for Lineage 16.0 branch build
[Android] ptrtoptr:
Query on unsupported device

Thanks for this excellent guide. I just want to know the best method for pulling proprietary blobs if the device is not part of the Muppets list? In fact not lineage rom exists for the device. Then how should I go about it?

Thanks a lot in advance
[Android] FSadino:
9. Extract proprietary blobs

Method 1
[Android] ptrtoptr:
Query on Unsupported device

Many thanks for your quick response. Method 1 refers to using extract-files.sh

But AFAIK, extract-files.sh needs a list of proprietary files to extract. If the device is unsupported how will I know which files should be extracted or not (to put in this list).

Thanks in advance for your response. Much appreciated
[Android] tschmid:
Try an error method

Gesendet von meinem Pixel 2 XL mit Tapatalk
[Android] ptrtoptr:
Many thanks for your response. But since I am new to this, I am not sure I understand what that means. Could you please explain a little more? Thanks
[Android] tschmid:
Example if you've a Samsung device have a look at device tree of a Samsung device and copy files 1 per 1 (exp bin files for WiFi) then build and try

Gesendet von meinem Pixel 2 XL mit Tapatalk
[Android] ptrtoptr:
Great! Thanks, will try
[Android] blutor:
Is generic build for emulator supported and runnable?

I am trying to build LOS 16.0 for emulator. Build is successful but booting fails because it can not find root device /dev/vda1. Here is what I did:

$ repo init -u https://github.com/LineageOS/android.git -b lineage-16.0
$ repo sync
$ source build/envsetup.sh
# also tried lineage_x86-userdebug and lineage_arm-userdebug on next lines with the same result
$ breakfast lineage_x86_64-userdebug
$ brunch lineage_x86_64-userdebug

After trying it to run in emulator it does not boot:

$ emulator -show-kernel
...
[ 0.000000] Linux version 4.4.124+ (android-build@wprf1.hot.corp.google.com) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Thu Aug 16 04:59:43 UTC 2018
[ 0.000000] Command line: qemu=1 no_timer_check androidboot.hardware=ranchu clocksource=pit no-kvmclock console=ttyS0,38400 android.qemud=1 android.checkjni=1 qemu.gles=1 qemu.encrypt=1 qemu.opengles.version=131072 cma=262M@0-4G qemu.wifi=1 mac80211_hwsim.channels=2 androidboot.android_dt_dir=/sys/bus/platform/devices/ANDR0001:00/properties/android/ skip_initramfs rootwait ro init=/init root=/dev/vda1 loop.max_part=7 ramoops.mem_address=0xff018000 ramoops.mem_size=0x10000 memmap=0x10000$0xff018000 qemu.dalvik.vm.heapsize=192m
...
[ 0.984823] VFS: Cannot open root device "vda1" or unknown-block(253,1): error -6
[ 0.985395] Please append a correct "root=" boot option; here are the available partitions:
[ 0.986019] 0100 16384 ram0 (driver?)
[ 0.986385] 0101 16384 ram1 (driver?)
[ 0.986760] 0102 16384 ram2 (driver?)
[ 0.987134] 0103 16384 ram3 (driver?)
[ 0.987496] 0104 16384 ram4 (driver?)
[ 0.987855] 0105 16384 ram5 (driver?)
[ 0.988224] 0106 16384 ram6 (driver?)
[ 0.988586] 0107 16384 ram7 (driver?)
[ 0.988950] 0108 16384 ram8 (driver?)
[ 0.989311] 0109 16384 ram9 (driver?)
[ 0.989682] 010a 16384 ram10 (driver?)
[ 0.990098] 010b 16384 ram11 (driver?)
[ 0.990475] 010c 16384 ram12 (driver?)
[ 0.990843] 010d 16384 ram13 (driver?)
[ 0.991215] 010e 16384 ram14 (driver?)
[ 0.991587] 010f 16384 ram15 (driver?)
[ 0.991957] fd00 1338980 vda driver: virtio_blk
[ 0.992395] fd10 56 vdb driver: virtio_blk
[ 0.992809] fd20 2097152 vdc driver: virtio_blk
[ 0.993229] fd30 1024 vdd driver: virtio_blk
[ 0.993643] fd40 63092 vde driver: virtio_blk
[ 0.994060] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(253,1)
...

Partition /dev/vda1 does not exists only /dev/vda exists. Kernel however is started with parameter root=/dev/vda1. Why this misalignment? Am I missing something?

Is running LOS in emulator officially supported? Has anyone tried it? Am I using correct combo? If not, what is the right one and what is the purpose of lineage_{x86,x86_64,arm,arm64}-userdebug combos?

Thanks for any hint.
[Android] babakhad:
hi

i see this error after brunch command :

error: vendor/xiaomi/msm8953-common/Android.bp:22:1: module "vendor.display.color@1.0" variant "android_arm64_armv8-a_core_shared": module source path "vendor/xiaomi/msm8953-common/proprietary/lib64/vendor.display.color@1.0.so" does not exist

and i dont know what should i do!!!
[Android] FSadino:
Missing proprietary files
[Android] babakhad:
yes , exactlly

but i could not find that filles in any where

i extract proprietary filles from tissot phone and dont know why sme files missing !!!

thanks for attention
[Android] FSadino:
Maybe you need to extract those files with SU permissions
[Android] chris5s:
The first post details how to build for a device that already has Lineageos built for it, but how to build for a completely new device that isn't in the list here?

Peace
[Android] Hazuki Amamiya:
For those who struggling why ccache not working when compiling 17.1, read this: stackoverflow.com/questions/59811821/how-to-use-ccache-to-speed-up-compiling-of-aosp

In gist, you need an extra environment variable compare with previous versions.
[Android] mad_rock:
Hello,

I'm trying to build LOS 17.1 for a OP6 and have several questions.

I tried to remove some stock apps but the resulting build powers off the phone at first boot. Apparently it's not as simple as removing the apps from packages/apps. I see there are some tests while building, looking for the preinstalled apps files. Is that necessary? Why can't I build without "Calendar" for example?

Can I replace the captive portal server before build? Or make the build with it turned off?

How exactly would I turn on avb for a user build?

It's pretty nice that you put the tutorial for people to be able to build themselves, but it's kind of a moot point since the whole power of building yourself is to be able to modify different aspects of the build. Without info on how to modify it you might just as well install the official downloads version.

Also, how would I go about locking the bootloader, if I sign my own build? I understand it's not that simple, but maybe some pointers in the right direction?

Thank you.
[Android] ADB100:
Build different Lineage versions on the same machine or not?

I am currently building LineageOS 15.1 for Samsung S6, S6 Edge and HTC One M8. I am using an Ubuntu 20.04 VM with 300GB of storage. I created the build environment in /home/user/android/lineage/. I forked the S6/S6 edge sources and made some changes to fix a couple of issues and I am building with my own keys and everything is working well for 15.1 (obviously excluding the inherent camera issues with the S6).

I want to start building LineageOS 16 and/or 17.1 and am not sure if I can use the same build environment or should I create a new one - i.e. new Ubuntu VM, memory, storage etc. I am not sure whether there are downsides or limits with either?

Cheers

Andy
[Android] ELP31:
When I get to installing the LineageOS stuff, it gives me an error saying "No module named _ctypes". Anyone know how to fix it?
[Android] ELP31:
When I get to installing the LineageOS stuff, it gives me an error saying "No module named _ctypes". Anyone know how to fix it?

Oops, didn't mean to post twice. XDA was laggy.
[Android] IDontKnowMang:
If you're on a Debian distro try

sudo apt-get install libffi-dev

pyenv uninstall 3.7.6

pyenv install 3.7.6
[Android] ELP31:
Okay, thanks! Yes I'm on Ubuntu.
[Android] ELP31:
Still gives me the same error.
[Android] nomi josimar:
Can someone help me I try to compile rom more of this error

find: '/home/viperx/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates': No such file or directory

build/core/base_rules.mk:183: *** vendor/samsung/galaxys2-common/proprietary: MODULE.TARGET.SHARED_LIBRARIES.libUMP already defined by hardware/samsung/exynos4/hal/libUMP.

make: *** [build/core/ninja.mk:167: /home/viperx/android/lineage/out/build-lineage_i9100.ninja] Error 1

make: Leaving directory '/home/viperx/android/lineage'

#### make failed to build some targets (01:53 (mm:ss)) ####
[Android] kevinygod:
I have sucess compiled but not a solution for 1112000.ufs not found :(
[Android] Bigdrago:
Anyone could make newest lineageos for samsung galaxy tab sm-t805?
[Android] T2100-0:
After typing

bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev

It says: File bison is unavailable.
[Android] Iv4n_1976:
Sudo apt install.........
[Android] Iv4n_1976:
sudo apt install bc....
[Android] T2100-0:
Command:

sudo apt install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev

Response:

Reading package lists... Done

Building dependency tree

Reading state information... Done

Note, selecting 'lib32ncurses-dev' instead of 'lib32ncurses5-dev'

Package libwxgtk3.0-dev is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

E: Package 'libwxgtk3.0-dev' has no installation candidate
[Android] Iv4n_1976:
Note, selecting 'lib32ncurses-dev' instead of 'lib32ncurses5-dev'
[Android] Iv4n_1976:
Follow my env... Adapt to yours

build_tools/build_env.sh at lineage-15.1 · WinSSitaly/build_tools

Scripts/patches to build ROMs for Samsung Galaxy S II Plus - WinSSitaly/build_tools

github.com
[Android] T2100-0:
So I just copy the steps?

This is only my 2nd time attempting to build a ROM.
[Android] Iv4n_1976:
Look for video of alaskalinux in YouTube learn before start https://m.youtube.com/channel/UCnGqG_jyyXmTzdamBpKfeHA
[Android] T2100-0:
Trying to build LOS 16 for T280 with README.md
[Android] sgas:
hello

In method I

~/android/system/device/your_device/codename folder. Then run the extract-files.sh script:

I should mkdir your_device and codename?

In method II

No my device in TheMuppets or Donkeycoiote

I found something like this https://github.com/hi6210sft/android_vendor_huawei_hi6210sft

Can i use it? (my codename hi6210sft - huawei y6 II CAM-L21

If so, how to add it to the local manifest?

There is no file to edit in

~ /android/system/.repo /local_manifests /
[Android] superlativo:
Excellent guide! Does it work for models not officially supported? Examples: Motorola G82 or Realme GT Neo 2. I am interested in learning how to create a rom for a device not yet supported by LineageOS. Thanks in advance.
[Android] Asakura hatsuyuki:
I'm trying to build a new ROM for device that is no longer supported by lineageOS. What do I need to prepare?

Should I sync an old source first?
[Android] chrisfromnowhere:
I have a google pixel 4a (sunfish) device. I see the TheMuppets has a lineage20 branch for this device for the proprietary blobs. I am building Lineage 18.1. Does it matter that the proprietary blobs are from v20?
[Android] vleonidov:
Media Files

Hi guys,

could you please help me with maybe strange question. I would like to add some media files (like musics, video, photos) right in LineageOS ROM. It would be nice to have these files on /sdcard/media or something like that after installation LineageOS via fastboot.

Is it possible? What is the simplest way to do it?

Thank you in advance!

Have a nice day.
[Android] FSadino:
Yes this is possible. You can add this files on zip file and change updater-script to point then to sdcard/media or other locations. You need to read about "how updater-script" works. I believe I saw a guide on XDA that helps you to understand it.
[Android] jf.navica:
Can you give any hints on how to troubleshoot issues once the build is installed and running?

I have one kernel, that doesn't boot at all staying on a black screen. With another, it runs but I'm getting video hardware acceleration issues (that and bluetooth, gps, camera!) I know logcat can give some pointers but is there something like strace?

Thanks!