yashsingh1/xdaforums huggingface dataset:
[Android] banerjeeayan1996:
Just keep on increasing the size if sources. At first 13 gb then 14 gb then 15 gb then 17 gb now you r saying 25 gb. Keep on increasing at a constant pace. The last of will say I have to download 1 tb.:D

Good C:pMEDY.
[Android] akhilnarang:
Mine expanded to 50eventually
[Android] mohamed786:
Shall I used cm11 sources for all devices

That mean I am having 4 Samsung devices which having stock jb

Shall I used the one timed download cm11 sources to build all devices.....
[Android] banerjeeayan1996:
Yes u should download the sources only one time . just change the android manifest for different devices.
[Android] tecno789:
Some ideas?
[Android] AlandEr0301:
Hi, i've downloaded a Pure Google AOSP Android 5.1 and i used the CM source tree for the S Galaxy Note 3 - Hlte... but i have this error when i type lunch...

You're building on Linux

Lunch menu... pick a combo:

1. aosp_arm-eng

2. aosp_arm64-eng

3. aosp_mips-eng

4. aosp_mips64-eng

5. aosp_x86-eng

6. aosp_x86_64-eng

7. aosp_shamu-userdebug

8. aosp_flounder-userdebug

9. cm_hlte-eng

10. aosp_manta-userdebug

11. aosp_hammerhead-userdebug

12. aosp_mako-userdebug

13. mini_emulator_arm64-userdebug

14. mini_emulator_x86_64-userdebug

15. m_e_arm-userdebug

16. mini_emulator_mips-userdebug

17. mini_emulator_x86-userdebug

18. full_fugu-userdebug

19. aosp_fugu-userdebug

20. aosp_deb-userdebug

21. aosp_flo-userdebug

22. aosp_tilapia-userdebug

23. aosp_grouper-userdebug

Which would you like? [aosp_arm-eng] 9

build/core/product_config.mk:222: *** Can not locate config makefile for product "cm_hlte". Alto.

** Don't have a product spec for: 'cm_hlte'

** Do you have the right repo manifest?

Someone could help me?...
[Android] OfficerJimLahey:
vendorsetup.sh in your vendor tree shows the hlte combos. Rename the items from cm_... to aosp_...

Hope this helps.

Sent from my Asus MeMO Pad 8"
[Android] tecno789:
Nobody? I can't do other else :(
[Android] OfficerJimLahey:
Sorry, I googled some of the error messages, I just get your posts in this thread and a couple pastebins. Cannot find a solution...
[Android] tecno789:
Oh **** :(
[Android] ARGD:
Thanks.

Good guide.:good:
[Android] tecno789:
It's an mtp error.. But I don't know how to solve it
[Android] OfficerJimLahey:
It is possible that the developers were uploading the code tree while you were syncing (particularly mtp or one of its dependencies). Try another sync, followed by a "make clean", then try building as before (e.g. buildenv, lunch, make).

Hopefully the error doesn't come back.

Sent from my Asus MeMO Pad 8"
[Android] DusBekas:
Hi, i'm very interested with ROM development, but i'm a noob :eek: So I wanna ask some questions.

- I already installed linux before, and it has little space (home dir.) So is it okay to use different directory other than home dir.?

- About device identity, I don't know where i can find it. But i found source on lenovo website, the file contains bsp and sys directory. Then what sould i do about this device identity?

My device is Lenovo A859
[Android] DSA:
Are you using stock toolchains?
[Android] danny6514:
Yup, I just followed the guide on cm's website. (http://wiki.cyanogenmod.org/w/Build_for_d802)
[Android] fizbanrapper:
Sure. Use hide tags when you paste this much stuff on a forum. ;)
[Android] saintxseiya:
Anyone knows how to integrate gapps directly into the rom ? CM12.1 or CM BTW.
[Android] OfficerJimLahey:
That's a big no-no. Copyright threats followed last time CyanogenMod did that. The compromise was to have Gapps separate.

