yashsingh1/xdaforums huggingface dataset:
[Android] tribual:
Hi!

Trying to compile AICP 6.0 for Elephone P9000. All fine till this:

Warning: library class android.webkit.WebView depends on program class android.net.http.SslCertificate
Warning: library class android.webkit.WebView depends on program class android.net.http.SslCertificate
Warning: library class android.webkit.WebViewClient depends on program class android.net.http.SslError
Warning: library class org.apache.http.conn.ssl.SSLSocketFactory depends on program class org.apache.http.conn.scheme.HostNameResolver
Warning: library class org.apache.http.conn.ssl.SSLSocketFactory depends on program class org.apache.http.params.HttpParams
Warning: library class org.apache.http.params.HttpConnectionParams depends on program class org.apache.http.params.HttpParams
Warning: library class org.apache.http.params.HttpConnectionParams depends on program class org.apache.http.params.HttpParams
Warning: library class org.apache.http.params.HttpConnectionParams depends on program class org.apache.http.params.HttpParams
Warning: library class org.apache.http.params.HttpConnectionParams depends on program class org.apache.http.params.HttpParams
Warning: library class org.apache.http.params.HttpConnectionParams depends on program class org.apache.http.params.HttpParams
Warning: library class org.apache.http.params.HttpConnectionParams depends on program class org.apache.http.params.HttpParams
Warning: library class org.apache.http.params.HttpConnectionParams depends on program class org.apache.http.params.HttpParams
Warning: library class org.apache.http.params.HttpConnectionParams depends on program class org.apache.http.params.HttpParams
Warning: library class org.apache.http.params.HttpConnectionParams depends on program class org.apache.http.params.HttpParams
Warning: library class org.apache.http.params.HttpConnectionParams depends on program class org.apache.http.params.HttpParams
Warning: library class org.apache.http.params.HttpConnectionParams depends on program class org.apache.http.params.HttpParams
Warning: library class org.apache.http.params.HttpConnectionParams depends on program class org.apache.http.params.HttpParams
Warning: there were 18 instances of library classes depending on program classes.
You must avoid such dependencies, since the program classes will
be processed, while the library classes will remain unchanged.
(http://proguard.sourceforge.net/manual/troubleshooting.html#dependency)
Error: Please correct the above warnings first.

Here a little more LOG:

https://hastebin.com/yukokukeva.sql

Can't get this error solved? Does anyone know about this and can guide me?

THX
[Android] Raja_12:
Hi I'm totally noob. After installing required setup. How can I start building custom ROM based on Lineage os. For Yu Device. Just suggest me some hints. Thnks.
[Android] Has.007:
[MENTION=6049586]Arvind7352[/MENTION] I had to remove Mms, it was a source bug. :p

Anyways, built the ROM mentioned your nd [MENTION=5991747]neonkat[/MENTION]'s credits.

https://xdaforums.com/grand-prime/development/rom-liquid-dark-5-1-1-galaxy-grand-prime-t3535727
[Android] tech mashido:
guy please look at this ....compiling xosp n for zuk z1 (ham ).....i am not getting any idea about this error....

https://www.hastebin.com/raw/kinireqiru

and this is without clean

https://www.hastebin.com/raw/animifofik
[Android] Has.007:
[MENTION=5991747]neonkat[/MENTION] Hi, Can you guide on this one?

The first picture is with the error, then the second picture is with my liquid.mk file from device tree.

The third one is from vendor/liquid/config.

I don't have the telephony.mk file so should I just remove that line from my liquid.mk?
[Android] Arvind7352:
Yes. It's not that you should have it. If the source doesn't have it, then remove/comment it.
[Android] NepoRood:
~Delete~
[Android] GreekDragon:
Hey guys, I'm trying to compile DU for kenzo but i'm falling to this specific error.

Checked device tree. Nothing about libqdMetaData.
[Android] SlimShady's:
Anyone knows about this error on AOSP 6.0.1_r77?

Thank you :)
[Android] Has.007:
Thank you, I removed them nd went further, faced some kernel errors nd fixed them but now I'm facing another error about which I can't figure out.

The first picture is of the error in terminal nd the second one shows the file opened (Probably the one which gave the error).

Here's that file opened in device tree:

device/samsung/grandprimeve3g/libs/audio/record_process/aud_proc_config.c

Detailed on Hastebin.com
[Android] Dr_DjEnder:
I got a few question about tool chains and RR:

1. Anyone know what is the default tool chain in RR?

2. Can you compile RR using a tool chain like Uber I've seen kernels can, but can the whole rom+kernel be build using a tool chain like that?

