yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Android Development] pandasa123:
[bold] This thread is for developers [/bold]

Go to the general thread where you will find help. People, this isn't a support thread. That's why the general thread is there
[Nexus 5 Android Development] Keviio:
I'm really sorry. :-o
[Nexus 5 Android Development] DubelBoom:
[YOUTUBE]8To-6VIJZRE[/YOUTUBE]

Sorry for OT, I just had to.... haha
[Nexus 5 Android Development] Vicpdx18:
maybe it is CWM, I use TWRP and it boot's up fine every time. You might want to try and reflash it again but if it still does not want to boot you may have a bad download and or CWM is not installing it right.

Addition: Here is the link to the General forum for this rom: http://xdaforums.com/google-nexus-5/general/nexsense-rom-discussion-t2719207

Anybody who has question about multi-rom, or installing this rom, and or problems that occur should head over to that forum and me or someone else can help you.
[Nexus 5 Android Development] djmark:
this fantastic ROM, I really hope that the remaining bugs are resolved, I would like to make contributions to the development of the rom, if I have them I'll post updates here: D :good:
[Nexus 5 Android Development] Vicpdx18:
Well Welcome to the thread! We love people who can contribute!
[Nexus 5 Android Development] Edoardo001:
I love this port, i hope that you make a stable relase, good luck man, you're the best.
[Nexus 5 Android Development] Jashanmallan:
The Sound from headphone also not work

I tried pasting the libs from nexus 5 stock but no luck.

Now editing HTC libs.
[Nexus 5 Android Development] Smith7018:
You can hexedit libraries and force them to return a value. I'd suggest GDB again to set a breakpoint at the call that needs to be patched, stepping through until you get to the line that returns the variable, and then hexedditing the line to return the number.

(I've cracked a decent amount of desktop software, if you can't tell).
[Nexus 5 Android Development] greveldinges:
I'm not really a developer or anything but I think the soundproblem has nothing to do with the speaker settings etc, because bluetooth and headphone audio doesn't work eiter.
[Nexus 5 Android Development] el.quechon:
Where can i get latest patch download link doesnt work for me thanks
[Nexus 5 Android Development] DumF0rGaming:
Here you go http://rghost.net/private/54248926/5185ceca1a030735114f6481543cbf76
[Nexus 5 Android Development] Shaky156:
Lolz [MENTION=2623456]GalaxyUser[/MENTION] youre off course regarding audio, nothing to do with this minbuffer stuff :)

Had a quick look this morning its not minbuffer returning value lol
[Nexus 5 Android Development] androidfilesharing:
Patch added to AndroidFileSharing.com

http://fs1.androidfilesharing.com/NexSense/
[Nexus 5 Android Development] GalaxyUser:
Hum..... I worked all day on sound and i fixed nothing :/

here is the error i cannot fix:

W/HtcAudPMB( 191): getOutput() could not find output for stream 3, samplingRate, 0,format 0, channels 3, flags 0

I seen that HTC M8 has same audio chip as Nexus 5
[Nexus 5 Android Development] munchy_cool:
for audio this may work..not sure

http://xdaforums.com/showpost.php?p=37983876&postcount=1515
[Nexus 5 Android Development] GalaxyUser:
We cannot compile new audio hal because we need to use HTC One M8, that's why it's difficult.

I tried to push

wcd9320_anc.bin

wcd9320_mad_audio.bin

wcd9320_mbhc.bin

to /data/misc/audio/ but it seems to be not working :/
[Nexus 5 Android Development] mchj:
Are you getting libtinyalsa.so in your build?
[Nexus 5 Android Development] GalaxyUser:
yeah i tried both: M8 and then N5 not working
[Nexus 5 Android Development] jabza:
If you know so much about it, why not tell us what it does have to do with? If you don't know, then it could very well be from that.

Please, be constructive here.

Sent from my Nexus 5
[Nexus 5 Android Development] Williamsss:
Just wait for about 10 minuites it takes forevery too boot. Be patiant and it will start though
[Nexus 5 Android Development] jsgraphicart:
I'm no dev but I thought I'd post something that MIGHT help. I was just searching around to see if audio is a widespread issue with Sense ports. I found this thread for the Droid DNA that apparently has audio and camera working. It seems like at first, audio was an issue for him. Maybe this dev can shed some light on our issue. I figured it was worth a shot. I don't know if the device matters.

http://xdaforums.com/showthread.php?t=2694693

EDIT: I'm stupid. The DNA is an HTC device so obviously things will work better. Sorry. Disregard
[Nexus 5 Android Development] GalaxyUser:
Hi,

