yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Grand Quattro] NXghost:
My suggestion is fix Bluetooth in last, for now try fixing ril and audio, and then camera, because Bluetooth isn't a big thing today (my opinion)
[Samsung Galaxy Grand Quattro] mahir kukreja:
ya stopped bluetooth for now!
[Samsung Galaxy Grand Quattro] icoolguy1995:
Give me errors or logcat, i know few devs who are interested in helping.
[Samsung Galaxy Grand Quattro] Xtreme666:
you will find many in the post.

basically, RIL and audio is not working and its top priority.

This is the one which i have saved, but you will find many in previous posts
[Samsung Galaxy Grand Quattro] icoolguy1995:
Can you please use ubuntubin.
[Samsung Galaxy Grand Quattro] Xtreme666:
Hey Guys,

Was digging arround and maybe this can help

Patch to system/core for RIL to work: https://gist.github.com/pawitp/5372673.

Patch to hardware/broadcom/libbt for bluetooth to work: https://gist.github.com/pawitp/7891380.

Patch to frameworks/av to fix audio/video issues: https://gist.github.com/pawitp/7945188

Dual SIM Patches: https://gist.github.com/pawitp/9433442

I know this is for grand, but they might be helpfull.

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

or maybe we should check source of grand 2
[Samsung Galaxy Grand Quattro] k2wl:
they will not work

garnd i9082 is broadcom processor so patches wont be for us.(our's is qcom)

and grand 2 source is way beyond than our phone.

it is msm8226 platform and our is msm7x27a

msm7x27a is already retired by qcom but msm8226 is latest.

both are very different so no similarities except a few.
[Samsung Galaxy Grand Quattro] Xtreme666:
Interesting...

thanks for the info :)

---------- Post added at 01:33 AM ---------- Previous post was at 12:48 AM ----------

guys, why we are not using custom kernel?

there in one in android development

it looks good
[Samsung Galaxy Grand Quattro] iead_20:
the kernel requires cyanogenmod support
[Samsung Galaxy Grand Quattro] Xtreme666:
how can we know if it supports or not?

if not, then how can we make that work?

thats for future ofcourse, first is ril and audio
[Samsung Galaxy Grand Quattro] mahir kukreja:
we are using a custom kernel gluon kernel given in original android development
[Samsung Galaxy Grand Quattro] k2wl:
https://gitorious.org/replicant/hardware_ril_samsung-ril-client

https://gitorious.org/replicant/hardware_ril_samsung-ril

see this may be of help for ril

this is a main problem in our radio logcat i think
[Samsung Galaxy Grand Quattro] mahir kukreja:
getting this error
[MENTION=943196]k2wl[/MENTION]

In file included from device/samsung/delos3geur/libaudio/AudioHardware.cpp:40:0:
device/samsung/delos3geur/libaudio/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
device/samsung/delos3geur/libaudio/AudioHardware.h:319:18: warning: 'android_audio_legacy::AudioHardware::mBuiltinMicSelected' will be initialized after [-Wreorder]
device/samsung/delos3geur/libaudio/AudioHardware.h:318:17: warning: 'int android_audio_legacy::AudioHardware::mTtyMode' [-Wreorder]
device/samsung/delos3geur/libaudio/AudioHardware.cpp:127:1: warning: when initialized here [-Wreorder]
device/samsung/delos3geur/libaudio/AudioHardware.cpp:153:35: error: 'SND_SET_MAIN_MIC' was not declared in this scope
device/samsung/delos3geur/libaudio/AudioHardware.cpp: In function 'int android_audio_legacy::msm72xx_enable_postproc(bool)':
device/samsung/delos3geur/libaudio/AudioHardware.cpp:959:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/samsung/delos3geur/libaudio/AudioHardware.cpp:964:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/samsung/delos3geur/libaudio/AudioHardware.cpp:969:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/samsung/delos3geur/libaudio/AudioHardware.cpp:969:58: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/samsung/delos3geur/libaudio/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
device/samsung/delos3geur/libaudio/AudioHardware.cpp:1175:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/samsung/delos3geur/libaudio/AudioHardware.cpp:1175:98: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/samsung/delos3geur/libaudio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*)':
device/samsung/delos3geur/libaudio/AudioHardware.cpp:1523:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/samsung/delos3geur/libaudio/AudioHardware.cpp:1526:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/samsung/delos3geur/libaudio/AudioHardware.cpp:1529:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make: *** [/home/mahir/cm11/out/target/product/delos3geur/obj/SHARED_LIBRARIES/audio.primary.msm7x27a_intermediates/AudioHardware.o] Error 1
make: *** Waiting for unfinished jobs....
[Samsung Galaxy Grand Quattro] k2wl:
it is kernel problem

