yashsingh1/xdaforums huggingface dataset:
[Android] tupac13:
hello everyone who can tell me what mean that error :

FAILED: ninja: 'out/target/product/shamu/obj/SHARED_LIBRARIES/libqdMetaData_inte

rmediates/export_includes', needed by 'out/target/product/shamu/obj/SHARED_LIBRARIES camera.msm8084_intermediates/import_includes', missing and no known rule to make it

20:49:56 ninja failed with: exit status 1

#### failed to build some targets (21 seconds) ####

iam trying to build aospa android 10 for shamu ihavel all trees for my device this is my first time building rom help me please
[Android] Jackychans:
Update property without rebooting device

Hi guys,

I just wanna update device property such as Deivce Brand Name, Model etc and found that it's located in /system/build.prop, for example ro.build.brand. You could also read these property through Android SDK Java Build class (android.os.Build).

The problem I encounter is that I even update ro.build.brand from /system/build.prop manually after booting but the brand name does not reflect new change unless I reboot device. I could think of 2 approaches:

1. Restart system property service. I figured out zygote and adb shell setprop ctrl.stop zygote then ab shell start zygote. I belive Zygote has restated but Brand name does not updated and again need to reboot to update. How could I find out exactly where system property service located to restart it ?

2. I rebuilded AOSP rom to interfere how Build class retrieves property. I build an simple app to call Build.BRAND but it seemed function getString not invoked (I put the Slog inside function getString) everytime app called Build.Brand. It only gets Invoked once at the time booting to the device.

So I try to write a custom function written in service DeviceIdentifiersPolicyService, declare it properly, add it to aidl as photo belows but it caused bootloop. I thought it might be because exception Build class could not find DeviceIdentifiersPolicyService which has not preloaded by zygote.

Please help, I appreciate any advice and happy to donate :fingers-crossed:

P/S: Im unable to post images (under 10 posts), so please take a loot at snapshot below

i.ibb.co/m9FMGxm/Screenshot-from-2020-05-05-09-47-00.png --> original code of Build Class that I wanna "hook" into Build.BRAND

i.ibb.co/TtFXXXM/Screenshot-from-2020-05-05-09-57-54.png --> I put Slog in getString method and figured out that it only called once after booting. Ever since from there, no matter how many times you called Build.Brand, Slog wont get triggered like the first time

i.ibb.co/Jksrsjm/Screenshot-from-2020-05-05-10-03-42.png --> I written a new method to replace getString() but this would cause bootloop since BuildClass could not recognize DeviceIdentifiersPolicyService class (because zegote has not yet preloaded it)
[Android] sdeft:
Hello..I have a strange problem when building my Havoc 10 ROM. The build was taking about 1:30 mins to finish but lately it takes an additional 1 hr. And this is for exactly the same build (no changes at all). I am not talking about the first make which takes about 5-6 hours.I have checked ccache and it looks like it is caching with a hit rate of about 90%.

The above is running on windows 10 with VirtualBox 6.1.6 (Debian 10 vm). High performance profile is used in windows 10.

Does anyone know what might be causing this ?
[Android] DiamondJohn:
You are running VBox on windows, so your virtual drives would be physical files on physical devices. These files are prone to fragmentation over time. A good indicator its your drives causing the slow down, is if your CPU is not running at 100% (or whatever you have limited it to). The idea being, is that your CPU is waiting on the disk to respond/deliver data for the CPU to process.

I am running Win7, and from the Task Manager you can get to the resource monitor and check out the response time on individual files.
[Android] sdeft:
Yes you are correct but I am using zerofree and I am shrinking the vbox image.
[Android] DiamondJohn:
I am not talking about fragmentation within the VBox (ie Linux), but on the host drives (ie Win), which has no care about Zerofree, and compacting them means you are writing to them, which may actually introduce even more fragmentation (on the host), as it reads/writes/extends the files to another location. ie check the response times of your drives (ie files) from within windows. And also check their actual physical distribution on your windows drives. I am not talking about the windows defragmenter, but another utility (which there are many of) to see the actual fragmentation of each virtual drive (ie windows file)
[Android] sdeft:
My vbox image runs on dedicated partition of SSD with 500GB available. My understanding is that fragmentation is not needed if you are on SSD. Am I wrong ?
[Android] ckbhawsar:
Anyone who can help me with java runtime error

