yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Uldiniad:
Checking out files: 100% (4427/4427), done.
Checking out files: 100% (259/259), done.
Checking out files: 100% (1944/1944), done.
Checking out files: 100% (1765/1765), done.
Checking out files: 100% (7584/7584), done.
Checking out files: 100% (7584/7584), done. out files: 2% (172/7584)
Checking out files: 100% (33748/33748), done.
Checking out files: 100% (683/683), done.
Checking out files: 100% (763/763), done.
Checking out files: 100% (12188/12188), done.
Checking out files: 100% (2218/2218), done. out files: 2% (58/2218)
Checking out files: 100% (8081/8081), done.
Checking out files: 100% (4867/4867), done.
Checking out files: 100% (3210/3210), done.
Checking out files: 100% (74/74), done.
Checking out files: 100% (16/16), done.king out files: 93% (15/16)
Checking out files: 100% (4089/4089), done.
Checking out files: 100% (10158/10158), done.
Checking out files: 100% (1150/1150), done.
Checking out files: 100% (2698/2698), done.
Checking out files: 100% (1184/1184), done.
Checking out files: 100% (607/607), done.
Checking out files: 100% (1702/1702), done. out files: 12% (216/1702)
Checking out files: 100% (888/888), done.
Checking out files: 100% (223/223), done.ng out files: 92% (207/223)
Checking out files: 100% (1374/1374), done.
Checking out files: 100% (303/303), done.ng out files: 57% (175/303)
Checking out files: 100% (275/275), done.
Checking out files: 100% (503/503), done.
Checking out files: 100% (305/305), done.ng out files: 38% (118/305)
Checking out files: 100% (127/127), done.
Checking out files: 100% (664/664), done.
Checking out files: 100% (229/229), done.
Checking out files: 100% (614/614), done.ng out files: 31% (195/614)
Checking out files: 100% (2219/2219), done.
Checking out files: 100% (67/67), done.king out files: 80% (54/67)
Checking out files: 100% (18572/18572), done.
Checking out files: 100% (408/408), done.
Checking out files: 100% (149/149), done.
Checking out files: 100% (17/17), done.king out files: 52% (9/17)
Checking out files: 100% (190/190), done.
Checking out files: 100% (205/205), done.
Checking out files: 100% (627/627), done.
Checking out files: 100% (1222/1222), done. out files: 13% (169/1222)
Checking out files: 100% (275/275), done.
Checking out files: 100% (431/431), done.
Syncing work tree: 100% (729/729), done.
xxxx@xxxx:~/android/lineage$ source build/envsetup.sh
including device/generic/car/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/uml/vendorsetup.sh
including vendor/lineage/vendorsetup.sh
including sdk/bash_completion/adb.bash

working fine here on a clean sync. are you sure you're executing from the right folder?
[MENTION=2962415]sinholueiro[/MENTION] [MENTION=4895773]wedidntstartthefire[/MENTION]
[Android Software/Hacking General [Developers Only]] Zorbeyd:
How many gb file approximately syncing?
[Android Software/Hacking General [Developers Only]] icxj1:
40-80 gb once you have devices, kernel, & vendor.
[Android Software/Hacking General [Developers Only]] Uldiniad:
Not sure I'm understanding the situation here. Have you checked Gerrit for angler?
[Android Software/Hacking General [Developers Only]] anshumanxda:
Thanks :)
[Android Software/Hacking General [Developers Only]] Uldiniad:
https://review.lineageos.org/q/topic:"angler-p"+(status:open OR status:merged also, are you sure you have the vendor folders from TheMuppets too?
[Android Software/Hacking General [Developers Only]] Uldiniad:
you need to sync again in step 13 after adding your vendor to roomservice.xml for breakfast to work. if your vendor folder has huawei/angler then it should work fine. the point of syncing muppets is to not have to extract proprietary blobs
[Android Software/Hacking General [Developers Only]] Uldiniad:
I already showed you the work that is being done on the device tree (see the gerrit link). you need to repopick it if you want to use it in your builds while it isn't merged officially
[Android Software/Hacking General [Developers Only]] Uldiniad:
running breakfast should just work if you followed the steps correctly, should not need to edit anything except roomservice to add muppets. it looks like you're complicating your life a lot when it should be simple and if it isn't it is probably just not ready . anyways this is a device specific issue and not related to wsl (I say this with some confidence because many other devices seem to be compiling without problem so I doubt it is wsl screwing things up). I only unofficially maintain wsl.