http://wiki.cyanogenmod.org/w/Google_Apps

http://en.m.wikipedia.org/wiki/CyanogenMod
[Android] saintxseiya:
My question was not, if it is copyright related, but if it is possible in cm12 as it was in cm11.

But thanks for your answer.
[Android] OfficerJimLahey:
No problem ;)

As it was done until CM4.1 (but strangely CM11 was mentioned?) you would probably just have to import GApps back into the source tree and modify a makefile.

There is always a trick, but I don't imagine one would be lucky to find someone to help one out with that. Maybe whomever packaged Gapps in the CM11 you found.

EDIT: this may help...

http://xdaforums.com/showthread.php?t=1631905
[Android] mohamed786:
Hai I have download the source code up to 80% has over...

After 80% it can't able to start that means stuck/ hang

Possible issues corrected by me:

1. the windows scaling (TCP issue) as per known issues on source.android.com :thumbup:

2. Edited the etc/hosts files (DNS issue)

as per known issues on source.android.com:thumbup:

3. Force started the repo sync -f :confused:

Nothing worked I don't know why its happening....

:confused::confused:

Plz help me..,.:(:(

Much appreciated...:thumbup::thumbup::thumbup:
[Android] DSA:
what kind of internet connection do you have

do you have enough space on your hard drive

does terminal tell you anything at all

what source are you downloading

what commands are you using
[Android] tecno789:
No way, I have just tried it.. I don't know how leave out this situation
[Android] mohamed786:
1.broadband connection

2. Yes 79 GB free

3.can't catch u r question

4. Cm 11

5. Repo sync -f to start the repo

Repo sync -j1(single job)
[Android] DSA:
as terminal is downloading the source and displaying info...does anything other than the sync info come up

change your j1 to j4 or higher, its probably timing out

what are the actual full commands you are typing?
[Android] mohamed786:
S..

No

Is it will restart the download while increasing job

From beginning the command that used

After creating bin and cm 11 dir

CD cm11

Repo init -u URL of the cm -b cm11.0

Repo sync - j1

Repo sync -f

80% (356/469)hangs....

No errors
[Android] DSA:
no, increasing threads just increases the speed of the download (more threads running at the same time)

you shouldnt need to run Repo sync -f
[Android] saintxseiya:
Hi,

yes, in CM11 it was easy, as it was only adding the gapps zipped packages to your rom zip file and altering the updater-script, now with everything packed, it is not that easy it seems.

Cheers.

Francesco
[Android] mohamed786:
while i have run repo sync -f it still hangs there from upto 6 hrs it still hanging /stuck no errors nothing but the bandwidth has been consumed but it stay at 80% alone....plz help
[Android] OfficerJimLahey:
Okay, so with the ROM compiled, I wanted to test it out. Problem is after installing, I am stuck at the boot logo (not boot animation/boot loop). When I try to do a logcat, I get this:

joel@cybaryme:~$ sudo adb logcat
[sudo] password for joel:
- waiting for device -
^Cjoel@cybaryme:~$ sudo adb devices
List of devices attached
HT182TB01068 offline
joel@cybaryme:~$

Is there any way for me to determine what is going on?

Btw, the way the kernel is configured, I have to power on, then insert the usb cable. I cannot leave the cable connected while powering on (or it wont power on at all), if that makes a difference.

Sent from my Asus MeMO Pad 8"

UPDATE: I tried salvaging the /proc/kmsg, however (my version of) TWRP uses kmsg but does not create/save last_kmsg, so my /proc/kmsg file shows kernel info of the TWRP session (and the last/broken session is nowhere to be found). Is there a kernel flag for my next build I could set to not have my device "offline"?
[Android] tecno789:
Any suggestions?

http://hastebin.com/hubogamavu.js
[Android] OfficerJimLahey:
Are you using a replacement frameworks source tree to work with your device? If not, should you?

I had to start from scratch to add the following sources to my local_manifest:

<remove-project name="CyanogenMod/android_hardware_libhardware_legacy" />
<project name="android_hardware_libhardware_legacy" path="hardware/libhardware_legacy" revision="cm-11.0" remote="DS" />
<project name="android_hardware_qcom_media-legacy" path="hardware/qcom/media-legacy" revision="cm-11.0-ion" remote="DS" />
<project name="android_hardware_qcom_display-legacy" path="hardware/qcom/display-legacy" revision="cm-11.0-ion" remote="DS" />
<remove-project name="CarbonDev/android_frameworks_native" />
<project name="android_frameworks_native" path="frameworks/native" revision="cm-11.0" remote="DS" />

Note that these ones are device specific, so they won't necessarily work for you.
[Android] tecno789:
Yes, I add this in local_manifest :

<?xml version="1.0" encoding="UTF-8"?>

<!--Please do not manually edit this file-->

<manifest>

<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-12.0" />

<project name="CyanogenMod/android_hardware_qcom_fm" path="hardware/qcom/fm" remote="github" revision="cm-12.0" />

<project name="invaderjohn/android_vendor_lge_g2m" path="vendor/lge/g2m" remote="github" revision="master" />

<project name="invaderjohn/kernel_lge_msm8226_g2m" path="kernel/lge/msm8226" remote="github" revision="cm-12.0" />

<project name="invaderjohn/android_device_lge_g2m" path="device/lge/g2m" remote="github" revision="cm-12.0" />

</manifest>
[Android] Hai96:
Problem with creating Recovery Image

Iam trying to build Euphoria-OS Rom based on 5.1 for the HTC ONE S(ville) but it stucks while creating the recovery image. Does someone of you know how to fix this? Or iam doing something wrong? ::confused:

Copying: /home/julian/Euphoria-OS/out/target/common/obj/APPS/TeleService_intermediates/classes-jarjar.jar
Copying: /home/julian/Euphoria-OS/out/target/common/obj/APPS/Telecom_intermediates/classes-jarjar.jar
Copying: /home/julian/Euphoria-OS/out/target/common/obj/APPS/TelephonyProvider_intermediates/classes-jarjar.jar
target Strip: sqlite3 (/home/julian/Euphoria-OS/out/target/product/ville/obj/EXECUTABLES/sqlite3_intermediates/sqlite3)
----- Making recovery image ------
target Symbolic: libartd-compiler (/home/julian/Euphoria-OS/out/target/product/ville/symbols/system/lib/libartd-compiler.so)
target Strip: libarttest (/home/julian/Euphoria-OS/out/target/product/ville/obj/lib/libarttest.so)
target Strip: libnativebridgetest (/home/julian/Euphoria-OS/out/target/product/ville/obj/lib/libnativebridgetest.so)
target Java: mockito-api (/home/julian/Euphoria-OS/out/target/common/obj/JAVA_LIBRARIES/mockito-api_intermediates/classes)
Copying baseline ramdisk...
Modifying ramdisk contents...
cp: cannot stat ‘/home/julian/Euphoria-OS/out/target/product/ville/root/init.recovery.*.rc’: No such file or directory
make: [/home/julian/Euphoria-OS/out/target/product/ville/ramdisk-recovery.img] Error 1 (ignored)
cp: cannot stat ‘hdpi/*’: No such file or directory
make: *** [/home/julian/Euphoria-OS/out/target/product/ville/ramdisk-recovery.img] Error 1
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
DroidDoc took 36 sec. to write docs to /home/julian/Euphoria-OS/out/target/common/docs/api-stubs
DroidDoc took 42 sec. to write docs to /home/julian/Euphoria-OS/out/target/common/docs/system-api-stubs
make: Leaving directory `/home/julian/Euphoria-OS'

#### make failed to build some targets (01:02:41 (hh:mm:ss)) ####

julian@julian-M52LT-D3:~/Euphoria-OS$

View attachment 3252008
[Android] akhilnarang:
You used euphoria legacy right?
[Android] Hai96:
Not sure if you mean this but I found two different euphoria githubs....

https://github.com/Euphoria-OS-Legacy

and

https://github.com/Euphoria-OS

I synced with the second one (https://github.com/Euphoria-OS).
[Android] OfficerJimLahey:
Your error may have something to do with the stock frameworks_base not specific/working for your device. Because it has been forked and modified to work for your device before.

The downside is that, the device specific one doesn't have a Lollipop branch. So you may have to review the code and figure out what the difference between them are, to hopefully merge what works. Or contact the git contributor and find out if a Lollipop branch exists yet. Or, contact invaderjohn, to see if he got away with not including that project.
[Android] akhilnarang:
The second one is based on aosp, you'll need an aosp device tree to build it

Euphoria team uses it for nexus devices

First is cm-based, used for other devices

make sure your device tree is aosp
[Android] Hai96:
Ahh didnt know that. For my device is no aosp device tree avaible so i will try to use the github for cm based device trees.
[Android] tecno789:
But the device tree that u are seeing is for lollipop.. So there won't be errors in the code
[Android] OfficerJimLahey:
What I meant to say is, the "downside is that, the device specific framework doesn't have a Lollipop branch". The device tree would probably be okay, but it may be alluding to something the stock framework doesn't have.

Well, maybe not, I have checked invaderjohn's github, and he does not have any framework projects. So either he got away with the stock one, or he is using someone else's that he didn't fork over to his repo, but he is following someone who does have a frameworks_base (albeit stuck on kitkat, so that's a unlikely option).

Sorry, it feels like the blind leading the blind here :p. I had a developer for my device tell me recently why my ROM didn't boot was because I missed out on the extra projects in his (team's) repo, which replaces (and adds to) some of the CyanogenMod/Carbon projects.
[Android] tecno789:
probably i can't go out from this situation alone.. but i don't know to whom ask this.
[Android] Yokisen:
I'm using amd processor.

I downloaded the amd version of ubuntu but the code i entered included i386(which means intel processor right?)... will it affect the installation?
[Android] akhilnarang:
The amd64 simply means 64 bit, and i386 means 32 bit

You need amd64 whether you have an amd or an.Intel
[Android] Yokisen:
Code:

repo init -u git://github.com/CyanogenMod/android.git -b cm-12.1

after entering this code it says no command "repo" found..... repo:command not found
[Android] tobitege:
You skipped a step in the guide, go back to first pages. :)
[Android] akhilnarang:
You need to set up repo

Check to first page, install all required programs, then download repo, add it to your PATH

Then run repo init, it'll work
[Android] mohamed786:
If u have installed repo means

(If yes) follow this

While you have need to go and sync from the working directory

For example

Ubuntu@ubuntu:~$ CD cm12.1(name of u r working directory)

Then repo sync

Ubuntu@ubuntu:~$ repo sync -j#

If repo not installed go and check op page and you can found the complete installation guide...
[Android] Yokisen:
I don't know whether you recognize me or not but im a d855 blisspop user. I'm learning all this just for the knowledge and experience so that i could learn developing using my s3.Is it okay if i clear my doubts now and then? I'm going to be free for the next 1 and a half month so i guess i occupy my time learning this.So, wish me luck Teacher!
[Android] mohamed786:
plz help me with these error

iam stucked at this repo hang/stuck after run -f command
[Android] akhilnarang:
Enter your github username, then it might prompt you for your password

Recently in the middle of a repo sync, I've been getting prompts for entering username and then password

As I don't sit and read the whole output of repo sync, I miss it, and it was stuck on 99%

Noticed it it recently, so try that if its been there for a long time, and if your modem/router shows no activity
[Android] tecno789:
U are not stuck, it's the same problem that I had. It's just downloading so much files. So wait please :)
[Android] mohamed786:
Did u finish the downloading....

I have been wait totally 10 hrs but it still there wat abt yours
[Android] tecno789:
Yes, after about 6 hours of that
[Android] mohamed786:
While I have used repo --trace sync -c -d -j8 and hence it starts the download but I can't find how much it completes (in %)

Any idea about that...:):)
[Android] tecno789:
sincerly i don't know this.. i see about of work in projects(x/y) . where x is your projects fetched, and y the total projects
[Android] jgcaap:
guys, i'm needing here some help ,as i cannot fin a logical reason.

target thumb C++: net_net_gyp <= external/chromium_org/net/http/http_request_headers.cc
ERROR: modpost: Found 2 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
To build the kernel despite the mismatches, build with:
'make CONFIG_NO_ERROR_ON_MISMATCH=y'
(NOTE: This is not recommended)
/home/jgcaap/cm121/kernel/oneplus/msm8974/scripts/Makefile.modpost:98: recipe for target 'vmlinux.o' failed
make[3]: *** [vmlinux.o] Error 1
/home/jgcaap/cm121/kernel/oneplus/msm8974/Makefile:936: recipe for target 'vmlinux.o' failed
make[2]: *** [vmlinux.o] Error 2
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/jgcaap/cm121/kernel/oneplus/msm8974'
build/core/tasks/kernel.mk:216: recipe for target 'TARGET_KERNEL_BINARIES' failed
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
target thumb C++: net_net_gyp <= external/chromium_org/net/http/http_response_headers.cc
make: *** wait: No child processes. Stop.
jgcaap@jgcaap-P5Q:~/cm121$ brunch bacon
including vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?

Anyone have a logical explanation about why this happens?

I've made alot of changes on my kernel, but it compiles the kernel without problems, if i try to build the kernel without the rom, it builds perfectly. But when i try to build using brunch bacon command, he gives me always this error. I cannot find a logical reason for this. Could anyone guive some assistance regarthing to this issue? I even tried with stock kernel, and didnt work.
[Android] Yokisen:
do i have to download all the cm/android source before i sync repos from for example Blisspop?

---------- Post added at 12:33 PM ---------- Previous post was at 12:24 PM ----------

it also says error:cannot fetch project.....
[Android] mohit310:
You only need blisspop

It will indirectly get all source from cyanogenmod based on manifest
[Android] mohit310:
You need to see what is going on in kernel.mk.

This file passes additional params to kernel building so i suggest start at line 216 where the kernel is throwing error
[Android] jgcaap:
will have a look. but whats the diference between compiling a ROM or kernel appart from rom ? in both situations should be fine...
[Android] mohit310:
When you compile the kernel only all the flags are set by you in the script you run. Export xyz etc etc.

When the rom builds, it sets additional parameters which passes along as environment variables to make and kernel source compiling.
[Android] jgcaap:
is there a way to log a compilation ? what i mean is to know where GCC is looking at. For instance

Writing code A line 1 at 10 hours

writing code a line 2 at 10 hours and 1 second

perhaps with that would be more helpfull to find out where it mismatches.
[Android] jgcaap:
alright made it... but now last error in the end

creating userdata.img...
Running: mkf2fsuserimg.sh /tmp/tmpHX9bci 13271448576
Traceback (most recent call last):
File "./build/tools/releasetools/add_img_to_target_files", line 327, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/add_img_to_target_files", line 321, in main
AddImagesToTargetFiles(args[0])
File "./build/tools/releasetools/add_img_to_target_files", line 292, in AddImagesToTargetFiles
AddUserdata(output_zip)
File "./build/tools/releasetools/add_img_to_target_files", line 184, in AddUserdata
succ = build_image.BuildImage(user_dir, image_props, img.name)
File "/home/jgcaap/cm/build/tools/releasetools/build_image.py", line 268, in BuildImage
exit_code = RunCommand(build_command)
File "/home/jgcaap/cm/build/tools/releasetools/build_image.py", line 42, in RunCommand
p = subprocess.Popen(cmd)
File "/usr/local/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/local/lib/python2.7/subprocess.py", line 1308, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
build/core/Makefile:1462: recipe for target '/home/jgcaap/cm/out/target/product/bacon/obj/PACKAGING/target_files_intermediates/cm_bacon-target_files-a01e21ff16.zip' failed

Already deleted build directory ... and cloned again ... any idea? lol
[Android] mohit310:
Did you run vendorsetup.sh
[Android] mohamed786:
Syncing work tree: 59% (277/469) error: in `sync -f`: revision refs/heads/cm-11.0 in CyanogenMod/android_frameworks_base not found
[Android] jgcaap:
yes.. always or it wont compile :(
[Android] Yokisen:
what code do i have to enter to download blisspop source?
[Android] tobitege:
Its all mentioned in our android repo on github.
[Android] mohit310:
It seems that the rom is not compiling all the sources else there would be executables generated in obj folder. Can you make clobber && make clean and start from scratch.
[Android] jgcaap:
sure i'll try. i believe this is related to python instalation.. what version of python do i need? Thanks
[Android] OfficerJimLahey:
I get by (that is, compiled successfully) with 2.7.9-1 (using Debian Jessie distro).
[Android] jgcaap:
updating mine was 2.7.8 .. lets see if works
[Android] Yokisen:
I'm getting fetch errors and im using ubuntu 13.10 GNOME.. What's wrong that is causing these errors?
[Android] tecno789:
Which do files gonna change for paranoid/aospa Rom to make device tree compatible?
[Android] akhilnarang:
cm.mk>pa.mk

In that file, there'll be some line with vendor/cm

Make it vendor/pa

Down it'll show product name cm_device

Make it pa_device

And you need to add a line to copy boot animation of correct resolution

Something like

PRODUCT_COPY_FILES+=vendor/prebuilt/common/bootanimation...(confirm this):system/media/bootanimation.zip

You can delete the cm.dependencies file , but remember to add those repositories to your local manifest/roomservice

Vendorsetup.sh make the add_lunch_combo into pa_devicename-userdebug
[Android] tecno789:
i asked it 'cause here : http://xdaforums.com/showthread.php?t=1863547, there is another method, but i don't understand. so are u telling me right?
[Android] tecno789:
I finished to compile aokp, make was successfully. But, I get a system.img.. But it needs a. zip file or am I wrong? What's going on?
[Android] laperry1:
Good evening sir, just wondering what your solution to this...I'm encountering the same (or similar) & if I'm not mistaken, you're running BBQ Linux which is what I'm currently running as well...tia...
[Android] jgcaap:
Well. i couldnt come with a solution yet. Decided to restart the project in order to discover where the issue lies. but Make clober and clean the Ccache, disable after and try .. sometimes it worked for me.
[Android] mohit310:
Did you download your device tree. Seems like it is missing dts/dtb files which is built as part of kernel.
[Android] laperry1:
yep, getting ready to restart the project, thanks again!
[Android] tecno789:
Is system.img wrong as output?
[Android] akhilnarang:
Can you elaborate?

If you didn't get a zip, maybe the build failed

What exactly did you do?
[Android] mohamed786:
EDITED:

This issue has been solved by me

What done : (solution)

Just delete all folder from working directory except (.repo )

Don't delete (.repo)

Repo having all downlaoded files.

Cd cm11

repo init -u (cm11 git url) -b cm-11.0

repo sync -j1

Issue/error hence resolved...:):):)
[Android] saintxseiya:
Anyone else having build problems the last days with a clean CM12 setup and standard toolchain ?

None of my builds is running through smoothly :(
[Android] tecno789:
I followed step by step the guide.

I have just : system.img but. Zip file not

Why? What did I do wrong?