yashsingh1/xdaforums huggingface dataset:
[Android] DiamondJohn:
Oreo Permissive Kernel?

I have previously successfully built MM and N ROMS, and am now attempting to build an Oreo ROM (RR for ks01ltexx, ie non official device). I have the device tree's etc for LOS 15.1, and I have modified it so that RR will build. However, I made a change that in Nougat would make it permissive (its still early stages) which when I make the same changes in Oreo, do not appear to make it permissive. In Nougat, I would add the following lines to the BoardConfig.mk file.

# Permissive Kernel
BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive

It does not appear to set it permissive, with the following line in the resultant build.prop

ro.build.selinux=1

Should the above work in Oreo? or is there a new technique for Oreo?
[Android] NepoRood:
I'm using that flag (BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive) for building Oreo on the Pixel/XL, Marlin and Sailfish. Also have the same selinux prop in build.prop, and all is working like it should, I have a permissive build (because it won't boot enforcing, at this time)
[Android] DiamondJohn:
OK, at this stage mine does not boot, so I don't have much to go on. Thanks for confirming that it probably is permissive. In my last_kmsg there are no denials/logs, which would of clarified it for me.

If anyone has a chance to check it out, but the device/kernel/vendor tree's are changing, as well as RR Oreo source, so it may just be a little early to be building.

https://pastebin.com/ACDZpZ2H

Actually, has anyone managed to successfully build and boot ResurrectionRemix Oreo?
[Android] NepoRood:
A fellow built RR Oreo for the Pixel XL (Marlin) the other day, a bit "buggy" but it was booting.

Looking at your log, around line # 195 and on, it looks like init is failing because it can't find the files.
[Android] antariksh:
Your rootdir seems screwed up. Update the paths, permissions, symlinks.

init: property_set("ro.boottime.cameraserver", "43247291576") failed: property already set

This are actually the services that are failing. Take a look at your dmesg (kernel logs).

Also link me your device tree.
[Android] Heisenberg:
Hey there [MENTION=5216756]jackeagle[/MENTION],

I've been following a guide, but I made an error. I forgot to change directory before issuing this command:

repo init -u git://github.com/VanirAOSP/build.git

So it started in my /home directory, I attempted to stop it but I was too late. Now I have a bunch of crap in my /home directory and the above command doesn't work when I have changed into the correct directory. How can I reverse this mistake? Using Linux Mint 17.1 Rebecca.
[Android] saintxseiya:
I think you are mixing up things, if you have a lot of crap in your home directory, you did a repo sync after the init.

in the new folder there should be a folder after the right init has been executed called .repo if that is the case, then a repo sync can be executed
[Android] Heisenberg:
There's nothing in the new folder (/vanir), it's definitely in my /home directory:

And you can see the following as we move through the hierarchy:

And now when I attempt the repo init -u git://github.com/VanirAOSP/build.git command within the /home/vanir/ directory I get the following error:
[Android] saintxseiya:
actually it is obvious what is missing, read the message and you will find out by yourself.
[Android] Heisenberg:
That's a really awesome thing to say to someone who is just beginning to learn this stuff. Clearly I don't know how to resolve this issue, otherwise I wouldn't be asking for assistance. Never mind, I'll wait for someone who actually wants to help. Hopefully my esteemed colleague [MENTION=5216756]jackeagle[/MENTION] will be around sometime.
[Android] Vivek_Neel:
Your repo init command is wrong.

Must be

repo init -u git://github.com/VanirAOSP/platform_manifest.git -b L5
[Android] mohit310:
You need to specify a branch in repo using - b option. Usually for cm11 it will be -b cm-11.0 for 12 it will be -b cm-12.0

Check this link which has detailed instructions for oneplus but you can adapt it for your phone.

http://xdaforums.com/showthread.php?t=2947949
[Android] jackeagle:
Hi [MENTION=4153349]timmaaa[/MENTION],

The repo init command is wrong.. follow these steps

1) Make vanir directory with following command

mkdir vanir
cd vanir

2) Repo init with following command

repo init -u git://github.com/VanirAOSP/platform_manifest.git -b L5

This will solve your error :) just on side note dont edit default.xml at any case with any error :)

your init was init'ng build repo :)

Hope This helps :)

Have a great day :)

Regards

:)
[Android] jgcaap:
how i understand you... did you make it with the instructions the others gave you? if you need help give me your hangouts email. I think i got the hang of it!

---------- Post added at 03:30 PM ---------- Previous post was at 03:07 PM ----------

