yashsingh1/xdaforums huggingface dataset:
[Android] dev.kasibhatla:
That is correct but not entirely.

I read on Google's documentation that a smaller update with just the changes can be made (That's how most security patches and bug fixes are pushed by OEMs!).

There is a tool: build/tools/releasetools/ota_from_target_files.py

that compares current build with previous one, and creates a flashable zip of just the changes.

Thank you
[Android] nitin.chobhe:
How can it be build? What commands?

Nitin
[Android] pix106:
Hi,

After a successful cm12.1 build, i'm having trouble making cm13 boot on a mt8127 device with stock prebuilt kernel. There is no boot at all.

I think the problem is I don't have a good method to handle init files, can anyone point me to some reading about it ?

Thanks !
[Android] nicesoni_ash:
Yeah but as you wrote yourself it'll compare current build with previous one which means you need to have a current build for the comparison and for that you need to build one so..

That script is basically to have an ota build but you have to build a complete rom and then you can have a flashable ota zip with the differences.

Sent from my "1+2" powered by Delight Oreo

Compiled by myself
[Android] :
undeclared identifier

vendor/qcom/opensource/bluetooth_ext/system_bt_ext/btif/src/btif_vendor.cc:128:5: error: use of undeclared identifier

'BTA_DmBredrCleanup'; did you mean 'BTA_VendorCleanup'?

BTA_DmBredrCleanup();

^~~~~~~~~~~~~~~~~~

BTA_VendorCleanup

system/bt/bta/include/bta_api.h:1832:13: note: 'BTA_VendorCleanup' declared here

extern void BTA_VendorCleanup(void);

^

vendor/qcom/opensource/bluetooth_ext/system_bt_ext/btif/src/btif_vendor.cc:113:54: warning: unused parameter 'event'

[-Wunused-parameter]

static void btif_vendor_bredr_cleanup_event(uint16_t event, char *p_param)

^

vendor/qcom/opensource/bluetooth_ext/system_bt_ext/btif/src/btif_vendor.cc:113:67: warning: unused parameter 'p_param

' [-Wunused-parameter]

static void btif_vendor_bredr_cleanup_event(uint16_t event, char *p_param)

^

vendor/qcom/opensource/bluetooth_ext/system_bt_ext/btif/src/btif_vendor.cc:132:51: warning: unused parameter 'event'

[-Wunused-parameter]

static void btif_vendor_send_iot_info_cb(uint16_t event, char *p_param)

^

vendor/qcom/opensource/bluetooth_ext/system_bt_ext/btif/src/btif_vendor.cc:132:64: warning: unused parameter 'p_param

' [-Wunused-parameter]

static void btif_vendor_send_iot_info_cb(uint16_t event, char *p_param)

^

vendor/qcom/opensource/bluetooth_ext/system_bt_ext/btif/src/btif_vendor.cc:203:10: error: use of undeclared identifie

r 'BTA_DmBredrStartup'

BTA_DmBredrStartup();
[Android] fizbanrapper:
Do it with -j4, then Ctrl + Z when it seems to be stuck. Then do it again with -j1. Since you've already synced up most of the repositories, when you go back and run using -j1 it should only take a few minutes.
[Android] shmshd12:
what does the ctrl + z does?
[Android] mohit310:
It will call the gallactic aliens to make your computer show you your shell prompt.

CTRL + Z = put process in background.. Linux.

Please read following tutorial. Helpful.

http://www.ee.surrey.ac.uk/Teaching/Unix/
[Android] jgcaap:
guys this has been a very big headache. i'm not beeing able to compile with GCC 4.9 as before.

Can anyone assist me with this? i'm sure something got damage but i dont have the knowledge to fix it.

Thanks
[Android] mohit310:
Dude error clearly mentions that config_msm_cpu min and max frequency is missing. This is set in the default config.

That's when u run command make menuconfig or in android u pass in your device.mk file the default config.

Tell me how you building the rom and which kernel source you using and i can help
[Android] jgcaap:
right now i put everything back to stock on kernel.

All changes are here: https://github.com/jgcaap