that last sentence could be the case. but I've told you how to get the unmerged changes (which might still not be enough) from gerrit using repopick
[Android Software/Hacking General [Developers Only]] Uldiniad:
repopick should be included if you source build/envsetup.sh. try running the command after that and you'll need -t to pick by topic from gerrit
[Android Software/Hacking General [Developers Only]] Uldiniad:
https://github.com/LineageOS/android_device_huawei_angler

all the .mk files are makefiles
[Android Software/Hacking General [Developers Only]] Uldiniad:
repo sync and breakfast (at least, on first execution) steps should get the device tree (should automatically add it to roomservice). TheMuppets is for vendor blobs (which if not correctly synced will cause breakfast to fail). Copying and pasting is a bad idea. I'd start over if you're doing that
[Android Software/Hacking General [Developers Only]] Uldiniad:
https://review.lineageos.org/q/proj...d_device_oneplus_oneplus3+branch:lineage-16.0
[Android Software/Hacking General [Developers Only]] acetone802000:
Thank you very much for your reply !

I'll wait an update for this bug in the repository.

(i tried the neverallows fix from [MENTION=5091734]dianlujitao[/MENTION] with git pull but without success).

Edit: works now
[Android Software/Hacking General [Developers Only]] mpto user:
Is this guide also useable for building LineageOS for the Lenovo tb-x304f?
[Android Software/Hacking General [Developers Only]] Uldiniad:
Does it build on Ubuntu? If so, there's no reason why it wouldn't
[Android Software/Hacking General [Developers Only]] mpto user:
I think so. Do you know how I could make it for my tablet?
[Android Software/Hacking General [Developers Only]] Uldiniad:
Follow the steps?
[Android Software/Hacking General [Developers Only]] Uldiniad:
Read the warnings on the original post
[Android Software/Hacking General [Developers Only]] ZIDAN44:
Device Treee

Can I edit or build device trees on it...??
[Android Software/Hacking General [Developers Only]] Uldiniad:
Yes
[Android Software/Hacking General [Developers Only]] technobrigadeinfotech:
Mobile App Development & Hacking

Hello, Thanks for your great guide. I was able to finish the build nearly successfully.

Regards

Techno Brigade Infotech
[Android Software/Hacking General [Developers Only]] Hanabishi Recca:
Good guide, thanks.

Tip about filesystem case-sensitivity. Actually you can use other drives and mnt. No need to mount entire filesystem as case-sensetive.

E.g. if you want to work in D:\build, just run this command in windows cmd/powershell:

fsutil.exe file setCaseSensitiveInfo "D:\build" enable

Works fine. Now you can use /mnt/d/build as your working folder.

But this command is not recursive for exisiting subfolders (only newly created folders will inherit this flag).

So if your working folder wasn't empty, you already synced the repo and don't want to redownload it again, use script form here Recursive file case sensitivity

Perhaps due to previous case-insensitivity during sync some files were lost. Run

repo forall -c 'git reset --hard'

to fix all repos.
[Android Software/Hacking General [Developers Only]] xHazard:
Does anyone have screenshots before I try this out myself? Also is using the Windows Store a requirement? Wondering how I'd do this on my LTSC PC.
[Android Software/Hacking General [Developers Only]] Uldiniad:
If you search around you'll find screenshots in the thread. Concerning the windows store, it is the recommended way. If you get the setup working another way then good for you but don't expect support from me in that case.
[Android Software/Hacking General [Developers Only]] Uldiniad:
maybe add this one too? https://github.com/TheMuppets/proprietary_vendor_oppo

if you read your error it says it vendor/oppo/msm8974-common does not exist
[Android Software/Hacking General [Developers Only]] spoiledsport:
It works

Thanks for your great healp. Build completed. This is good. Like I said, I am a newbie. I am trying to understand how this work.
[Android Software/Hacking General [Developers Only]] xHazard:
There's 50 pages in the thread. That's a lot of searching around.
[Android Software/Hacking General [Developers Only]] Uldiniad:
did you check the most thanked posts?
[Android Software/Hacking General [Developers Only]] hecz0r:
Can anyone help me on why this error occurs? https://pastebin.com/2vZGUQ5b