Building havoc q

Logs are here:

https://del.dog/ronubyrree.txt
[Android] knaik95:
Does this thread accept questions about what's happening after the actual build process is over? (i.e. problems after flashing)
[Android] DiamondJohn:
No, you are not wrong. Your SSD should not be prone to slow down due to fragmentation. However, I personally have found that understanding at a root level exactly what the computer is being held back by, enabled me to cut down my build times. Also, if all your data (ie OS, ROM Source, CCache and Build out) are transferring through the same drive,the IO may be getting saturated (although that would not explain why its changed:confused:).

ie answering the questions, is my CPU running at 100%? is my disk response time holding back the build? I generally aim for around 10ms (spinning drives mostly, except for CCache on SSD) response, but it may jump up temporarily over short bursts. Once I knew which of these were holding back my builds, it was relatively simple to optimise them and cut my build times.
[Android] aala27:
Just to close the issue off. I have managed to fix this issue. Solution found in the link below.

https://xdaforums.com/showpost.php?p=82393631&postcount=268

Also note, I did not require to append the filename with ".lineage" to make it work.
[Android] sdeft:
Yes I got your point. My build VID images are all on the same SSD partition. The CPU utilization inside vbox during build is 100%.

So in your PC how long does it take to build (not the first build time) with ccache and make clean ? Also how did you reduce your build times ?
[Android] knaik95:
I have an AIM-ROM (Android 10) build for kltedv but it crashes on the boot animation. Looking at the filesystem in TWRP, there's almost nothing there after flashing. The /system directory is empty, /root as well, etc. Running "adb logcat" doesn't help because even that is MIA.

Maybe useful, a log of the kernel shows the following for (what seems like) everything it tries.

init: Could not find 'android.hardware.audio@5.0::IDevicesFactory/default' for ctl.interface_start
[Android] DiamondJohn:
Firstly, sorry I was not clear, I was more talking about the CPU utilisation on your HOST ie Windows. The other thing to remember (ignoring hyper-threading, boost and heat) is that a CPU @ 50% is not a CPU running at 50% its top speed, but one that is running at its top speed for 50% of the time; meaning its in a wait state the other 50% of time.

The total time for my builds is dependent on which android version and ROM. The big thing is that I cut my original build times in half by optimising my disks, after analysis proved it was a disk issue that was slowing my builds. Originally I had a 2hr build and cut it down to about an hour or less (older android version). The last build (newer android v10) takes around 1.5 hrs, but its been a while since I tried, and I did not spend anytime checking of anything or what was slowing it down

The following posts should give you an idea how I did this. It was about getting parallel reads/writes and avoiding having the disk heads jumping about by assigning different parts of the ROM IO going to different disks; apart from CCache, all my drives were spinning.

https://xdaforums.com/showpost.php?p=76663421&postcount=8681

https://xdaforums.com/showpost.php?p=80063815&postcount=9542
[Android] sdeft:
In my pc the utilization (not in vbox) is around 65% during build (no other tasks taking place during the build). Initially with android 10 I was about 1:30 hours but suddenly it went to 2:30 and all my tries failed to reduce it back to previous timing. Maybe they added too much code in the latest security patches:) Thanks for all your replies, I will check the links that you added to see if I can also implement.
[Android] DiamondJohn:
Although it will change over time, 65% is not good from my experience.

I limit my VBox to 90% of my host cpu. its a quad core hyper-threaded 3.5GHz cpu, OC'd to 4.4GHz. Its an old i7-2700. As you can see in the screen shot I took of my CPU usage (all cores aggregated to a single line) it sits at 90% nearly the whole time, except near the end, where its probably pulling all the files together for the final image zip ie disk heavy.
[Android] sdeft:
So you limit vbox to 90 but also increasing the number of cpus to the max (red) or still at half cpus (green) in the vbox setting ?