I believe there is also something missing on your tutorial which would be usefull, i was able to find the answer , which is how to add a branch. after you say to use git push origin master , if we dont create a branch will give error...
[Android] jgcaap:
wing files would be overwritten by checkout:
res/mipmap-hdpi/ic_launcher_application.png
res/mipmap-hdpi/ic_launcher_home.png
res/mipmap-mdpi/ic_launcher_application.png
res/mipmap-mdpi/ic_launcher_home.png
res/mipmap-xhdpi/ic_launcher_application.png
res/mipmap-xhdpi/ic_launcher_home.png
res/mipmap-xxhdpi/ic_launcher_application.png
res/mipmap-xxhdpi/ic_launcher_home.png
Please, commit your changes or stash them before you can switch branches.
Aborting
Syncing work tree: 100% (547/547), done.

error: packages/apps/Browser/: CyanogenMod/android_packages_apps_Browser checkout aa65d3264497ab7e145ca5b2663712a761efcd01
error: packages/apps/Trebuchet/: CyanogenMod/android_packages_apps_Trebuchet checkout 06e3e072e0b70b01dd1d4e2d859d70832d16172c

Here is an example of why i don't understand of what i am doing xD LOL, if anyone knows the answer and is willing to help would be awesome! Thanks
[Android] saintxseiya:
your problem could be solved googling two minutes.

if you really want to throw away all changes!

Other options:

Option 1

git checkout -f gh-pages

Option 2

git reset --hard # beware: don't make that a habit

git checkout gh-pages
[Android] jackeagle:
Hi,

You are right on your point :) but even if there is no branch you can push using master has the branch later u can modify it on github :) but if you want to push to ur branch or wanna create a branch and then push to it you can use following steps :)

To Create a Branch in your local repo go to your repo folder

1) To Create a branch

git checkout -b branchname

2) In order to push using that branch first your local repo git should be on that branch for that use this command

git checkout brancename <-------------------- Branchname should be the one you used in above command

3) To Push ur repo via that branch to github use this command

git push -u remotename/link HEAD:branchname

Will update OP when m free :)

Thanks for pointing it out :)

Have a great day :)
[Android] jgcaap:
I'm sure you understood what i meant.

Thanks for helping.

I dont really want to make away the changes. In order to explain, i've edited quite a bit the CM ROM , where i optimized img and also removed the apps which i don't want in the rom (camara2, CMupdater,Calendar).

I was able to remove them from the manifests the ones i dont need and sorted the manifest error, but after each repo sync, he gives error over those modifications.

If possible i would like to keep, as it is the aplications which i removed . As for images, i'm trying to develop a code which is a feature also available on liquidrom repo, but for CM, where on each ROM build after a repo sync, he optimizes the pictures.

is there any way of doing that or i really have to do git reset --hard ?

As you said, would become a habit since i'm changing this up a bit... lol

Thanks

PS: https://github.com/jgcaap Laught away over my repo! It seems there was an easier way and i just commited most of the built LOL

edit: he repo syncs completly... i just wanted to remove the errors so that i get no problems with databases... and i cant find the answer to this one lol.
[Android] saintxseiya:
Hmmm still don't get your problem, so you build a git and synched in the beginning and now you try to change a branch but you want to keep your changes?

So is uploading your changes to your git the problem ?
[Android] jgcaap:
Sorry i'll try to explain better.

The changes done where: optimizing images+Removing unwanted apps.

What would like to do if is possible to do it. Let him overwritte images everytime i repo sync, but without adding back the apps i dont want.

Like that i can keep pictures up to date with recent changes of my code.

These errors appeared after i deleted manifest lines of the apps + removed them + optimized pictures.

I dont believe many people done this , i got this idea from a liquid smooth ROM, gave a try on CM and must say is snappier for daily use, perhaps thats why i can't find info around.

Perhaps you might know which ifle i need to edit? If yes i think i am able to edit it.
[Android] saintxseiya:
Hmmmm ok, back to where we started, with the first repo sync you are syncing the contents of the githubs in manifest.xml, default.xml and local_manifest.xml from the github you initiated in the first place.

then you deleted folders in

/packages/apps

right?

you edited the /vendor/cm/common.mk and deleted the lines referencing those packages right?

So now if you would repo sync, all your changes would be gone, unless you would upload them to your own github and reference them in the xml files to sync from there for the appropriate paths.
[Android] jgcaap:
exacly that! Also had to change mafifest.xml so that he wont sync back the changes i had made. And thats where it appears the error i showed you. It doesnt bother me, since he syncs. my worrie here is that it damages the database again.