the kernel is here: https://github.com/jgcaap/android_kernel_oneplus_msm8974

The edits i made is all on MASTER branch.

Thanks, i hope you can help me out find what i missed..
[Android] mohit310:
If you check your config file there is no flags in file https://github.com/jgcaap/android_k.../arch/arm/configs/cyanogenmod_bacon_defconfig

CONFIG_MSM_CPU_FREQ_MIN

CONFIG_MSM_CPU_FREQ_MAX

You should add those flags and some valid values.

I'm sure that the kernel you are compiling is not this as this configuration is used by either boeffla or ak
[Android] jgcaap:
Hmmm. This source I gave you now is default from cm,which some commits to turn off loggers.

I tried to have Boeffla as default, and after trying to put to build, gave problems. And after putting back cm stock source.

This stock kernel has only some commits where I turn off logs.

So I have to insert more values? Thanks
[Android] tecno789:
do i need download 13 or 14 gb from github to create rom or is there a simple way?
[Android] mohit310:
You need to download it all to build it...
[Android] tecno789:
Auh, so much to download, however thank you.
[Android] banerjeeayan1996:
Ys downloading is really a problem....
[Android] akhilnarang:
error: RPC failed; result=56, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
error: RPC failed; result=56, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
fatal: unable to access 'https://github.com/CyanogenMod/android_kernel_lge_hammerhead/': gnutls_handshake() failed: A TLS packet with unexpected length was received.
fatal: unable to access 'https://github.com/TheMuppets/proprietary_vendor_lge/': gnutls_handshake() failed: A TLS packet with unexpected length was received.
error: Cannot fetch CyanogenMod/android_kernel_lge_hammerhead
error: Cannot fetch TheMuppets/proprietary_vendor_lge

Get that error on any rom I try to repo sync
[Android] mohit310:
Check this article. It will help you fix the issue.

https://confluence.atlassian.com/pages/viewpage.action?pageId=693897332
[Android] shmshd12:
Instead of cm11.0 i gave CM12.0!!! So will it make any prob?

And how long can 1MBps internet take to download whole CM12.0?
[Android] mohit310:
Either branch sources take pretty much similar time. 50Mbps = 25/30 min. so if you extrapolate it to 1Mbps which is 50 times slower it should take around a day.. Wow!!
[Android] shmshd12:
Ohhh mahn!!! Last time i waited for a whole day and atlast i got the error!!!

Few hours ago started again!!!
[Android] tecno789:
It's too much big :(
[Android] shmshd12:
Yup!! I think CM12.0 is more than 15GB !!! Coz in VMWare ubuntu ...HDD size i gave was 40GB and the error occurred due to storage problem!! Then deleted that ubuntu and created new in VMware by giving HDD size as 100GB :D
[Android] sheepkill15:
What's up with this?
[Android] :
Build failure because of that error

Any ideas about undeclared identifier error ?
[Android] quake73:
I truly am in a desperate situation. My oneplus6 (OP6) arrived 10 days ago and I can't compile a single rom because of 2 errors that show up. I did my homework, I really did. Dug around internet for solutions or clues.

1st one is about VNDK:

error: VNDK library: libc++'s ABI has INCOMPATIBLE CHANGES Please check compatiblity report at : /out/citrus6/soong/.intermediates/external/libcxx/libc++/android_arm64_armv8-a_cortex-a75_vendor_shared/libc++.so.abidiff

I found out that, it is a result of comparing external/libcxx with prebuilts/abi-dumps....libc++.so.abidiff shows (correctly) that the function make_exception_ptr exists in abi-dumps but not in external/libcxx.

Strange thing is, when compiling for OP5, with the same differences between external/libcxx and abi-dumps - the build finishes fine.

