yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] maqo314:
Not exactly a WSL question but a question regarding compiling on windows in general: I noticed that during compilation my CPU is at 100% but "Antimalware Service Executable" is taking >20% (sometimes even reaching >50%). If I go to Settings -> Update & Security -> Windows Security -> Virus & threat protection -> Virus & thread protection settings, I can configure this. Did anyone manage to define proper rules and exceptions for building android on windows yet? I tried to make a folder exception for "~/android/lineage/15.1/out" but to no avail.
[Android Software/Hacking General [Developers Only]] Uldiniad:
https://github.com/Microsoft/WSL/issues/1932
[Android Software/Hacking General [Developers Only]] skythian:
Thanks again for the help. Tried make clobber and it's still happening. I am getting this before the error happens...

[596/986] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
system/sepolicy/Android.mk:89: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.

How do I fix this?
[Android Software/Hacking General [Developers Only]] Uldiniad:
https://review.lineageos.org/#/q/project:LineageOS/android_device_oneplus_oneplus3

there are a lot of unmerged patches, I think it is a matter of patience
[Android Software/Hacking General [Developers Only]] scottysau:
Stupid question time.

Have you changed your directory structure in GitHub.

You say add this line to roomservice.xml

<project name="TheMuppets/proprietary_vendor_your device brand" path="vendor/your device brand" remote="github" />

but when I look it up it looks like this in browser

https://github.com/TheMuppets/proprietary_vendor_samsung/tree/lineage-16.0/kltekor

So mine looks like this.

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<project name="TheMuppets/proprietary_vendor_samsung" path="tree/lineage-16.0/kltekor" remote="github" />

<project name="LineageOS/android_device_samsung_kltekor" path="device/samsung/kltekor" remote="github" />

<project name="LineageOS/android_device_samsung_klte-common" path="device/samsung/klte-common" remote="github" />

<project name="LineageOS/android_device_samsung_msm8974-common" path="device/samsung/msm8974-common" remote="github" />

<project name="LineageOS/android_kernel_samsung_msm8974" path="kernel/samsung/msm8974" remote="github" />

<project name="LineageOS/android_packages_apps_FlipFlap" path="packages/apps/FlipFlap" remote="github" />

<project name="LineageOS/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" />

<project name="LineageOS/android_hardware_samsung" path="hardware/samsung" remote="github" />

<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" />

</manifest>

repo sync successful about to restart the WSL terminal run 2 commands then brunch.

Build failed 2.5 hours in - can anybody explain why (file attached)
[Android Software/Hacking General [Developers Only]] DSA:
<project name="TheMuppets/proprietary_vendor_samsung" path="tree/lineage-16.0/kltekor" remote="github" />

That line looks wrong - You cant have "tree" in the path - It should be going into a vendor folder
[Android Software/Hacking General [Developers Only]] NowifeBetterlife:
Path should be vendor/samsung
[Android Software/Hacking General [Developers Only]] kherio:
Hi there,

I'm trying to compile Lineage 15.1 for LG V30 (H930)

When I execute source build/envsetup.sh && repopick -t wsl-compile I get some messages:

~/android/lineage$ source build/envsetup.sh && repopick -t wsl-compile

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 device/lge/h930/vendorsetup.sh

including vendor/lineage/vendorsetup.sh

including sdk/bash_completion/adb.bash

Applying change number 208102...

Change status is MERGED. Skipping the cherry pick.

Use -f to force this pick.

Applying change number 208328...

Change status is ABANDONED. Skipping the cherry pick.

Use -f to force this pick.

Applying change number 208384...

Change status is ABANDONED. Skipping the cherry pick.

Use -f to force this pick.

Applying change number 214842...

Change status is MERGED. Skipping the cherry pick.

Use -f to force this pick.

Applying change number 214883...

Change status is MERGED. Skipping the cherry pick.

Use -f to force this pick.

Applying change number 214892...

Change status is MERGED. Skipping the cherry pick.

Use -f to force this pick.

Applying change number 216718...

Change status is ABANDONED. Skipping the cherry pick.

Use -f to force this pick.

Must I run it with the -f flag ??