Running 16.04 WSL on latest Windows update.
[Android Software/Hacking General [Developers Only]] Uldiniad:
building 15.1 apparently. please refer to the link in the first post
[Android Software/Hacking General [Developers Only]] Uldiniad:
WSL 2 announcement

https://devblogs.microsoft.com/commandline/announcing-wsl-2/

I'm on the insider previews, so will test based on the LineageOS build guide and see if it works out of the box (aka without my commits) in June.
[Android Software/Hacking General [Developers Only]] rob_sd:
Hi

Can I use these instructions to build Lineage 16.0 for my Samsung Galaxy Note Pro 12.2 / SM-P900 / v1awifi device?

I think the device codename is "v1awifi"... does that device specific code exist?

For the vendor name do I just use "samsung"?

<project name="TheMuppets/proprietary_vendor_your device brand" path="vendor/your device brand" remote="github" />
[Android Software/Hacking General [Developers Only]] Uldiniad:
if you check https://github.com/LineageOS you'll find if they have a v1awifi tree (might be outdated and not sure it has the 16.0 branch). concerning vendor, yes.
[Android Software/Hacking General [Developers Only]] Aadiiiiii:
whenever i try to build anyrom in this wsl it shows cant create module-finder
[Android Software/Hacking General [Developers Only]] Uldiniad:
don't know what anyrom is
[Android Software/Hacking General [Developers Only]] scottysau:
Has anybody experimented with Docker rather than WSL, using th community build. It uses Windows 10 Hyper V technology, you can have multiple instances with multiple images (limited by SSD space).

I might give it a go, but I couldn't get the build to finish successfully in WSL so my skills might not be there yet.

At least with Docker the "resetting" will be easier.
[Android Software/Hacking General [Developers Only]] Uldiniad:
I haven't tried with docker. Docker on windows has been annoying to me given the use of hyper-v. what do you mean by docker resetting?
[Android Software/Hacking General [Developers Only]] VincentJoshuaET:
Is it possible to only just build android_system_bt? Thanks.
[Android Software/Hacking General [Developers Only]] Uldiniad:
Probably. Check the directory of that module for a makefile. If there's is one and you've setup the environment with envsetup.sh, run mm in the directory to build that module.
[Android Software/Hacking General [Developers Only]] scottysau:
WSL is problematical if you need to reset your environment. Docker is much easier and by saving the image incrementally you can multiple containers with different configurations or stages.

Docker is meant to be testing WSL2 support as I write this so hopefully we will see some performance improvements.
[Android Software/Hacking General [Developers Only]] ArcherTanu:
Linage 16.0 and RR 7.0.2 builds are successful out of da box in WSL2 at Windows 1903. but im stuck in case of AOSIP & AEX roms.

View attachment mylog.txt

Problem solve.. It seems GSI/Treble problem.

Its not a WSL problem. :)
[Android Software/Hacking General [Developers Only]] Uldiniad:
what version are you building? you should not pick that commit since it is already merged
[Android Software/Hacking General [Developers Only]] DedeDocil:
Solved already. Thanks btw
[Android Software/Hacking General [Developers Only]] ArcherTanu:
U r device dependencies are missing.

And u need to android_packages_resources_devicesettings
[Android Software/Hacking General [Developers Only]] Uldiniad:
I don't support Android 10 and I don't think I will given that WSL2.0 should not require any patches. I recommend you install WSL2.0
[Android Software/Hacking General [Developers Only]] Uldiniad:
I haven't tried yet with 2.0. have run out of disk space. I am waiting to upgrade my computer before tinkering with it again, but as I have said before it should work out of the box. are you sure you installed all the required packages? some have reported that they were able to successfully compile on wsl 2. make sure to sync the latest changes too since sometimes Lineage don't have some patches merged and errors like this happen
[Android Software/Hacking General [Developers Only]] Xdevillived666:
anyway to do the same with los 17 fr pixel 3 or are sources not yet releases?
[Android Software/Hacking General [Developers Only]] Uldiniad:
your environment seems odd. I haven't seen cmdline::logparams lines before nor microsoft standard in HOST_OS_EXTRA. is this wsl 2.0?
[Android Software/Hacking General [Developers Only]] Uldiniad:
https://github.com/LineageOS/android_device_google_crosshatch
[Android Software/Hacking General [Developers Only]] Uldiniad:
the nsjconf stuff seems to be talking about root. could it be that it says that because you're running as root user and not a normal user? I've never seen this when I run lunch and such.