Cause moving the max cpus in vbox will make the pc almost unresponsive to anything else.
[Android] DiamondJohn:
the smart money says to not assign all CPU's (ie the hyperthreaded ones,ie red), but I compared the two cases, and found that it actually built the ROM faster, slightly.

By limiting my CPU max to 90%, I didn't notice any significant slowdown while doing general tasks such as Word, Excel and web browsing including YouTube. Although, I must admit, I often kicked it off just before I went to bed.
[Android] sdeft:
I found the issue to my "slowness". Seems the below was enabled in new versions of vbox silently. Once I set this to off compilation dropped to my previous timings.

--spec-ctrl on|off: Enables and disables the exposure of speculation control interfaces to the guest, provided they are available on the host. Depending on the host CPU and workload, enabling speculation control may significantly reduce performance

It was mentioned in below link

https://forums.virtualbox.org/viewtopic.php?f=6&t=97056

Thanks again for all your suggestions.
[Android] ParanoidNemo:
Sorry to bother again but apparently I was thinking the problem was solved but is not. If I clean build I get it again. Here what I've tried:

- sync my kernel source into kernel/sony/suzu, it gives me an error saying that the kernel directory should be empty and instead seems to be a real directory (contains "/").

- sync my kernel source as default in aosp give me the error mentioned above.

- add TARGET_KERNEL_SOURCE := wherever I've the kernel sources synced result in a message that the system will use a prebuilt kernel (that I obviously I don't have because I'm downloading the source code for it) and give me error because the prebuilt kernel doesn't exist.

Any other suggestion?

Have tried with other ROM too and getting always the same results. Have also tried to not use the make file for the kernel that come with my sources but the ROM specific but it give me this error:

error TARGET_KERNEL_MODULES is no longer supported!

.
[Android] srinand:
FAILED: ninja: 'out/target/product/vince/kernel', needed by 'out/target/product/vince/boot.img', missing and no known rule to make it

13:19:34 ninja failed with: exit status 1

DOES ANYONE KNOW TO FIX THIS?
[Android] Pranav Talmale:
I have to ask a question, I have a Tablet (Iball Device) for which there are no device trees, etc. so what I have to do. I read every single article about rom compiling and rom development and I couldn't find my answer can you help me as Iball makes ****ty roms and I want a rom as close to a stock android. I even tried flash files for the device but all of them have their radio partition broken which means that the calling function of their device is pretty much disabled. If you are reading this reply ASAP. Please dude need your help. I even checked all the git repos and couldn't find anything
[Android] riyan65:
Hi, I am getting this error, can someone help me out to fix the error. Thanks in advance

Local mainfest:-https://github.com/kiam001/all10_.repo_local_manifests

Error in pic
[Android] adinechin:
I personally never use "breakfast" command but only "lunch" and "brunch". Which ROM do you try to build, have you checked the readme of the ROM you are building ? It should contain the basic commands...
[Android] riyan65:
Thanks for help, I just checked the readme file and I got the problem solved.

but got this new problem, can you please check it out let me know how to solve? thanks in advance.

link of error shown:- https://photos.app.goo.gl/JcdpRnGjXHb2yBNeA
[Android] gipsy.danger:
you are out of memory by the looks of it.
[Android] riyan65:
I didn't get which memory you are talking about, hard drive or Ram?
[Android] adinechin:
This type of message is usually about RAM
[Android] :
Device Tree:= https://github.com/gibranmather/du_device_google_walleye/tree/dq

Vendor Tree:= gibranmather/vendor_google_walleye

Kernel Source:= https://github.com/gibranmather/android_kernel_google_wahoo

ROM Source:= N/A Descendant x

hastebin URL:= https://hastebin.com/asusaquhuc.sql

List Of Things You Have Tried To Do To Try And Resolve This Error:= Google this error, modifying device tree and trying to resolve it myself
[Android] riyan65:
Does increase swap memory will help?
[Android] stalvatero:
Hi all.

Can anyone help to get rid of thir error while i'm building a Rom from source for my Xiaomi Mi 9 Lite?

https://pastebin.com/QPCRBSew