3. If it's possible, how can I swap the tool chains and switch back?

Feel free to point the to threads I wanna compile it for my oneplus 2 using Uber to see what differences can be made as I like tinkering with things :)
[Android] nicesoni_ash:
I am trying to build my rom fully deoxed. I set my environment variable WITH_DEXPREOPT=true in my bash file but I got build errors. Any suggestions please.

http://pastebin.com/afWwxdgn

Thanks.
[Android] Papdya:
I am trying to compile AOSPA 6.0.3 for condor (Moto E) but keep getting this error https://hastebin.com/xazehiguho.pas any help would be appreciated.

Edit: Solved it. Just changed dtbToolCM to dtbTool in Android.mk of dtbtool and copied dtbtool from device/qcom/common to (in my case ) msm8610-common
[Android] DJKristy:
Is ROM development hard or easy?
[Android] Raja_12:
Me too wanna know. But this thread is not active. I just finished source repo sync. Need someone to guide me.
[Android] NepoRood:
You need to add "device/qcom/common" to your manifest
[Android] Techvir:
If you follow the instructions to the word, it is very easy.

Roms like purenexus, nitrogen and DU are very friendly to newbie builders. They tend to give very little errors while compiling.

Try to build any of these roms first.
[Android] Raja_12:
Thnx buddy. I hav syncd CM source. So I giv it a try first.
[Android] spookcity138:
Hard to answer that as it is kind of relative to your knowledge of certain things.

Learn Linux first is always my advice. If you have a decent understanding of Linux you're off to a good start. This thread can help you with the rest.

It basically , and simplistically goes like this

1. Download the sources for the ROM you want to build

2. Get the device specific stuff. (Kernel, vendor, device tree) Hopefully this is already available. If not it becomes much harder.

3. Set up some specific files for the particular ROM..device.mk, BoardConfig.mk,vendorsetup.sh.

4. Build.

5. Search for solutions to your build errors.

6.repeat 4 and 5 until successful.
[Android] Røbin:
Every time I try to build RR N for my Dogo I get this error.Please suggest what should I do -

[ 39% 13380/34024] Building with Jack: /home/robin/RR/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex
FAILED: /bin/bash /home/robin/RR/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex.rsp
Out of memory error (version 1.2-rc4 'Carnac' (298900 f95d7bdecfceb327f9d201a1348397ed8a843843 by android-jack-team@google.com)).
GC overhead limit exceeded.
Try increasing heap size with java option '-Xmx<size>'.
Warning: This may have produced partial or corrupted output.
[ 39% 13380/34024] Building with Jack: /home/robin/RR/out/target/common/obj/JAVA_LIBRARIES/libprotobuf-java-micro_intermediates/classes.jack
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

#### make failed to build some targets (30:44 (mm:ss)) ####
[Android] spookcity138:
You are running out of memory

https://xdaforums.com/showthread.php?p=70106713
[Android] Røbin:
I did increased swap memory and xmx memory to 8G and some fix from Android jack troubleshoot but still facing this issue.Anyway, I'll try that one yours.Hope this will work.Thanks:)
[Android] NepoRood:
Darn good answer, except you left out the "why don't my device boot" section, lol

:good:
[Android] Qiangong2:
I'm trying to build CM11, but I keep getting this error:

make: *** No rule to make target '/media/orca/97fb7352-7b7d-4fde-80f0-28b3245524d4/cm11/out/target/product/logan2g/obj/STATIC_LIBRARIES/libminui_intermediates/export_includes', needed by '/media/orca/97fb7352-7b7d-4fde-80f0-28b3245524d4/cm11/out/target/product/logan2g/obj/EXECUTABLES/charger_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs...

How do I get past this?

My trees:

device: https://github.com/versusx/android_device_samsung_logan2g

kernel: https://github.com/versusx/android_kernel_samsung_logan2g/tree/cm-11.0

vendor: https://github.com/Firelord1/android_vendor_samsung_logan2g
[Android] Papdya:
I already have it and dtbtool folder is also present in it... But still its giving this error.

Edit: Solved it. Just changed dtbToolCM to dtbTool in Android.mk of dtbtool and copied dtbtool from device/qcom/common to (in my case ) msm8610-common.
[Android] neonkat:
have you synced with caf hardware repo's for 8952?using them fixed the issue for me.

---------- Post added at 04:43 AM ---------- Previous post was at 04:40 AM ----------

these are just warnings,please post full logs on hastebin.