Audio was working on their first attempt. Only call audio was not working, chich can be fixed by one line in build.prop.

We have to have this function, to return 176000 everytime:

.method private audioBuffSizeCheck(I)V
.locals 5

const/4 v2, 0x1

iget v3, p0, Landroid/media/AudioRecord;->mChannelCount:I

iget v1, p0, Landroid/media/AudioRecord;->mAudioFormat:I

const/4 v4, 0x3

if-ne v1, v4, :cond_1

move v1, v2

:goto_0
mul-int v0, v3, v1

rem-int v1, p1, v0

if-nez v1, :cond_0

if-ge p1, v2, :cond_2

:cond_0
new-instance v1, Ljava/lang/IllegalArgumentException;

const-string v2, "Invalid audio buffer size."

invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

throw v1

:cond_1
const/4 v1, 0x2

goto :goto_0

:cond_2
iput p1, p0, Landroid/media/AudioRecord;->mNativeBufferSizeInBytes:I

return-void
.end method
[Nexus 5 Android Development] DanielMod:
Please fix the signal bar level it seems to be easier than sound :)
[Nexus 5 Android Development] trh1341:
Or we fix the more important problems first? You know, the ones that actually let us use the phone. If you want them fixed so bad, fix them
[Nexus 5 Android Development] _Infamous_:
Don't demand
[Nexus 5 Android Development] der_sascha:
i dont know if its already asked before but is there also an port for nexus 4?
[Nexus 5 Android Development] awidawad:
[MENTION=2623456]GalaxyUser[/MENTION] maybe this can help a little? It's for a different error but under almost exact circumstances.

http://xdaforums.com/showpost.php?p=24955651&postcount=317
[Nexus 5 Android Development] Cuzz1369:
And why don't you know?

Answer: Because you didn't search.

Also this is a dev only thread. If you would have read at ALL you would know that(Its in the thread title) Go to the Q&A thread to ask your next ridiculous question.
[Nexus 5 Android Development] luisangel89:
Noooooooooo!!!!!!!!!!!!!!!!!
[Nexus 5 Android Development] DanielMod:
Who said I demand something? Wth is wrong with you ppl i just gave a bug report that i wish would be fixed.

Dont you think if i knew how to fix that I would do that already?
[Nexus 5 Android Development] trh1341:
Because its alpha... And you said to fix before sound..its a dev thread, take issues to the general thread. We read that too

Edit: just as a rule of thumb, if it says devs only, it means no bug reports needed
[Nexus 5 Android Development] DanielMod:
I did not say FIX FIRST,i said that it MAY BE EASIER TO FIX.

Beside that...GalaxyUser told by himself in the issue section of the OP "Tell Me" and this is what I am doing,and so what if thats alpha? I doesnt mean "Dont point out issues".

Sorry if I disturbed anyone and good night/day
[Nexus 5 Android Development] lets_zock:
I personally think bug reports are ok if it's not a bug mentioned in the OP. But saying this should be fixed before something else is a no-go.
[Nexus 5 Android Development] chjema:
Just because you said please doesn't make it any less demanding. This is a Dev thread. Log cats, patch fixes, etc or gtfo. There is a q and a thread that can help.

Sent from my Nexus 5.
[Nexus 5 Android Development] el.quechon:
This rom is smooth and beautiful at the same time good job dev really good
[Nexus 5 Android Development] DanielMod:
People around this thread is really aggressive,you should chill.

And yes there is difference between a sentense with please and without please,you cant demand with please.

And again,you should learn to read the op mentions to report bugs in the issue section.
[Nexus 5 Android Development] BigD18t:
The issue is your asking for a known bug to be fixed before the most important one, and it had been asked before.

This thread is for developer replies on how to fix the issues, there is a thread for general stuff, which is why people on here get funny, if your not helping to solve the issues, don't post in the Dev only thread.
[Nexus 5 Android Development] burakgon:
So say hello to BGR:

http://bgr.com/2014/04/16/nexus-5-htc-one-m8-rom/
[Nexus 5 Android Development] trh1341:
People are getting aggressive because its full of people that Dont read. And that Dont understand the meaning of a development thread.

Edit:speaking of dev thread. Back on topic now. I'm about to pm a mod for a clean up haha
[Nexus 5 Android Development] jsgraphicart:
You know, the more people repeat that this is a dev only thread, the more the unrelated posts add up. Just link them to the general discussion thread and be done with it or this is going to happen every time someone comes in here asking a non dev question. I set up the general discussion thread, so let people know it's there.