the actual errors that matter are Can not locate config makefile for product "lineage_crosshatch". that's because of missing dependencies. might need muppets for example
[Android Software/Hacking General [Developers Only]] durgaprasadu:
Raspberry pi 3 build failing

Hi Thanks for providing the source.

When iam using lunch or breakfast command not able to find raspberry pi 3 device code name.

If explicitly providing name of raspberry board build is failing.
[Android Software/Hacking General [Developers Only]] Uldiniad:
has it ever been officially supported by LineageOS. I've never heard of pi support
[Android Software/Hacking General [Developers Only]] durgaprasadu:
Android 9 pre-built image is working fine on pi board.That's why taken source code and trying to build where im unable to do it successfully.
[Android Software/Hacking General [Developers Only]] Uldiniad:
what's the device codename?
[Android Software/Hacking General [Developers Only]] durgaprasadu:
Device code name is rpi3-eng.
[Android Software/Hacking General [Developers Only]] Uldiniad:
I can't find any official repositories referencing rpi3. I can't help much in this case
[Android Software/Hacking General [Developers Only]] rituj_b:
I am getting the exact same error, I even PM'ed you, please reply.
[Android Software/Hacking General [Developers Only]] -Androider-:
I'm getting this error too and therefore can't finish my LOS 17 build. Seems to be a common issue, if you want to build Android 10 (LOS 17) with wsl 1.0.

I assume I/we have to wait for wsl 2.0 to get released publicly or join the windows insider program ( which I don't want to do). I hope it finally works with wsl 2.0 in april/may. Disappointing I know, but there semms to be no other solution.
[Android Software/Hacking General [Developers Only]] Uldiniad:
you are correct. those are the available options. I've already announced I was not going to spend the effort supporting android 10 (lineage 17) on wsl 1.0
[Android Software/Hacking General [Developers Only]] -Androider-:
That's totally fine, thanks for the confirmation! :good:
[Android Software/Hacking General [Developers Only]] AlwaysLucky:
Just wanted to say thanks! Great tutorial and saved me some headaches with the 64-bit bison and flex. And you still are supporting this tutorial which is exactly what XDA needs more of.

I can also confirm that you can easily access the linux subsystem file system on WSL 2 by simply navigating to \\wsl$ in Windows itself. Very convenient.

Going to try my first unofficial compile later this week and I'll bug you if I get errors I can't figure out :p
[Android Software/Hacking General [Developers Only]] masemoel:
Hi.

I'm trying to build LOS 16 to my h815.

This was officially supported by LOS years ago, with Nougat (and I believe Oreo too).

When I go to step 11, this happen:

breakfast h815
including vendor/lineage/vendorsetup.sh
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_h815".
11:09:25 dumpvars failed with: exit status 1
Device h815 not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Found repository: android_device_lge_h815
Default revision: lineage-16.0
Checking branch info
Default revision lineage-16.0 not found in android_device_lge_h815. Bailing.
Branches found:
cm-12.1
cm-13.0
cm-14.0
cm-14.1
lineage-15.1
Use the ROOMSERVICE_BRANCHES environment variable to specify a list of fallback branches.
lineage-15.1
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_h815".
11:10:00 dumpvars failed with: exit status 1
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_h815".
11:10:42 dumpvars failed with: exit status 1

** Don't have a product spec for: 'lineage_h815'
** Do you have the right repo manifest?

What can I do?

Is there any way to install an unofficial kernel from Github?? I'm a noob at compiling my own ROM :D :cowboy:
[Android Software/Hacking General [Developers Only]] Uldiniad:
https://github.com/LineageOS/android_device_lge_h815 there is no official lineage-16.0 branch sorry

there may exist unofficial branches for your device. you'd have to setup a roomservice.xml under .repo/local_manifests to fetch them from GitHub but I can't recommend it. In any case, welcome to custom ROMs and hope you continue in the learning process :) .
[Android Software/Hacking General [Developers Only]] Uldiniad:
thanks :) appreciate

