yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Android Development] Vekhez:
Just thought I would share my experiences with the ROM so far.

I am using the TWRP 'edition' of the ROM; with MultiROM. I also have the stock ROM installed so that it functions correctly, although as soon as this has Data, Calls and Sound working, I'll be on it full time.

I flashed the ROM and Franco Kernel and first, and it didn't work, I correctly blamed my stupidnees for flashing FK, and reflashed with SuperSU and ElementalX. I can confirm that NFC works, and Wi-Fi breifly turns on with ElementalX before turning right back off again. My sensors all still work correctly, this may be because of MultiROM.. Because to my knowledge the secondary ROM cannot touch the radio etc, it can read but not write..

EDIT: Sensors are gone.. I restored my EFS partition and then factory imaged and everything is okay, guess we'll have to wait..

Anyway, that's basically all I've got.

To [MENTION=2623456]GalaxyUser[/MENTION] if you have anything that needs testing, I am more than happy to help out, just shoot me a PM :D
[Nexus 5 Android Development] memnoc:
Wise words mate, lesson learned everyone? Never flash a backup ever! I'm sorry for those with died sensors, and thankful for their report, as I was about to flash and work on this project

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Android Development] memnoc:
Also everyone, take this chance TO BACKUP YOUR EFS PARTITION, it's one of the most important things to do as N5 doesn't have a built-in efs but use instead a partition, which can be deleted, corrupted, formatted. EFS partition includes your IMEI, and your baseband info as well as sensors data and other stuff. EFS IS UNIQUE, every device has a different efs content, like IMEI, so if you care about modding and mess up, back it up now following this thread how-to

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

Those with died sensors should try to restore their efs if they performed a backup of them. I think that restoring the backup also restored the op efs to your device... Can anyone tell if other than died sensors they also lost data connection?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Android Development] nomaj:
data is working...
[Nexus 5 Android Development] memnoc:
Anything else you can notice? IMEI is the same, such as... Tried to hold the power button for at least 20 second while the device is off? Tried to lock/unlock the bootloader again and then flash a stock factory through flash-all. bat?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Android Development] Prezlamen:
i just refuse to believe that rom port fried sensors
[Nexus 5 Android Development] memnoc:
I do not think they're fried either, they just have been overwritten by sense sensors data, if you know what I mean, but the hardware is ok in my opinion..

Well, as said above, the only thing to do in my opinion is try the deepest cleaning we're allowed to, in other words:

Open a CMD window, boot your phone in fastboot, and write the following commands, in this order (Considering that you have extracted the images in C:/image-hammerhead-krt16m/)

fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata

and then you should flash an image like the factory image

fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)

fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img

Note: in this thread you'll find everything more in details if you need to, including the necessary files, but if you want my opinion, I'd erase only the system partition, since I believe the fault lies there, but you can try what you consider mos appropriate.

http://xdaforums.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701)

Do what I said at your own risk, I do not take any responsibility, and remeber that interrupting a fastboot flash (like unplugging the device during the writing process) will most likely brick the device itself for good.

If the above didn't work, well I'm out of ideas fellas, but I still wish you good luck!
[Nexus 5 Android Development] iTzGavin96:
oh the last time i tried updating the rom was when that was one of the install methods, i didnt see the op has released a new zip patch. That wasnt there a week ago lol
[Nexus 5 Android Development] GalaxyUser:
Ok so i fixed GPS :D Fix will be included in next patch
[Nexus 5 Android Development] iTzGavin96:
damn man, do you ever sleep?! Your on a roll!!!! Thuroughly enjoying your work!!!! :laugh: :good:
[Nexus 5 Android Development] superalphajellybean:
Would I be able to use this in multirom?
[Nexus 5 Android Development] _Infamous_:
Omg read please
[Nexus 5 Android Development] -DarkKnight-:
Are you serious?

The simple act of searching "multi window" will give you dozens of answers
[Nexus 5 Android Development] trh1341:
Leave.
[Nexus 5 Android Development] jsgraphicart:
http://xdaforums.com/google-nexus-5/general/nexsense-rom-discussion-t2719207
[Nexus 5 Android Development] sykomaniac:
[MENTION=2623456]GalaxyUser[/MENTION] Did you get anywhere with sound? I've just got a nice bootloop after messing around :/
[Nexus 5 Android Development] Daiskei:
Been messing with some stuff trying to get sound working on my end as well, not much luck yet... [MENTION=2623456]GalaxyUser[/MENTION] Does this mean you've fixed the sensors since it said that GPS was relying on them?
[Nexus 5 Android Development] GalaxyUser:
No for the time being. When I go on something I said it in the thread

