yashsingh1/xdaforums huggingface dataset:
[Android General] AlaskaLinuxUser:
So, I still recommend option #1 of just downloading and building lineage os for your phone. But, for building stand alone, I would suggest using this kernel source: https://github.com/LineageOS/android_kernel_samsung_universal8890

And use the herolte defconfig: exynos8890-herolte_defconfig

To build the kernel. Then you can put it into your boot image just like you did before. But it may or may not work as the stock ROM may require some specific settings.

P.s. yes, if they include other material, it is likely that you need it for something, but without looking at it, I'm not sure what it would be for, specifically.

You may have to post your questions in the s7 forums for more advanced help. I certainly want to help, but if you continue to build for the stock ROM kernel, I think you will need someone with more specific experience in that area. Unfortunately, I don't know enough about the S7 or building stock kernels to assist with that.

For the purposes of learning about kernel building here, I can really only help you if you are building for lineage or some other custom ROM. That is because it will cut out several factors and give us a clean slate with a controlled environment. :good:
[Android General] srgrusso:
I'm trying to build AospExtended Pie. I'm converting a LineageOS based device tree to build with. This is my first AOSP based rom. I have managed to clear most obstacles, but I can't figure this one out. I'm getting the following error.

ERROR: Dex2oat failed to compile a boot image. It is likely that the boot classpath is inconsistent. Rebuild with ART_BOOT_IMAGE_EXTRA_ARGS=--runtime-arg -verbose:verifier to see verification errors.

Where or how do I add "ART_BOOT_IMAGE_EXTRA_ARGS=--runtime-arg -verbose:verifier"? If someone could nudge me in the right direction it would be great.

Here is my build log: https://drive.google.com/open?id=1X9CikSPkK94LKTvrVh7PRZiqd8KgAeg_

Thanks
[Android General] ashwini215:
Getting this error while compiling dotOS 8.1 for Samsung A5 2016 :

"Building DTBs

make: Entering directory `/home/ash/oreo/kernel/samsung/exynos7580-common'

CC scripts/mod/devicetable-offsets.s

GEN scripts/mod/devicetable-offsets.h

HOSTCC scripts/mod/file2alias.o

HOSTLD scripts/mod/modpost

make[2]: Nothing to be done for `dtbs'.