add msm_audio.h from kernel /include/linux to libaudio folder
[Samsung Galaxy Grand Quattro] Shrukul:
Can you please elaborate how freenode works?? Is it used for group chat or compiling ROM on internet??
[MENTION=5723590]mahir kukreja[/MENTION] Now that my holidays are over, i can spend less time on development so compiling roms will not be possible on my side.. If i find any clue or important info, i will let you know...
[Samsung Galaxy Grand Quattro] mahir kukreja:
same here buddy my last holiday

[MENTION=943196]k2wl[/MENTION] audio still has low output is there a way by which we can increase it?

n it detects headphone for a few seconds bt after tht audio comes from speaker not from headphone

saw this in dmesg

i guess this might be the problem

<1>[ 1.408218] c0 pmem: pmem_setup: unable to register pmem driver(pmem) - zero size passed in!

<4>[ 1.408339] c0 android_pmem: probe of android_pmem.0 failed with error -1

<1>[ 1.408461] c0 pmem: pmem_setup: unable to register pmem driver(pmem_adsp) - zero size passed in!

<4>[ 1.408583] c0 android_pmem: probe of android_pmem.1 failed with error -1

<1>[ 1.408718] c0 pmem: pmem_setup: unable to register pmem driver(pmem_audio) - zero size passed in!

<4>[ 1.408843] c0 android_pmem: probe of android_pmem.2 failed with error -1
[Samsung Galaxy Grand Quattro] Xtreme666:
[MENTION=5753279]Shrukul[/MENTION] its a online chat.

IRC

https://freenode.net/using_the_network.shtml

[MENTION=445781]mahir[/MENTION],

When i was testing i found out that it was only using front speaker, not the rare one.

Did you get the rare one working?
[Samsung Galaxy Grand Quattro] mahir kukreja:
nope still the same only difference is tht it detected headphone for a few secs
[Samsung Galaxy Grand Quattro] icoolguy1995:
I suggest you to fix the warnings but if you want to surpass them, then just add "-w" flag in makefile of audio folder.
[Samsung Galaxy Grand Quattro] Xtreme666:
I would strongly recommend trying to fix them.
[Samsung Galaxy Grand Quattro] mahir kukreja:
I added the file n it built successfully bt there was no change in audio I did make clean n now im getting the same error!
[Samsung Galaxy Grand Quattro] Xtreme666:
guys, whats the size of cynogenmod repo?

I downloaded more then 9 gb so far.. and still not done..
[Samsung Galaxy Grand Quattro] NXghost:
It's more than 11gb I guess, or more than this..
[Samsung Galaxy Grand Quattro] mahir kukreja:
[MENTION=5681348]freitaz[/MENTION] are u free? if yes then pm me!
[Samsung Galaxy Grand Quattro] freitaz:
I am unable to help you right now, sorry
[Samsung Galaxy Grand Quattro] hackcookie404:
Are u guys still working on cm11 ? I read all the posts and noticed all ur hard work ! u guys r amazing .. just askng out of curiosity... in how many days can v expect this rom to be bug free? Thank u ..:)
[Samsung Galaxy Grand Quattro] k2wl:
@Xtreme666 14gb for whole repo.

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- Useless Stuff -->
<remove-project name="platform/prebuilts/clang/darwin-x86/3.1"/>
<remove-project name="platform/prebuilts/clang/darwin-x86/3.2"/>
<remove-project name="platform/prebuilts/clang/darwin-x86/arm/3.3"/>
<remove-project name="platform/prebuilts/clang/darwin-x86/host/3.3"/>
<remove-project name="platform/prebuilts/clang/darwin-x86/mips/3.3"/>
<remove-project name="platform/prebuilts/clang/darwin-x86/x86/3.3"/>
<remove-project name="platform/prebuilts/gcc/darwin-x86/x86/x86_64-linux-android-4.7"/>

<remove-project name="platform/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6"/>

<remove-project name="platform/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7"/>

<remove-project name="platform/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6"/>
<remove-project name="platform/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7"/>
<remove-project name="platform/prebuilts/gcc/darwin-x86/host/headers"/>

