yashsingh1/xdaforums huggingface dataset:
[Android] Frostyagent:
no one :(

hardware/samsung/ril/libril/ril.cpp:4293:17: warning: unused parameter 'param' [-Wunused-parameter]

eventLoop(void *param) {

^

hardware/samsung/ril/libril/ril.cpp: In function 'void android::RIL_register(const RIL_RadioFunctions*)':

hardware/samsung/ril/libril/ril.cpp:4448:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

s_ril_param_socket = {

^

hardware/samsung/ril/libril/ril.cpp:4448:24: warning: missing initializer for member 'SocketListenParam::type' [-Wmissing-field-initializers]

hardware/samsung/ril/libril/ril.cpp: In function 'void android::RIL_register_socket(RIL_RadioFunctions* (*)(const RIL_Env*, int, char**), RIL_SOCKET_TYPE, int, char**)':

hardware/samsung/ril/libril/ril.cpp:4591:15: warning: enumeration value 'RIL_TELEPHONY_SOCKET' not handled in switch [-Wswitch]

switch(socketType) {

^

hardware/samsung/ril/libril/ril.cpp: At global scope:

hardware/samsung/ril/libril/ril.cpp:4845:63: warning: unused parameter 'socket_id' [-Wunused-parameter]

processRadioState(RIL_RadioState newRadioState, RIL_SOCKET_ID socket_id) {

^

hardware/samsung/ril/libril/ril.cpp: In function 'const char* android::requestToString(int)':

hardware/samsung/ril/libril/ril.cpp:5148:14: error: 'RIL_REQUEST_DIAL_EMERGENCY' was not declared in this scope

case RIL_REQUEST_DIAL_EMERGENCY: return "DIAL";

^

build/core/binary.mk:706: recipe for target 'out/target/product/i9300/obj/SHARED_LIBRARIES/libril_intermediates/ril.o' failed

make: *** [out/target/product/i9300/obj/SHARED_LIBRARIES/libril_intermediates/ril.o] Error 1
[Android] Uchiha_Dev:
could someone tell me what tool chains are ? what are they used for ? and how do I use one ?
[Android] neonkat:
ask google.

in short,toolchain will help to compile rom.the guide includes how to use them.
[Android] Uchiha_Dev:
I figured it out haha

I don't have arm folder in the root where I synced my sources, should I create a new arm folder and then place arm-eabi-4.9 in the new arm folder ?

the path should look like this right ?

/root/<my_folder_with_sources>/arm/arm-eabi-4.9/

the line in envent.sh looks like this " toolchaindir=arm/arm-eabi-4.9/bin"

---------- Post added at 06:11 PM ---------- Previous post was at 05:22 PM ----------

question : I already have vendor trees and kernel source downloaded, how do I specify the patch for merging it into the ROM
[Android] neonkat:
keep the files to appropriate place as given(i mean create directories).

check post #10 for info about patches.i don't know a lot about them,maybe someone else can help.
[Android] Arvind7352:
The Device Tree specifies the Vendor and Kernel source

( [DEVICENAME].mk for Device as well as Vendor and BoardConfig.mk for Kernel )
[Android] Uchiha_Dev:
sorry but I didn't get you,

I meant : example i download BlissPOP sources, but in default.xml I have to specify the device tree and source, doing so will download the sources again. But I already have my sources downloaded, where do I specify the path of already downloaded sources

---------- Post added at 07:25 PM ---------- Previous post was at 07:24 PM ----------

where do I add the toolchains, that is the real question
[Android] Arvind7352:
Don't Edit default.xml at any COSTS.....

The Device can be added to the ROM build by adding the Device Info to the ROM Vendor

The Method of Adding Device varies from ROM to ROM

Example, for BlissPop

Adding a Device requires a line to be added to bliss-device-targets file in vendor/bliss

bliss_[DeviceCodeName]-userdebug

Then few changes has to be made in your device tree which is

Changing device name from what it was, to bliss_[DeviceName] in all files inside the Device Tree

Why to do this Renaming? Because you have added your device under that name, and it has to be recognised by the Build Process
[Android] Uchiha_Dev:
you mean to say that it will automaticlly detect that I have vendor trees and kernel of my device downloaded/synced ?
[Android] Arvind7352:
/home/[USERName]/[WorkTreeName]/prebuilts/gcc/linux-x86/arm/arm-eabi-4.9

---------- Post added at 12:07 AM ---------- Previous post was at 12:06 AM ----------

Yes, if you add the Device to the ROM Vendor

And

Provided your Device Tree contains all target files to be used from Vendor
[Android] Uchiha_Dev:
thanks man, yes the folder exists will add them there.

also, how do I know if it is using the new toolchain to compile ?
[Android] Arvind7352:
Okay, go ahead

And ya, you have to specify the Toolchain path in your Device's defconfig file

And the Kernel Source Path in BoardConfig.mk

There are more guides to explain this
[Android] Uchiha_Dev:
I used this guide : http://xdaforums.com/chef-central/android/guide-switching-to-custom-toolchain-t2927662

and how do I know if the new tool chain is being used to compile ?

I placed in the folder you specified and the modified path looks like this "toolchaindir=arm/arm-linux-androideabi-4.9/bin"
[Android] Arvind7352:
The Toolchain Path (in the defconfig) Decides...

I haven't yet switched to a Custom Toolchain (so don't know the paths) yet, hope that guide explains what to do with the toolchain (Ya, it explains.. Go ON)
[Android] Uchiha_Dev:
hope it works ! is the path that I used correct in the envsetup.sh ?
[Android] Arvind7352:
Didn't switch to a custom Toolchain yet[emoji1] , let other people answer this for you.....
[Android] Uchiha_Dev:
haha, I wanted to let the ROM compile and sleep :p but well let's wait.

And I really appreciate you helping me so much
[Android] neonkat:
have you tried that guide for switxhing toolchains?
[Android] Uchiha_Dev:
yes I did, but I don't know where to place the toolchains. The guide doesn't state it
[Android] neonkat:
you need to place in the same directory where you changed it to.

like in method 2,if you change it to arm/arm-eabi-4.9/bin,then extract the toolchain to arm/*here* and name it to arm-eabi-4.9(case sensitive).
[Android] Uchiha_Dev:
yup I know but there is no arm directory in the root of working folder, and there are multiple arm folders when I search.

Can I place it in /root/<my_working_folder>/prebuilts/gcc/linux-x86/arm/
[Android] akhilnarang:
Yep

That's where its meant to be

The path in envsetup for the toolchain is basically the part of the path after prebuilts/gcc/linux-x86/
[Android] Uchiha_Dev:
thanks man, now I can finally compile :D will press the *button* once my counter resets xD
[Android] Uchiha_Dev:
ummm......

The ROM compiled properly but I don't think SaberMod was used to compile because the ZIPs are of the same sizes, anyway to know if it was compiled using SaberMod ?

Can't I specify my own toolchain path ? I think I can but the confusion is, which is the root folder while compiling ? Is it the / of my PC or it is the working folder where I synced files ?

Eg : if I specify path to /toolchain/arm-eabi-4.9/bin

it means the folder is in "/root/<my_working_folder>/toolchain/....." or "/root/toolchain/...."

Nevermind I got my answer, guide to setup toolchain below
[Android] Uchiha_Dev:
first of all thanks to [MENTION=5991747]neonkat[/MENTION] [MENTION=5854483]akhilnarang[/MENTION] and [MENTION=6049586]Arvind7352[/MENTION] for helping me.

to setup custom toolchain, I highly suggest you download toolchain version 4.9 (4.9 is the most stable)

- follow this guide : http://xdaforums.com/chef-central/android/guide-switching-to-custom-toolchain-t2927662

- go to /.../<your_working_folder>/prebuilts/gcc/linux-x86/arm/ and rename the two folders, just add stock_ in the front

- place arm-eabi-4.9 and arm-linux-androideabi-4.9 in /.../<your_working_folder>/prebuilts/gcc/linux-x86/arm/

in my case it was /root/<working_folder>/prebuilts/gcc/linux-x86/arm/

- In terminal type "make clobber && rm -rf ~/.ccache" without "" this will delete your build or /out directory

Now you can start building again with new toolchain !
[Android] Uchiha_Dev:
where do I add new governors ? I do not have any folder called cpufreq, or do I need a custom kernel for that ?
[Android] neonkat:
you need to add them in kernel source.

check for building custom kernel guide at xda university(just google it ;)).there are also several guides available on xda about custom kernel.

or you can look into some custom kernel github too.

follow the manual method given here(post #3).
[Android] Uchiha_Dev:
is kernel source which I downloaded for compiling cyanogenmod the one(for building new kernel) ? but there are no shuch folders there
[Android] akhilnarang:
Yep the one which you're compiling ROM, you can use that
[Android] Uchiha_Dev:
but there is no cpufreq folder :(
[Android] akhilnarang:
drivers/cpufreq in kernel source
[Android] neonkat:
there is a search option;).
[Android] Uchiha_Dev:
[/COLOR]

i am not as much of a newbie you think I am :p I have gone through some custom kernel's online (github) and looked at their structure but I can't find the cpufreq folder in mine.

Also I have taken some time to go through guides too, so don't think that I am trying to be spoon fed (not saying in a rude manner :D)
[Android] mon@diac:
Houston, I have a problem :)

Hi guys,

I try to my best for my first rom and I have solved a lot of problems while it making but the result is so interesting.. Make completed successfully but size is only 9,3 Mb.. Needed areas (folders, apks, frameworks, kernel, recovery etc.. ) created in out folder but system.new.dat is only 57,3 Kb.. Not creat it.. No any error or fail message during compile.. Pls help me for fix this.. Thx for your help
[Android] hdorius:
Hi, im trying to build exodus... http://pastebin.com/RE5JYpfq may i know whats problem is it?
[Android] akhilnarang:
Revert the commit that adds that in media provider

Something about formatting of SD cards

Else pick the other part in fwb
[Android] hdorius:
Deleted
[Android] MSF Jarvis:
I've had this issue with every Android L ROM I built, and the only solution is to manually zip them up. Or maybe go through the code and why that's happening
[Android] mon@diac:
How can I do manually zip? How can I convert system folder to system.new.dat ? So thanks for your opinion..
[Android] MSF Jarvis:
First search how to make a system.img and then how to use rimg2sdat
[Android] Adromir:
I am building aicp as well on 2 different machines and I am not having this problem. Maybe you made something wrong setting up the build environment?
[Android] Uchiha_Dev:
can someone help me real quick (i asked this question previously and it was answered) will doing a repo sync again update the sources if there are some new commits and changes to any files ? I don't want to waste 4 hours to compile and then find out it didn't sync the changes :p

answer to my question is "Yes" it will update https://source.android.com/source/using-repo.html
[Android] mon@diac:
maybe or not.. I don't know because no any error or fail during making.. system.img (540,4 Mb), boot.img (11.1 Mb), recovery.img (13,8 Mb) and other needed files and folders built.. I see this issue for first time.. My previous builds (cm 12 and RR remix lollipop) have successfully zipped.
[Android] Adromir:
Are you using ccache? Are you building the different variations at the same time?
[Android] mon@diac:
No mate.. no ccache and any other jobs simultaneously..

I have system.img (540,4 Mb) but When I use rimgs2dat for it, it says "Magic number got 0x1d6e (should be 0x53ef), make sure input is an ext4fs image." but I'm sure that the FS is ext4..
[Android] MSF Jarvis:
Sorry mate [MENTION=2694538]mon@diac[/MENTION] I can't help you on this because I have never used it, just heard about it :(
[Android] pug1:
To answer my own question it must have been down the /bootable/recovery folder as i built a TWRP.img.

Replaced the folder with cm12.1 branch and it has been compiling for about an hour now :good::good::good:
[Android] Uchiha_Dev:
using repo sync again does not sync new changes !!!! I just wasted 4 hours to compile and found out there were no changes. Someone tell me, how do I make updates ? If there are new commits
[Android] Jeik:
I tried repo syncing cm13.

It finished in less than 5 minutes,nothing in the folder.

Not even the .repo folder was there(I tried making a new folder with a different name,repo init there,same result).

Anyone else having repo sync issues too?
[Android] neonkat:
which repo are you talking about?
[Android] Uchiha_Dev:
cm 13.0

---------- Post added at 12:54 AM ---------- Previous post was at 12:52 AM ----------

I have already synced cm-13.0, so I don't know the cause. Actually I also tried to sync RR. Remix 6.0 and it did not sync. it must be Git problem for now
[Android] hahagu:
Can't I extract the system.img from the E300K original ROM and replace the files you specified from the i9500's CM 13 ROM?

So like replace the zImage from the boot.img, replace /etc/ firmware, bluetooth, security and wifi, replace libMali.so and libAudio.primary.default.so? and thats it? replace.library from system.img and zImage from boot.img?

Sent from my E300K, jaltektt - CM 12.1
[Android] Uchiha_Dev:
do you have team viewer ? Just setup android kitchen, i'll do the rest

you are running CM 12.1 already :o so what's the problem ? replace the files from CM 12.1

---------- Post added at 03:22 AM ---------- Previous post was at 02:50 AM ----------

I want to add snap camera, I added the line "<project path="packages/apps/Snap" name="CyanogenMod/android_packages_apps_Snap"/>" in default.xml but after compiling the app is not there, anywhere else I need to specify it ?
[Android] hahagu:
I do have teamviewer, but I'm running ubuntu?

Does that work too?
[Android] Uchiha_Dev:
ofcourse you can use the CM 12.1 libs and files, which I stated above

also, ask the person who built CM 12.1 for your device to give the device tree and kernel source
[Android] hahagu:
Already tried that, and they don't respond... lol

Can u just set it up for me w/teamviewer?

Cuz I suck @ this...

I have already set up the kitchen w/ the stock ROMs and CM ( E300K's 12.1, i9500's 13 )
[Android] Uchiha_Dev:
what are you referring to when you say "already tried that"
[Android] hahagu:
I already tried asking for the vendor and stuff to the original dev.

Also, theres no libaudio
[Android] Uchiha_Dev:
he is going against the GPL license by doing so, report the thread to the admin
[Android] hahagu:
It's not like that... He just isn't online lol

I don't think that acc is on anymore?
[Android] Uchiha_Dev:
ohh ok, let me setup team viewer, private message me (don't give the login in public :p)
[Android] hahagu:
I sent u a pm
[Android] rabbit_detroit:
is there any guide for development on cyanogenmod 13 from source to end?
[Android] neonkat:
same guide,instead of cm11,download cm13.0 repo.rest is same.
[Android] DarkFrenzy:
Hi neonkat

Do u have hdpi framework-res.apk of cm13?

I ported xhdpi ROM and screen rotates when I press lock button or when screen get turn off and I think that's because of porting a different resolution device.
[Android] Uchiha_Dev:
I think you need to edit a line in framework-res.apk bools.xml
[Android] akhilnarang:
Nope

Only kernel source is covered under GPL

Rest of android is covered under apache license, he doesn't have to release his device tree or vendor blobs
[Android] hahagu:
Didn't work :(

Any new ideas?
[Android] Jeik:
Its literally the same as Cm12.1...

Just change the cm-12.1 branch name to cm-13.0 in local_manifest.xml

The guide in OP shows the cm11 example,yet I built cm12.1 by following it.
[Android] Uchiha_Dev:
ok, thanks for the info bro. But it is not so hard to make device tree. I made my own :D

---------- Post added at 01:21 PM ---------- Previous post was at 01:20 PM ----------

where are you stuck ? at animation ?

---------- Post added at 01:22 PM ---------- Previous post was at 01:21 PM ----------

yes, it's exactly the same, I already built CM 13 for my device
[Android] Jeik:
So...

Anybody have an idea what this is?

EDIT

Did some exploration,and found out its related to Arch Linux(Manjaro 15.12 in my case).

I supposedly need to download ncurses5-compat-libs from AUR,but I have no clue on how to install it...

Can somebody help me?
[Android] DarkFrenzy:
which line ?
[Android] hahagu:
Nope! Couldn't even install the thing lol :P it complained about the loki.sh which I dont know how to solve
[Android] pug1:
I have synced cm12.1 source, do I have to download the entire 30gb again for cm12?

Thanks
[Android] Uchiha_Dev:
that I don't know but I am sure it's in framework-res.apk in bools.xml you have to change the value to about 40

---------- Post added at 07:24 AM ---------- Previous post was at 07:24 AM ----------

I have no idea about such an error
[Android] DarkFrenzy:
There are so many bool.xml in which folder is that bool?
[Android] Uchiha_Dev:
Decompile framework-res.apk go to /res/values/bools edit the 40th line to True
[Android] DarkFrenzy:
Its already true and its about brightness line

Which word should be there
[Android] akhilnarang:
If you don't need the cm-12.1 sources then just init and sync in same dir

Else use --reference flag
[Android] Uchiha_Dev:
I have forgotten it bro, just go through the xml you might be able to find the correct one

ok I went through my framework-res and you need to edit screen lighting animation line
[Android] Arvind7352:
Happened for me too.. This change solved for me while Building TipsyOS for my Device

You have to change from 'Block Based Installation' to 'Standard Installation' as it was in KK and below Versions...

for that, you have to do these changes given in the following commits.

https://github.com/Elluel/android_build/commit/4d458300d935a3a9d893a590286cb578dcf54db2

https://github.com/Elluel/android_system_extras/commit/52f8d5fc3edfacd112827d0a41516c1dc5f4a468

See if you have a Normal zip.... The flashing process will be slow (if you are adapted to block-based installation which is very fast than standard one), but it will go fine

Thanks to THIS thread
[Android] mon@diac:
First, I want to thank you.. I'll try this when I go to home and I hope it works.. Thanks again, because I did not succeed that make manually zip..
[Android] DarkFrenzy:
After compiling the apk i pushed it to framework then rebooted and its now bootloop.

Do i need to sign the apk?
[Android] jijishthomas:
Good work
[Android] pug1:
I did need the cm12.1 source, wanted to try 5.1.1 for my recovery but is really laggy. Noticed that the twrp file in lenovo forum is 5.0.1, cm12 right?

Have tried to apply pixelflinger patch but still laggy.

Sorry for my noobishness but by init and sync do you mean in my cm12.1 folder and sync the cm12 source?

Thanks
[Android] Uchiha_Dev:
use original sign, use original meta-inf and android-mainfest and then zip it and rename to .apk and push sing adb
[Android] DarkFrenzy:
THANKS A LOT! now the bug is fixed. now i only have one bug of screencast which was not in cm 12.1 but in cm13 its there and in cm13 screencast comes with the rom so no need to flash capps. but i flashed the capps to see if the screncast works fine but was not fine.

THE BUG:

when i record a video using screencast its shows only a half of the screen and shows in landscape. can explain that can u have a look at the video, see the attached video its 11sec .
[Android] Uchiha_Dev:
it is a decoder bug, use software instead of hardware
[Android] DarkFrenzy:
How? I played the video with mxplayer with sw and its same.

So how to use sw decorder to record the video
[Android] Uchiha_Dev:
some help here, I am working on another ROM now, I added the lines from where it has to download the sources in "/.repo/local_mainsests/local_mainfest.xml" and did repo sync and nothing happened, then I added in default.xml and did repo sync and still nothing

Edit : Fixed it, I was doing it wrong

---------- Post added at 04:46 PM ---------- Previous post was at 04:44 PM ----------

use some screen recorder which allows you to change the decoder, maybe the screencast app also has settings for it
[Android] simon11b:
You are right it is problem with Arch based linux. Had the same problem and found solution on google. In terminal run "yaourt -S ncurses5-compat-libs" and then follow the command. If you recieve error with hash key then here is the solution if you read down 2. post is the answer. It worked for me and hope that it will work for you too. https://aur.archlinux.org/packages/ncurses5-compat-libs/

Happy compillng ;) Simon
[Android] arpit_deshpande:
http://hastebin.com/awehajovil.vhdl

getting this while compiling pac :P

make: *** No rule to make target `/home/arpit/pac-rom/out/target/product/wt88047/obj/STATIC_LIBRARIES/libfuse_static_intermediates/export_includes', needed by `/home/arpit/pac-rom/out/target/product/wt88047/obj/EXECUTABLES/fstools_intermediates/import_includes'. Stop.

make: *** Waiting for unfinished jobs....

i think this is the error but cant figure it out :P
[Android] FayaX_PT:
Nice guide!

Just one question. Can I create a rom based on AOSP and CM tree right? ( My device is Oneplus One)

Thanks :)
[Android] DarkFrenzy:
Its has no setting,just only start and stop. Which lib is responsible for decording
[Android] hieptran.bk:
Hi guys, i have just build cm13 for my device (msm8974), but i have a bug, AlarmManagerServices dont start correctly, then some SystemServices died. This is logcat: http://pastebin.com/JqsedbSR

01-06 08:06:48.129 7817 7817 E System : ************ Failure starting core service

01-06 08:06:48.129 7817 7817 E System : java.lang.RuntimeException: Failed to create service com.android.server.AlarmManagerService: service constructor threw an exception

01-06 08:06:48.129 7817 7817 E System : at com.android.server.SystemServiceManager.startServi ce(SystemServiceManager.java:100)

01-06 08:06:48.129 7817 7817 E System : at com.android.server.SystemServer.startOtherServices (SystemServer.java:514)

01-06 08:06:48.129 7817 7817 E System : at com.android.server.SystemServer.run(SystemServer.j ava:294)

01-06 08:06:48.129 7817 7817 E System : at com.android.server.SystemServer.main(SystemServer. java:179)

01-06 08:06:48.129 7817 7817 E System : at java.lang.reflect.Method.invoke(Native Method)

01-06 08:06:48.129 7817 7817 E System : at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:726)

01-06 08:06:48.129 7817 7817 E System : at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:616)

01-06 08:06:48.129 7817 7817 E System : Caused by: java.lang.reflect.InvocationTargetException

01-06 08:06:48.129 7817 7817 E System : at java.lang.reflect.Constructor.newInstance(Native Method)

01-06 08:06:48.129 7817 7817 E System : at com.android.server.SystemServiceManager.startServi ce(SystemServiceManager.java:89)

01-06 08:06:48.129 7817 7817 E System : ... 6 more

01-06 08:06:48.129 7817 7817 E System : Caused by: java.lang.NoClassDefFoundError: com.android.server.AlarmManagerService$1

01-06 08:06:48.129 7817 7817 E System : at com.android.server.AlarmManagerService.<init>(Alar mManagerService.java:307)

01-06 08:06:48.129 7817 7817 E System : ... 8 more

Anyone can help me solve this bug. :(

Sorry for my bad English.
[Android] Uchiha_Dev:
I am not really sure about it but as of what I know you need to compile or edit some files in source to make it work. More likely "media, mediaserver, *vcodec, libmedia, libmediaplayerservice" and some .rc's in rootdir
[Android] jaywithag:
I am building my first rom for my LG G4 and am getting a fail that I dont quite understand. Is anyone able to point me in the right direction. Here is a hastebin of my last few lines any help would be appriciated. http://hastebin.com/vamojazefi.lua
[Android] Arvind7352:
You're missing a project (android_external_fuse) which will build the library 'libfuse'

Add this to your Local Manifest

Else

If you're building 5.1.1 PAC then choose CM-12.0 as revision
[Android] limjh16:
Hey, anyone can help? This happens when building slimSaber --> http://hastebin.com/huxileriji.vbs

This happens with/without uber additions.

Roomservice --> https://github.com/limjh16/roomservice/blob/slim-lp5.1/i9305.xml
[Android] sh A ne:
Can anybody help

http://www.hastebin.com/desiwomipi.hs

Any help or advice is very much greatly appreciated
[Android] Uchiha_Dev:
is there a way to prevent ROM from being compiled to .dat while building it ?
[Android] Jeik:
https://github.com/A-TV/platform_build/commit/69fb0fa49b286ea1f41b74d5933e2cadd825aab8