---------- Post added at 04:45 AM ---------- Previous post was at 04:43 AM ----------

1.stock gcc 4.9 for arm64 and gcc 4.8 for arm(not 100% sure about arm)

2.yeah,both can be compiled

3.via boardconfig modif. or modify your build tool parameters.there are some guide available on xda.
[Android] Has.007:
Hi, that's what I was thinking but the make fail is on line 842-844.

The errors are related to audio I believe, they are in lines 135-160.

Also, what is the best method to apply patches? This tree has patches nd I'm not sure from which directory should I apply. :confused:

Maybe the errors are because of not applying patches.
[Android] DJKristy:
Can I use latest Ubuntu for development??
[Android] NepoRood:
Of Course, Click ME
[Android] Raja_12:
Bro I'm learning to build a CM ROM for YU Yureka. After creating local manifest XML. I started repo sync. It says to overwrite what can I do. Cud u help. Thnx.
[Android] NepoRood:
Looks like you're in the .repo folder. This isn't where you sync from, you sync from where you did the repo init, ie: home/YOUR_USERNAME/cm14

You can also use force sync, here's my repo sync:

repo sync -c -f --force-sync --no-clone-bundle --no-tags
[Android] Raja_12:
thnks[emoji4]
[Android] Infinity:
Define xmv partition by 4gb

Paste this command after setting up build environment...

export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m"

Note that...you have paste this command everytime while building

---------- Post added at 02:56 PM ---------- Previous post was at 02:55 PM ----------

Yes bro use Ubuntu 16.04

You can use mint also which is better than Ubuntu
[Android] Røbin:
What if I install 8GB ram will this solve the jack memory problem? Because I'm little upgrading the ram part so I need proper suggestion.
[Android] Infinity:
Move repo folder somewhere else from your rom folder and then do repo init

Repo folder will be in

(Romname)/.repo/repo*

This * one

---------- Post added at 03:03 PM ---------- Previous post was at 03:02 PM ----------

Minimum 8gb needed and also increase xmv size
[Android] Røbin:
Thanks a lot bro. I'll first test with 8GB but if it still cause problem I'll add another 8GB to the slot. :)
[Android] DJKristy:
Should repo syncing be done continuously without any interruption.

I may need to change my network while syncing.

Will it be a problem
[Android] Raja_12:
I have cloned my kernel in one location. Can I copy it to sync with repo. Will it work.?
[Android] Infinity:
Still it will give error

Use that command lol

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

Yes it will
[Android] Raja_12:
It ll download from where u left. But if it downloads a big size file, it wud restart the file not the whole process.
[Android] nicesoni_ash:
Yes, but it won't have any negative impact. You can continue again with force-sync.

Put your kernel inside your repo with local_manifest xmls.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] Infinity:
You can pause syncing in between...

It will start from there only

No need. To worry
[Android] Røbin:
That's a headache! Anyway thanks I'll do whatever it takes:D
[Android] Infinity:
Okay...

---------- Post added at 03:25 PM ---------- Previous post was at 03:22 PM ----------

Please teach me to build purenexus sir

Guide me sir .... I have redmi note 3...tell me steps sir?
[Android] nicesoni_ash:
Flash Ubuntu.

Prepare your pc with dependencies.

Download source.

Make necessary changes and include all required packages in your local manifest.

Breakfast and lunch or simply brunch and you are good to go.

When u face error, read it carefully, usually they are easy to fix, if you stuck ask here for help.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] Infinity:
But what you are telling me..???

I didn't get you
[Android] DJKristy:
Thanks man:good:
[Android] nicesoni_ash:
Just start with something very basic like lineageos for your device using its manifest. The manifest read me has all the instructions to build. Once you successfully do that, you can move ahead and play with other roms and other stuff.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] Infinity:
Oh! Thanks brother
[Android] nicesoni_ash:
Where does ninja save build log file? I thought it's supposed to be in out - rom directory but .ninja_log doesn't have my build log but normal list of built files nor kali* or other files. Can anyone suggest me where should I look for?

My build was interrupted with some warnings and I can read up to a limit in the terminal as it doesn't go above than the limit so I need log file to read the exact error. Here is the warning and other info in my terminal.

http://pastebin.com/C5JfcTGF

Edit:

I would still like to know the answer of first part but I tried to build clean this time hoping that previous errors could be because of that and now I am getting this strange errors for clang.

http://pastebin.com/JF1hZAm1

Any help is appreciated.

Thanks.
[Android] spookcity138:
I don't know the answer to this actually. However you can set the scrollback lines for your terminal to a higher amount...or infinite. That would also work. You can also pipe the output of your build to a text file.
[Android] aoleary:
Hi.