<remove-project name="platform/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1"/>
<remove-project name="platform/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.6"/>
<remove-project name="platform/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.7"/>
<remove-project name="platform/prebuilts/gcc/darwin-x86/x86/i686-linux-android-4.6"/>
<remove-project name="platform/prebuilts/gcc/darwin-x86/x86/i686-linux-android-4.7"/>
<remove-project name="platform/prebuilts/python/darwin-x86/2.7.5"/>
<remove-project name="CyanogenMod/android_prebuilt"/>
</manifest>

add this to your local_manifests folder as remove.xml

it will get completed faster

mahir you have my 10.2 cm build right???

it has audio ......right???? as far as i know it does have an audio or the build on cm 11 thread has audio...anyone confirm it please???

@hackcookie404

no ETA s please ...you asking for curiosity but it generally irritates people working on it.

so please dont ask for ETA
[Samsung Galaxy Grand Quattro] Xtreme666:
Thanks,

i dont have local_manifests folder.

I have .repo/manifests, by any chance you meant here?

Or i need to add it after i finish syncing CM?
[Samsung Galaxy Grand Quattro] mahir kukreja:
create

local_manifests in .repo

n add the xml file inside it

[MENTION=4893245]gody420[/MENTION] is testing ur cm11 [MENTION=943196]k2wl[/MENTION] he will report for audio soon
[Samsung Galaxy Grand Quattro] mahir kukreja:
i have contacted many seniors regarding ril n the reply is quattro has unique drivers just using things from other devices wont work at all

same for audio

bluetooth can still be done sometime

camera sony developers been trying since godknows how many months bt they havent been able to get it to work!

they are having same issues!

its very unlikely that remaining bugs will be fixed by me n shrukul as audio camera ril all of these require rewritten hals

which can only be done by senior/recognised devs who have loads of knowledge in c c++ java n ANDROID

we are still trying though !

bt TODAY our holidays end and from now onwards we wont be able to compile at all coz we wont be getting time from college!

i will get at most 4-5 hours per week which will hardly be enough!

sorry for issues but studying is also important!

yajnab has told me most of these things

if novafusion team releases cm11 for galaxy core we still have a chance due to similar drivers!

or if we can get a good really good dev from somewhere! or k2wl has enough time to figure out the problems n fix them !
[Samsung Galaxy Grand Quattro] hackcookie404:
Very informative reply.. as many of them (those who are following this thread) are new to all these things, this reply of urs has covered much needed basic information regarding drivers & stuff and also abt how things r different from device to device...n yeah studies r imp too.. besto luck to u guys specially to u and to [MENTION=943196]k2wl[/MENTION] ..:)
[Samsung Galaxy Grand Quattro] k2wl:
mahir without device i may just suggest you people things...but actually to fix them ...i will need device...dont worry we will fix them eventually.
[Samsung Galaxy Grand Quattro] mahir kukreja:
ya the thing is both me n shrukul will be busy from now on who will you guide?

we need someone else to continue right!

im worried abt that!

will anyone like to join in?

someone experienced?

btw [MENTION=943196]k2wl[/MENTION] can nokia x help for camera?

i saw tht it had 4 files in bin

which we didnt bt they are in our stock

camera works for nokia x n permissions in ueventd were same in both

n we dont have any camera daemon in cm11 bt we have 1 in stock

n nokia x has tht in cm11 !
[Samsung Galaxy Grand Quattro] k2wl:
that is also true...

mahir or others someone please

do one thing

put system/lib,framework,vendor,bin folders as a zip on mediafire or ur google drive

i will se what i can do for you guys..
[Samsung Galaxy Grand Quattro] mahir kukreja:
yup

well i dont know whats gonna happen

abt audio me or some1 else will tell u status abt that old build of yours if audio works or not!

in an hour or 2!
[Samsung Galaxy Grand Quattro] Xtreme666:
Dont worry,

I will try my level best to take the development further.

As you already noticed, i dont have much knowledge/experience in porting, but i know coding and i know languages.

So I can handle that part too.

But yes, i will need a lot of assistance/help of you and [MENTION=943196]k2wl[/MENTION] but wont give up.

Real reason is, i hate the samsung ****-wiz rom which i am using now (stock) and i want CM badly!

But again, time is a problem with me too.

I reach home from office at around 21:30 and 22:00

and sometimes i carry my work home.

So i wont be able to give more then 2 hours per day on it, except on weekends.