wsl 2 should not require to follow the directions I gave in the front page. only wsl1. I'll update my instructions when wsl2 is fully released with the next Windows update (sometime in the first half of this year)
[Android Software/Hacking General [Developers Only]] masemoel:
Cool

So I paste that XML and then what step should I do? Thanks in advance.
[Android Software/Hacking General [Developers Only]] Uldiniad:
at that point you probably can follow all the steps from repo sync onward
[Android Software/Hacking General [Developers Only]] TogoFire:
https://del.dog/apofilygru

FAILED: ninja: ./build/blueprint/bootstrap/build.ninja:11: loading '/root/xtended/out/soong/.minibootstrap/build-globs.ninja': Exec format error

subninja ${myGlobs}

^ near here

15:12:20 soong minibootstrap failed with: exit status 1

help, plis
[Android Software/Hacking General [Developers Only]] Uldiniad:
I am not supporting lineage 17 on wsl 1.0. once wsl 2 releases I will update the front page with the new instructions even though it should build out of the box
[Android Software/Hacking General [Developers Only]] masemoel:
I am trying to build crDroid unoficially for my device.

The manifest synced all my device stuff correctly.

Any solution for this?

brunch h815

including vendor/lineage/vendorsetup.sh

build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_h815".

21:11:31 dumpvars failed with: exit status 1

Device h815 not found. Attempting to retrieve device repository from crDroid Android Github (http://github.com/crdroidandroid).

Found repository: android_device_lge_h815

Default revision: 9.0

Checking branch info

Default revision 9.0 not found in android_device_lge_h815. Bailing.

Branches found:

5.1.1

6.0.0

7.0

Use the ROOMSERVICE_BRANCHES environment variable to specify a list of fallback branches.

build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_h815".

21:12:06 dumpvars failed with: exit status 1

build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_h815".

21:12:43 dumpvars failed with: exit status 1

Don't have a product spec for: 'lineage_h815'

Do you have the right repo manifest?
[Android Software/Hacking General [Developers Only]] Uldiniad:
I've already said it's not supported and gave you the github link. You can only build older versions. I only supported lineage-15.1 and 16.0 anyways on wsl 1.0. I will attempt to support 17.0 on wsl 2.0 if it requires any changes (supposedly should not)
[Android Software/Hacking General [Developers Only]] acadiantoast:
I'm completely new to this and trying to build for my device, is there a guide to editing roomservice.xml? Not sure how to add that line from the terminal
[Android Software/Hacking General [Developers Only]] magpies92:
Hi, Thanks for a great guide, I have my old lg g pad 8.3 running smoothly

Two issues i have is that my camera and livedisplay are not working. i get this

Note: the configuration refers to the unknown class 'com.android.camera.ui.EffectSettingPopup'

and about 50 similar messages

from logcat i get

vendor.lineage.livedisplay@2.0-service-legacymm: Can not get libmm-disp-apis.so (dlopen failed: library "libmm-disp-apis.so" not found)

and

CANNOT LINK EXECUTABLE "/vendor/bin/mm-qcamera-daemon": "/system/vendor/lib/libmmjpeg.so" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)

I am also missing the snap camera app. Anyone knows how I can enable/add it to my build?

my device is not officially supported so i have added these links to my xml-file in the local_manifests folder:

github.com/bamsebu/android_device_lge_gpad83-common

github.com/bamsebu/android_device_lge_v500

github.com/bamsebu/proprietary_vendor_lge

github.com/bamsebu/android_kernel_lge_v500
[Android Software/Hacking General [Developers Only]] Uldiniad:
this is easy to find on Google. you're creating a file if the file doesn't exist already and adding lines to it. you can do that with any editor out there whether through terminal or GUI. pick one you like and stick to it. on Ubuntu I use nano if the edits are simple
[Android Software/Hacking General [Developers Only]] Uldiniad:
this is not a device support thread, sorry I can't help you there. you'll probably find more help on the threads for your device.
[Android Software/Hacking General [Developers Only]] Uldiniad:
the error is the illegal instruction. I've already shown you that android 9 / lineage-16.0 is not supported officially supported on h815 and this is not a device support page. additionally, wsl 2.0 will likely resolve most of these kinds of issues since there Windows will be shipping a real linux kernel with it