make: Leaving directory `/home/ash/oreo/kernel/samsung/exynos7580-common'

ninja: build stopped: subcommand failed.

17:15:57 ninja failed with: exit status 1 "

searching in this thread and other forums, I have learned that it might be something to do with the GCC but am not sure.

Please suggest, guys.
[Android General] srgrusso:
You need to post the error that is causing the problem. Append this to the end of the build command "| tee log.txt" . This will create a text file with your build log in the root of your build directory. Open it up and search for the words "error" and "failed". This should show you where your build is failing. If you need more help, post a link to your log.txt or paste the line containing the error and a few lines before and after. When you post your error in the thread please wrap it with the code tag. This will make it easier for people to read. I hope this gives you a starting point.
[Android General] dean a12@#:
Hello,

I am adding a new device to paranoid android and followed [MENTION=7026648]AlaskaLinuxUser[/MENTION] method but when I am running brunch command I got error,

including vendor/pa/vendorsetup.sh

Traceback (most recent call last):

File "build/tools/roomservice.py", line 63, in <module>

raise ValueError('No dependencies file could be found for the device (%s).' % device)

ValueError: No dependencies file could be found for the device (X00TD).

** Roomservice failure for: 'pa_X00TD'

Can anyone tell what's this error about?
[Android General] rajesh@xda:
I am having external sdcard read/write problem in lineage-16.0. Even the build in system apps like gallery not able to delete files on external sdcard and music player not able to read files on external sdcard. When i copy files to extcard I need to restart phone every time to refresh so that music player recognize it. Many system apps not able to write on extcard.

When exd card is set as internal storage there no such read/write problem.

I got error cannot read /mnt/media_rw/..in logcat.

Does anybody know how to fix this issue.?
[Android General] Nathan Miguel:
I need a little help because a small mistake happened when I tried to compile the kernel 3.18 pro vibe k5 plus. I want to update to this version because it has the latest security fixes and optimizations. I do not know if the error has occurred because the processor of this cell phone is ARMV7 and the 3.18 devices are configured with ARMV8.

obs: I used the official settings of the device, which was picked up on the lenovo website

.CONFIG: https://raw.githubusercontent.com/na...perf_defconfig (lenovo vibe k5 plus)

kernel msm 3.18: https://github.com/android-linux-stable/msm-3.18

LOG ERROR

CC drivers/platform/msm/qpnp-revid.o ../drivers/platform/msm/qpnp-revid.c: In function 'qpnp_read_byte': ../drivers/platform/msm/qpnp-revid.c:80:47: error: 'struct spmi_device' has no member named 'sid' rc = spmi_ext_register_readl(spmi->ctrl, spmi->sid, addr, &val, 1); ^ ../drivers/platform/msm/qpnp-revid.c:80:31: warning: passing argument 1 of 'spmi_ext_register_readl' from incompatible pointer type error, forbidden warning: qpnp-revid.c:80 make[4]: *** [../scripts/Makefile.build:258: drivers/platform/msm/qpnp-revid.o] Error 1 make[3]: *** [../scripts/Makefile.build:402: drivers/platform/msm] Error 2 make[2]: *** [../scripts/Makefile.build:402: drivers/platform] Error 2 make[1]: *** [/home/nathan/Git/msm-3.18/Makefile:968: drivers] Error 2 make[1]: Leaving directory '/home/nathan/Git/msm-3.18/out' make: *** [Makefile:145: sub-make] Error 2

FILE ERROR

https://github.com/android-linux-sta...m/qpnp-revid.c
[Android General] Techguy777:
This is a problem with all pie roms. You need to install Edxposed and the Xinternalsd app activate it in xposed installer. Set path to internal sd card /mnt/media_rw/sdcard number/

Example

/mnt/media_rw/B032-EFA0/, pick the apps you want to include

Then flash magisk ExSDCard Access Enabler.

Reboot

Thats what Ive done on all pie roms works everytime. Good Luck let us know.

---------- Post added at 02:19 AM ---------- Previous post was at 02:12 AM ----------

Hey Ive been gone for a couple of months I wanted to try making roms again on Ubuntu 19. So far so good just need updated it looks like they took away java jdk 8 repo now. Do you guys know of a way to install that? I got it installed just dont know if its correct. I reformatted my old ubuntu 18 and restarted ubuntu 19 is by far the best. Its very fast compared to older ones, very user friendly. Also whats changed seems like open source google changed there building directions?
[Android General] rajesh@xda:
Thank you and i will try this fix:good:

This problem even exist when selinux is permissive. and i think it may be init related permission issue or we need to look into some .rc or .xml file in system to fix this.
[Android General] DJABHipHop:
Can someone take a look at source for my device tree and tell me how to get skype working main branch for all repos are cm-14.1-test & cm-14.1 for the board?

Here The Source For My Device Tree

https://github.com/matissewifi

Thank in advance
[Android General] Techguy777:
alright my friends anyone trying to build lineage on ubuntu 19 yet? I setup and built lollipop again just to see if it would build I did have success building AOSP. However I cant get the build tools for lineage os to install and when trying to build I get.

prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++.real: error while loading shared libraries:

libncurses.so.5

: cannot open shared object file: No such file or directory

I believe its because ubuntu 19 as 6.0 libncurses and I cant downgrade or figure out how to make it work. Any help? However I did buy a ethernet 100 foot cable so now I can move to ubuntu 14.04 if I cant figure it out. But ubuntu 19 is king in my opinion its almost good.

---------- Post added at 06:16 PM ---------- Previous post was at 06:16 PM ----------

alright my friends anyone trying to build lineage on ubuntu 19 yet? I setup and built lollipop again just to see if it would build I did have success building AOSP. However I cant get the build tools for lineage os to install and when trying to build I get.

prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++.real: error while loading shared libraries:

libncurses.so.5

: cannot open shared object file: No such file or directory

I believe its because ubuntu 19 as 6.0 libncurses and I cant downgrade or figure out how to make it work. Any help? However I did buy a ethernet 100 foot cable so now I can move to ubuntu 14.04 if I cant figure it out. But ubuntu 19 is king in my opinion its almost good.
[Android General] nitish159:
Can you tell me how you fixed it, I am trying to build Havoc OS 8.1 and getting the same error :confused:
[Android General] Techguy777:
Well I finally got on Ubuntu 14.04 much much better there's no comparison it's A lot easier to build on. I got it figured out. When you download lineage tools on a fresh system install they won't all download and that's because they have removed some of there repos and same thing with jdk Java 8 now. Everyone wants money for there development tools fair enough so keep your system you have or know where to find the tools if anyone needs jdk7, and 8 I got them don't worry no charge or terms and conditions to agree to. As for the lineage tools you install them 1 by 1 which sucks but it worked. Good luck fellow rom developers. I just got my internet up to 500mbs and Ethernet instead of wifi so I'm running about 60 or so megabytes a second download a full rom take about 55 minutes for over 60gb to download. My town just got fiber optic 1gb but it's 300 dollar install and a 36 or 60 month contract so I'll have to wait but it would be sick. I also didn't know that 8 megabits a second is only 1 megabyte a second so your internet at 1gb is only 125 megabytes a second still fast but didn't know.
[Android General] Soumy1234:
I'm trying to build RR Nougat for my Galaxy Tab 3 10.1 (santos10wifi). I have the source code, device, kernel and vendor trees. I've also tried adding the Signature Spoofing patch by MicroG and two other commits by OmniRom to create a toggle for Signature Spoofing in Developer Options (https://xdaforums.com/android/general/index-list-custom-roms-offering-t3557047). I have also tried the "arch-manjaro" setup script (since I'm using BBQLinux) by the akhilnarang scripts to install what I'm assuming are missing dependencies needed to build. However. after running ". build/envsetup.sh", "lunch" then 5 "aosp_santos10wifi-userdebug", then "brunch santos10wifi", I get these errors (I couldn't fit it all here so I kept the end):

...
`/home/soumy/RR/out/target/product/santos10wifi/obj/SHARED_LIBRARIES/libswscale_intermediates/x86/scale.o'
external/ffmpeg/libswscale/../android/build.mk:93: warning: ignoring old commands for target `/home/soumy/RR/out/target/product/santos10wifi/obj/SHARED_LIBRARIES/libswscale_intermediates/x86/scale.o'
build/core/binary.mk:986: warning: overriding commands for target `/home/soumy/RR/out/target/product/santos10wifi/obj/STATIC_LIBRARIES/libv8_intermediates/src/base/atomicops_internals_x86_gcc.o'
build/core/binary.mk:986: warning: ignoring old commands for target `/home/soumy/RR/out/target/product/santos10wifi/obj/STATIC_LIBRARIES/libv8_intermediates/src/base/atomicops_internals_x86_gcc.o'
Starting build with ninja
ninja: Entering directory `.'
ninja: warning: phony target '-*-' names itself as an input; ignoring [-w phonycycle=warn]
ninja: error: '/home/soumy/RR/out/target/product/santos10wifi/obj/SHARED_LIBRARIES/libril_intermediates/export_includes', needed by '/home/soumy/RR/out/target/product/santos10wifi/obj/SHARED_LIBRARIES/libreference-ril_intermediates/import_includes', missing and no known rule to make it
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
make: Leaving directory '/home/soumy/RR'

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