in case i cannot find answer to this i'll try start over again on a new folder to see if i can fix it in another way.

Thanks man!
[Android] Heisenberg:
Thanks very much for your replies guys, much appreciated. Problem has been rectified, repo directory changed to correct location, sources downloading (very slowly).
[Android] tobitege:
Have you tried with "-jX" param, like "repo sync -j8" or higher (depending on your connection)?
[Android] Heisenberg:
It's only downloading slowly due to my slow connection (2.5mbit/s).

Oh, and due to the slow connection I used "j2".
[Android] DiamondJohn:
Second attempt, computer failed while editing. :mad::silly:

I am using another persons tree's, and he has a working LineageOS 15.1, although its still not 100% either. But impressive to say the least.

https://github.com/kyasu/android_kernel_samsung_msm8974

https://github.com/kyasu/android_dev...sung_ks01ltexx

https://github.com/kyasu/android_ven...sung_ks01ltexx

Its a Samsung S4 GT4-i9506 LTE-A

As for dmesg, I thought that was something that can only be looked at when the phone is booted or at least has ADB access?:confused: The phone does not get past the bootlogo, and the CPU is obviously running hard as the phone gets dang hot. I have to admit, I didn't try connecting with adb while in this state; I wouldnt have though it was upand running considering the boot logo is still shown. I recently just had my previous phone die, so not even sure if I can connect to this phone; I have been using adb over WiFi till now, on a booted system.

And thanks again for looking at this.:good:

---------- Post added at 11:48 AM ---------- Previous post was at 11:35 AM ----------

Its kinda reassuring to know its the exception more than the rule;)

Right now I have a software raid issue with one of my drives, so when that's resolved, I will look at the image in my build out directory to see if the file is there ie /vendor/etc/init/hw/init.qcom.rc as a starting point.
[Android] quake73:
anybody having these errors?

/out/nitro8/soong/.intermediates/frameworks/rs/libRSSupport/android_arm64_armv8-a_cortex-a73_shared_core/obj/frameworks/rs/rsScript.o: In function `IDBase':

frameworks/rs/rsScript.h:39: undefined reference to `vtable for android::renderscript::IDBase'

it is so frustrating, cannot find anything on google...........vtable/key function....it is always either frameworks/rs or external/webrtc

https://pastebin.com/LhLqciFV
[Android] DiamondJohn:
Ahhh... almost forgot, the following are my notes of changes I make to enable it to compile RR

device
rename lineage files to RR
~/android/$ROM/device/samsung/ks01ltexx/lineage.mk > ~/android/$ROM/device/samsung/ks01ltexx/rr.mk
PRODUCT_NAME := rr_ks01ltexx

~/android/$ROM/device/samsung/ks01ltexx/lineage.dependencies > ~/android/$ROM/device/samsung/ks01ltexx/rr.dependencies

gedit device/samsung/msm8974-common/config.fs
remove [AID_QCOM_DIAG]

~/android/$ROM/device/samsung/ks01ltexx/BoardConfig.mk
# Permissive Kernel
BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive

device/samsung/ks01ltexx/rr.mk
change line
vendor/lineage/config/common_full_phone.mk
vendor/rr/config/common_full_phone.mk

The more I think about it, the more I think I am simply missing an include that is assumed to be in the device specific tree's for RR and in a general area in LOS. I will try comparing an official RR device with the tree I use.
[Android] DiamondJohn:
Thanks [MENTION=7237874]NepoRood[/MENTION] and [MENTION=4484354]antariksh[/MENTION], I think I mayt of found the issue, well, at least this one. The file https://github.com/kyasu/android_device_samsung_ks01ltexx/blob/lineage-15.1/rootdir/Android.mk throws all the files into $(TARGET_ROOT_OUT) I changed it to align with another RR Device, which also matched to the error messages saying it could not find the file at that location. Building now, and the files have been placed where expected, so hopefully it may even boot :fingers-crossed:

I am surprised, since from what I understand he has a bootable LOS 15.1:confused: unless he has an un-committed change.
[Android] antariksh:
if you were able to build this previously. Go to the OS Source code and see what the maintainers have recently committed to those repo's. If you find anything relatable , fork the repo, revert the commit, update your new repo in manifests file. Worked for me many times. 1, 2

---------- Post added at 01:59 PM ---------- Previous post was at 01:51 PM ----------