I Think my Ubuntu 20.04 environment is well configured, but i don't know why i receive this failure.

Thanks
[Android] quake73:
This error here: make[1]: clang: Command not found

Do you have your clang compiler synced here: /home/stalvatero/android/pixelexperience/prebuilts/clang/host/linux-x86/clang-11? Did you put something in your boardconfig.mk file? Maybe you wanted to use custom toolchain for the kernel?
[Android] stalvatero:
How can I have it synced?

Inviato dal mio MI 9 Lite utilizzando Tapatalk
[Android] quake73:
Try putting this line in your local_manifest file and do "repo sync" again:

<project path="prebuilts/clang/host/linux-x86/clang-11" name="BenzoRom/benzoClang-11.0" revision="master" remote="github"/>
[Android] stalvatero:
Thank you, works great.

I'm asking why there is this problem in Pixel Experience repo...
[Android] quake73:
The problem is not with the Pixel Experience sources but with the device tree. I found this line in boardconfig.mk for Pyxis: TARGET_KERNEL_CLANG_VERSION := 11

That's why it looked for clang-11.
[Android] ParanoidNemo:
Hi guys,

still stuck while building POSP for suzu, I think is a problem while building kernel. Getting this if I use the POSP kernel mk file.

If I use SODP one get

FAILED:
kernel/sony/suzu/Android.mk:217: error: writing to readonly directory: "no-external-modules"
20:57:15 ckati failed with: exit status 1

Someone as some ideas?

Thank you so much.
[Android] stalvatero:
Can someone help me finding a solution for this error:

https://pastebin.com/xcZmrfFH

I'm on Ubuntu 20.04 LTS tryng to build Pixel Experience from source

Thank you
[Android] PsychicGirl:
Rom source code : https://github.com/Havoc-OS

Device tree : https://github.com/psychicgirl2020/dev.git

Common tree : https://github.com/psychicgirl2020/com.git

vendor tree : https://github.com/psychicgirl2020/vnd.git

kernel source : https://github.com/psychicgirl2020/android_kernel_samsung_msm8917.git

Error : https://del.dog/ifupporehu.log

status : stuck at havoc boot animation

note : I'm completely using common sources include common vendor I'm slowly trying to make it to my device helps will be appreciated .. you should check my last commits in trees to check what i changed
[Android] roshan2989:
ProblemCompiling

hi guys,just sync linageos source for Mia1,having this issue

anyone encounter before ?
[Android] ParanoidNemo:
Please don't post screenshot but copy paste the code using some paste service. It's barely readable for most of the people.
[Android] roshan2989:
Sorry mate.here is the error in Pastebin

https://pastebin.com/KNneQuaM
[Android] ParanoidNemo:
No problem,

have you sync this project too? the module that's missing seems to be present here. Mind you I've not a Xiaomi so I've never develop for it but seems to me that your device tree is missing something.
[Android] roshan2989:
no that two doesn't belong to my device,can delete right?
[Android] ParanoidNemo:
I saw that they are in a common tree. If not needed you can delete those and see if everything works. If something goes wrong you can try to add the common tree and see if it solves it.
[Android] roshan2989:
once delete able to compile now.Done compiling.thank you mate

my first build take 4 hours to compile,using ssd.

is there any method to make it compile faster?

my Build

PopOs 20.04LTS 64Bit

using i5 6gen

500GB SSD- Sandisk SSDPlus

24GB Ram DDR4

can share your spec for compiling or method?

just found out im compiling los 17 (already sync few months ago) instead 17.1..do i need to remove los 17 and resync 17.1? (Solved)
[Android] platinumthis:
Hey guys i build a Rom for my Htc one m9 after building i flashed it and it not pass the HTC logo anyone have ideas ?

I use cRdroid for building on android 10

i aslo tryed android 9 but same thing
[Android] DiamondJohn:
With boot issues, the last_kmsg is often the first avenue to investigate. It should be available from recovery, after a failed boot.
[Android] platinumthis:
Here we go

https://pastebin.com/zYxNnw86
[Android] spookcity138:
Build permissive kernel.
[Android] platinumthis:
how ?