So you are saying to modify my roomservice to download the custom kernel to a different path than "/kernel/lge/msm8992", is that correct, then modify my defconfig file to reflect this new path?
[Android] Has.007:
You've 2 Kernel sources synced right? Nd when you build, it uses the default kernel but you want to use the custom one?

Direct me to your Device Tree nd Kernel Source which you want to use.
[Android] Dr_DjEnder:
Having a build error compiling RR for my oneplus2 just switched to the Uber toolchain perhaps that's causing the problem can anyone help me out?

heres the Pastebin link:

http://pastebin.com/xRqzgtLr

note i cloned the toolchain from the link below and placed it in its proper directory

https://bitbucket.org/UBERTC/aarch64-linux-android-4.9
[Android] aoleary:
Hi.

Thx for taking the time to help me out :)

Custom Kernel source: https://github.com/genesixx/LlamaSweet-msm8992

Common: https://github.com/CyanogenMod/android_device_lge_g4-common

Device: https://github.com/CyanogenMod/android_device_lge_h815

Vendor: https://github.com/TheMuppets/proprietary_vendor_lge
[Android] Infinity:
Yesterday i build 2 roms

Both won't boot ?

Why ? And what should i do?
[Android] DJKristy:
Why is their so many device tree for the same device.

For example I saw 3 device tree of redmi 2 for cm by 3 developers?
[Android] Raja_12:
Yea selecting device tree/kernel/vendor not clearly explained here. Some one pls post a detailed step.
[Android] Arvind7352:
That's obvious. Anyone can make changes (and develop) on Source Code and publish it on his/her GitHub Organization. Now it's you who has to select any one of them and build the ROM.

There's no guide for such things, ask the Developer of the Device tree(s) to know more about the status of the Device Source.

A Successful Build doesn't always mean a Bootable Build.

Share the Device ADB logs on boot.
[Android] Raja_12:
So u r saying we can add any trees which was build for our device like custom ROM trees and also stock ROM trees.
[Android] Arvind7352:
This shows the beginner's nature of building Android. You are apparently confusing yourself. Please search for some resources available on the internet to understand the terms involved in Android ROM Development

Device Tree is the Source code which contains the Entire Device Configuration, eg. CPU/Partitions configuration, Audio/Cam/BT configs and many more. If the Device tree mentions that it builds for a particular Device, it can be used for that device. The guide here explains such things in a good manner.

To get started, use a Device Tree from Popular Custom ROMs such as LineageOS (formerly CyanogenMod) etc.
[Android] Raja_12:
Thnx l ll Google it.[emoji29]
[Android] NepoRood:
[MENTION=7065337]spookcity138[/MENTION], told ya, you left this part out :p
[Android] Infinity:
Now i make clean & clobber and build again??
[Android] Has.007:
Okay, remove your default kernel source which you don't want to use nd go into your source folder run in terminal:

git clone https://github.com/genesixx/LlamaSweet-msm8992 -b cm-13.0 kernel/lge/msm8992

Replace cm-13.0 depending on the branch you're building for.

The kernel source defined in your BoardConfigCommon.mk is different, which is the Cyanogenmod's nd not this custom one.

The custom kernel you're trying to use doesn't have your defconfig file, It is defined in your main device tree> BoardConfig.mk

Here See line 26-27

Check out for your dependencies, maybe you're missing some of them important to boot up.

You're always helping people nd me as well, could you explain help me with this as well? :silly:

https://hastebin.com/ugedorakil.hs
[Android] AnotherFreakinNoob:
Before I try just wondering if the links in the OP would work to build a cm 14 rom for my Galaxy S2 i777? Have been trying to port a ROM using (Cygwin and the Kitchen as well as Ubuntu and the kitchen) from the s2 i9100 to the i777 with no luck due to no ramdisk folder found in the boot.img (on either ROM). The zImage was there but showed 0mb. So now I've decided to just try and build it instead.
[Android] NepoRood:
OP is just a tad bit out dated, ask the Gooble about nathanpfry, got a great guide for setting up Ubuntu 16.04 to build Android
[Android] AnotherFreakinNoob:
Man I could hit the thanks button 2x for that I would. Spent most of my downtime this week trying different guides and tools to port. So once I get the proper build environment set up on Ubuntu 16 I'm good to start following the guide in the O.P?
[Android] NepoRood:
Again, still a bit dated, awesome reference though. If you're going to build MM or later, guide will be good. It's not really Nougat friendly...
[Android] AnotherFreakinNoob:
That's what I was kinda afraid of. At least I've got the right tools this time. Actually had Ubuntu 16 vith Java 8 set up and running in Virtual Box but deleted and tries Cygwin on my P.C. when I was using the kitchen. So not a prob there. Now just got find a guide (if one exist and crack the code (aka the easy part :laugh:)
[Android] FortoszoneID:
I tried to build lineageOS for my falcon and i got this error https://hastebin.com/raw/hoyopoluhe Every time i try to build nougat rom it has to be that error. Can you help me? thanks
[Android] amirhtc:
Kindly see my thread , its a similar topic , i need your help , thank you

https://xdaforums.com/chef-central/android/building-aosp-intel-platform-t3538283
[Android] Raja_12:
I'm getting errors while syncing repo after creating local manifest. I have cloned my device/kernel/vendor in separate folder. How to add this with working directory.
[Android] NepoRood:
Then your local manifest contains wrong information.

You can use the "mv" command to move your files (or just drag and drop them using a file explorer)
[Android] Raja_12:
Fatal not a git repository error. I double checked local manifest it is good but problem is while fetching. For moving Drag drop to which location.
[Android] NepoRood:
If manifest is failing, it can't be good, lol. There's something wrong some where...

Place them according to the names. Your device folder goes in the device folder of source tree (device/YOUR_VENDOR_NAME/YOUR_DEVICE_CODENAME) for me its: device/motorola/quark
[Android] Infinity:
Show me your localmanifest.xml
[Android] TimSchumi:
Note that the Repository TheMuppets/proprietary_vendor_yu should be cloned to vendor/yu, not vendor/yu/tomato

So you have to replace

<project path="vendor/yu/tomato" name="TheMuppets/proprietary_vendor_yu"... />

with

<project path="vendor/yu" name="TheMuppets/proprietary_vendor_yu"... />

But unfortunately that still won't fix the error.
[Android] Raja_12:
Wat is the use of "no-bundle" in sync?
[Android] TimSchumi:
I'd recommend that you delete the failing repository from your work tree and sync again
[Android] Infinity:
Show pictures or give log man
[Android] Raja_12:
repo sync Vs repo sync -f --force-sync --no-clone-bundle.
[Android] nicesoni_ash:
at least avoid asking such questions you can simply google and read about it. Don't expect to be totally spoon-feed.
[Android] Raja_12:
I googled but I cant find any good relevant answers.
[Android] Infinity:
I except a full pictures (prt sc will be great)

Add "(" in very first

I mean (? xml version........

---------- Post added at 01:52 PM ---------- Previous post was at 01:52 PM ----------

repo help

You will get answers of all
[Android] Raja_12:
Thnx next time it wud b print screens.
[Android] mvv1277:
Need help regarding compilation error

Hi,

I am trying to port AOKP lollipop for my Xperia L.

I took AOKP sources. Since device was not available for AOKP, I took CM'a device and vendor trees. I also took CM kernel.

Now, I don't have make file for AOKP, I changed some paths in CM's makefiles (Android.mk, Aokp.mk, taoshan.mk).

Is this correct way to do ? or should I write makefile from other device's AOKP rom?

When I tried to compile with my method, it gives error that :

Could not find rule to make : STATIC_LIBRARIES/libext2_blkid_intermediates/export_includes

Can someone please guide me to solve this error?
[Android] gurr4m:
CM12 guide please?
[Android] AndDiSa:
Please read the OPs and replace cm-11.0 by cm-12.0 ...

If it doesn't compile for you it's most likely a device specific problem.
[Android] mohamed786:
How to choose base ROM any guide plz

I wanna develop cm11 for galaxy ace duos so i need to know how to choose base ROM for my device.....

And how shall I take the ROM for porting ......
[Android] cosmicsatish:
Any guide on how to choose the base rom for aosp development as i am trying to build for mi3 cancro.
[Android] Mikel085:
Awesome

Just what i was looking for thanks
[Android] ishtiaque9:
you should check if you have a folder in this path: <SOURCEDIR>/external/e2fsprogs/lib/blkid

chances are that you don't... you can pull the folder from Cyanogenmod

if you do happen to have that folder, you can try searching for the words libext2_blkid in your source directory with the grep command. it would be something like this:

grep -rnw "<SOURCEDIR>" -e "libext2_blkid" * > dump.txt

this command will generate a text file in the directory with all the 'libext2_blkid' in there... if will give you a start

<SOURCEDIR> is the path of your AOKP sources.