but something better then nothing right?
[Samsung Galaxy Grand Quattro] mahir kukreja:
yeah
[Samsung Galaxy Grand Quattro] mahir kukreja:
im downloading latest stock rom it will be complete in 20-30 mins will then upload the files!
[Samsung Galaxy Grand Quattro] k2wl:
@Xtreme666

ask anything...i will there dont worry ...2 hrs a day will be good..we will take one job at a time...

your plus point is you know languages that is major...in no time you will be very good at it...
[Samsung Galaxy Grand Quattro] gody420:
[MENTION=943196]k2wl[/MENTION] audio is same as mahir's build..... sound cuming from front speaker....
[Samsung Galaxy Grand Quattro] NXghost:
Guys, I'm really noob with this but, baidu cloud ROM for our Quattro is based on cm10 (or Android AOSP i don't know), audio ril camera WiFi, all is working on baidu, seeing baidu rom audio files can help us? (sorry if I said a dumb thing :P)
[Samsung Galaxy Grand Quattro] Xtreme666:
Hey,

As you told me in PM that day,

all class files with RIL in it :)

I further decompiled the classes, dint find SMALI in it.

But there is whole bunch of stuff there.

Can you tell me what exactly i should look for?

PS: incase anyone is curious whats inside class file, then http://jd.benow.ca

PPS: on linux, run

sudo apt-get install libgtk2.0-0:i386 libxxf86vm1:i386 libsm6:i386 lib32stdc++6

to settle the dependencies

on windows, get a linux ;)
[Samsung Galaxy Grand Quattro] k2wl:
you have that cm10 build...this can help us.

and @Xtreme666 look for files named same as your zip in cm source.

mostly they are in telephony folders

compare them and see for differences

create patches and post them here.
[Samsung Galaxy Grand Quattro] NXghost:
You mean the cm10 with no modifications by baidu devs? If yes Unfortunately I don't have :/, but, baidu cloud ROM v53 can help? , (I know it's a very modified rom, neither seems Android) even with camera or something?

If yes, this rom is in development section :D
[Samsung Galaxy Grand Quattro] gody420:
as far as I know baidu cloud rom is based on stock rom..
[Samsung Galaxy Grand Quattro] Xtreme666:
Okay, on it.

[MENTION=5837280]NXghost[/MENTION] can you please pass me framework.jar?

it will save me trouble of downloading 300 mb

Thanks,
[Samsung Galaxy Grand Quattro] NXghost:
Baidu is not based on stock rom I guess, if you go to system/lib/egl you can see adreno 200 generic CM drivers (or something like that)

---------- Post added at 06:54 PM ---------- Previous post was at 06:52 PM ----------

I'm using baidu cloud rom, you mean framework.jar from this rom?
[Samsung Galaxy Grand Quattro] Xtreme666:
Yup.
[Samsung Galaxy Grand Quattro] NXghost:
My pc is broken, XDA app don't have an option to upload files, I will upload to Dropbox, wait 6 minutes, my Internet connection is only 1MB :(
[Samsung Galaxy Grand Quattro] Xtreme666:
Nevermind, i have a better idea :)

---------- Post added at 11:47 PM ---------- Previous post was at 11:38 PM ----------

For anyone who needs baidu source

http://rnd.mrxtremem.com/baidu/

I will be deleting it soon...

dont want headache from baidu guys

---------- Post added at 11:48 PM ---------- Previous post was at 11:47 PM ----------

[MENTION=943196]k2wl[/MENTION] baidu is not deoxeded..

Can you please verify its CM?
[Samsung Galaxy Grand Quattro] NXghost:
ok, good luck with cm repo :D
[Samsung Galaxy Grand Quattro] Xtreme666:
i got to say, i hate to keep refreshing the page waiting for someones reply...

cant believe we are not using IRC or anything better/faster..
[Samsung Galaxy Grand Quattro] gody420:
join whatsapp group den.....
[Samsung Galaxy Grand Quattro] Xtreme666:
lets do it..

[MENTION=943196]k2wl[/MENTION] [MENTION=5723590]mahir kukreja[/MENTION]

Here is RIL from baidu.

I think they are identical,

i will update in 5
[Samsung Galaxy Grand Quattro] NXghost:
Yeah I hate this to, a chat or whatsapp group will be really helpful
[Samsung Galaxy Grand Quattro] Xtreme666:
Confirmed.