It happened with different roms even. Different device trees, tried a lot of combinations vendor blobs/dev.trees, tried a couple of kernels, too. I had ubuntu 18.04, thought maybe that was the reason....upgraded it to 18.10....installed 17.04 (i'm working in a VM) - still the same.
[Android] 1v9:
device/nubia/nx569j/camera/QCamera2/Android.mk: error: camera.msm8952 (SHARED_LIBRARIES android-arm) missing libqdMetaData (SHARED_LIBRARIES android-arm)

device/nubia/nx569j/camera/QCamera2/Android.mk: error: camera.msm8952 (SHARED_LIBRARIES android-arm) missing libqservice (SHARED_LIBRARIES android-arm)

frameworks/av/services/audiopolicy/Android.mk: error: libaudiopolicyservice (SHARED_LIBRARIES android-arm64) missing libaudiopolicymanager (SHARED_LIBRARIES android-arm64)

frameworks/av/services/audiopolicy/Android.mk: error: libaudiopolicyservice (SHARED_LIBRARIES android-arm) missing libaudiopolicymanager (SHARED_LIBRARIES android-arm)

hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec.mk: error: libOmxVdec (SHARED_LIBRARIES android-arm64) missing libqdMetaData (SHARED_LIBRARIES android-arm64)

hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec.mk: error: libOmxVdec (SHARED_LIBRARIES android-arm) missing libqdMetaData (SHARED_LIBRARIES android-arm)

How can I sove it ?

---------- Post added at 11:46 AM ---------- Previous post was at 11:46 AM ----------

device/nubia/nx569j/camera/QCamera2/Android.mk: error: camera.msm8952 (SHARED_LIBRARIES android-arm) missing libqdMetaData (SHARED_LIBRARIES android-arm)

device/nubia/nx569j/camera/QCamera2/Android.mk: error: camera.msm8952 (SHARED_LIBRARIES android-arm) missing libqservice (SHARED_LIBRARIES android-arm)

frameworks/av/services/audiopolicy/Android.mk: error: libaudiopolicyservice (SHARED_LIBRARIES android-arm64) missing libaudiopolicymanager (SHARED_LIBRARIES android-arm64)

frameworks/av/services/audiopolicy/Android.mk: error: libaudiopolicyservice (SHARED_LIBRARIES android-arm) missing libaudiopolicymanager (SHARED_LIBRARIES android-arm)

hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec.mk: error: libOmxVdec (SHARED_LIBRARIES android-arm64) missing libqdMetaData (SHARED_LIBRARIES android-arm64)

hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec.mk: error: libOmxVdec (SHARED_LIBRARIES android-arm) missing libqdMetaData (SHARED_LIBRARIES android-arm)

How can I sove it ?
[Android] sheepkill15:
Do you have Proprietary blobs downloaded?
[Android] prabhjot368:
seems like missing caf hals... or have to settle project paths.
[Android] atomixhawk:
Custom ROM won't boot

This is a great guide about building custom ROM.

I learned building custom ROM with this guide and i have compiled two or three custom ROMs on my own (bootleggers, lineage, Arrow OS)

But yesterday i compiled Xtended ROM bt MSM, the build completed successfully.

But the ROM is not booting up after flashing it.

The boot process is getting stuck after bootimage (xiaomi/ google logo).

How can i fix it?
[Android] DiamondJohn:
Check your last_kmsg for more details
[Android] legendstarspro:
I just compile Xtended & I got the same issue with you. Other roms I compiled boot up successfully
[Android] atomixhawk:
I did't try it again.

Did you get a fix?
[Android] heindrix:
Hi guys,

Anyone know how to fix this? Thanks in advance.

https://del.dog/wuyuvakuzo
[Android] legendstarspro:
I was too lazy to get & read logcat, so that I switched to other roms.
[Android] cmattern:
tfpt curiosity

Hoping this is not considered OT but does anyone know what tftpd or tftp_server is in the ROMs? log seems to suggest something to do with OTA but the idea of a tftp server process running by default just made me curious and I'm wondering how it's secured.
[Android] rlivin:
Will someone help me with this error. I am trying to build for crosshatch. TIA

https://pastebin.com/Zkx1zinf
[Android] Bidyadhar:
Can anyone please help me with this error:

https://del.dog/ajedasubex.cs

Note:I have 25 gb space free in SSD
[Android] heindrix:
delete the folder that have error and try sync again.

---------- Post added at 15:29 ---------- Previous post was at 15:28 ----------

open system/sepolicy/prebuilts/api/26.0/public/file.te and see if there're duplicates line. delete one of it.
[Android] EoflaOE:
Actually, I removed the whole .repo folder by accident before I saw your response, and will sync the repo again. The removal included the folder that has an error. Next time, if I got the same TypeError, I will remove only the folder that has an error and retry sync.
[Android] abhinavtk1:
I was trying to build aospa for whyred and this showed up

Lunching whyred (Including dependencies sync)

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 (whyred).

** Roomservice failure for: 'pa_whyred'

After some googling, i found that i need proper dependecies setup at /vendor/pa/products. But i dont know how to make the files. Can someone help me out on how to make it
[Android] Vinnom:
Hi guys!

I have everything set up and I can build LOS 16.0 just fine. My question comes here:

I can build while using "make -j$(nproc --all) otapackage" but I can't when I try to use mka. For some reason, mka have more compile targets than make and while a "make build" gets finished fine, a "mka build" issues this errors. So, I can continue building using make, but I'm quite curious about why mka doesn't work for me.

Notes:

- It happens ate the end of compilation (~98%)

- I'm arch linux user. I followed arch wiki article to the letter to set up my environment.
[Android] albertoduqe:
You have the lineage-sdk source synced right?
[Android] Vinnom:
yep

I can do another repo sync --force-sync (everytime I run only repo sync, it doesn't finish the job ?)
[Android] rlivin:
Okay, now i keep getting this. I can build for marlin but crosshatch i just can't figure it out. I know it's kernel related but i dunno. Thanks again

https://pastebin.com/fpW4qdYB
[Android] +0-:
Hello,

I read that google include Fuchsia OS emulator to latest AOSP.

Does anyone build this emulator, please share your experience. Perhaps exists some instruction how to do this?

Thanks in advance.
[Android] NepoRood:
Follow the path:

system/sepolicy/prebuilts/api/26.0/public/file.te:321:ERROR 'Duplicate declaration of type

Comment with a "#" line 321, like so:

320: # Themes
321: # type theme_data_file, file_type, data_file_type, core_data_file_type;

Then restart your build
[Android] :
Hey can anyone update the guide to build a Pie Custom ROM?
[Android] aoleary:
Bluetooth call issues

Hi all.

There are issues with calls via Bluetooth since oreo on the LG G4.

It used to work in Nougat, but never in Oreo.

This issue is present in all Oreo ROMs, so definitely a device issue...

The issue only presents itself on the G4 side when answering a call via Bluetooth.

The person on the other side notices nothing different, but when answering calls, the audio is quite garbled and it's hard to understand what the person is saying..

I have taken a logcat, but there is nothing much in it..

Is there some other type of tracing I could do?

Bluetooth logcat - https://del.dog/enaquraxor.php

https://github.com/aoleary/android_device_lge_h815

https://github.com/aoleary/android_device_lge_g4-common-LOS

https://github.com/aoleary/Titan-Kernel-LG-G4

https://github.com/aoleary/proprietary_vendor_lge
[Android] pix106:
This is a development thread, you'd better ask on your device forum
[Android] EoflaOE:
How can I force curl to handle gradle download instead of git? (Lineage OS 14.1)

Since I proceeded to do "repo sync -j1," I've encountered another problem. The "platform/tools/external/gradle" is being downloaded, with about 5.7 GB of file size, and my electricity lasts for 4 hours then turns off for 2 hours, and so on.

I can't seem to get curl to download that file. Whenever I try to download it using curl with VPN, it will experience problems and will go back to git. I can't resume the download from where it left off with git because it doesn't have download resume, like Curl does. Therefore, I have to wait until the electricity gets stable again or I need to force curl to be in the first place rather than git.

This is what I mean by forcing curl to handle a gradle download:

1. I run "repo sync -j1"

2. I wait until it reaches "platform/tools/external/gradle"

3. Curl downloads this file, and if error occurs, make Curl download it again instead of falling back to the non-resumable Git.

4. If the download succeeded according to Curl, it will go to Git to read the file locally.

How can I do that for a file?
[Android] Vinnom:
Why do you force "-j1"? the default is "-j4" in most manisfest I've seen, but anyway, I think you should make use of parallel download.

Another thing is: if you doesn't expect to contribute with rom source, a good way to set your init is:

repo init url_to_the_source -b the_branch --depth=1

using the "--depth=1" you won't download all commit history. That means your download will take less because you'll be downloading less.

Just to finish this: you can manually "pause" your repo sync doing a "ctrl+z". Then you run repo sync again and it will resume your download. Maybe you can do it (pause and resume) from time to time to try not lose everything due corruption when downloading)
[Android] EoflaOE:
1. I forced "-j1" because the WiFi connection is used by me and by other people in my house.

2. I will try that command above and see if it solves the issue. Not now, because my electricity is off at the moment.
[Android] EoflaOE:
When I reinitialized repo through this command using "https://github.com/LineageOS/android.git" and "--depth=1" and retried the repo sync, and when it reached gradle, it says:

remote: Counting objects: 28, done
remote: Finding sources: 100% (28/28)

and nothing shows up after that. No download percentage meter. I checked the VPN status, and saw that it's downloading without letting me know about the percentage. Is that normal?

Also, the Ctrl+Z just brings the process to the background without stopping the download.
[Android] Sikoka1989q:
Hi guys. I collect bootleggers rom

FAILED: /home/prestigiosikoka1989/bootleggers/out/target/product/eagle/obj/APPS/SystemUI_intermediates/flat-res/frameworks/base/packages/SystemUI/res/values-hi_bootleg_strings.arsc.flat
/bin/bash -c "/home/prestigiosikoka1989/bootleggers/out/host/linux-x86/bin/aapt2 compile -o /home/prestigiosikoka1989/bootleggers/out/target/product/eagle/obj/APPS/SystemUI_intermediates/flat-res/frameworks/base/packages/SystemUI/res/ --pseudo-localize --legacy frameworks/base/packages/SystemUI/res/values-hi/bootleg_strings.xml"
frameworks/base/packages/SystemUI/res/values-hi/bootleg_strings.xml:0: error: xml parser error: not well-formed (invalid token).
[ 72% 53620/73580] AAPT2 compile /home/prestigiosikoka1...ase/packages/SystemUI/res/values-hr/bootleg_strings.xml
frameworks/base/packages/SystemUI/res/values-hr/bootleg_strings.xml:78: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?.
[ 72% 53622/73580] AAPT2 link /home/prestigiosikoka1989...t/eagle/obj/APPS/Settings_intermediates/package-res.apk
packages/apps/BootlegDumpster/res/layout/view_app_list.xml:25: warn: generated id 'android:id/icon' for external package 'android'.
packages/apps/BootlegDumpster/res/layout/view_app_list.xml:52: warn: generated id 'android:id/message' for external package 'android'.
packages/apps/BootlegDumpster/res/layout/view_app_list.xml:44: warn: generated id 'android:id/title' for external package 'android'.
packages/apps/BootlegDumpster/res/layout/view_app_list.xml:18: warn: generated id 'android:id/widget_frame' for external package 'android'.
ninja: build stopped: subcommand failed.
18:46:18 ninja failed with: exit status 1
make: *** [build/core/main.mk:21: run_soong_ui] Error 1

help
[Android] aoleary:
Hi guys,

I've built Havoc-OS Oreo for the LG G4, however, no keyboard is built with the rom. Anyone have any idea what I should look for?

DT = https://github.com/aoleary/android_device_lge_h815/tree/havoc

Common: https://github.com/aoleary/android_device_lge_g4-common-LOS/tree/havoc

Kernel: https://github.com/aoleary/Titan-Kernel-LG-G4

Vendor: https://github.com/aoleary/proprietary_vendor_lge
[Android] NepoRood:
Change this line in your device tree to "common_full_phone.mk"

LatinIME is not being included using just the common.mk file :good:
[Android] :
Aditya T:

Device tree: https://github.com/RiteshSaxena/android_device_xiaomi_land

Vendor tree:= https://github.com/RiteshSaxena/proprietary_vendor_xiaomi

Kernel Source:= https://github.com/RiteshSaxena/android_kernel_xiaomi_msm8937

ROM Source:= https://github.com/omnirom -b android-9.0

error =>

Haste or Dogbin URL:= https://del.dog/xujesisuhe.makefile
[Android] aoleary:
Thx.

That was it..
[Android] EoflaOE:
Can anybody measure how long does it take to build on a single-core Intel Celeron 900 2GHz CPU, and on the 8th generation of Intel Core i7? Both build caching and no caching time needed.
[Android] DiamondJohn:
Build times would probably be best on the following thread. https://xdaforums.com/showthread.php?t=1812253
[Android] dandyfarid:
very detail guide thanks sir :)
[Android] EoflaOE:
Thanks. So the 8th gen of Intel Core i7 will take an hour to build.
[Android] RickySplashHD:
I'm trying to build a LineageOS 16.0 rom for the m216 (LG K10), but I'm encountering an error I don't know how to fix.