Also I have this error when running breakfast h930

breakfast h930

including vendor/lineage/vendorsetup.sh

build/core/envsetup.mk:109: *** missing separator. Stop.

Device h930 not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).

Found repository: android_device_lge_h930

Default revision: lineage-15.1

Checking branch info

Checking if device/lge/h930 is fetched from android_device_lge_h930

LineageOS/android_device_lge_h930 already fetched to device/lge/h930

Syncing repository to retrieve project.

remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0

Fetching project LineageOS/android_device_lge_h930

remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0

Fetching projects: 100% (1/1), done.

Repository synced!

Looking for dependencies in device/lge/h930

Looking for dependencies in device/lge/joan-common

Looking for dependencies in device/lge/common

device/lge/common has no additional dependencies.

Looking for dependencies in kernel/lge/msm8998

kernel/lge/msm8998 has no additional dependencies.

Done

build/core/envsetup.mk:109: *** missing separator. Stop.

build/core/envsetup.mk:109: *** missing separator. Stop.

** Don't have a product spec for: 'lineage_h930'

** Do you have the right repo manifest?

Any clues?

Thx in advance
[Android Software/Hacking General [Developers Only]] seadersn:
jep, run the command with -f option included. maybe things are sorting itself out after that. the area around line 109 in envsetup.mk checks environment variables, particular if it's windoze (or linux / mac) you're building with. maybe you need to set this variable?
[Android Software/Hacking General [Developers Only]] kherio:
I executed the repopick -t wsl-compile -f and I get the following messages. Is it correct? It seems not :(

~/android/lineage$ repopick -t wsl-compile -f

Applying change number 208102...

!! Force-picking a closed change !!

--> Subject: "Adapt ijar for WSL"

--> Project path: build/make

--> Change number: 208102 (Patch Set 15)

['git fetch github', u'refs/changes/02/208102/15']

From https://github.com/LineageOS/android_build

* branch refs/changes/02/208102/15 -> FETCH_HEAD

Not currently on any branch.

You are currently cherry-picking commit 14925d030.

nothing to commit, working tree clean

The previous cherry-pick is now empty, possibly due to conflict resolution.

If you wish to commit it anyway, use:

git commit --allow-empty

Otherwise, please use 'git reset'

WARNING: git command resulted with an empty commit, aborting cherry-pick

Applying change number 208328...

!! Force-picking a closed change !!

--> Subject: "Disable futexes on lxss"

--> Project path: art

--> Change number: 208328 (Patch Set 1)

['git fetch github', u'refs/changes/28/208328/1']

remote: Enumerating objects: 238579, done.

remote: Counting objects: 100% (238565/238565), done.

remote: Compressing objects: 100% (68981/68981), done.

remote: Total 235557 (delta 166696), reused 233466 (delta 164858), pack-reused 0

Receiving objects: 100% (235557/235557), 78.19 MiB | 1.88 MiB/s, done.

Resolving deltas: 100% (166696/166696), completed with 1928 local objects.

From https://github.com/LineageOS/android_art

* branch refs/changes/28/208328/1 -> FETCH_HEAD

[detached HEAD d0bbc055b] Disable futexes on lxss

Author: Bryan Tong Minh <bryan.tongminh@gmail.com>

Date: Sat Jan 14 17:54:57 2017 +0100

1 file changed, 1 insertion(+), 1 deletion(-)

Applying change number 208384...

!! Force-picking a closed change !!

--> Subject: "Add detection for WSL"

--> Project path: build/make

--> Change number: 208384 (Patch Set 7)

['git fetch github', u'refs/changes/84/208384/7']

remote: Enumerating objects: 128192, done.

remote: Counting objects: 100% (128190/128190), done.

remote: Compressing objects: 100% (41796/41796), done.

remote: Total 127776 (delta 85417), reused 127390 (delta 85057), pack-reused 0

Receiving objects: 100% (127776/127776), 36.10 MiB | 1.57 MiB/s, done.

Resolving deltas: 100% (85417/85417), completed with 242 local objects.

From https://github.com/LineageOS/android_build

* branch refs/changes/84/208384/7 -> FETCH_HEAD

error: could not apply bae4f40b9b... Add detection for WSL

hint: after resolving the conflicts, mark the corrected paths

hint: with 'git add <paths>' or 'git rm <paths>'

hint: and commit the result with 'git commit'

Recorded preimage for 'core/combo/HOST_linux-x86_64.mk'

Recorded preimage for 'core/envsetup.mk'

ERROR: git command failed
[Android Software/Hacking General [Developers Only]] seadersn:
sry, when these picks are for 16.0 branch, not 15.1, then they differ, so they most likely are not working for 15.1.
[Android Software/Hacking General [Developers Only]] Uldiniad:
quoting OP: "For those still insterested in building 15.1 (ignore the repopick step): https://web.archive.org/web/20180617...-15-1-t3750175 (do not report any errors if you sync this branch, I will ignore them since I do not have the means to maintain more than one branch on wsl)"

there's nothing to pick on 15.1 nor 16.0 cause my patches were merged

I recommend a clean sync and following the steps on the link, should work unless device tree is messed up
[Android Software/Hacking General [Developers Only]] Juanchito16:
Im sorry for this question for sure its a wierd one, i use my laptop for builds and i use a SSD for the system and a HDD recently i got both working inside of the laptop, is there a way to make the subsystem store the things on the HDD ?
[Android Software/Hacking General [Developers Only]] Uldiniad:
It's already been answered. Yes. Search the thread. I think it was among the first pages
[Android Software/Hacking General [Developers Only]] JJUTz:
[CODE]ninja: error: '/home/jjut/los/out/target/product/albus/obj_arm/SHARED_LIBRARIES/libqsap_sdk_intermediates/export_includes', needed by '/home/jjut/los/out/target/product/albus/obj_arm/SHARED_LIBRARIES/libqsap_shim_intermediates/import_includes', missing and no known rule to make it
21:50:56 ninja failed with: exit status 1[/CODE]

Hello, how can I solve this problem?
[Android Software/Hacking General [Developers Only]] Uldiniad:
https://review.lineageos.org/#/q/albus

not sure but device bringup isn't finished. you may want to pick the open patches. but don't report errors here if they're not strictly due to wsl.
[Android Software/Hacking General [Developers Only]] Juanchito16:
Well so far i got it and got the source synced, but when im going to sync the device specific things i get this "error: Exited sync due to fetch errors" it dont even tell me the reason.....
[Android Software/Hacking General [Developers Only]] Uldiniad:
I doubt there was nothing printer above the error that is not relevant. would be good to post. if device specific stuff is failing I think it might be that you messed up the roomservice step
[Android Software/Hacking General [Developers Only]] Juanchito16:
so after getting all running this is what i get.....

14:41:59 ************************************************************

14:41:59 You are building on a case-insensitive filesystem.

14:41:59 Please move your source tree to a case-sensitive filesystem.

14:41:59 ************************************************************

14:41:59 Case-insensitive filesystems not supported

14:41:59 Failed to run java: context canceled
[Android Software/Hacking General [Developers Only]] Sukrut4778:
i think vm better that this
[Android Software/Hacking General [Developers Only]] Uldiniad:
lol
[Android Software/Hacking General [Developers Only]] Uldiniad:
using mnt? or did you move wsl with the methods explained on their GitHub?
[Android Software/Hacking General [Developers Only]] Juanchito16:
like an noob, using mnt. so could you be so kind to send me a link to that guide please ?:laugh:
[Android Software/Hacking General [Developers Only]] Ardany Jolón:
I have doubts, I downloaded the source code 15.1, now I want the source code 16.0 redownload all again or just update what is necessary?
[Android Software/Hacking General [Developers Only]] Uldiniad:
mnt is a no-go as mentioned on OP.

https://github.com/Microsoft/WSL/issues/449 (latest comments are probably more relevant. hope it works our for you, but don't report issues if it doesn't cause this is untested and unoffcial)
[Android Software/Hacking General [Developers Only]] Uldiniad:
I recommend removing 15.1 and starting clean with 16.0 to make sure no conflicts happen. but if you're asking if it is possible, it is.
[Android Software/Hacking General [Developers Only]] 3more:
where I can find the root of the tree?
[Android Software/Hacking General [Developers Only]] Uldiniad:
if you followed the guide ~/android/lineage.

but I'm not sure that's what you're looking for
[Android Software/Hacking General [Developers Only]] dark90_:
I got this error after triyng to get proprietary vendor <project name="TheMuppets/proprietary_vendor_oneplus" path="vendor/oneplus"/> : bash syntax error near token not expected newline
[Android Software/Hacking General [Developers Only]] Uldiniad:
you probably messed up the roomservice.xml format when adding the line
[Android Software/Hacking General [Developers Only]] dark90_:
Or ? I'm sorry but I did not understand
[Android Software/Hacking General [Developers Only]] Uldiniad:
can't explain it much simpler. roomservice.xml is broken. open it and see what's wrong with the formatting. it broke when you added the line
[Android Software/Hacking General [Developers Only]] psyafter:
I found solution to build from sources on another disk (still must be NTFS):

For example I created NTFS partition on regular HDD (disk Q) for android sources

Add it to /etc/fstab and no more "You are building on a case-insensitive filesystem" error:

Q: /home/psyafter/roms drvfs rw,noatime,uid=1000,gid=1000,umask=22,fmask=11,case=force 0 0

Read more here
[Android Software/Hacking General [Developers Only]] Uldiniad:
would you like me to quote you on OP? I would still classify this as unofficial and experimental but it is nice of you to share your findings here :)
[Android Software/Hacking General [Developers Only]] psyafter:
no problem :)
[Android Software/Hacking General [Developers Only]] Bap062:
not working bro