No, we cannot use GPS since there is no sensors, but now GPS detects gps satellites, so if someone fix sensors we will be able to use GPS.
[Nexus 5 Android Development] ern88:
Looking forward to this. Keep up the great work B'ys :victory:
[Nexus 5 Android Development] GalaxyUser:
Okay, so for sensors:

When i had all these lines in build.prop

Some of sensors are working (Light/Orientation/Proximity)

if i add this line, no one are workings: ro.qc.sensors.step_detector=true

I don't know why, and it's very strange since this line is in AOSP build.prop
[Nexus 5 Android Development] jazzespresso:
HOLLY COW MAN! how to manage to port this??? what can I say WOW:good::good:

not that I have Nexus 5, but this port may be make it possible to port to other devices too....

wonderful work!!:laugh:
[Nexus 5 Android Development] doga.ozkaraca:
CONGRATS !

I'm happy to see that :)

Lucky N5 users :D :good: :highfive:

I MUST BUY NEXUS 5 ASAP and send galaxy s4 crap to trash...
[Nexus 5 Android Development] -DarkKnight-:
This project is so close to daily driver readiness that I can feel it happening. Sound and Camera and this ROM will be perfect!

Congrats man!
[Nexus 5 Android Development] AndroidAndroid88:
Maybe if you change step sensor to false, seeming as the N5 doesn't have a step sensor
[Nexus 5 Android Development] Smith7018:
So the error here relates to the native_get_min_buff_size call which invokes this JNI (native C) function in /core/jni/android_media_AudioRecord.cpp

static jint android_media_AudioRecord_get_min_buff_size(JNIEnv *env, *jobject thiz, jint sampleRateInHertz, jint nbChannels, jint audioFormat)

{

ALOGV(">> android_media_AudioRecord_get_min_buff_size(%d, %d, %d)",

sampleRateInHertz, nbChannels, audioFormat);

size_t frameCount = 0;

status_t result = AudioRecord::getMinFrameCount(&frameCount,

sampleRateInHertz,

(audioFormat == ENCODING_PCM_16BIT ?

AUDIO_FORMAT_PCM_16_BIT : AUDIO_FORMAT_PCM_8_BIT),

audio_channel_in_mask_from_count(nbChannels));

if (result == BAD_VALUE) {

return 0;

}

if (result != NO_ERROR) {

return -1;

}

return frameCount * nbChannels * (audioFormat == ENCODING_PCM_16BIT ? 2 : 1);

}

So the issue here is either AudioRecord::getMinFrameCount is returning an error due to bad parameters or audio_channel_in_mask_from_count is returning null. My N5 is dead atm or I would look into this more!
[Nexus 5 Android Development] GalaxyUser:
Yeah but i would like to have very sensors to work :/

Nexus has MPU-6515 six-axis (gyro + accelerometer) and Asahi Kasei AK8963 compass

only those out there not working :/

I think some files are not in the good place.

there are two firmware folders in the rom /etc/firmware & vendor/firmware

We should have to have one only..... Tried to delete /etc/firmware but this has no effect :/
[Nexus 5 Android Development] GalaxyUser:
Haha you are awesome man !

The only problem is that we have to use lib from M8, because libs from nexus 5 does not work and make the phone not responding.

So i think the only things we can do is hexediting and smali edits

EDIT: In build.prop there are some values:

# System props for audio

# System props for soundhound

persist.htc.audio.pcm.samplerate=48000

persist.htc.audio.pcm.channels=2

perhaps we need to change that ?
[Nexus 5 Android Development] AndroidAndroid88:
I think that is just the sample rate, I don't have a computer with me but isn't the stock sample rate 44khz and htc's is 48khz not sure if that would effect any hardware decoding
[Nexus 5 Android Development] jxr94:
Gosh these made me laugh so hard xD
[Nexus 5 Android Development] GalaxyUser:
Yeah, and that the function tkae in arguments: native_get_min_buff_size(sampleRateInHz, channelCount, audioFormat);
[Nexus 5 Android Development] iTzGavin96:
ITS ON THE PORTAL

http://www.xda-developers.com/andro...mctr=(not provided)&__utmv=-&__utmk=122392332

CONGRATS!!!!
[Nexus 5 Android Development] -DarkKnight-:
You are like the 7th person to post it
[Nexus 5 Android Development] Polv89:
Does this ROM works on multirom?

Thanks
[Nexus 5 Android Development] -DarkKnight-:
GTFO
[Nexus 5 Android Development] Polv89:
O_o ???