No Jack server running. Try 'jack-admin start-server'

I'm assuming that it skips over some important commands because they're outdated, then complains about them being missing.

Also, according to an XDA thread for a Lineage OS 14 rom for this device, I need "extra commits" in order for it to work, but I can't seem to find them exactly (original thread: https://xdaforums.com/galaxy-tab-3/development-10/rom-lineageos-14-1-t3587761, commits: https://github.com/santos10-dev/android_device_samsung_santos10-common/wiki/Extra-commits-LOS-14.1). Since RR is made of Lineage OS, do I really need them?
[Android General] vicious98:
Wi-fi not turning on!!

I flashed my compiled zImage and everything was fine. I had only 1 bug that is the wi-fi is not turning on.My mac address is showing 00.20.00.00.00. I compiled my zImage for my stock ROM using its stock kernel source.So why am i getting this problem? After researching a bit i found out you have to push the wi-fi modules .But I cannot find any .ko files in my kernel source even after the compilation completes. SO what can i do to fix this problem?
[Android General] rajesh@xda:
Oreo and pie ROMs require wifi module to be build inside the kernel itself. Check your device .config make file of your kernel. If there WLAN module is set as "m" change to "y". Rebuild kernel now.:good:
[Android General] vicious98:
Actully I am building a kernel for the stock nougat ROM.In my device defconfig I cannot find anything by the name of Wi-fi or WLAN. Can you tell the excat name for the Wi-fi module in the defconfig or is there some other method that I can do?Thanks.
[Android General] rajesh@xda:
Search for "wlan.ko" in kernel directory ( may be located in drivers/staging/prima/wlan.ko) and replace the same file from your phone system/lib/modules through twrp or make custom zip of your kernel to flash.
[Android General] Techguy777:
Hey does anyone know when you make twrp which version your making is nougat like 3.2.1 or what? I've watched all the videos on building it and I've even built a lineage OS twrp for Shamu now but I don't want to flash it until I know which version of twrp it is. Also if I have a device on KitKat and I want to build lineage Oreo and found the kernel source code and stock rom source code how do I change the kernel to work with Oreo or do you not need to?
[Android General] vicious98:
Is there some command by which i can enable making of specific modules (in my case wifi) because there is no wlan.ko in my directory. There are other .ko but not wlan.So perhaps i have to manually enable it in my make file or some other way?
[Android General] rajesh@xda:
Look at your stock rom and decide which wifi module it uses. Copy the same module to your ROM if you change the kernel. Watch your kernel during compilation it shows the location of wifi module while it completes.
[Android General] vicious98:
Hey can anyone tell me how to add GPU governors in my kernel? I dont even know where they are located in my kernel source?
[Android General] rajesh@xda:
Look at commits section of your custom kernel from any other developers who already worked on it. Cherry-pick the features from their custom kernel to your kernel.