while running command repo init -u https://github.com/LineageOS/android.git -b lineage-16.0
[Android Software/Hacking General [Developers Only]] Uldiniad:
working bro

did you try running the commands that it is asking you to?

your git is not set up
[Android Software/Hacking General [Developers Only]] Uldiniad:
I've quoted you on OP now :) thanks again for sharing this. appreciated
[Android Software/Hacking General [Developers Only]] Bap062:
repo sync command not ending.... till date it take more than 25 GB space in my hard disk and still continue.... so i want to delete all the files downloaded for building lineage os..... is ubuntu 18.04 downloaded from microsoft store will help or any other way to do this?
[Android Software/Hacking General [Developers Only]] hachi1211:
Uninstall the ububuntu app it will remove all files..
[Android Software/Hacking General [Developers Only]] scottysau:
Windows WSL LineageOS 16 kltekor build failing

Okay what a

error: use of undeclared identifier 'O_TMPFILE'

This was on a brunch kltekor with LineageOS16. Cant wait for my laptop caddy to turn up. WSL is not meeting my expectations on simplicity.
[Android Software/Hacking General [Developers Only]] NowifeBetterlife:
Your error is not related to this topic.

2 ways to fix the error.

1. h t t p s://review.lineageos.org/q/topic:%22pie-mode-bits%22