Inviato dal mio Nexus 5 (by Nexusarena.it)
[Nexus 5 Android Development] luisangel89:
LMAO

http://xdaforums.com/google-nexus-5/general/nexsense-rom-discussion-t2719207
[Nexus 5 Android Development] Polv89:
O_O again.

Inviato dal mio Nexus 5 (by Nexusarena.it)
[Nexus 5 Android Development] -DarkKnight-:
Just leave. I want to call you things that I can't type on XDA
[Nexus 5 Android Development] Polv89:
What's your problem man?

Inviato dal mio Nexus 5 (by Nexusarena.it)
[Nexus 5 Android Development] DREWHAMM974:
The fact the name of the thread clearly has DEVS only. This is for development of the ROM. Not support, not Q&A. Plus this same dang question has been asked literally over 20. Search and you will get s multitude of answers. Since you cannot grasp the concept of a search function in a forum, you are obviously not a Dev. Since the title says DEV ONLY and you are not one GTFO!
[Nexus 5 Android Development] lahegry:
Simple search shows mentioned don't care to list hour many times this has been asked. In some cases multirom works, sometimes if does not try and see for yourself. But to give you warning, don't complain on this thread if it doesn't. This is a alpha not a beta.
[Nexus 5 Android Development] -DarkKnight-:
Its called "reading"
[Nexus 5 Android Development] pandasa123:
For God's sake...this thread is for developers! IF YOU ARE NOT A DEVELOPER FOR THIS PROJECT, GET OUT!

Go to the general thread for this, but leave this thread so devs can merge changes without having to dig through 20 posts..

And another thing, MultiROM doesn't work! Stop asking

AND we know it's been featured..Huzzah, now back to work

Edit: Mod can we get another clean up...this is getting ridiculous
[Nexus 5 Android Development] Smith7018:
Hmm, possibly. AOSP doesn't have any lines similar to that but try changing it to 44000 or removing it entirely? Also, I would advise using GDB and attaching to the process that crashes it. I wish I knew more about smali but I never found a good resource on the language. Also, regarding the step counter issue, I say disable it. The "step counting sensor" is just a name KK uses for automated step counting using the accelerometer. Very few apps use it and if disabling it means the light, proximity, and more work, I say do it. It probably relates to issues in the Sensor Manager. Like it possibly tries to load up the sensors in the monitor and it tries the step counter, sees an error, and then shuts off the others? I dunno, I'm just making an educated guess heh.
[Nexus 5 Android Development] Polv89:
I'm on mobile with tapatalk that don't support search in a thread...

I try with multirom, no problem, the important is that it don't break my primary rom :)

Inviato dal mio Nexus 5 (by Nexusarena.it)

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

Excuse me..i've read now

ONLY DEV

Goodbye and good work :)

Inviato dal mio Nexus 5 (by Nexusarena.it)
[Nexus 5 Android Development] -DarkKnight-:
Do you see the search icon in the top corner

Please post in the discussion thread. We will be more than happy to help, just not here
[Nexus 5 Android Development] lahegry:
Beat me to it ;)
[Nexus 5 Android Development] darkboy654:
hello.
[MENTION=2623456]GalaxyUser[/MENTION] congratulations for your work. I always wanted to see the sense run on other devices.

have a lg g2, is there any plan to make a port for it someday?
[Nexus 5 Android Development] Cuzz1369:
No! Do it yourself. He is busy.
[Nexus 5 Android Development] CRIME INC.:
Seriously??? Oh boy[emoji36][emoji115][emoji115]

sent from my Hammerhead Nexus
[Nexus 5 Android Development] modyt:
Yeah... In the year 2180 AD.
[Nexus 5 Android Development] Jashanmallan:
:)Trying my best to make audio work
[Nexus 5 Android Development] deveshmanish:
So, gathering from the above two posted codes how about removing the function reference altogether and replacing it with a calculated constant? That should give us some sound I hope.

I mean we know that SampleRate=44000(44Khz) for N5,