You need to first set selinux permissive anyhow. Most of your init error should disappear.

For this:

[ 21.669230] init: couldn't write 344 to /dev/cpuset/camera-daemon/tasks: No such file or directory

Add this to init.qcom.rc:

# add a cpuset for the camera daemon
# we want all the little cores for camera
mkdir /dev/cpuset/camera-daemon
write /dev/cpuset/camera-daemon/cpus 0-3
write /dev/cpuset/camera-daemon/mems 0
chown system system /dev/cpuset/camera-daemon
chown system system /dev/cpuset/camera-daemon/tasks
chmod 0664 /dev/cpuset/camera-daemon/tasks

under on boot
[Android] DiamondJohn:
I can build it, but it has never booted. I have built and booted Nougat, but Oreo is very different.

I have already done that with

Thanks, will add and restart the build. Here's hoping, and thanks again.
[Android] antariksh:
Remove the 'if' condition:

ifeq ($(RECOVERY_VARIANT),twrp)
BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
endif

from this

Because in the same file RECOVERY_VARIANT := twrp is commented out. so the permissive command won't be executed.
[Android] DiamondJohn:
In my local source I am building from, it is not within an if clause. I totally missed the line you saw, and just added the line a little lower, without the "IF" clause.:o:o:o oops...

Anyway, I just flashed it, and it didn't boot, but far less "unable to open" lines. I'll work through the ones left, using other devices trees on github. I use a VBox and cant start the box right now (i'm doing maintenance), but there was another location (I think something like about being off the root, like sys or proc or something) where all the sub paths were empty:confused: I may download LineageOS source and try to build that since he can get a bootable version of that.

Really, thanks guys for your time.:good:
[Android] unknown:
stupid qs , i build android 8.0 for my devices and it is boot fine . But i cant open my wifi on or bluetooth . Is it related to kernel or something ?:confused:

I'm still a noob so i dont know what commit need to fix it :(
[Android] soulpower11:
Trying to build LineageOS for Xperia Acro S and got this error

Full log:

https://pastebin.com/2p6Grmpb
[Android] NepoRood:
The WiFi warning is of no issue, for the other, you have a couple of options, use an ifeq statement to circumvent the hardware call, or remove the offending directory.

This may or may not work, as you didn't provide a link to your tree, but, in "device/samsung/n80xx-common/consumerir" Android.mk, do this:

ifeq ($(LINEAGE_BUILD),)
include $(call all-subdir-makefiles)
endif

Or, just delete the first one:

rm -rf hardware/samsung/consumerir

Either or, not both, then start your build again
[Android] NepoRood:
In your manifest, the path for your kernel is wrong, you have

<project path="kernel/samsung/n80xx-common"

It should be:

<project path="kernel/samsung/n8013"
Or whatever the "TARGET_KERNEL_SOURCE" flag points to
[Android] Netzheimer:
Okay I changed that, so the edited line is now:

<project path="kernel/samsung/n8013" name="lirokoa/android_kernel_samsung_n80xx" remote="github" revision="cm-14.1" />

Afterwards I executed 'repo sync --force-sync' and 'time brunch n8013'. But I still get the same error.
[Android] NepoRood:
Look in your BoardConfig.mk, and try to find the following flags:

TARGET_KERNEL_SOURCE := kernel/vendor/codename <-- this is the actual path to the kernel
TARGET_KERNEL_CONFIG := lineageos_codename_defconfig <-- this is the defconfig make is looking for

Obviously, the paths aren't "kernel/vendor/codename", it'd be something like "kernel/samsung/n80xx"

And same for kernel config, "codename" will be the name of your device
[Android] Netzheimer:
Thank you so much, this helped me to find out, that I need an other kernel source.

The build process is now already running 12 hours. I have a Intel Core i5 CPU with 8GB RAM but no SSD. Is this normal? Unfortunately I opened firefox in the beginning of the build process and now the screen freezes because of the work so I cant see the progress but I hear how it is still working. Is it normal that it can take that long?
[Android] NepoRood:
That's quite a while, even for your hardware. Are you using a VM or booted Linux system?
[Android] soulpower11:
I fixed the previous error and got a new error

https://hastebin.com/mifiruporu.vbs

Please help.

Information: Building LineageOS 14.1 for Xperia Acro S
[Android] Netzheimer:
Yes. I'm using a booted Ubuntu 17.10 system. No VM. I tried it now several more times. This are my current scenarious:

The build process freezes at 1% 'Docs droiddoc ...test/api/stubs'

It crashes with the error, that the heap size was too small

For the second scenario, I already execute the following commands before running the time brunch command:

export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g"
jack-admin kill-server && jack-admin start-server

And for speeding up the process I executed this commands:

export USE_CCACHE=1
prebuilts/misc/linux-x86/ccache/ccache -M 50G
[Android] NepoRood:
ccache really won't matter on the first build, but comes in handy later. For your Jack server arguments, at the end, you have "-Xmx4g", try changing the 4 to an 8, then restart jack.

For building Lineage, lunch your device, then use: mka bacon
[Android] pix106:
My 2 cents : :)