2. Your need to backport a few commits to your kernel.

h t t p s://review.lineageos.org/q/topic:%22msm8930_tmpfile%22

I presume you are running a 3.4 kernel on your device.
[Android Software/Hacking General [Developers Only]] Uldiniad:
syncing android sources takes up a lot of space (that's why i put the 256GB prerequisite as minimum). just leave it syncing and make sure you're on the latest version of Windows available. I recommend using the latest ubuntu from the store. if you don't want the files anymore then uninstalling the ubuntu app will delete all the files within the subsystem.
[Android Software/Hacking General [Developers Only]] scottysau:
Yes, I believe it is. Thanks heaps.
[Android Software/Hacking General [Developers Only]] Bap062:
[91/1027] including device/cyanogen/msm8916-common/Android.mk ...

build/make/core/binary.mk:1528: error: device/cyanogen/msm8916-common/recovery/Android.mk: librecovery_updater_cm: C_INCLUDES must be under the source or output directories: /edify/include /otautil/include.

20:33:03 ckati failed with: exit status 1

WHILE EXECUTING BRUNCH COMMAND... GIVE STEP BY STEP SOLUTION IF POSSIBLE...I AM TOTALLY NEW IN THIS FIELD
[Android Software/Hacking General [Developers Only]] klami94:
Build on mnt drive

But if you like to use case=force you have to set the following registry flag:

reg.exe add HKLM\SYSTEM\CurrentControlSet\Services\lxss /v DrvFsAllowForceCaseSensitivity /t REG_DWORD /d 1

on the other side you can set 'case=dir' in your wsl.conf and start then with the setup. in this case every new folder inside the wsl is marked as case sensitive and the build will work
[Android Software/Hacking General [Developers Only]] Uldiniad:
also quoted you on OP
[Android Software/Hacking General [Developers Only]] Uldiniad:
need more information to help. and please spare us the all caps.
[Android Software/Hacking General [Developers Only]] iesous-kurios:
haggertk has a file called "picks.sh" in his git repo "cm build stuff" that you can place in the root of your ROM folder then run via terminal. It will repopick some changes to the common msm8974 source that fixed my build of hltetmo (and will probably work for you since we share that sourcecode between our devices)

initialize your repo, repo sync, then run the picks.sh file, make sure all the repopicks were implemented (on my side one or two wouldn't for some reason, so I had to manually type in "repopick ______" to apply that specific repopick by number) then since "source build/envsetup.sh" is ran in the "picks.sh" file you can begin your brunch.

In the 'picks.sh' file, make sure you delete the line of code with "haggertk" username in it.
[Android Software/Hacking General [Developers Only]] SakthivelNadar:
How to fix App-ops bug in pie build that i've made for galaxy s3?
[Android Software/Hacking General [Developers Only]] Uldiniad:
no idea. I do not maintain devices. check gerrit?
[Android Software/Hacking General [Developers Only]] giannism13:
Sorry if this has been answered before but it seems that I have a problem at step 11

including vendor/lineage/vendorsetup.sh
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_bullhead".
15:39:42 dumpvars failed with: exit status 1
Device bullhead not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Found repository: android_device_lge_bullhead
Default revision: lineage-16.0
Checking branch info
Checking if device/lge/bullhead is fetched from android_device_lge_bullhead
LineageOS/android_device_lge_bullhead already fetched to device/lge/bullhead
Syncing repository to retrieve project.
Fetching project LineageOS/android_device_lge_bullhead
Fetching projects: 100% (1/1), done.

Repository synced!
Looking for dependencies in device/lge/bullhead
device/lge/bullhead has no additional dependencies.
Done
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_bullhead".
15:39:50 dumpvars failed with: exit status 1
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_bullhead".
15:39:53 dumpvars failed with: exit status 1

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

it seems that im getting the same error 3 times. I ve looked at lineageos github and it seems there is a 16.0 branch for my device https://github.com/LineageOS/android_device_lge_bullhead/tree/lineage-16.0
[Android Software/Hacking General [Developers Only]] Uldiniad:
Did you get the muppets blobs (step 12)?
[Android Software/Hacking General [Developers Only]] giannism13:
Yes i did. Could my problem be related with the fact that there are no lineage 16 builds for my device supposing that the branch is incomplete?
[Android Software/Hacking General [Developers Only]] Uldiniad:
https://review.lineageos.org/q/project:LineageOS/android_device_lge_bullhead+branch:lineage-16.0 there are changes uploaded for review but they are not merged, not sure why there has been little movement there. you can repopick them, test them and leave meaningful feedback on gerrit. might want to do the same for the kernel tree for you SoC too. I'm pretty sure that if you did all the steps in order and you have the vendor blobs breakfast should work
[Android Software/Hacking General [Developers Only]] icxj1:
Awesome guide, works gr8! thanks.

Fixed. Thanks again.
[Android Software/Hacking General [Developers Only]] sinholueiro:
I have this error (and yes, I'm in the correct folder and the files exist).

-bash: IntxLNKmake/envsetup.sh: No such file or directory

Has anyone faced this error? Does anyone know how to solve it?
[Android Software/Hacking General [Developers Only]] Uldiniad:
can you show the commands you executed to get that error?
[Android Software/Hacking General [Developers Only]] :
redacted