identical, including the comments..

PS: i managed to deoxed it.. :D

---------- Post added at 12:17 AM ---------- Previous post was at 12:15 AM ----------

i really really prefer IRC..

We can copy paste and all.

Plus, my cellphone is always in some corner when i am infront of lappy.

IRC has decent cellphone client too
[Samsung Galaxy Grand Quattro] mahir kukreja:
ITS NOT CM PEOPLE it is based on stock rom n is partly similar to miui
[Samsung Galaxy Grand Quattro] Xtreme666:
come on #freenode irc server,

Channel #SGGQ

Incase you want to know how,

Download Xchat,

then select freenode in list

then after loggin in, type

/join #SGGQ

---------- Post added at 12:23 AM ---------- Previous post was at 12:23 AM ----------

ok.. what now?
[Samsung Galaxy Grand Quattro] mahir kukreja:
see post 542
[Samsung Galaxy Grand Quattro] Xtreme666:
:)

Bro, that was IF baidu was CM.

and i already did it,

its identical..
[Samsung Galaxy Grand Quattro] NXghost:
Oh, :( , Sorry for the inconvenience mahir, I really thought Baidu was based on Cm10 or aosp Android because is really modified and many xposed modules coded for aosp Android works on baidu (and don't work on stock rom) like gb and xblast..
[Samsung Galaxy Grand Quattro] mahir kukreja:
the ril.zip in post 541 is from stock or cm?
[Samsung Galaxy Grand Quattro] mahir kukreja:
no problem buddy
[Samsung Galaxy Grand Quattro] Xtreme666:
1: there is no CM.

RIL.zip is stock

RIL-Baidu.zip is baidu
[Samsung Galaxy Grand Quattro] mahir kukreja:
ya so the one from stock

k2wl has said to compare it with cm source in post 542
[Samsung Galaxy Grand Quattro] Xtreme666:
bro, my CM repo is not yet done..its 98% done and net is bit cranky so i paused it. (bad weather)

So i dont have CM source to compare it with.

Can you please pass me the files so i can compare it?

PS: if they are in your repo, then i have that repo.. tell me the path, i will check.
[Samsung Galaxy Grand Quattro] mahir kukreja:
wait
[Samsung Galaxy Grand Quattro] Xtreme666:
thanks..

When you are done with build, please pass me latest errors too.

Crap, its gonna be a nightmare..

files are not at all compatible

---------- Post added at 01:20 AM ---------- Previous post was at 12:58 AM ----------

@mahir kukreja

Hey,

two problems.

1: I am not able to find RIL-QMI

and secondly,

can you please replace

static final boolean RILJ_LOGV = false;

with

static final boolean RILJ_LOGV = true;

and send me the logs?

Its in ril.class file
[Samsung Galaxy Grand Quattro] mahir kukreja:
im getting this bootloop issue having a hard time sorting it out lets continue this later!
[Samsung Galaxy Grand Quattro] Xtreme666:
what happened there?
[Samsung Galaxy Grand Quattro] mahir kukreja:
idk made some changes getting nothing no logs n nt even bootloop it says on blank screen

n adb logcat says

cannot locate symbol "__memmove_chk" referenced by "/system/bin/sh"...
[Samsung Galaxy Grand Quattro] Xtreme666:
revert using git
[Samsung Galaxy Grand Quattro] NXghost:
Any progress with baidu RIL? Just asking
[Samsung Galaxy Grand Quattro] Xtreme666:
none. it identical to stock
[Samsung Galaxy Grand Quattro] mahir kukreja:
[MENTION=943196]k2wl[/MENTION]

http://www.mediafire.com/download/kxf2bhh1kd84v8j/bin.zip

http://www.mediafire.com/download/hfhazjc29381gjc/frameworks.zip

http://www.mediafire.com/download/29126f7hr5konj0/lib.zip

http://www.mediafire.com/download/2ghwcsi280ggwy7/vendor.zip
[Samsung Galaxy Grand Quattro] Xtreme666:
you pushed the code?
[Samsung Galaxy Grand Quattro] OSTUNG:
strange, my sim only works with baidu rom, this rom when be finished, will it work with my sim

:confused:
[Samsung Galaxy Grand Quattro] k2wl:
i m on irc if u need.
[Samsung Galaxy Grand Quattro] Xtreme666:
good morning.

okay, most probably i wont be able to work for next 12 hours.

i will pick up from where we left yesterday tonight.