I tried different optians but nothing work maybe i do something wrong, what i need to change to get it work in permessive ?
[Android] spookcity138:
Find the kernel config section in your BoardConfig or BoardConfigCommon.mk and add

BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
[Android] platinumthis:
I got it Working it was the vendor partiton
[Android] pranay5@:
how to fix this

SyntaxError: invalid syntax
[ 0% 87/94883] host Java source list: hierarchyviewer
File "build/make/tools/normalize_path.py", line 25
print os.path.normpath(p)
^
SyntaxError: invalid syntax
ninja: build stopped: subcommand failed.
00:23:38 ninja failed with: exit status 1
[Android] Qiangong2:
Is there any guide on how to minimalize a build? My partition is only 898MB, but the LineageOS zip is 1GB
[Android] pranay5@:
help

ninja: no work to do.
ninja: no work to do.
No need to regenerate ninja file
device/nokia/NB1/BoardConfig.mk was modified, regenerating...
[622/1035] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:88: 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.
[630/1035] including system/update_engine/Android.mk ...
system/update_engine/Android.mk:538: warning: No PRODUCT_STATIC_BOOT_CONTROL_HAL configured but AB_OTA_UPDATER is true, no update sideload support.
[1035/1035] including vendor/qcom/opensource/dataservices/Android.mk ...
hardware/qcom/bootctrl/Android.mk: error: "bootctrl.msm8998 (SHARED_LIBRARIES android-arm64) missing libgptutils (SHARED_LIBRARIES android-arm64)"
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/bootctrl/Android.mk: error: "bootctrl.msm8998 (SHARED_LIBRARIES android-arm) missing libgptutils (SHARED_LIBRARIES android-arm)"
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:844: error: exiting from previous er

how to fix this
[Android] NepoRood:
First builds always take a while, unless you have newer hardware. Using ccache will help with compile times considerably, after you've already built. I found that by using Arch Linux, instead of something from the Ubuntu family, reduced my build times by about 30%. IF my math is right, lol, I went from 90 minutes (Ubuntu) to 60 minutes (Arch)
[Android] ParanoidNemo:
Yea your math is basically right. Not a full 30% but almost there. "Jokes" aside I write to confirm that here too arch build faster than Ubuntu/pop in my experience. Probably is better setup OODB for compilation optimization.
[Android] Gabrius99:
Hi to all. It's a pretty dumb question, how can I remove all the devices' sources I no longer need? For example I did "breakfast surnia" but I want to free some space and remove all of the related source.
[Android] mrvson:
spf.fmworld. net/oss/oss/f-02f/kk/data/dammy/OSV-KK_F02F_V09R19C.tar.gz

:crying: I am not sure how to use it to create a rom
[Android] lol28:
I downloaded aosp but there isn't .repo folder. What to do?
[Android] DiamondJohn:
I normally build for unofficial devices, so its a little different. However, to remove a device, I simply delete that devices dependencies out of my local manifest, and then do a repo sync with a clean.

eg

repo forall -c git reset --hard;
[COLOR="Red"][B]repo forall -c git clean -fdx;[/B][/COLOR]
repo forall -c git checkout -f;
repo sync -fc -j2 --force-sync --force-broken --no-clone-bundle --no-tags;
[Android] Gabrius99:
Thanks a lot. Ah, speaking of unofficial devices, do you also build Pixel Experience? I am unable to recognize my device after configuring it correctly in the manifest, pixel.xml. What am I missing?
[Android] DiamondJohn:
No, I do not build Pixel Experience. However, device being found issues are a very common issue that most have had to correct. ie: Post your actual errors message (link it off to a text host), your local manifests (zip up or link off to a text host) and link off your device tree (should be whats in your local manifest anyway), and the commands you are using to kick off your builds, and you will have many good people here who will be more than willing and able to help.
[Android] Gabrius99:
Thanks. I'll leave here log, manifest and my device tree.

Log: https://pastebin.com/yBziQ8Hq

Manifest (pixel.xml): https://pastebin.com/R97AQ23C

My device tree: https://github.com/Gabrius99/device_sony_poplar/tree/pe-10

Greets.