Channel count (eh I don't know) take it 2 as in HTC and,

audio format(as seen from the code above) it's either the 16bit PCM or 8bit PCM , say we take 16 bit PCM so that would make the audioFormat to be 2

.

Now as the function is returning framecount*nbChannel*(either 2 or 1)

What I'm saying is we do this calculation firsthand and return that value thereby bypassing the function.

So the function would return 44000*2*2 = 176000

Now instead of this,

We use this

int size = 176000;

Worth a shot I guess.If it doesn't work other combos can be tried with the number of channels and the sampling rate.

Just making an educated guess here.
[Nexus 5 Android Development] runningwarrior08:
That may work, only problem I see is that there is no exception thrown for a failed output therefore either throwing force closes/random reboots/ battery drain / or nothing at all. If I was at home I would try to compile it and give it a shot but alas I am not.

If it does work that would be awesome.
[Nexus 5 Android Development] Smith7018:
That's a good idea and should definitely be looked into. The issue, though, is whether or not the constants provided are wrong which will signify a lot of issues. Hardcoding return values into low level functions just seems like it could lead to bad news heh.
[Nexus 5 Android Development] Vicpdx18:
Well I officially got multi-rom working with it.

1st rom: NexSense, 2nd Rom: Andersonaragao's Nexus 5 Experience Rom Stock AOSP version
[Nexus 5 Android Development] trh1341:
Sweet we were all so worried:P by the way I finally got it downloaded on my 512 kbps connection, gonna dive in now. My main focus is sound. So lemme know!
[Nexus 5 Android Development] Vicpdx18:
lol, I know not the most important thing at this time but thought I would say to all those who cant get it on there nexus that more than 1 did!

Bet: Who ever gets sound working gets 50 trillion billion dollars from me(even though I don't have that and would still be in debt even when im dead).

Seriously though if we could get some people willing to take the risk of changing stuff and getting Fc's,possiable hard or soft bricks, and or anything else to see what it would do to get sound working on the N5 it would be awesome!
[Nexus 5 Android Development] munchy_cool:
[MENTION=2623456]GalaxyUser[/MENTION]

for the audio error in the logcat, this is what i could find

the function getminbuffersize is used to Return the minimum buffer size required for the successful creation of an AudioRecord object, in byte units.

So, IMHO it's used for audio recording.

guess we need to set a few variables to values which are confirmed to work.

int sampleRateMain = 44100;

int channelConfiguration = AudioFormat.CHANNEL_CONFIGURATION_MONO;

int audioEncoding = AudioFormat.ENCODING_PCM_16BIT;

hope this helps :D

source

sampleRateInHz

the sample rate expressed in Hertz. 44100Hz is currently the only rate that is guaranteed to work on all devices, but other rates such as 22050, 16000, and 11025 may work on some devices.

channelConfig

describes the configuration of the audio channels. See CHANNEL_IN_MONO and CHANNEL_IN_STEREO. CHANNEL_IN_MONO is guaranteed to work on all devices.

audioFormat

the format in which the audio data is represented. See ENCODING_PCM_16BIT and ENCODING_PCM_8BIT

bufferSizeInBytes	the total size (in bytes) of the buffer where audio data is written to during the recording. New audio data can be read from this buffer in smaller chunks than this size. See getMinBufferSize(int, int, int) to determine the minimum required buffer size for the successful creation of an AudioRecord instance. Using values smaller than getMinBufferSize() will result in an initialization failure.
[Nexus 5 Android Development] FuMMoD:
This is absolutely one of the best features of this rom. Right now all USB tethering is not working but man I've been looking for something like this for a while. I'm really excited to help debug USB tether.
[Nexus 5 Android Development] Jashanmallan:
Trying to edit the sound files will be back in some time. :)
[Nexus 5 Android Development] xXminiWHOOPERxX:
Just read from when I last posted guys so I must clarify this to noobs... If you were to ever own a HTC device you'd see that HTC supports underground development, hence the reason they gave us HTCdev.. And HTC software has been ported to nexus 4 and Samsung phones. And HTC not once has asked them to stop development.. they are probably shocked to see this happening

Add me on hangouts and I'll try helping you N5 users :) ( yes I'm a girl dev ) xxminiwhooperxx@gmail.com

And here is what I have on my build.prop from my m8 port to the DNA for audio

# System props for audio

persist.audio.fluence.mode=endfire

persist.audio.vr.enable=false

persist.audio.handset.mic=digital

# System props for soundhound

persist.htc.audio.pcm.samplerate=48000

persist.htc.audio.pcm.channels=22

And if you ever have in-call audio issues try this

# System prop for VoLTE support

ro.baseband.volte=false
[Nexus 5 Android Development] Jojo1992:
Perhaps we should look for a device which has the same sound chip like the nexus and use the libs from this?

It is just an idea...;)
[Nexus 5 Android Development] DrunkFuX666:
Wow this is amazing... A must watch thread... Thanks Dev...!
[Nexus 5 Android Development] trh1341:
I have many phones so I Dont mind. While its really hard to hard brick a phone these days. If there is a build that for some reason could. Sent it to me. I Dont mind
[Nexus 5 Android Development] Jashanmallan:
hey dev thanks

the information u posted can help us s lot .