http://xdaforums.com/google-nexus-5/general/nexsense-rom-discussion-t2719207
[Nexus 5 Android Development] _Infamous_:
Messing around with sound but always get boot loop, going to keep trying to change values and add code :)
[Nexus 5 Android Development] Quinny899:
Now now. No need to derail the thread.

Would anyone benefit from (later) a modified TV app to remove the IR?
[Nexus 5 Android Development] trh1341:
Quinny! I used ROMs that you worked on from the inspire 4g(desire HD)!!!(I think I worked on one with you as well) Yes! That would be great!
[Nexus 5 Android Development] Abaddon:
stop the OT posts and requests please. before asking anything try to search the thread first if it has been answered. flaming or calling names is prohibited.

give respect this is a developers only thread and doing it at their spare time for free so if you have nothing to contribute here pls use the discussion thread under general section instead. :)
[Nexus 5 Android Development] rainbowsixpro1:
Tried to flash it. But i doesnt boot even after 30 Minutes i tried it like said (reboot) again and didnt work reflash and didnt work.

Im going to redownload again and try it again

AROMA shows a error so i attached a log
[Nexus 5 Android Development] jamal2367:
Install latest cwm ...wipe all and Format system and try to install the Rom ....when its fail again ...wipe all and install again and it will sucess flashing the rom ....and the Rom boot :)
[Nexus 5 Android Development] luisangel89:
They've said before that if you can't get it to boot to stay away until they get it more stable.
[Nexus 5 Android Development] Clark Joseph Kent:
That will be enough, Members stop the back and forth.....Thank You.
[Nexus 5 Android Development] trh1341:
Thatnks for posting the log. I see no issue with asking about installation if logs are posted. It helps development!:)

---------- Post added at 03:12 PM ---------- Previous post was at 03:11 PM ----------

Try to redownload it, looks like a bad download

Edit:that was after a quick look from mobile(I'm in school at the moment) so I could have over looked it
[Nexus 5 Android Development] psp9000333:
hey guys, this is probably the only time I'll post on this thread, but where is the WiFi fix flashable zip?
[Nexus 5 Android Development] jsgraphicart:
The fix in the OP has it included.
[Nexus 5 Android Development] VyktorJonas:
maybe the stock rom of the M8 GPE can help you guys? http://xdaforums.com/showthread.php?t=2706441
[Nexus 5 Android Development] iamsamiam:
K i'm working on the sound issue, anyone else on gtalk? I'd like to bounce some ideas off some other developers/porters. please add me on gtalk

samuelbarthelemy (@) gmail .com
[Nexus 5 Android Development] rainbowsixpro1:
[MENTION=4133231]trh1341[/MENTION]

Thanks for your help. Im already redownloading it and will try it again now :)

Guys no need to be cocky i provided a log didnt i ? I never had problem flashing anything(not like this) so i did ask for help here...
[Nexus 5 Android Development] trh1341:
If you still have an issue with flashing it, PM me and I will help you so the thread doesn't get clogged up if its a stupid issue (I've done that before haha)
[Nexus 5 Android Development] raynan:
Just saw on the portal that HTC released the sdk for the dual camera. Maybe some modifications can be made to fix that issue?
[Nexus 5 Android Development] lets_zock:
Hmm, I don't think so. I think The SDK is only for developers who want to use the dualcamera and refocusing in their app.
[Nexus 5 Android Development] raynan:
I was thinking if the problem lies with the fact that it's looking for a second camera to poll, that could be used to trick it into thinking one was there...the quality can be fixed later ?
[Nexus 5 Android Development] jabza:
It's a possibility, but there are already ROMs for the M7 on Sense 6, so I'd imagine that would help more in this case.

Sent from my Nexus 5
[Nexus 5 Android Development] raynan:
Hmmm...time to think harder
[Nexus 5 Android Development] wolfu11:
+1
[Nexus 5 Android Development] lzyllp:
So we got audio now?
[Nexus 5 Android Development] trh1341:
Are you kidding? You couldn't have just hit the thanks button and left it at that?

I think he was saying that another phone had audio working, not ours:)
[Nexus 5 Android Development] aminmizar:
Hey guys, just wanna add that maybe OP can add this for those having diffculity booting.

* Wipe All.

* Mounts and storage // format /system, format/data, format cache.

It's seem to boot faster.
[Nexus 5 Android Development] trh1341:
That is the usual procedure for most ROMs but I think where most of the issues are coming from is the people trying to use multirom that Dont read some of the posts. At this point it may be better to add instructions for everyone in the op to MAYBE cut down on I'll the posts
[Nexus 5 Android Development] wolfu11:
Good Idea or maybe start a new thread for all the people who are just interested in trying it.