Or follow the youtube videos on kernel modification by this author. Great work by [MENTION=7026648]AlaskaLinuxUser[/MENTION].
[Android General] vicious98:
I get it. But i want to add GPU governors not CPU!! So if there is a guide or if anyone knows how to please do tell.Mainly i want to know where the governors for the GPU are located in the kernel source!!
[Android General] AlaskaLinuxUser:
Happened to swing by and saw this. Typically, they are found in <your kernel>/drivers/devfreq/, and the Kconfig file will list them. It can vary widely based on kernel and manufacturer.

Here is a link to arter97's Adreno-Idler GPU gov.

https://xdaforums.com/android/software-hacking/adreno-idler-idling-algorithm-devfreq-t3134872

Good luck!
[Android General] Techguy777:
So how's the new thing going? I seen a video of yours saying something good came along so you'd be retiring on video making. If you don't mind me asking what was it and how's it going? I'm Glade something good came along for you.
[Android General] matteo0026:
Hi, I'm trying to update from nougat to oreo twrp for bq aquaris u2. I did the build, but I get this error while booting twrp:

https://github.com/matteo0026/android_device_bq_yamcha here is my source, I was wrong when I called the new branch android-9.0, it was android-8.1.

https://github.com/matteo0026/android_device_bq_yamcha/blob/android-9.0/BoardConfig.mk#L14

Could be this the guilt?
[Android General] RaidGamingYT:
I need help with compiling for my device, I've been following your video series for building device tree from scratch. I'm stuck at one point that I just can't figure out though, can anyone help me please?

This is what is in my recovery.fstab

Any help would be greatly appreciated!

Thanks!
[Android General] DJABHipHop:
Simple see if there another device with the same SOC & spec that had it's kernel & device tree already upgrade to pie then download it's kernel & device then try building the doner device as is to see is there no build error is there are no build error then compare the defconfig files from both kernels & any file in the doner device tree against your kernel a& device tree to see what's changed between Oreo and Pi and then upgrade your kremel & device tree to Pi using commits from the doner kernel & it devce tree that apply to your device only.
[Android General] Soumy1234:
I've just built a RR nougat ROM for my Galaxy tab 3 (santos10wifi) which is an x86 device. When I install the latest Magisk 19.3, there are some issues. Magisk manager automatically denies superuser requests without a prompt but the app isn't in the superuser section of Magisk. Magisk manager takes some time to open. Sometimes it even says that Magisk isn't installed and I have to close it and wait a bit for it to detect Magisk. Magisk 16 is the latest version I tried that doesn't have these issues.

This ROM also takes a long time to boot, especially with Magisk installed, and I often have to clear dalvik/cache to get it to boot. Is there anyway I can fix these long boot times and make Magisk work?
[Android General] Sword900:
Hello!

My device thread is here: https://xdaforums.com/gen...hread-t3900666

It has rarest MTK chipset : MT8176 (aka MT8173). Kernel - 3.18.35, Android 7.0.

For now, I've ported all the available ROMS (stock firmwares mostly) and would like to build something new by myself. I've tried to find kernel source for my device, but only found kernel sources for other devices on this SoC. Also device tree was found and lineage os resources for alike device (Xiaomi MIPAD 3).

So, I would like to know, is there an opportunity to make custom kernel or firmware for my device as I don't have kernel source? Is it available to upgrade from Nougat to Oreo as if there is a device with same SoC running Oreo?

I will appreciate any help. Have so many questions (even dumb). Don't even know where to start. . .
[Android General] Smart Ru:
Hello,