btw adding u on hangouts
[Nexus 5 Android Development] crnkoj:
Great work!

Do you think this would be portable to the lg g2 as well (seeing as the great many similarities between the nexus 5 and g2).

Thanks
[Nexus 5 Android Development] raymond4:
Really tho stop asking for ports.
[Nexus 5 Android Development] xXminiWHOOPERxX:
There is a great thing here on xda in these forums.. the search bar.!! Please use it before spamming. The question has been answered as " do it yourself" -- not being mean but that's what it said last time it was asked
[Nexus 5 Android Development] havy15:
I seriously feel like I'm gonna start a thread on the q&a forum or general forum so everyone that has a question can just go on there. So that this thread would be strictly for devs .cuz I literally e everyday read this thread to see updates and the same questions get asked on everypage . like the devs are doing great but its getting so cluttered with random people posting without searching.
[Nexus 5 Android Development] xXminiWHOOPERxX:
I believe there is already one
[Nexus 5 Android Development] havy15:
I just edited my post but you guys do your thing . maybe just don't respond to the questions lol they will get the point .

Edit: Used the search button(what people should be using) and found the thread for non devs for this ROM

Link : http://xdaforums.com/showthread.php?t=2719207
[Nexus 5 Android Development] Vicpdx18:
Just so you know if anyone needs me to do anything im here!

I actually helped out abit on a rom before: I helped abit on the Borked Rom for the HTC Vivid, Pretty much homeslice976 was doing a sense port from the VillaC2 to get Sense 4.1 and Android 4.0.4 on the vivid since HTC stopped the updates for that phone even though today it has the power for kitkat and therefore sparked some custom rom kitkat's as development is still going. Overall: in the end it worked pretty well and is really stable but has it few bugs left that someday will get debugged.

so just putting that out there.
[Nexus 5 Android Development] AndroidAndroid88:
Once this is fully working I might give a lg g2 port a shot but I can't promise anything, I also don't own the device which will make it hard
[Nexus 5 Android Development] GalaxyUser:
Hey,

Thanks to everyone to helping on sound and other stuff.

Later i will try to see if it's possible to change some smali in order to return 176000 in all cases.

But i think this function is in a lib and not in smali. Am i right ?

Envoyé de mon Nexus 5 en utilisant Tapatalk
[Nexus 5 Android Development] xXminiWHOOPERxX:
I would say it's a lib. But does head phone sound work?
[Nexus 5 Android Development] flunk86:
Come on man..dont ask to port to other device..
[Nexus 5 Android Development] Vicpdx18:
well at this time no audio at all works even through bluetooth.
[Nexus 5 Android Development] toocool4all:
Guys as i was in root directory i didnt found any sound related files or folders which my primary stable rom has see below screenshots for info

Sent from my Nexus 5 using CHAOS kernel and SENSONIC ROM . Thank God I mean audio god.
[Nexus 5 Android Development] darkboy654:
Thank you. Was more interested response so far.:good:
[Nexus 5 Android Development] xXminiWHOOPERxX:
Working with GalaxyUser now guys, hopefully I can assist him on a fix. Wish us and who ever else working with him the best of luck
[Nexus 5 Android Development] Vicpdx18:
good luck you two! "And may the sense be with you"
[Nexus 5 Android Development] TheArc:
A favour

Firstly, huge props to the developer on preparing this rom.

Sense is beautiful and I can tell that this project will become successful and so that I would like to say good luck.

Now a bit of a favour for some. If its fine with the dev, could someone please upload the following .apk's from the rom (.zip)

- framework-res.apk (sense one too).

- SystemUi.apk

- Settings.apk

- And the resource folder (if existing).

Would be highly appreciated!
[Nexus 5 Android Development] DryaT:
https://www.dropbox.com/s/a7q4g1mbn6geir1/framework-res.apk

Where I can found the other two?

Enviado desde mi Nexus 5 mediante Tapatalk
[Nexus 5 Android Development] TheArc:
Sense framework should be in /system/framework

SystemUi should be in /system/app

Settings should be in /system/app

Thanks so much !
[Nexus 5 Android Development] DryaT:
Glad to help.

https://www.dropbox.com/s/nptvoxeaeyorga5/Settings.apk

https://www.dropbox.com/s/4t3svaa5s0fkr3b/SystemUI.apk

Enviado desde mi Nexus 5 mediante Tapatalk
[Nexus 5 Android Development] Keviio:
It doesn't want to start here.

I installed it many times with CWM 6.0.4.5, I wiped everything.

It just got up to the "HTC One"-Bootanimation, not further.

I'd really be glad, if someone helped me.