This project has gotten so much attention that just having a developer thread isn't enough.

There's no way curiosity won't get to everyone who reads about it I know there is aQ&A thread in general but maybe there needs to be one in here too. maybe call it something like testdrive lol of course that is up to the OP.
[Nexus 5 Android Development] trh1341:
There needs to be someplace that's separate from the developers. Or developers can all go to an irc channel or hangout
[Nexus 5 Android Development] -DarkKnight-:
If only these devs could meet in something like a development forum where devs could discuss solutions with each other.....

Oh wait...
[Nexus 5 Android Development] CRIME INC.:
Ha!! I saw what you did there[emoji12]

sent from my Hammerhead Nexus
[Nexus 5 Android Development] trh1341:
You mean the place EVERYONE has access to? Yeah that place.: P I mean so we have a place to share ideas and fixes by ourselves
[Nexus 5 Android Development] Vicpdx18:
If galaxy User could, he should add to the first post to direct people to the general forum for this rom. Too many people look at the first post without searching the forum's and so he should put on the main post "IF you have a question, problems installing the rom, and or anything else that is not a dev contribution then go to this link" The link would take them to the general forum for this rom and help reduce some of this posting that does not help.

you know what I am saying guys?
[Nexus 5 Android Development] trh1341:
I know exactly what you mean and in THEORY that's a great idea, I. Reality, it won't work. To many people Dont actually read the first post. Or they do read the first post and think "well I will get help faster in this thread"
[Nexus 5 Android Development] iamsamiam:
What im thinking

I'm thinking its a framework issue due to in the logcat

I/ActivityManager( 691): Cannot resolve ContentProvider=com.htc.soundprofile.provider

E/ActivityThread(13468): Failed to find provider info for com.htc.soundprofile.provider

I know some xperia guys had the same issue with sound and one of the devs in there was also getting this error. No one hit me up on gtalk so if we can communicate through the thread i'm down. I'm going to decompile some of the frameworks and see what i can find.
[Nexus 5 Android Development] Cuzz1369:
The download link should be removed from this thread and placed in the general forum. That will cut down drastically on the "how do I boot this rom?”.
[Nexus 5 Android Development] ZacksBuilds:
Can I just say how excited I am to have this in beta for the daily user like I can't even express how happy I'll he has:D:thumbup::thumbup: THANK YPU

Sent from my PARANOID Nexus 5 with Franco r39 powered by ART.
[Nexus 5 Android Development] Vicpdx18:
That could work also, on the front page it would say "download links moved to NexSense Q&A/General Forum".
[Nexus 5 Android Development] Cuzz1369:
Just link the general thread instead of a download link.
[Nexus 5 Android Development] deveshmanish:
From what I can understand the above code does the following

it puts mChannelCount in v3 and mAudioFormat in v1 and we know the valid values for mAudioFormat can be either 1(for 8bit PCM) or 2(for 16bit PCM) and 3 if an exception occurs,so it checks if the value in mAudioFormat is 3 if so then it goes on to throw an exception.

If exception is not thrown it sets mAudioFormat to 2(16bit PCM) and then multiplies mAudioFormat and mChannelCount and puts it in v0.

Now this is the part that I can't grasp,

rem-int v1, p1, v0

what it does is it finds out p1%v0 and puts the remainder in v1.What I can't understand is v0 or p1 haven't been assigned a value.Am I missing something here?

The program basically returns the value of p1 and puts it in mNAtiveBufferSizeInBytes.We could alternatively just put 17600(in hex 0x44c0) in a variable and return it.That should do our job.Atleast this is what I understand.Anyone with a better knowledge of smali,please shed some light on this.

Or IMO we could just replace the function with this,

.method private audioBuffSizeCheck(I)V
.locals 5

const/16 v2, 0x44c0

iput v2, p0, Landroid/media/AudioRecord;->mNativeBufferSizeInBytes:I //put p1 in mNAtiveBufferSizeInBytes

return-void
.end method

Any insights???

PS:

I just want to say to all the users who are posting questions that can be answered by searching and/or requests for ports,fixes and other stuff that what you guys are doing are making this difficult for the persons who are actually trying to fix those things for you.See if you clutter the forum with just these stuff it's difficult for devs to find the relevant stuff.It just took me 5 mins to find the code that I was looking for.So if you guys could please move this to the Q&A section that would be swell.

Also an appeal to the users who are coming down on the above posts.From what I've seen there are more posts condemning the OT posts than the number of OT posts itself. If you find that someone has posted something irrelevant just hit the report button or don't respond at all to it the post will automatically get moderated or seeing no response the poster will have to search for himself.