Error log:

[1029/1029] including vendor/qcom/opensource/dataservices/Android.mk ...
device/lge/msm8916-common/devicesettings/Android.mk: error: DeviceSettings (APPS android-arm) missing org.cyanogenmod.platform.sdk (JAVA_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 errors.
21:41:21 ckati failed with: exit status 1

So I suppose is something missing in the Android.mk, but can't figure out how to fix this. Any help? Thx in advance.
[Android] aoleary:
Hello,

Was getting build errors related to vendor/qcom/opensource/data-ipa-cfg-mgr, and since my kernel (msm8992) has no pie CAF tag, I decided to implement data-ipa-cfg-mgr in my common tree, based on the same implementation for the Motorola Clark.

However, I'm now getting errors I have no idea how to solve.

log: https://del.dog/nokaxejivo.pl#L433

Kernel is permissive by default..

All my changes are in my Common and Vendor trees..

ROM = LineageOS 16

Common = https://github.com/theKramer77/android_device_lge_g4-common-LOS/tree/pie-C

Vendor = https://github.com/theKramer77/proprietary_vendor_lge/tree/pie-C

DT = https://github.com/theKramer77/android_device_lge_h815/tree/pie

Kernel = https://github.com/theKramer77/Titan-Kernel-LG-G4/tree/pie
[Android] Soumy1234:
I just downloaded the Resurrection Remix Pie source and the only thing in my folder is the .repo hidden fodler. Is it supposed to be like that?
[Android] NepoRood:
Looks like all you did was run the init command, now you need to sync. This will take some time, dependent upon your internet speed, in your terminal, type: repo sync
[Android] Soumy1234:
I did that but I didn't work, so I tried downloading it again and everything is good :good:
[Android] mkaraniya:
Device tree:= https://github.com/mkaraniya/android_device_xiaomi_mido -b 9.0

Vendor tree:= https://github.com/mkaraniya/proprietary_vendor_xiaomi -b lineage-16.0

Kernel Source:= https://github.com/mkaraniya/android_kernel_xiaomi_msm8953 -b 9.0

ROM Source:= https://github.com/mkaraniya/android/tree/9.0

Haste or Dogbin URL:= https://www.hastebin.com/ahiduxifam.makefile

List Of Things You Have Tried To Do To Try And Resolve This Error:= chandged os versions and checked everything from #videotutorials but still no way out.. i know that i am doing something wrong but can't target it..

---------- Post added at 10:41 AM ---------- Previous post was at 10:41 AM ----------

Device tree:= https://github.com/mkaraniya/android_device_xiaomi_mido -b 9.0

Vendor tree:= https://github.com/mkaraniya/proprietary_vendor_xiaomi -b lineage-16.0

Kernel Source:= https://github.com/mkaraniya/android_kernel_xiaomi_msm8953 -b 9.0

ROM Source:= https://github.com/mkaraniya/android/tree/9.0

Haste or Dogbin URL:= https://www.hastebin.com/ahiduxifam.makefile

List Of Things You Have Tried To Do To Try And Resolve This Error:= chandged os versions and checked everything from #videotutorials but still no way out.. i know that i am doing something wrong but can't target it..