I once build a nougat rom on my 8GB PC, i had to change the number of jack servers in ~/.jack directory for the build to succeed.

I don't know much about it, as i only built lollipop based rom ever since, but it may help you anyway :)
[Android] albertoduqe:
Hi everyone!

I managed to more or less successfully build Cardinal and Atomic oreo for Lithium after last week it all went to h**ll suddenly, in relation (my guess) to treble compatibility stuff being pushed to sources...

My main question is: is anybody else having any kind of trouble with this? Treble, vendor image?

Because I was working on Gzosp too and it gets built with vendor.img (without it I have tried everything but building errors never stop) and gets flashed and boots... And it has a lot of issues.

Fr it I use the same sources as for Cardinal and Atomic (https://github.com/PsyMan47/lithium and https://github.com/PsyMan47/msm8996-common), only for gzosp all treble compatibility stuff there.

Other than that, some issues with Atomic (and other roms I've built) I have yet to know how to deal with:

- Root. When I flash Magisk I get the magic warning '...root detected mount rw'... I've read you get that when rom is prerooted. Where can I look for that in the rom source? Using the same sources Cardinal doesn't have that.

- Substratum. It gives no errors, logs look clean, successfully installed overlays... But actually they don't get installed and after the process there are no overlays in the app's manager section... Someone has encountered this?

THANKS!
[Android] Netzheimer:
Changing "-Xmx4g" to "-Xmx8g" helped alot!

After enabling XZ compression for the recovery.img and creating a swap partition on my system I finally got a installable and working lineage 14.1 rom for my n8013.

Unfortunately, the wifi is not working with the new lineageos. Before installing my version I already had an old lineage os 14.1. Wifi worked in that version.

Could you give me a hint what the problem could be? Thanks so much for your help. I wouldnt have become so far without you!:good:
[Android] NepoRood:
Glad you got it going. For your WiFi issue, can't really just guess at that, lol. You'll need to get a logcat to see why it's not working. There are a few ways, look at this Guide, for more info.

I'm not that great at reading logs, I'm still learning, but maybe someone else around here can lend a hand if you share it. Use pastebin or a similar pasting service, the log will be pretty long and no one really wants to download anything or read a wall of text ;)
[Android] kirito9:
Hello everyone, I've been trying to remove block based otas from my cm-12.1 builds for an MT8127 tablet but have been unsuccessful in doing so. I've added BLOCK_BASED_OTA := false to BoardConfig.mk and it throws this error. Also not seeing anything with this log.

Addition to the log

creating cache.img...
Running: mkuserimg.sh -s /tmp/tmps6GVe4/cache /tmp/tmppnub9U ext4 cache 132120576 -T 1519501646 /tmp/targetfiles-2xtOHJ/BOOT/RAMDISK/file_contexts
make_ext4fs -s -T 1519501646 -S /tmp/targetfiles-2xtOHJ/BOOT/RAMDISK/file_contexts -l 132120576 -a cache /tmp/tmppnub9U /tmp/tmps6GVe4/cache
Creating filesystem with parameters:
Size: 132120576
Block size: 4096
Blocks per group: 32768
Inodes per group: 8064
Inode size: 256
Journal blocks: 1024
Label:
Transparent compression: none
Blocks: 32256
Block groups: 1
Reserved block group size: 7
Created filesystem with 11/8064 inodes and 1542/32256 blocks
Total files: 0
Total bytes: 0
done.
ln: failed to access ‘/home/kirito9/cm12/out/target/product/Pixi3_10_Wifi/cm_Pixi3_10_Wifi-ota-3adce2317e.zip’: No such file or directory
make: *** [bacon] Error 1
make: Leaving directory `/home/kirito9/cm12'

My device tree is here.
[Android] hassan.h:
plz help https://www.hastebin.com/sovafaqevi.sql