Just my thoughts on things, I myself am no moderator and I urge people to stop acting like a moderator and please get back to topic and oh yeah don't post "yeah that's what should happen" or "thumbsup" "+1" and other stuff after this post.

*Peace*
[Nexus 5 Android Development] iamsamiam:
[MENTION=4859648]deveshmanish[/MENTION]

what smali file are you editing?
[Nexus 5 Android Development] deveshmanish:
I guess it's AudioRecord.smali(framework2/smali/android/media/AudioRecord.smali) I'm not sure.GalaxyUser might know better he posted the function from the smali file.I haven't looked into it that much.
[Nexus 5 Android Development] wolfu11:
Sensors fixed!

@ Galaxy user I fixed all the sensors I'll PM you on how I did it
[Nexus 5 Android Development] raymond4:
Your a genius my good man.
[Nexus 5 Android Development] tomzefi:
I have been following this development and I want to say that the collaboration among you guys is extraordinary. Very constructive.
[Nexus 5 Android Development] Vicpdx18:
Awesome work!
[Nexus 5 Android Development] trh1341:
What did you do to fix it?
[Nexus 5 Android Development] wolfu11:
For Galaxy User

View attachment 2691190

---------- Post added at 12:34 AM ---------- Previous post was at 12:31 AM ----------

I removed the 2 sensor files in system / ect and replaced with the one I attached for galaxy user.

Now every sensor works and even when I use android sensor box.

Correction sound sensor force closes but that is becuse sound doesn't work yet
[Nexus 5 Android Development] Vicpdx18:
I just clicked on it to look and it gave me an invalid message, supposed to happen?
[Nexus 5 Android Development] trh1341:
Lol not gonna lie, I was thinking of this being a possibility but was like "no that wayyyy to easy!"
[Nexus 5 Android Development] wolfu11:
I need to try one more thing fyi you can send and receive calls now but no sound.

I need to see if the existing file does the trick have to reload my old nand and will get back to ya in a few
[Nexus 5 Android Development] TheLastSidekick:
Just to recap this would mean only the camera and audio doesn't work? I'd say that's a 80% working port and maybe this will become the defacto thread for others trying to port Sense 6.0

The Nexus 5 advocate (Team Inferno)
[Nexus 5 Android Development] wolfu11:
Lol I know right... I've worked on this for 2 days and finally figured it out.
[Nexus 5 Android Development] Vicpdx18:
alright sounds like a plan!

By the way just to ask, Can i merge all the fixes from the fixed zip file into the original zip file to get it all into one file or is it required to flash the extra zip after the original zip?
[Nexus 5 Android Development] wolfu11:
GPS too but GalaxyUser fixed that yesterday but needed the sensors fixed before continuing

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

Yes I've done that and it works
[Nexus 5 Android Development] trh1341:
I'm glad you got it working! I'm still trying to work on sound!:(
[Nexus 5 Android Development] Vekhez:
Awesome work, this is getting closer and closer to being fully functional :D

Maybe camera and sound will be as simpler fix as the sensors?
[Nexus 5 Android Development] wolfu11:
was anyone else able to get get the sensors to work?

I did it from a clean install so not sure if the fix zip messes anything up
[Nexus 5 Android Development] trh1341:
are you asking on other devices?
[Nexus 5 Android Development] wolfu11:
No I'm asking if anyone on here tried it and if it worked
[Nexus 5 Android Development] trh1341:
Sorry, no I havent
[Nexus 5 Android Development] Vekhez:
If you could make a zip that applies your fix I can test right now.
[Nexus 5 Android Development] Vicpdx18:
Alright I merged all files from the fix zip into the main file and rezipped it into one file.

Now when i was doing that I deleted the original Thermal-engine and added thermal-engine-hh in its place

do I need the original thermal-engine or is it ok how I did it?

---------- Post added at 11:33 PM ---------- Previous post was at 11:17 PM ----------

Edit: I just left it in, but when I flash with my newly created zip it actually wont start aroma but gives me the fixed such and such and then completes but mabey Galaxy user can take my new zip and remove the part where it says fix wifi and that stuff and then it would start aroma

it would be for anybody who wants both original and fixes combined to be one flashable zip.
[Nexus 5 Android Development] wolfu11:
That attachment I put up doesn't work as I see, but the fix is pretty simple now that I figured it out.
[Nexus 5 Android Development] Vekhez:
If you are suggesting to make a whole new ROM, please just upload a fix .zip too, 500bytes a second here, takes a while to download 900mb, 10 is bearable.

Thanks!