I am trying to build a HAVOC ROM with a lineageos device tree,but I failed

ninja: no work to do.
ninja: no work to do.
Fallback to sorted comparison for date -u +%H%M
wildcard(/home/z/sth/havoc/out/target/product/judyln/clean_steps.mk) was changed, regenerating...
build/make/core/combo/TARGET_linux-arm.mk:44: warning: cortex-a75 is armv8-2a.
build/make/core/combo/TARGET_linux-arm.mk:46: warning: TARGET_2ND_ARCH_VARIANT, armv8-a, ignored! Use armv8-2a instead.
$(shell date -u +%H%M) was changed, regenerating...
build/make/core/combo/TARGET_linux-arm.mk:44: warning: cortex-a75 is armv8-2a.
build/make/core/combo/TARGET_linux-arm.mk:46: warning: TARGET_2ND_ARCH_VARIANT, armv8-a, ignored! Use armv8-2a instead.
Fallback to sorted comparison for date -u +%H%M
[2/997] including art/Android.mk ...
Disabling ART_BUILD_TARGET_DEBUG
Disabling ART_BUILD_HOST_DEBUG
[997/997] including vendor/themes/UI/Android.mk ...
build/make/core/Makefile:28: warning: overriding commands for target `/home/z/sth/havoc/out/target/product/judyln/system/framework/qcom.fmradio.jar'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/z/sth/havoc/out/target/product/judyln/system/framework/qcom.fmradio.jar'
build/make/core/Makefile:28: warning: overriding commands for target `/home/z/sth/havoc/out/target/product/judyln/system/etc/mkshrc'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/z/sth/havoc/out/target/product/judyln/system/etc/mkshrc'
build/make/core/Makefile:28: warning: overriding commands for target `/home/z/sth/havoc/out/target/product/judyln/system/lib/libjni_latinime.so'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/z/sth/havoc/out/target/product/judyln/system/lib/libjni_latinime.so'
fi;
echo ;
[ 0% 1/94333] build /home/z/sth/havoc/out/target/product/judyln/obj/PACKAGING/vndk_intermediates/check-list-timestamp
FAILED: /home/z/sth/havoc/out/target/product/judyln/obj/PACKAGING/vndk_intermediates/check-list-timestamp
/bin/bash -c "(( diff --old-line-format=\"Removed %L\"	--new-line-format=\"Added %L\"	--unchanged-line-format=\"\"	build/make/target/product/vndk/28.txt /home/z/sth/havoc/out/target/product/judyln/obj/PACKAGING/vndk_intermediates/libs.txt	|| ( echo -e \" error: VNDK library list has been changed.\\n\" \" Changing the VNDK library list is not allowed in API locked branches.\"; exit 1 )) ) && (mkdir -p /home/z/sth/havoc/out/target/product/judyln/obj/PACKAGING/vndk_intermediates/ ) && (touch /home/z/sth/havoc/out/target/product/judyln/obj/PACKAGING/vndk_intermediates/check-list-timestamp )"
Removed VNDK-core: libvixl-arm64.so
error: VNDK library list has been changed.
Changing the VNDK library list is not allowed in API locked branches.
[ 0% 13/94333] Check module type: /home/z/sth/havoc/out/target/product/judyln/obj/SHARED_LIBRARIES/libc_intermediates/link_type
ninja: build stopped: subcommand failed.
08:43:18 ninja failed with: exit status 1

Hoping u can help me!!!!
[Android General] Palm Trees:
This would be a good starting point: https://github.com/Goayandi/mediatek_mt8176_development

In terms of books on Android development:

Roger Ye - Android System Programming: Porting, customizing, and debugging Android HAL

Jonathan Levin - Android Internals - A Confectioner's CookBook (available for free on his website: http://newandroidbook.com/AIvI-M-RL1.pdf - a new volume is supposed to be released this year)

Karim Yaghmour - Embedded Android
[Android General] AlaskaLinuxUser:
This error happens when your vendor libraries get changed, this probably references a file that was in, or needs to be in the build, that was there or wasn't there in Lineage.

Check out https://stackoverflow.com/questions/52917522/android-vndk-in-pie for some ideas.

You need to search your build/make/target/product/vndk/28.txt , 29.txt, current.txt files for libvixl-arm64.so, if it exists, remove it from the file, if it doesn't exist, then add it to the file in the proper alphabetical spot. :good:
[Android General] Nathan Miguel:
is it possible to compile the msm 3.18.140 kernel for a device with armv7 like the Lenovo Vibe k5?